Ok so I have this script that when you click it, it says "Taken by !"but it says click is a nil value. This usually works with touched events and clickedetector but its not working with gui clicks, so I'm looking for a way to check the name of the player who clicked it. Here is my script.
local function OnClick(Click)
script.Parent.TakenBy.Text = ("Taken by"..(Click.Parent.Name).."!")
end
script.Parent.MouseButton1Click:Connect(OnClick)
I have a click parameter in my function, yet the output says click is a nil value. I also can't write "LocalPlayer.Name" because that only works in a local script, and I need the whole server to see this change. A localscript of course can't change it for the entire server because filtering is enabled. Does anyone have any ideas on how to solve this?

3 comments
Remote events
(MouseButton1Click doesn't have any arguments that tell who clicked is, because FE that isn't required either, for the client, only 1 person exists)
Place a separate TextButton in every player's PlayerGui