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

Whats Wrong With This Code?

The code editor is giving me a red line under function

script.Parent.Touched.connect:function(plr)
	
end)

It says "Expected identifier, got 'fucntion'"

1 answer

✓ Accepted answer

You have it the wrong way around

method:connect then function

script.Parent.Touched:connect(function(plr)

end)

1 comment

0

Thank you.

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