when I touch the block nothing happens please help
local pedestal = 0
function hit()
wait(1)
pedestal = pedestal + 2
print(pedestal)
end
script.Parent.Touched:Connect()
when I touch the block nothing happens please help
local pedestal = 0
function hit()
wait(1)
pedestal = pedestal + 2
print(pedestal)
end
script.Parent.Touched:Connect()
You never actually connected your function to the event, you left it blank. Replace the bottom line with this:
script.Parent.Touched:Connect(hit) --As you can see, you must put the function you want to run when the event occurs in the brackets
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
it worked, I know I have to do it but I forgot. Probably cuz im working late
ty btw