Mouse.Icon doing virtually nothing

I can’t believe I have to ask such a simple problem yet again but Mouse.Icon is suddenly not working in studio or in game. Here’s the script:

function CheckHit()
	
	local Parameters = RaycastParams.new()

	local ActiveFilter = Filter.GetFilter()

	table.insert(ActiveFilter,WeaponModel)
	table.insert(ActiveFilter,Character)

	Parameters.FilterDescendantsInstances = ActiveFilter

	Parameters.FilterType = Enum.RaycastFilterType.Blacklist

	spawn(function()
		
		local Direction = (Mouse.Hit.Position - game.Workspace.CurrentCamera.CFrame.Position).Unit * 1000
		
		local Result = workspace:Raycast(game.Workspace.CurrentCamera.CFrame.Position, Direction, Parameters)
		
		local Hit, Kill = game.ReplicatedStorage.RemoteEvents.CheckHit:InvokeServer(Result.Instance,Gun)
		
		print(Hit,Kill)

		if Hit ~= nil then

			Player.PlayerGui.Game.Sounds.Hit:Play()
			
			Mouse.Icon = "http://www.roblox.com/asset/?id=6951512894"

			wait(.25)

			Mouse.Icon = "http://www.roblox.com/asset/?id=409468479"
		end

		if Kill == true then
			game.ReplicatedStorage.RemoteEvents.Kill:Fire(Hit)
		end
	end)
end

And Yes, Hit isn’t nil because the Hit marker sound is playing and when I checked it wasn’t nil

Does anyone know what’s going on here?

If I remember anything about mice icons on roblox, I believe they have to be called every frame. I may be wrong, though.

1 Like