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 » Scripters
Home Search
 

Re: naming an object

Previous Thread :: Next Thread 
Ludipup is not online. Ludipup
Joined: 28 Dec 2013
Total Posts: 4347
12 Aug 2015 08:03 PM
Instance.new("SpotLight", game.Workspace).Name = "SpotLightS"

the error is:

Workspace.FireWorks.SpotLightGenerator:8: unexpected symbol near '='

how do i fix it?
Report Abuse
Ludipup is not online. Ludipup
Joined: 28 Dec 2013
Total Posts: 4347
12 Aug 2015 08:07 PM
b1
Report Abuse
Ludipup is not online. Ludipup
Joined: 28 Dec 2013
Total Posts: 4347
12 Aug 2015 08:08 PM
b2
Report Abuse
Ludipup is not online. Ludipup
Joined: 28 Dec 2013
Total Posts: 4347
12 Aug 2015 08:09 PM
b3
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
12 Aug 2015 08:09 PM
local light = Instance.new("SpotLight", workspace)
light.Name = "SpotLightS"


"Talk is cheap. Show me the code." - Linus Torvalds
Report Abuse
Iterum is not online. Iterum
Joined: 30 Jan 2009
Total Posts: 1982
12 Aug 2015 08:11 PM
Funny when TimeTicks goes around accusing others of being bad of scripting.

OP, please post more code?

-ChiefDelta/Discommodate/iC7G/Vulnerite + 100 other accounts
Report Abuse
Ludipup is not online. Ludipup
Joined: 28 Dec 2013
Total Posts: 4347
12 Aug 2015 08:14 PM
local SpotLightA = Instance.new("SpotLight",game.Workspace.FireWorks).Name "SpotLightS"
game.Workspace.SpotLightA.Angle = 180
game.Workspace.SpotLightA.Brightness = 15
game.Workspace.SpotLightA.Range = 30
Report Abuse
Iterum is not online. Iterum
Joined: 30 Jan 2009
Total Posts: 1982
12 Aug 2015 08:16 PM
You missed your equals sign there, man.
Also it's probably easier to just define a variable for this.


-ChiefDelta/Discommodate/iC7G/Vulnerite + 100 other accounts
Report Abuse
Ludipup is not online. Ludipup
Joined: 28 Dec 2013
Total Posts: 4347
12 Aug 2015 08:18 PM
o nvm i got it
Report Abuse
TheBigFatRussianCat is not online. TheBigFatRussianCat
Joined: 21 Jan 2013
Total Posts: 1572
12 Aug 2015 08:19 PM
local SpotLight = Instance.new("Part")
SpotLight.Name = "SpotLightS"
SpotLight.Parent = workspace

--Might work, idk
Report Abuse
LongKillKreations is not online. LongKillKreations
Joined: 14 Feb 2014
Total Posts: 4502
12 Aug 2015 08:21 PM
A big fat russian cat! Christ almighty!
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
12 Aug 2015 08:21 PM
Already posted the solution.


"Talk is cheap. Show me the code." - Linus Torvalds
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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