Before you read this im new at lua scripting and roblox studio so have than in considerament. Thank you for understanding.
So im trying to make a script to change the mouse icon, but idk why it isn't working. Im using a local script lol. P.S.if there's anything that's writed wrong its because i cant go to roblox studio right now and copy my code. Anyways... here's the code.
ThE cOdE :
local player = game.Players.LocalPlayer
local mouse = game.Players.LocalPlayer:getMouse()
game.StarterPack.Gun.equipped:connect(function()
mouse.Icon = "rbxassetid://358948941"
end
The idea is when the gun is equipped the mouse icon change, but it isn't working, pls help me fixing this.

2 comments
you can also use the parameter of the Equipped event to get the player's mouse
I commented on that right below my code.