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
6 years ago

The cursor icon of the click detector is not working:

01local light = false
02local core = script.Parent.Core
03 
04script.Parent.ClickDetector.MouseClick:Connect(function()
05    if light == false then
06        light = true
07        core.BrickColor = BrickColor.new("Bright yellow")
08        core.Material = "Neon"
09        script.Parent.ClickDetector.CursorIcon = "rbxassetid://2680187417"
10    else
11        light = false
12        core.BrickColor = BrickColor.new("Medium stone grey")
13        core.Material = "Metal"
14        script.Parent.ClickDetector.CursorIcon = "rbxassetid://2680192246"     
15    end
16end)
0
Does your script error? BenSBk 781 — 6y
0
No, just the cursor icon that is not changing Nickzus 24 — 6y
0
Is this a Script or a LocalScript? BenSBk 781 — 6y
0
Script Nickzus 24 — 6y
1
the script has to be local @Nickzus DeceptiveCaster 3761 — 6y

Answer this question