Basically tried to make an energy bar.
script.Parent.Parent.Energy.Text = script.Parent.Parent.Energy.Integer.Value
Text is always equal to Integer Value..
local Energy = script.Parent.Parent.StarterGui.StatsGui.Frame.Energy.Integer
Energy = Energy -1
So when a player uses the magic, the Integer will -1 one but i get error :(
23:12:23.086 - StarterGui is not a valid member of Player
23:12:23.087 - Script 'Players.Player.Backpack.WizardStaff', Line 73
23:12:23.087 - Stack End
Sos :(!

2 comments
OK, so it worked but the text does not change, any soloutions?
I edited my answer to add and issue for the text not changing. That should have it working. Also, remember that if it works, make my answer and good so we both get credit