I’m trying To Load a Gui with a ProximityPrompt Script and There’s No error’s In the output About The Script Idk If There’s something I’m doing or not? This is Also a LocalScript Btw.
local ProximityPrompt = script.Parent
local team = game.Teams.Boxer
ProximityPrompt.Triggered:Connect(function(player: Player)
if player.Team == (team) ( player.PlayerGui:FindFirstChild("Gui")) then
script.Parent.ConnectScript.Enabled=true
else
local gui = script["Error Boxer"]:Clone()
gui.Parent = player.PlayerGui
task.wait(5)
script["Error Boxer"]:Remove()
task.wait()
end
end)