Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you make the default weapon crosshair show on mobile as well?

Asked by 5 years ago
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?

0
A phone doesn't have a cursor or mouse. CjayPlyz 643 — 5y
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} CjayPlyz 643 — 5y
0
No I need it like when you only have the weapon equipped.. use gun simulator as an example they have mobile cursor's ChefDevRBLX 90 — 5y

Answer this question