Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make pressure plate with GUI that shows how many players are on it?

Asked by 6 years ago
Edited 6 years ago
function onTouched()

if game.Workspace.PART.Touched:Connect(function()
    playersTouching = playersTouching + 1
script.Parent.Text = "Number: " ..game.Players.playersTouching.. ""
end

I'm pretty sure I screwed something up pretty bad, I was trying to put the script into the textlabel so it changes the text.

Answer this question