|
| 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
|
  |
| Joined: 03 Nov 2008 |
| Total Posts: 4181 |
|
|
| 26 Jul 2011 11:09 AM |
it works just read the script |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2011 11:10 AM |
it has never worked for me
|
|
|
| Report Abuse |
|
|
|
| 26 Jul 2011 11:45 AM |
| That's weird. a script from wiki doesn't work. Did you edit it at all? |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2011 11:46 AM |
| Do you have a brick in the Workspace called Drop? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
| |
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 26 Jul 2011 12:37 PM |
| No, there is no onTouched function. |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2011 12:39 PM |
rain.onTouchedfunction?
is that wrong? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 26 Jul 2011 12:41 PM |
| And you're missing some ends... |
|
|
| Report Abuse |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|