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: Roblox wiki rain script

Previous Thread :: Next Thread 
shaythegoon is not online. shaythegoon
Joined: 18 Jul 2010
Total Posts: 630
26 Jul 2011 11:05 AM
Hi,

the script in the wiki for rain to randomly fall in a area isn't working for me...
does anyone have an alternitive to...

while true do
wait(0.1)
droplet = game.Workspace.Drop:clone()
droplet.Parent = game.Workspace
droplet.Anchored = false
droplet.Position = Vector3.new(math.random(-512,512),100,math.random(-512,512))
end
Report Abuse
agent767 is not online. agent767
Joined: 03 Nov 2008
Total Posts: 4181
26 Jul 2011 11:09 AM
it works
just read the script
Report Abuse
shaythegoon is not online. shaythegoon
Joined: 18 Jul 2010
Total Posts: 630
26 Jul 2011 11:10 AM
it has never worked for me
Report Abuse
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
26 Jul 2011 11:45 AM
That's weird. a script from wiki doesn't work. Did you edit it at all?
Report Abuse
Piedude777 is not online. Piedude777
Joined: 01 Oct 2008
Total Posts: 10017
26 Jul 2011 11:46 AM
Do you have a brick in the Workspace called Drop?
Report Abuse
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
26 Jul 2011 11:49 AM
while wait(.1) do
local rain = Instance.new("Part", workspace)
rain.BrickColor = BrickColor.new("Really blue")
rain.Anchored = false
rain.CanCollide = false
rain.FormFactor = "Plate"
rain.Size = Vector3.new(1,.4,1)
rain.Position = Vector3.new(math.random(-512,512),100,math.random(-512,512))
end

Try that instead.
Report Abuse
EXHyperBlack is not online. EXHyperBlack
Joined: 22 Aug 2010
Total Posts: 383
26 Jul 2011 11:56 AM
@Stunt Ive had alot of scripts from wiki that dont work and it has all its requirements
Report Abuse
r6q8 is not online. r6q8
Joined: 14 Feb 2009
Total Posts: 791
26 Jul 2011 11:59 AM
some scritps in wiki might not work with the stupid updates roblox does
Report Abuse
shaythegoon is not online. shaythegoon
Joined: 18 Jul 2010
Total Posts: 630
26 Jul 2011 12:25 PM
thnks
Report Abuse
shaythegoon is not online. shaythegoon
Joined: 18 Jul 2010
Total Posts: 630
26 Jul 2011 12:28 PM
how do i make it faster?
Report Abuse
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
26 Jul 2011 12:32 PM
while wait() do
local rain = Instance.new("Part", workspace)
rain.BrickColor = BrickColor.new("Really blue")
rain.Anchored = false
rain.CanCollide = false
rain.FormFactor = "Plate"
rain.Size = Vector3.new(1,.4,1)
rain.Position = Vector3.new(math.random(-512,512),100,math.random(-512,512))
end

Try that instead.
Report Abuse
shaythegoon is not online. shaythegoon
Joined: 18 Jul 2010
Total Posts: 630
26 Jul 2011 12:36 PM
while wait(0.1) do
local rain = Instance.new("Part", workspace)
rain.BrickColor = BrickColor.new("Really blue")
rain.Anchored = false
rain.CanCollide = false
rain.FormFactor = "Plate"
rain.Size = Vector3.new(1,.4,1)
rain.Position = Vector3.new(math.random(-512,512),100,math.random(-512,512))
rain.function onTouched(part)
if part.Parent:FindFirstChild("Humanoid") ~= nil then
part.Parent.Torso:BreakJoints()

script.Parent.Touched:connect(onTouched)
end

would this make acid rain
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
26 Jul 2011 12:37 PM
No, there is no onTouched function.
Report Abuse
shaythegoon is not online. shaythegoon
Joined: 18 Jul 2010
Total Posts: 630
26 Jul 2011 12:39 PM
rain.onTouchedfunction?

is that wrong?
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
26 Jul 2011 12:41 PM
rain.function onTouched(part)

needs to be

function onTouched(part)

Then there'll be a function named onTouched .
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
26 Jul 2011 12:41 PM
And you're missing some ends...
Report Abuse
shaythegoon is not online. shaythegoon
Joined: 18 Jul 2010
Total Posts: 630
26 Jul 2011 12:43 PM
ikn thnxs
Report Abuse
shaythegoon is not online. shaythegoon
Joined: 18 Jul 2010
Total Posts: 630
26 Jul 2011 12:45 PM
added the ends, whats wrong now...

while wait(0.1) do
local rain = Instance.new("Part", workspace)
rain.BrickColor = BrickColor.new("Really blue")
rain.Anchored = false
rain.CanCollide = false
rain.FormFactor = "Plate"
rain.Size = Vector3.new(1,.4,1)
rain.Position = Vector3.new(math.random(-512,512),100,math.random(-512,512))
end

function onTouched(part)
if part.Parent:FindFirstChild("Humanoid") ~= nil then
part.Parent.Torso:BreakJoints()

script.Parent.Touched:connect(onTouched)
end
end
Report Abuse
EXHyperBlack is not online. EXHyperBlack
Joined: 22 Aug 2010
Total Posts: 383
26 Jul 2011 02:45 PM
while wait(0.1) do
local rain = Instance.new("Part", workspace)
rain.BrickColor = BrickColor.new("Really blue")
rain.Anchored = false
rain.CanCollide = false
rain.FormFactor = "Plate"
rain.Size = Vector3.new(1,.4,1)
rain.Position = Vector3.new(math.random(-512,512),100,math.random(-512,512))
script.Kill:clone().Parent = rain
end

Then put a script with the kill inside the rain script
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