How do I move a part from one position to another smooth and "look natural"?
Asked by
3 years ago Edited 3 years ago
Hey scriptinghelpers, sorry to bother you all with a question. I've been looking at tutorials and other questions but I just don't understand really. I don't know anything about this but, It seems to me there's a lot of different ways to accomplish this I suppose. Basically I'm trying to move a parts position while making it look natural and smooth. Below you will find the current code I'm using which is a Vector3.new, and it's like right in your face fast. Doesn't really pop like I want I want too.
Basically I want it to float up nice and smooth and I'm not sure how to accomplish that without changing the vector for every single stud.
This is a script inside of a part.
The script I ended up with that works!
01 | local tweenservice = game:GetService( "TweenService" ) |
02 | local leviathan = script.Parent.Position |
03 | local tweeninfo = TweenInfo.new( |
05 | Enum.EasingStyle.Quad, |
06 | Enum.EasingDirection.InOut, |
11 | local posend = Vector 3. new( 44 , 0 ,- 116 ) |
12 | local tween = tweenservice:Create(game.Workspace.Leviathan, tweeninfo, { Position = posend } ) |
13 | game.Players.PlayerAdded:Connect( function (player) |
14 | player.Chatted:Connect( function (message) |
15 | if message = = "TEH EPIK DUCK IS COMING!!!" then |
I appreciate the help in advance, I'm only here to learn! Thanks again.