(2 questions in 1 post) Blood GUI, thirst not working Why is that?
03 | if script.Parent.Value = = 0 then |
04 | game.Players.LocalPlayer.Character.Humanoid.Health = 0 |
08 | script.Parent.Changed:connect(Check) |
11 | script.Parent.Parent.Parent.BleedingGui.IsBleeding.Changed:connect( function () |
12 | print ( "u gon bleed to deth" ) |
13 | if script.Parent.Parent.Parent.BleedingGui.IsBleeding = = true then |
14 | script.Parent.Parent.Parent.BleedingGui.TextLabel.Visible = true |
15 | for i = 1 , script.Parent.Parent.Parent.BloodGui.Blood.Value do |
17 | game.Players.LocalPlayer.Character.Humanoid.Health = game.Players.LocalPlayer.Character.Humanoid.Health - 5 |
19 | else game.Players.LocalPlayer.Character.Humanoid.Health = game.Players.LocalPlayer.Character.Humanoid.Health |
20 | script.Parent.Parent.Parent.BleedingGui.TextLabel.Visible = false |
26 | script.Parent.Changed:connect( function () |
27 | script.Parent.Parent.TextLabel.Text = "Blood [" .. script.Parent.Value .. "]" |
Above won't do anything if IsBleeding is set to true, and the GUI isn't keeping track of its Value. It seems as if "if" statements hate me :l
Below won't set IsBleeding to true, and the GUI isn't keeping track of the value (Like the BloodGui).
06 | for i = 1 , y.Thirst.Value do |
08 | y.Thirst.Value = y.Thirst.Value - 1 |
09 | script.Parent.TextLabel.Text = "Thirst [" .. script.Parent.Thirst.Value .. "]" |
13 | if script.Parent.Thirst.Value = = 0 then |
14 | print ( "u ded nao boi" ) |
15 | for i = 1 , script.Parent.Parent.BloodGui.Blood.Value do |
17 | script.Parent.Parent.BloodGui.Blood.Value = script.Parent.Parent.BloodGui.Blood.Value - 1 |
21 | script.Parent.Thirst.Changed:connect(a) |
23 | script.Parent.Changed:connect( function () |
24 | script.Parent.Parent.TextLabel.Text = "Blood [" .. script.Parent.Value .. "]" |
Will screenshots of the error help?