So umm what I'm trying to do is whichever players touches TouchBrick, then the gui will display their names and say for example "Player1, Player 2, and Player 3 touched the brick!" (and also I'm not sure how to adjust to the number of players who touched it, so if 1 player touched it then idk how i would make it just "Player1 touched the brick", but i tried) but i can't seem to be getting it right, this is what i created so far (and btw the gui uses a string value which is in replicated storage so whatever the string value is changed to, thats what is displayed on the gui, and that works fine):

function onTouched()
	get Player.Humanoid.Name = "..." then
	if onTouch = 1 then 
	game.ReplicatedStorage.StringValue2.Text = "... has touched the brick!"
	if onTouch = 2 then
	game.ReplicatedStorage.StringValue2.Text = "... and ... have touched the brick!"
end

script.Parent.Touched:connect (onTouched)

It seems awfully wrong to me which is why i need help.

1 comment

0

This isn't even remotely close to valid and doesn't make sense.