Hi, I made a kill script for a game though after respawning all the guis visibilities are set to false.
Kill part script:
local Tower = game.Workspace:WaitForChild("Tower")
for i, v in pairs (Tower:GetDescendants()) do
if v:IsA("BoolValue") and v.Name == "Touched" then
v.Parent.Touched:Connect(function(Hit)
if Hit.Parent:FindFirstChild("Humanoid") then
Hit.Parent.Humanoid.MaxHealth = 0
Hit.Parent.Humanoid.Health = 0
end
end)
end
end
Script that makes guis visible when a player joins the game:
local Height = script.Parent:WaitForChild("Frame")
local Timer = script.Parent.Parent.Timer:WaitForChild("Timer")
local CandyDisplay = script.Parent.Parent:WaitForChild("Display"):WaitForChild("CandyDisplay")
Height.Visible = true
Timer.Visible = true
CandyDisplay.Visible = true