What do you want to achieve?
Changing the players mouse icon whenever it hovers over a Humanoid.
What is the issue?
The Mouse icon wont change when i hover over it.
What solutions have you tried so far?
i looked at the devforum and im pretty sure there wasnt a solution to my problem
Whenever the players mouse hovers over a character/humanoid, its supposed to change the players mouse icon, but the mouse icon is not changing, if you know how to fix this, please let me know.
Local Script Inside of StarterGUI:
repeat
wait()
until game:IsLoaded()
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local mouse = player:GetMouse()
mouse.Move:Connect(function()
mouse.Icon = "http://www.roblox.com/asset?id=9407861776"
local target = workspace:FindPartOnRay(
Ray.new(mouse.UnitRay.Origin,mouse.UnitRay.Direction*50000)
)
if not target then
mouse.Icon = "http://www.roblox.com/asset?id=9407861776"
else
if target.Parent:IsA("Model") then
local findhumanoid = target.Parent:FindFirstChild ("Humanoid")
if findhumanoid ~= nil then
mouse.Icon = "http://www.roblox.com/asset?id=10471499246"
end
end
end
end)