I do not know why it is saying that this is a number value I need help figuring this out and if you can answer it and explain what I did wrong so I can learn I would be thankful. I also have provided some pictures. (It is in a LocalScript)
local Player = game:GetService("Players").LocalPlayer
function yes(Player)
Player.leaderstats.WantedLevel.Value = Player.leaderstats.WantedLevel.Value + 1
Player.Character.Rank.Frame.Name1.Text.Value= Player.Name.."- Robbing"
local h = script.Parent.Parent
h.Visible = false
script.Parent.Parent.Parent.OneThousand.Visible = true
local rob = script.Parent.Parent.Parent.RobbingPresent
rob.Script.Disabled = false
end
end
script.Parent.MouseButton1Down:connect(yes)
Error Picture: https://gyazo.com/3caada18d8f35eab07f19737c850cfd8
Explorer Picture: https://gyazo.com/2c644b00f8f522ab8eafe79c047cff41
Thank you for taking a look guys!

2 comments
big p from Player is small P in all then it should work or u have the wrong value item
Found my error. Can say local item = blablabla. item.value and then say if item.value == 1 then...... need to take away the one dotvalue on one side. like local item = blabla.item and then if item.Value == 1 then.... or local item = blablabla.item.Value and then if item == 1 then...... on ure side its the player part between the () player clocks on mouse get in yes then find player. blablabla