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: How do i fix this script

Previous Thread :: Next Thread 
CreamyBadness is not online. CreamyBadness
Joined: 05 Nov 2013
Total Posts: 844
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 is not online. 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
CreamyBadness is not online. CreamyBadness
Joined: 05 Nov 2013
Total Posts: 844
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 is not online. 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
CreamyBadness is not online. CreamyBadness
Joined: 05 Nov 2013
Total Posts: 844
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 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
09 Dec 2013 06:17 PM
Dont use lighting for storaging, might help.
Report Abuse
vlekje513 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
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