Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why doesn't it go animated and only teleports?

Asked by 5 years ago
fgate = game.Workspace.Gate1
click = script.Parent

click.ClickDetector.MouseClick:Connect(function(on)
for 1,10,0.2 do
fgate.CFrame = CFrame.new() -- position is has to get to at the end
end
0
I want it to go animated, can anyone help? NicoXerocious 29 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

It's almost like you're not trying at all, but first you need to get the first position and second position. Then you can do a tweeningservice from position1 to position 2

0
@shanelaw12 I am a big noob at this, and I don't have any ideas yet, but thanks! NicoXerocious 29 — 5y
Ad

Answer this question