|
| 22 Jan 2017 05:38 PM |
Hey guys, before you post 'particle emitter' I need a better solution.
I need rain that will fall and destroy when hitting a brick, and as you know, particle emitters lack this property and I can't find any plugins that execute this correctly.
Does anyone know a good way to achieve what I need without making over 100 falling parts at a time? FYI, FE and SE are enabled.
Thanks scripters,
EPster |
|
|
| Report Abuse |
|
|
|
| 22 Jan 2017 05:56 PM |
| that moment when people gave up or only Roblox can solve this request. |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Jan 2017 05:57 PM |
| or rain the ends when it touches a brick |
|
|
| Report Abuse |
|
|
|
| 22 Jan 2017 05:58 PM |
| when a drop hits brick; end yes. |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Jan 2017 06:16 PM |
game.Lighting:SetMinutesAfterMidnight(3)
while true do raindrop = Instance.new("Part",script) raindrop.Size = Vector3.new(0.2,1,0.2) raindrop.BrickColor = BrickColor.Blue() raindrop.Transparency = 0.5 raindrop.Name = "Rain" raindrop.CanCollide = false raindrop.Position = Vector3.new(math.random(1,300),50,math.random(1,300)) wait() end
game.Workspace.Baseplate.Touched:connect(function(hit) --change to ground where rain touches if hit.Name == "Rain" then hit:Destory() end end) |
|
|
| Report Abuse |
|
|
|
| 22 Jan 2017 07:55 PM |
| On line 11 when you were setting the raindrop's position with random math it would make more sense to set it between -300 to 300 on both the x and z axis as this would form a square with the center of the Workspace being at the center of the space in which the raindrops form. Otherwise, they might form on one side of the map and not the other. |
|
|
| Report Abuse |
|
|
|
| 22 Jan 2017 08:01 PM |
Also, at this part where you tell the raindrop to destroy after hitting a certain part
game.Workspace.Baseplate.Touched:connect(function(hit) --change to ground where rain touches if hit.Name == "Rain" then hit:Destory() end end)
It might make more sense to have the raindrop destroy upon touching any part!
raindrop.Touched:connect(function(hit) if hit.ClassName == "Part" then raindrop:Remove() end end) |
|
|
| Report Abuse |
|
|
|
| 23 Jan 2017 03:23 PM |
| ok thank u thats a lot better |
|
|
| Report Abuse |
|
|
|
| 23 Jan 2017 07:06 PM |
| this is assuming the rain can only hit a 'baseplate' which once again, is of no use. |
|
|
| Report Abuse |
|
|