Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Script0 = Instance.new("Script")
- NumberValue1 = Instance.new("NumberValue")
- NumberValue2 = Instance.new("NumberValue")
- NumberValue3 = Instance.new("NumberValue")
- Part4 = Instance.new("Part")
- Script0.Name = "PluginRainScript"
- Script0.Parent = mas
- table.insert(cors,sandbox(Script0,function()
- local rain = Instance.new("Model",workspace)rain.Name = "Rain"
- local size = script.Sizer.Value
- local amount = script.Amountr.Value
- local height = script.Heightr.Value
- local drop = script.Drop
- drop.Parent = game.ServerStorage
- while wait(1/5) do
- for i = 1,amount/5 do
- d = drop:Clone()
- d.Parent = rain
- d.CFrame = CFrame.new(math.random(-size,size)/2,height+math.random(200,250),math.random(-size,size)/2)
- d.Anchored = false
- d.Touched:connect(function()
- d:Destroy()
- end)
- end
- end
- end))
- NumberValue1.Name = "Amountr"
- NumberValue1.Parent = Script0
- NumberValue1.Value = 100
- NumberValue2.Name = "Sizer"
- NumberValue2.Parent = Script0
- NumberValue2.Value = 512
- NumberValue3.Name = "Heightr"
- NumberValue3.Parent = Script0
- NumberValue3.Value = 20
- Part4.Name = "Drop"
- Part4.Parent = Script0
- Part4.CFrame = CFrame.new(49.5, 1, 18.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part4.Position = Vector3.new(49.5, 1, 18.5)
- Part4.Color = Color3.new(0.0352941, 0.537255, 0.811765)
- Part4.Size = Vector3.new(1, 2, 1)
- Part4.Anchored = true
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.BrickColor = BrickColor.new("Electric blue")
- Part4.CanCollide = false
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part4.brickColor = BrickColor.new("Electric blue")
- Part4.FormFactor = Enum.FormFactor.Symmetric
- Part4.formFactor = Enum.FormFactor.Symmetric
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement