Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why isn't my gui appearing again after the player resets or dies?

Asked by 5 years ago

Alright, so I have this health gui local script and it has the extra ability to identify the player's team by changing it's frame color for example to red or blue and the problem i'm having that it's not appearing when the player resets and there's no even a single error appearing in Output that I can idenfity it's problem, please help any kind of assistance would be appreciated.

01while game.Workspace:FindFirstChild(game.Players.LocalPlayer.Name)==nil do
02    game:GetService("RunService").RenderStepped:wait()
03 
04end
05while game.Workspace:FindFirstChild(game.Players.LocalPlayer.Name):FindFirstChild("Humanoid")==nil do
06    game:GetService("RunService").RenderStepped:wait()
07end
08 
09 
10 
11 
12 
13    script.Parent:WaitForChild("HPVisual")
14    script.Parent:WaitForChild("HPLabel")
15    script.Parent:WaitForChild("Critical")
View all 58 lines...
0
Hey just go in the properties of the GUI and set to false "ResetAtSpawn". TheRealPotatoChips 793 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

I'm pretty sure there's an option you can tick on the gui if you want it to reset on player death. https://gyazo.com/5311b024e17c0bb3fbdd6d8f261ea493

0
Yeah but my gui already automatically has that property checked and it still keeps dissapearing. Simpletton 82 — 5y
0
I'm looking at the script and it doesn't, try ticking it and see what happens. llMasonIl 12 — 5y
0
Nope, I've tried again and still dissapears. Simpletton 82 — 5y
0
There is also a property just like this in the StarterGui. Try that as well. throwawayaccount2001 102 — 5y
Ad

Answer this question