The script is under a brick and I want the script to only activate if someone touches it. and after it finishes running the script lines then it will stop and wait for someone to touch it again. I don't have much experience with scripts so some help would be appreciated.
part = script.Parent
repeat
wait(10)
for i = 1, 200 do -- change 200 to whatever number. 200 = 20 studs up/down, 100 = 10 studs up/down, etc.
part.CFrame = part.CFrame * CFrame.new(0,0.1,0)
wait()
end
wait(5)
for i = 1, 200 do -- change 200 to the one up there ^^^
part.CFrame = part.CFrame * CFrame.new(0,-0.1,0)
wait()
end
until false

1 comment
no requests