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: Why isn't this working?

Previous Thread :: Next Thread 
ShadowAley is not online. ShadowAley
Joined: 23 Jun 2010
Total Posts: 4823
04 Aug 2015 05:02 PM
while true do
wait(.5)
for _,v in pairs(script.Parent:GetChildren()) do
if v.Name == "Light" then
v:FindFirstChild("PointLight").Color = Color3.new(BrickColor.Random())
end
end
end
Report Abuse
lokkut is not online. lokkut
Joined: 18 Mar 2009
Total Posts: 1794
04 Aug 2015 05:04 PM
Is it enabled?
Report Abuse
ShadowAley is not online. ShadowAley
Joined: 23 Jun 2010
Total Posts: 4823
04 Aug 2015 05:12 PM
game.ReplicatedStorage.Lights.OnServerEvent:connect(function(...)
local tuple = {...}
if tuple[2] == "Off" then
game.Workspace.Lights.Script.Disabled = true
elseif tuple[2] == "On" then
game.Workspace.Lights.Script.Disabled = false
end
end)
Report Abuse
ShadowAley is not online. ShadowAley
Joined: 23 Jun 2010
Total Posts: 4823
04 Aug 2015 05:15 PM
b
Report Abuse
ShadowAley is not online. ShadowAley
Joined: 23 Jun 2010
Total Posts: 4823
04 Aug 2015 05:24 PM
All the lights turn black and then stop working. Whenever I added

while true do
wait(.5)
print('1')
for _,v in pairs(script.Parent:GetChildren()) do
if v.Name == "Light" then
print('2')
v:FindFirstChild("PointLight").Color = Color3.new(BrickColor.Random())
end
end
end


my output went insane and printed about 1000000 2's
Report Abuse
ShadowAley is not online. ShadowAley
Joined: 23 Jun 2010
Total Posts: 4823
04 Aug 2015 05:43 PM
I'm guessing my BrickColor is returning strings rather than a Color3 value... help!
Report Abuse
ShadowAley is not online. ShadowAley
Joined: 23 Jun 2010
Total Posts: 4823
04 Aug 2015 07:45 PM
b
Report Abuse
XThe0neThe0wnlyX is not online. XThe0neThe0wnlyX
Joined: 23 Aug 2014
Total Posts: 225
04 Aug 2015 07:46 PM
doesn't seem to be written in HTML,,,

try rewriting it in HTML .. .?
Report Abuse
ShadowAley is not online. ShadowAley
Joined: 23 Jun 2010
Total Posts: 4823
05 Aug 2015 12:39 PM
...
Report Abuse
ShadowAley is not online. ShadowAley
Joined: 23 Jun 2010
Total Posts: 4823
05 Aug 2015 12:52 PM
b
Report Abuse
vastqud is not online. vastqud
Joined: 10 Sep 2011
Total Posts: 2464
05 Aug 2015 12:58 PM
roblox games are coded in lua


not html


Report Abuse
pienoodle is not online. pienoodle
Joined: 16 Nov 2010
Total Posts: 147
05 Aug 2015 01:30 PM
Try this:

while true do
wait(.5)
print('1')
for _,v in pairs(script.Parent:GetChildren()) do
if v.Name == "Light" then
print('2')
v:FindFirstChild("PointLight").Color = Color3.ne(math.random(),math.random(),math.random())
end
end
end
Report Abuse
pienoodle is not online. pienoodle
Joined: 16 Nov 2010
Total Posts: 147
05 Aug 2015 01:31 PM
It should also me Color3.new, oops
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