local distance = 5
local userinputservice = game:GetService("UserInputService")
userinputservice.InputBegan:Connect(function(input, gameProcessedEvent)
while true do
for i = 0, distance do
script.Parent.CFrame = script.Parent.CFrame+Vector3.new(0,0,1) -- Change To Your Parts X, Y, Or Z Direction
wait()
end
wait(2)
script.Parent:Destroy()
end
end)
COMMUNITY QUESTION
Why does my brick not move when I press a button on my keyboard?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Where is this script located?