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: Why?!??!?

Previous Thread :: Next Thread 
rowerowe71 is not online. rowerowe71
Joined: 14 Apr 2013
Total Posts: 1999
20 Jan 2014 08:24 PM
Why doesn't this work?


function onTouched(hit)
game.Workspace.Gate1.Part.Pointlight.Brightness = Brightness.New(1)
end

script.Parent.Touched:connect(onTouched)
Report Abuse
RawDelight is not online. RawDelight
Joined: 19 Apr 2012
Total Posts: 2454
20 Jan 2014 08:25 PM
function onTouched(hit)
game.Workspace.Gate1.Part.Pointlight.Brightness = Brightness.New(1)
end

>Brightness.New(1)

Putting the name of a property, followed by .New, doesn't make it a script. Brightness is a number, and nothing more. Need proof? http://wiki.roblox.com/index.php/Brightness_(Property)

function onTouched(hit)
game.Workspace.Gate1.Part.Pointlight.Brightness = 1
end
Report Abuse
rowerowe71 is not online. rowerowe71
Joined: 14 Apr 2013
Total Posts: 1999
20 Jan 2014 08:30 PM
Doesn't work....
Report Abuse
shawnyg is not online. shawnyg
Joined: 21 Apr 2011
Total Posts: 1428
20 Jan 2014 08:31 PM
function onTouched(hit)
game.Workspace.Gate1.Part.Pointlight.Brightness = game.Workspace.Gate1.Part.Pointlight.Brightness + 1 --Is this what you needed?
end


~Hope I helped, if you need a script, PM me. ~Glory to CAT!~ ~CAT General Shawnyg~
Report Abuse
RawDelight is not online. RawDelight
Joined: 19 Apr 2012
Total Posts: 2454
20 Jan 2014 08:31 PM
Congratulations.

Then either "game.Workspace.Gate1.Part.Pointlight" doesn't exist, or you never linked the onTouched function to the actual event.
Report Abuse
SecondaryZero is not online. SecondaryZero
Joined: 22 Nov 2013
Total Posts: 162
20 Jan 2014 08:34 PM
function onTouched()
game.Workspace.Gate1.Part.Pointlight.Brightness = 1
end
script.Parent.Touched:connect(onTouched)
Report Abuse
rowerowe71 is not online. rowerowe71
Joined: 14 Apr 2013
Total Posts: 1999
20 Jan 2014 08:39 PM
Secondary that's what I have.
Report Abuse
rowerowe71 is not online. rowerowe71
Joined: 14 Apr 2013
Total Posts: 1999
20 Jan 2014 08:40 PM
@RawDelight I have no idea what that means.... D:
Report Abuse
rowerowe71 is not online. rowerowe71
Joined: 14 Apr 2013
Total Posts: 1999
20 Jan 2014 08:41 PM
@All Nothing's working....
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
20 Jan 2014 09:10 PM
script.Parent.Touched:connect(function(onTouched)
game.Workspace.Gate1.Part.Pointlight.Brightness = 1
end
Report Abuse
rowerowe71 is not online. rowerowe71
Joined: 14 Apr 2013
Total Posts: 1999
21 Jan 2014 05:36 AM
Are you sure this will work because I'm tired of testing out scripts and having them fail.
Report Abuse
PiggyJingles is not online. PiggyJingles
Joined: 13 Jan 2009
Total Posts: 2472
21 Jan 2014 05:38 AM
GOBWEY
Report Abuse
RawDelight is not online. RawDelight
Joined: 19 Apr 2012
Total Posts: 2454
21 Jan 2014 05:48 AM
No, Goulstem's code is broken, as he completely messed it up. My code was fine, it's something that is wrong with what I told you.

Also, PiggyJingles has officially warned you to get out or be eaten.
Report Abuse
Azarth is not online. Azarth
Joined: 17 Aug 2012
Total Posts: 2760
21 Jan 2014 06:32 AM
He spelled PointLight wrong.
Report Abuse
rowerowe71 is not online. rowerowe71
Joined: 14 Apr 2013
Total Posts: 1999
21 Jan 2014 02:36 PM
Oh thanks.
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