Advertisement
Diamond_Nicholas

raining tacos

Jan 31st, 2020
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1.  
  2. function sandbox(var,func)
  3. local env = getfenv(func)
  4. local newenv = setmetatable({},{
  5. __index = function(Enum,k)
  6. if k=="script" then
  7. return var
  8. else
  9. return env[k]
  10. end
  11. end,
  12. })
  13. setfenv(func,newenv)
  14. return func
  15. end
  16. cors = {}
  17. mas = Instance.new("Model",game:GetService("Lighting"))
  18. Part0 = Instance.new("Part")
  19. ParticleEmitter1 = Instance.new("ParticleEmitter")
  20. Script2 = Instance.new("Script")
  21. Part0.Parent = mas
  22. Part0.CFrame = CFrame.new(25.6250305, 77.8431778, -21.0150833, 1, 0, 0, 0, -0.999897242, 0.0143410033, 0, -0.0143410033, -0.999897242)
  23. Part0.Orientation = Vector3.new(-0.819999993, 180, 180)
  24. Part0.Position = Vector3.new(25.6250305, 77.8431778, -21.0150833)
  25. Part0.Rotation = Vector3.new(-179.179993, 0, 0)
  26. Part0.Transparency = 1
  27. Part0.Size = Vector3.new(397.98999, 1, 392.090118)
  28. Part0.Anchored = true
  29. Part0.BottomSurface = Enum.SurfaceType.Smooth
  30. Part0.CanCollide = false
  31. Part0.TopSurface = Enum.SurfaceType.Smooth
  32. ParticleEmitter1.Parent = Part0
  33. ParticleEmitter1.Speed = NumberRange.new(30, 30)
  34. ParticleEmitter1.LightInfluence = 1
  35. ParticleEmitter1.Texture = "http://www.roblox.com/asset/?id=18898629"
  36. ParticleEmitter1.Size = NumberSequence.new(4,4)
  37. ParticleEmitter1.Lifetime = NumberRange.new(9.9999997781963e+22, 9.9999997781963e+22)
  38. Script2.Name = "sound or song"
  39. Script2.Parent = Part0
  40. table.insert(cors,sandbox(Script2,function()
  41.  
  42. local s = Instance.new("Sound")
  43.  
  44. s.Name = "BGMusic"
  45. s.SoundId = "rbxassetid://152745539"
  46. s.Volume = 0.9
  47. s.Looped = true
  48. s.archivable = false
  49.  
  50. s.Parent = game.Workspace
  51.  
  52. wait()
  53.  
  54. s:play()
  55.  
  56.  
  57. end))
  58. for i,v in pairs(mas:GetChildren()) do
  59. v.Parent = workspace
  60. pcall(function() v:MakeJoints() end)
  61. end
  62. for i,v in pairs(cors) do
  63. spawn(function()
  64. pcall(v)
  65. end)
  66. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement