Here is my code, but i don't know whats wrong
Part = script.Parent.Parent
Part.ClickDetector.MouseClick:Connect(function() Part:moveto(Vector3.new(10,12,11)
wait(10) Part:movetod(Vector3.new(10,10,10)
)
end)
Here is my code, but i don't know whats wrong
Part = script.Parent.Parent
Part.ClickDetector.MouseClick:Connect(function() Part:moveto(Vector3.new(10,12,11)
wait(10) Part:movetod(Vector3.new(10,10,10)
)
end)
Not sure how your script is set up since it doesn't appear that you added it as a code block right so here's my best shot.
First, if this is your script (as shown on your post):
Part = script.Parent.Parent
Part.ClickDetector.MouseClick:Connect(function()
Part:moveto(Vector3.new(10,12,11)
wait(10)
Part:movetod(Vector3.new(10,10,10))
end)
Here are two things to take into account:
If you have any questions or issues, please contact me. ;)
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
wiki.roblox.com