so im using remote event to do a script. Server Script
local event = game.ReplicatedStorage.RemoteEvent
local part = workspace["potty button"]
part.Touched:Connect(function(Player)
event:FireServer()
end)
Local Script(in startergui)
local event= game.ReplicatedStorage.RemoteEvent
local plr = game.Players.LocalPlayer
event.OnServerEvent:Connect(function()
local stats = plr:WaitForChild("leaderstats") if stats then
local fullness = stats:FindFirstChild("Fullness") if fullness then
fullness.Value = 0
end
end
end)
It says theres an error in the server script that says
FireServer can only be called from client. What does this mean and can someone help?

1 comment
it won't work since you're calling FireServer on the server