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

I got a syntax error but I do not know what have I done wrong?

1 answer

if part.Touched:Connect(function() then

that's the error: you used 'if then' and ':connect()' in eachother. events work like this:

Instance.Event:connect(function(inputsIfAnyAreNeeded,input2IfNeeded)
	-- code
end)

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