Location:click me
So I created this very very simple script,
wait(60) script.Parent.TextColor3 = Color3.new( 255,0,0 ) script.Parent.Text = "[ BOSS FIGHT ] Is starting" wait(2) script.Parent.Text = "[ WARNING ] Boss fight is about to begin!" wait(3) script.Parent.Parent.Parent.wrathometer.Visible = false
And it works after all the time is up, but when you die it shows up again even if its not visible? Can I have some help or improvements to this script?
I think I might have a fix for you. Change it to a Localscript, and try inserting this into it:
Player=game.Players.LocalPlayer --Gets the LocalPlayer if not Player:FindFirstChild("Visibility") then --Sets up a value that lets the game know to make it visible or not Bv = Instance.new("BoolValue",Player) Bv.Name = "Visibility" Bv.Value = true end if Player:FindFirstChild("Visibility").Value == false then script.Parent.Parent.Parent.wrathometer.Visible = false else wait(60) script.Parent.TextColor3 = Color3.new( 255,0,0 ) script.Parent.Text = "[ BOSS FIGHT ] Is starting" wait(2) script.Parent.Text = "[ WARNING ] Boss fight is about to begin!" wait(3) script.Parent.Parent.Parent.wrathometer.Visible = false Player:FindFirstChild("Visibility").Value = false end
Anyways, the script should work now. Basically, what I did is inserted a value into the player, and whenever the player dies and the script runs again, it checks if the value is true or not, and sets the visiblity depending on that.
Anyways, I hope this makes sense and helped you out a bit. If not or if you have any further problems/questions, please leave a comment below :P