Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

when i touch the block it wont print, help?

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()

1 answer

✓ Accepted answer

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

2 comments

0

it worked, I know I have to do it but I forgot. Probably cuz im working late

0

ty btw

This discussion is preserved as it was. New answers, comments, and votes are closed.