Hello! I am trying to make a GUI that pops up for everyone once this button is clicked. The buttons script is
(Local Script)
script.Parent.MouseButton1Click:Connect(function()
game.ReplicatedStorage.AddPoints:FireAllClients()
end)
RemoteEvent is located in ReplicatedStorage, called AddPoints
In ServerScriptStorage I have this, its called AddPoints
(Regular Script)
game.ReplicatedStorage.AddPoints.OnServerEvent:Connect(function()
game.StarterGui.AddPoints.Frame.Visible = true
game.StarterGui.AddPoints.Frame:TweenPosition(UDim2.new(.419,0,.5,0))
end)
I keep getting this error
Image "" failed to load: Unexpected URL
FireAllClients can only be called from the server
-StackBegin
-Script 'Players.DennisSense.PlayerGui.AddThese.Frame.TextButton.AddPoints', Line2
-StackEnd

1 comment
You can only call fireallclients from the server. What exactly are you trying to do?