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)