I've inserted a part added a Spotlight and here is my script : 1.function Light 2. game.workspace.part.script.SpotLight 3.end 4. 5.Light = Disabled
After It says there is an error with the word game help ??
I've inserted a part added a Spotlight and here is my script : 1.function Light 2. game.workspace.part.script.SpotLight 3.end 4. 5.Light = Disabled
After It says there is an error with the word game help ??
Try this: [please put the script in the same part as spotlight and name the spotlight "spotlight"]
local light = script.Parent.SpotLight
light.Enabled = false
TY SO MUCH !!!!!!
No problem! [remember, you can mark my solution as the correct answer and + vote it!]
@shayner32 Idk how u can tell me and I will I just got this today
You need to click the accept answer button. It should be near the Report To Staff button.
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Sorry the function leads to the Spotlight like game.explorer.Part.SpotLight as a function named light then I do light = disabled then It will say that there it a problem with the word game in my function
Please use a code block, it should be the Lua icon above the textbox you're putting your question in.