script.Parent.Position = script.Parent.Position + Vector3.new(0, 0, 0) i have this script but it guides the part nowhere lol t just goes to a random location every time
COMMUNITY QUESTION
how do i make a moving part when you touch it?
2 answers
CFrame.new(script.parent).Position + Vector3.new(0,0,0) --Can you use it?
script.Parent.Touched:connect(function(what)
local Humanoid = what.Parent:FindFirstChild("Humanoid")
if Humanoid then
script.Parent.Position = script.Parent.Position + Vector3.new(1,0,0)
end
end)
1 comment
0
I tested it my self and it works :)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
It doesn't go back