p = script.Parent script.Parent.Touched:connect(function(part) for i = 1,6, 0.01 do wait(.001) p.CFrame = p.CFrame * CFrame.new(0,.01,0) end script.Parent.TouchEnded:connect(function(part) for i = 1,6, 0.01 do wait(.001) p.CFrame = p.CFrame * CFrame.new(0,.01,0) end end)
Nothing fires and nothing is in output, please help!!
This is simply because the way you set the for loop won't run. For example, if someone says you need to run 1 mile today and you already ran 16 miles today, you won't need do anything. To fix this, we can set the third parameter like
for time = 10, 1, -1 --[[defaults to 1, but we want it to count down]] do print(time) wait(1) end
Now all you need to do is implement this into your code since I don't know what you really want with the loops.
Hope this helps!