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

Passing Multiple parameters into a function when using the ,Touched function?

OK so I have a working code but because it is a touched function I used three separate functions with only one difference. The code basically changes a players team when they walk through a wall.

so here is the main thing I write:

function heyo(hit) 
																				
end 																	example.Touched:connect(heyo)

Obviously, that code wouldn't do anything but the question is what do I change in the call and functions statement to make it so that I can send a second parameter into the function (since hit is already being sent)

1 answer

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