|
| 09 Dec 2013 05:55 PM |
Look for the line that says "Broken"
local tools = ("")
local dropTemplate = game.Workspace(math.random(tools) dropTemplate.Parent = game.Workspace --Broken while wait(.1) do local drop = dropTemplate:clone() drop.Position = Vector3.new( math.random(153.554,-13.62), 420.04, math.random(59.05,-85.536) ) drop.Parent = game.Workspace drop.Anchored = false end
|
|
|
| Report Abuse |
|
|
Sorexus
|
  |
| Joined: 13 Aug 2013 |
| Total Posts: 124 |
|
|
| 09 Dec 2013 05:58 PM |
game.Workspace(math.random(tools)
game.Workspace:findFirstChild(math.random(tools) maybe?
And why do that? If you found it in workspace, why try to set its parent to workspace again? |
|
|
| Report Abuse |
|
|
|
| 09 Dec 2013 06:01 PM |
Fixed it! How do I remove that red line?
local tools = ("")
local dropTemplate = game.Lighting.RainTools(math.random(tools) dropTemplate.Parent = game.Workspace while wait(.1) do local drop = dropTemplate:clone() drop.Position = Vector3.new( math.random(153.554,-13.62), 420.04, math.random(59.05,-85.536) ) drop.Parent = game.Workspace drop.Anchored = false end
|
|
|
| Report Abuse |
|
|
GuestLIVE
|
  |
| Joined: 22 Jul 2012 |
| Total Posts: 106 |
|
|
| 09 Dec 2013 06:14 PM |
| hmmm i think that the system is confused with what your trying to say |
|
|
| Report Abuse |
|
|
|
| 09 Dec 2013 06:14 PM |
What is broken here? I Thought "While true do" worked in repeating it?
local tools = ("")
local dropTemplate = game.Lighting.RainTools(random(tools)
while true do --Broken Line local drop = dropTemplate:clone() drop.Position = Vector3.new( math.random(153.554,-13.62),420.04,math.random(59.05,-85.536) drop.Parent = game.Workspace drop.Anchored = false wait(10) end
|
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 09 Dec 2013 06:17 PM |
| Dont use lighting for storaging, might help. |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 09 Dec 2013 06:19 PM |
local tools = ("TOOLNAME1", "TOOLNAME2", "TOOLNAME3")
local dropTemplate = game.Lighting.RainTools(random(tools)
while wait(0.5) do --Broken Line local drop = dropTemplate:clone() drop.Position = Vector3.new( math.random(153.554,-13.62),420.04,math.random(59.05,-85.536) drop.Parent = game.Workspace drop.Anchored = false wait(10) end |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 09 Dec 2013 06:20 PM |
Are you guys for real -_-
local tools = ("") -- WTF is this
local dropTemplate = game.Lighting.RainTools(random(tools) --Missing )
while true do --Broken Line local drop = dropTemplate:clone() drop.Position = Vector3.new( math.random(153.554,-13.62),420.04,math.random(59.05,-85.536) --Another Missing ) drop.Parent = game.Workspace drop.Anchored = false wait(10) end |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 09 Dec 2013 06:22 PM |
Lemme tack on another thing
local tools = ("") -- WTF is this
local dropTemplate = game.Lighting.RainTools(random(tools) -- WTF is this, and Missing )
while true do --Broken Line local drop = dropTemplate:clone() drop.Position = Vector3.new( math.random(153.554,-13.62),420.04,math.random(59.05,-85.536) --Another Missing ) drop.Parent = game.Workspace drop.Anchored = false wait(10) end
game.Lighting.RainTools[tools[math.random(1,#tools)]] |
|
|
| Report Abuse |
|
|
lolb3
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 2268 |
|
|
| 09 Dec 2013 06:23 PM |
you realize you guys have been using parenthesis instead of brackets instead of braces?
{} not () |
|
|
| Report Abuse |
|
|
lolb3
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 2268 |
|
|
| 09 Dec 2013 06:29 PM |
your script is very off
local tools = {} -- WTF is this
local dropTemplate = game.Lighting.RainTools:findFirstChild(tools[math.random(0,#tools])
while wait(10) do local drop = dropTemplate:clone() drop.Position = Vector3.new( math.random(153.554,-13.62),420.04,math.random(59.05,-85.536)) drop.Parent = game.Workspace drop.Anchored = false end
game.Lighting.RainTools[tools[math.random(1,#tools)]] -- what are you doing here? |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 10 Dec 2013 04:24 AM |
| @above, the last line was an actual fix. I realized that they were using the () instead of {}, which is why I put WTF is this. |
|
|
| Report Abuse |
|
|