Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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)

1 comment

0

Is the function being run? If it is, then on the local/handler side, on line 09 replace LocalPlayer with LocalPlayer.Name.

1 answer

Call the function in a server script duh

2 comments

0

"duh" bro be quiet, nobody knows everything

0

yeah

This discussion is preserved as it was. New answers, comments, and votes are closed.