I have this script that inserts a new click detector into the game and basically when you click on a part (mannequin) you get their clothes they are wearing but whenever I hover over that mannequin it shows this massive click cursor that I don't like. I have this script how can I modify the script to make the click detector cursor invisible or change the cursor to 'try on'. I don't know much about scripting, my skills are best in building so some help would be appreciated.<3 I already asked this but no one gave me a good response i know theres a cursor image thing but how would i insert that into my script to change it.

local assetId = 0 -- shirt or pants ID
local det = Instance.new("ClickDetector",script.Parent)
det.MouseClick:Connect(function(player)
local char = player.Character if not char then return end
local new = game:GetService("InsertService"):LoadAsset(assetId):GetChildren()[1]
local old = char:FindFirstChild(new.Name) if old then old:Destroy() end
new.Parent = char
end)

2 comments

0

import an image of the cursor you want and copy paste the Id, then you would change the cursor like this- game.Players.LocalPlayer:GetMouse().Icon = "http://www.roblox.com/asset?id=1630220" or something like this, I haven't coded using Lua in quite some time.

0

i tried inserting it into my script and it didnt respond