Why is My Ending GUI Not Working?

I followed a tutorial series on how to make a horror game by Gamer M8 on YouTube and this ending part isn’t working for me. Any idea why?

Whenever I get the “ExitKey” and go into the ExitTrigger, the GUI just doesn’t show up along with the buttons. I also get no errors in my output.

Here is the place file:
help on gui.rbxl (87.2 KB)

This what I have:
image

image

GUI CODE:

local TweenService = game:GetService("TweenService")
local Info = TweenInfo.new(1)

local Player = game.Players.LocalPlayer
local RemoteEvent = game.ReplicatedStorage.RemoteEvents.ExitEvent

local ScreenGui = Player.PlayerGui:WaitForChild("ExitGui")
local Frame = ScreenGui:WaitForChild("Frame")
local TextLabel = Frame:WaitForChild("TextLabel")
local TextButton = Frame:WaitForChild("TextButton")

local FrameVisible = {}
local TextVisible = {}
local ButtonVisible = {}

FrameVisible.BackgroundTransparency = 0 
TextVisible.TextTransparency = 0
ButtonVisible.TextTransparency = 0

RemoteEvent.OnClientEvent:Connect(function()
	TextButton.Visible = true
	TweenService:Create(Frame, Info, FrameVisible):Play()
	TweenService:Create(TextLabel, Info, TextVisible):Play()
	TweenService:Create(TextButton, Info, ButtonVisible):Play()
end)

image

TRIGGER CODE:

> local BadgeService = game:GetService("BadgeService")
> local BadgeID = 1372491595462830 -- MAKE A BADGE ID
> 
> script.Parent.Touched:Connect(function(Hit)
> 	if Hit.Name == "ExitKey" and Hit.Parent.Parent:FindFirstChild("Humanoid") then
> 		local Player = game.Players:GetPlayerFromCharacter(Hit.Parent.Parent)
> 		BadgeService:AwardBadge(Player.UserId, BadgeID)
> 		game.ReplicatedStorage.RemoteEvents.ExitEvent:FireAllClients()
> 		script.Parent:Destroy()
> 		Hit.Parent:Destroy()
> 	end
> end)

image