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
 

Light increase

Previous Thread :: Next Thread 
Karterness is not online. Karterness
Joined: 10 Aug 2010
Total Posts: 262
01 Jan 2016 05:12 AM
Ok, I'm trying to make it so when you touch a brick, it makes the other brick increase is range of light. Can you help me out?

function Light

Workspace.Affected.PointLight.Range = 0
repeat
Workspace.Affected.PointLight.Range = Workspace.Affected.PointLight.Range + .1
wait(.1)
until

Workspace.Affected.PointLight.Range = 1

end

script.Parent.Touched:connect(Light)


It isn't working :x (I'm very new to scripting)
Report Abuse
kakbroek1 is not online. kakbroek1
Joined: 16 Dec 2013
Total Posts: 136
01 Jan 2016 05:17 AM
function Light
Workspace.Affected.PointLight.Range = 0
for i = 1,10 do
Workspace.Affected.PointLight.Range = Workspace.Affected.PointLight.Range + 0.1
end
script.Parent.Touched:connect(Light)

Greetz kakbroek
Report Abuse
Karterness is not online. Karterness
Joined: 10 Aug 2010
Total Posts: 262
01 Jan 2016 05:18 AM
Workspace.trigger.Script:4: '(' expected near 'Workspace'
Report Abuse
kakbroek1 is not online. kakbroek1
Joined: 16 Dec 2013
Total Posts: 136
01 Jan 2016 05:23 AM
function Light()
game.Workspace.Affected.PointLight.Range = 0
for i = 1,10 do
game.Workspace.Affected.PointLight.Range = game.Workspace.Affected.PointLight.Range + 0.1
end
end
script.Parent.Touched:connect(Light)
Report Abuse
Karterness is not online. Karterness
Joined: 10 Aug 2010
Total Posts: 262
01 Jan 2016 05:23 AM
Everything I do ends up with

Workspace.trigger.Script:4: '(' expected near 'Workspace'
Report Abuse
Karterness is not online. Karterness
Joined: 10 Aug 2010
Total Posts: 262
01 Jan 2016 05:25 AM
Now it just does nothing and says nothing >.>
Report Abuse
kakbroek1 is not online. kakbroek1
Joined: 16 Dec 2013
Total Posts: 136
01 Jan 2016 05:25 AM
Yes you didnt put the brackets behind "function Light"
Report Abuse
kakbroek1 is not online. kakbroek1
Joined: 16 Dec 2013
Total Posts: 136
01 Jan 2016 05:26 AM
It does nothing?
Report Abuse
kakbroek1 is not online. kakbroek1
Joined: 16 Dec 2013
Total Posts: 136
01 Jan 2016 05:26 AM
Whats the parent of the script?
Report Abuse
Karterness is not online. Karterness
Joined: 10 Aug 2010
Total Posts: 262
01 Jan 2016 05:30 AM
trigger

(a Part)
Report Abuse
kakbroek1 is not online. kakbroek1
Joined: 16 Dec 2013
Total Posts: 136
01 Jan 2016 05:54 AM
The script works but you dont notice any difference
try to set the range to 10.

function Light()
game.Workspace.Affected.PointLight.Range = 0
for i = 1,100 do
game.Workspace.Affected.PointLight.Range = game.Workspace.Affected.PointLight.Range + 1
end
end

script.Parent.Touched:connect(Light)
Report Abuse
kakbroek1 is not online. kakbroek1
Joined: 16 Dec 2013
Total Posts: 136
01 Jan 2016 05:54 AM
ow not 100 but 10
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