✓ Accepted answer
##Updated And Tested
I think I might have a fix for you. Change it to a Localscript, and try inserting this into it:
Player=game.Players.LocalPlayer
if not Player:FindFirstChild("Visibility") then
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
###• It should definitely work now. I have tested it to make sure it does, so if it still isn't working, then something must be wrong with the way you have it settup. Make sure it's in a LocalScript, and everything should work fine
7 comments
Thanks!
No prob. Always happy to help :P
@Dyler3 for some reason its not working. Can you resolve the issue? The text isnt changing and I got a red error in the error box.
Ah, sorry about that. I just forgot to add a line in. It should work now I believe.
Still not working... have any idea? I might make a new post about this...
Hold on. I'll test it myself. If I find the problem I'll update my answer with a fix.
It works now! Thanks!