Can't get screen gui to enable

I am trying to get a screen gui to appear after touching a part using a remote event. I get no errors but nothing happens. Thanks

Server Script:

local redPlayer=nil
local bluePlayer=nil
local remoteEvent=game.ReplicatedStorage.EnableExitButton
arena1=workspace["Arena 1"]

arena1.Arena1RedQueue.Touched:Connect(function(touch)
	if touch.Parent:FindFirstChildOfClass("Humanoid") and redPlayer==nil then
		local player = game.Players:GetPlayerFromCharacter(touch.Parent)
		local humanoid = player.Character:WaitForChild("Humanoid")

		humanoid.WalkSpeed=0
		player.Character:MoveTo(arena1.Arena1RedQueue.Position)
		remoteEvent:FireClient(player)
	end
end)

Local Script:

local gui=game.ReplicatedStorage:WaitForChild("ExitButton")
local remoteEvent=game.ReplicatedStorage.EnableExitButton
local function enableExit()
	gui.Enabled=true
end

remoteEvent.OnClientEvent:Connect(enableExit)
1 Like

Why are you needing to request it from the server?

You can simply use a LocalScript that essentially checks to see if Player’s Character has touched a part, and if it did, the GUI would just appear in the player gui.

If you don’t want this, you can just simply use :clone() and parent it to the LocalPlayer’s PlayerGui.

Yes I forgot to clone it. Thanks

No problem, happy to help! Good luck on whatever your project is!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.