Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

How to make gui pop on client side, when it is triggered on server?

Asked by 7 days ago

I am trying to have a gui pop up on the player screen when the event is fired and the event is handled on the client side, but it doesn't pop up and there is no error code.

Trigger side

local RS = game:WaitForChild("ReplicatedStorage")
local players = game.Players:GetPlayers()





function module.RoundStartingGui()
    print("yes")


        RS.RoundStarting:FireAllClients()



end

handler side

local noButt = script.Parent.ParticipationQuestionFrame.No

local yesButt =  script.Parent.ParticipationQuestionFrame.Yes

local RS = game:WaitForChild("ReplicatedStorage")

RS.RoundStarting.OnClientEvent:Connect(function()
    print("yay")
    print(game.Players.LocalPlayer)
         script.Parent.Enabled = true
    end)

0
Is the function being run? If it is, then on the local/handler side, on line 09 replace LocalPlayer with LocalPlayer.Name. radiant_Light203 325 — 7d

1 answer

Log in to vote
0
Answered by 7 days ago
Edited 7 days ago

Call the function in a server script duh

0
"duh" bro be quiet, nobody knows everything Pupppy44 458 — 7d
0
yeah NathanBlox_Studios 100 — 7d
Ad

Answer this question