Im trying to make it so when a player presses "t" they get a Value for the exp i have
game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(key)
if key == "t" then
game.Players.Experience.Value = game.Players.Experience.Value + 100000
end
end)
but i keep getting this error "attempt to index nil with 'GetMouse"

2 comments
You should use UserInputService instead of mouse.KeyDown
Us this local script? UserInputService/Mouse isn't defined on server scripts