Why won't this script work? I have a script setting the House Level value to 1, but It says its value isnt 1
player.leaderstats.HouseLevel.Changed:Connect(function() if player.leaderstats.HouseLevel == 1 then print("Level1") end end)
-- if using normal script the "LocalPlayer" be a "Player", but also if using local script the "Player" be a "LocalPlayer". Local player = game.Players.LocalPlayer Local leaderstats = game.Players.LocalPlayer.leaderstats Local HouseLevel = game.Players.LocalPlayer.leaderstats.HouseLevel.Value player.leaderstats.HouseLevel.Changed(function() if player.leaderstats.HouseLevel = 1 then print("Level1") end end)