Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years 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 1166 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

Call the function in a server script duh

0
"duh" bro be quiet, nobody knows everything Pupppy44 671 — 4y
0
yeah NathanBlox_Studios 212 — 4y
Ad

Answer this question