TweenPosition’s last argument is the function to run as a callback. Apparently tweening on the server gets really laggy and can make tweens look choppy, so how would I go about doing it on the client? Do I create the tween on the server and send it to the client? And why does such thing happen? Just create the tween using TweenService:Create () and assign that to a variable, then connect TweenBase.Completed to a function to do what you want it to do. Tweening on the client comfycouchman I want to make a game that has a lot of tweening, especially on parts.AstraTween is a pretty simple TweenService wrapper and model tweener that allows you to move tweens from the server to the client for visual clarity and performance reasons. An 100% free, open source, easy to install, and easy to use client and model tweening module to help your game’s visual smoothness. Save the color outside the for loop and generate it at the top of the while loop, right before the for loop: local tweenservice = game:GetService ("TweenService") local parts = :GetChildren () while wait (1) do local CurColor. Like still random colors but every part isnt a diffrent color. This is the formula: (a * (1 - t)) + (b * t) Luckly, Roblox already has a built in :Lerp. You can use that to tween integers like so: int1 = 5 int2 = 10 local i = 0 while i starting point t = 1 -> ending point.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |