So I'm making a button where you can start a 60 second countdown and to prevent people abusing this button, I want to make a log on the screen saying "(player) has started a countdown!) ((player) being the player who started the timer's name.) I don't know how to do this and I can't just do Players.LocalPlayer because it's a normal script not a local one. I have everything else done i just want this now. I don't want it as a local script because I want everyone to see who started the timer. Plz someone help
The first parameter (and probably only) of the MouseClick event is the player who clicked it. Here is a script that will print the player name of the person who clicked it:
local cd = script.Parent --change to where the click detector would be function onClicked(plr) print(plr.Name) end cd.MouseClick:Connect(onClicked)