1 | fgate = game.Workspace.Gate 1 |
2 | click = script.Parent |
3 |
4 | click.ClickDetector.MouseClick:Connect( function (on) |
5 | for 1 , 10 , 0.2 do |
6 | fgate.CFrame = CFrame.new() -- position is has to get to at the end |
7 | end |
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