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

I'm making a script for a lamp. Can someone help me to fix the cursor icon?

Asked by
Nickzus 24
5 years ago

The cursor icon of the click detector is not working:

local light = false
local core = script.Parent.Core

script.Parent.ClickDetector.MouseClick:Connect(function()
    if light == false then
        light = true
        core.BrickColor = BrickColor.new("Bright yellow")
        core.Material = "Neon"
        script.Parent.ClickDetector.CursorIcon = "rbxassetid://2680187417"
    else
        light = false
        core.BrickColor = BrickColor.new("Medium stone grey")
        core.Material = "Metal"
        script.Parent.ClickDetector.CursorIcon = "rbxassetid://2680192246"      
    end 
end)
0
Does your script error? BenSBk 781 — 5y
0
No, just the cursor icon that is not changing Nickzus 24 — 5y
0
Is this a Script or a LocalScript? BenSBk 781 — 5y
0
Script Nickzus 24 — 5y
1
the script has to be local @Nickzus DeceptiveCaster 3761 — 5y

Answer this question