generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: "Lighting is not a valid member of Workspace"

Previous Thread :: Next Thread 
XxminijokerXx is not online. XxminijokerXx
Joined: 13 Nov 2011
Total Posts: 10321
20 Jul 2014 01:56 PM
why do i keep on getting this error?

(☞゚ヮ゚)☞ XxminijokerXx ☜(゚ヮ゚☜)
Report Abuse
BloxEclipse is not online. BloxEclipse
Joined: 18 Mar 2011
Total Posts: 368
20 Jul 2014 01:58 PM
Because Lighting is a child of the game, not the Workspace.
Report Abuse
XxminijokerXx is not online. XxminijokerXx
Joined: 13 Nov 2011
Total Posts: 10321
20 Jul 2014 02:09 PM
@blox


no dip, sherlock, i wanted an answer

"game.Workspace.Lighting"

(☞゚ヮ゚)☞ XxminijokerXx ☜(゚ヮ゚☜)
Report Abuse
BloxEclipse is not online. BloxEclipse
Joined: 18 Mar 2011
Total Posts: 368
20 Jul 2014 02:10 PM
Well, I would have to see the script.
Report Abuse
XxminijokerXx is not online. XxminijokerXx
Joined: 13 Nov 2011
Total Posts: 10321
20 Jul 2014 02:11 PM
local h = game.Workspace.Lighting.hair
h.Position = Vector3.new(-149.983, 5.59, -153.892)

while true do
h(clone)
wait(6)
hair:destroy()
end

(☞゚ヮ゚)☞ XxminijokerXx ☜(゚ヮ゚☜)
Report Abuse
VisualGraphics is not online. VisualGraphics
Joined: 26 Nov 2010
Total Posts: 6515
20 Jul 2014 02:13 PM
game.Lighting
Report Abuse
Frostglacier is not online. Frostglacier
Joined: 28 Oct 2010
Total Posts: 4177
20 Jul 2014 02:13 PM
Name it something other than "Lighting?" The script may be confusing your "Lighting" with the actual Lighting service.
Report Abuse
XxminijokerXx is not online. XxminijokerXx
Joined: 13 Nov 2011
Total Posts: 10321
20 Jul 2014 02:14 PM
game.Lighting?

let me guess, they removed the feature to do "game.Workspace.Lighting"?

no wonder most of my scripts are acting up

qq

(☞゚ヮ゚)☞ XxminijokerXx ☜(゚ヮ゚☜)
Report Abuse
BloxEclipse is not online. BloxEclipse
Joined: 18 Mar 2011
Total Posts: 368
20 Jul 2014 02:14 PM
Is there any child in the Workspace that you named "Lighting"?
Report Abuse
XxminijokerXx is not online. XxminijokerXx
Joined: 13 Nov 2011
Total Posts: 10321
20 Jul 2014 02:14 PM
@frost

wtf? that makes 0 sense, if you actually looked at the script, you can see that i'm trying to get something out of Lighting (service)

(☞゚ヮ゚)☞ XxminijokerXx ☜(゚ヮ゚☜)
Report Abuse
XxminijokerXx is not online. XxminijokerXx
Joined: 13 Nov 2011
Total Posts: 10321
20 Jul 2014 02:15 PM
@blox

yes, an object named "hair"

(☞゚ヮ゚)☞ XxminijokerXx ☜(゚ヮ゚☜)
Report Abuse
Frostglacier is not online. Frostglacier
Joined: 28 Oct 2010
Total Posts: 4177
20 Jul 2014 02:17 PM
Hold on, got a bit confused there.

while true do
h = game.Lighting.hair:clone()
h.Parent = game.Workspace
h.Position = Vector3.new(-149.983, 5.59, -153.892)
wait(6)
game.Lighting.hair:Destroy()
end

Is that what you were intending?
Report Abuse
XxminijokerXx is not online. XxminijokerXx
Joined: 13 Nov 2011
Total Posts: 10321
20 Jul 2014 02:19 PM
@frost

yes, thank you

i found out that i can't do "game.Workspace.Lighting" anymore
:\

(☞゚ヮ゚)☞ XxminijokerXx ☜(゚ヮ゚☜)
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
20 Jul 2014 02:19 PM
ugh none of these people can script

workspace:ClearAllChildren()
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image