The script:
local clickDetector = script.Parent.ClickDetector local event = game.ReplicatedStorage.WantToJoin clickDetector.MouseClick:Connect(function () print("Click Detector Fired") event:FireServer(game.Players.LocalPlayer) end)
The hierarchy for the parts: - JoinButton (part)
ClickDetector
LocalScript
SurfaceGui
It's not printing "Click Detector Fired" and nothing has gotten to the server yet nor has any error messages shown, so I don't know what the issue is. The Click Detector is exactly like when you create it, just with a shorter range (10 studs) but I am in that range.
Is the localscript located in the workspace ? if it is then the localscript wont run