So, this server script won't work, No errors or anything. I want it to fire a server when a player clicks a click detector but it won't work for some reason, I'd appreciate if you would help me!
Code:
local RemoteEvent = game.ReplicatedStorage.Clothing
local Click = script.Parent
Click.MouseClick:Connect(function(Clicked)
if Clicked.Name == game:GetService("Players").LocalPlayer then
script.Parent.SurfaceGui.Frame.Description = Clicked.Name.."'s Avatar Booth"
workspace.Dummy.Name = Clicked.Name
print(Click.Name..": Claimed A Booth!")
RemoteEvent:FireServer()
end
end)

2 comments
You can only fire servers with local scripts (client scripts) that way the remote fires on the client and replicates on the server.
and you need a server script to handle the server event