local MOUSE_ICON = 'rbxasset://textures/GunCursor.png'

local RELOADING_ICON = 'rbxasset://textures/GunWaitCursor.png'

local Tool = script.Parent

  

local Mouse = nil

  

local function UpdateIcon()

if Mouse then

Mouse.Icon = Tool.Enabled and MOUSE_ICON or RELOADING_ICON

end

end

  

local function OnEquipped(mouse)

Mouse = mouse

UpdateIcon()

end

  

local function OnChanged(property)

if property == 'Enabled' then

UpdateIcon()

end

end

  

Tool.Equipped:connect(OnEquipped)

Tool.Changed:connect(OnChanged)

It shows on desktop but not on mobile, how would i get it to show on mobile too?

3 comments

0

A phone doesn't have a cursor or mouse.

0

Make an Image label, set its image to the mouse icon, re-size it then set its anchor points to 0.5,0.5 then its position to {0.5,0,0.5,0}

0

No I need it like when you only have the weapon equipped.. use gun simulator as an example they have mobile cursor's