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!
local tweenservice = game:GetService("TweenService")
local leviathan = script.Parent.Position
local tweeninfo = TweenInfo.new(
30,
Enum.EasingStyle.Quad,
Enum.EasingDirection.InOut,
0,
true,
0
)
local posend = Vector3.new(44,0,-116)
local tween = tweenservice:Create(game.Workspace.Leviathan, tweeninfo, {Position = posend})
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(message)
if message == "TEH EPIK DUCK IS COMING!!!" then
tween:Play()
end
end)
end)
I appreciate the help in advance, I'm only here to learn! Thanks again.

3 comments
Can you go back to startPos with TweenService? Back and forth (up and down in my case).
On line 11 there is a error in Output that says Unable to cast to Dictionary. I don't actually know what it's suppose to look like since this would be my first time using TweenService.
Alright, I think I got it figured out I did some more reading and testing myself. I'm going to provide the script I ended up with for future reference if anyone else needs it. Thanks for the help again (this is the second time!) Jo1nts!