I am trying to make a server Notify button but I don't know what to do about this error :/
The Notify Remote event is in the replicated storage
this script is in the GUI that recieves the server event (local script)
local Notify = RepStorage:WaitForChild("Notify")
local GameTitle = Minigames:WaitForChild("Game")
local GameDescription = Minigames:WaitForChild("Description")
Notify.OnServerEvent:connect(function()
GameTitle.Text = ("Title")--Sets notifications game title
GameDescription.Text = ("game description")--sets notifications description
end)
this script is in the other GUI that fires the event (local script)
local RepStorage = game:WaitForChild("ReplicatedStorage")
local Notify = RepStorage:WaitForChild("Notify")
local NotifyB = SRMenu:WaitForChild("Notify")-button
local Wait = false
NotifyB.MouseButton1Click:Connect(function()
if Wait == false then
Wait = true
SRNotify:FireServer()
SRNotifyB.Text = ("Notify Players...")
wait(1)
NotifyB.Text = ("Notify Players")
Wait = false
end
end)
thanks for helping

4 comments
If you want to recieve information from server you need to use OnClientEvent. Shorter if you using LocalScript - type OnClientEvent. If normal script OnServerEvent
Do both scripts need to be separate? If they're supposed to affect the same client you can put it all into one local script.
The scripts are separate one is for firing the event and one that connects on server event
For a notify event I would recommend firing a client event from the server. You would use FireClient in a ServerScript and OnClientEvent in a Local Script with your code.