Got this error message
23:58:47.299 - Players.Player.PlayerGui.KnifeScript:6: attempt to index field 'Value' (a number value) 23:58:47.302 - Stack Begin 23:58:47.303 - Script 'Players.Player.PlayerGui.KnifeScript', Line 6 23:58:47.303 - Stack End
For this script:
while wait() do player = game.Players.LocalPlayer leaderstats = player:WaitForChild("leaderstats") Spree = leaderstats:WaitForChild("Spree") SHS = leaderstats:WaitForChild("Spree HS") Spree.Value.Changed:connect(function(prop) if Spree.Value >= SHS.Value then SHS.Value = Spree.Value end end) end
Try this as a fix!
while wait() do player = game.Players.LocalPlayer leaderstats = player:WaitForChild("leaderstats") Spree = leaderstats:WaitForChild("Spree") SHS = leaderstats:WaitForChild("Spree HS") Spree.Changed:connect(function(prop) if prop == "Value" then if Spree.Value >= SHS.Value then SHS.Value = Spree.Value end end end) end