Advertisement
BobMe

SpawnBall

Jan 21st, 2018
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. function sandbox(var,func)
  2. local env = getfenv(func)
  3. local newenv = setmetatable({},{
  4. __index = function(self,k)
  5. if k=="script" then
  6. return var
  7. else
  8. return env[k]
  9. end
  10. end,
  11. })
  12. setfenv(func,newenv)
  13. return func
  14. end
  15. cors = {}
  16. mas = Instance.new("Model",game:GetService("Lighting"))
  17. Part0 = Instance.new("Part")
  18. Part0.Parent = mas
  19. Part0.Material = Enum.Material.Glass
  20. Part0.BrickColor = BrickColor.new("Hot pink")
  21. Part0.Reflectance = 0.5
  22. Part0.Transparency = 0.40000000596046
  23. Part0.Shape = Enum.PartType.Ball
  24. Part0.Size = Vector3.new(3.07000327, 3.07000327, 3.07000327)
  25. Part0.CFrame = CFrame.new(-2.7750001, 4.96000671, -11.4200001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  26. Part0.BottomSurface = Enum.SurfaceType.Smooth
  27. Part0.TopSurface = Enum.SurfaceType.Smooth
  28. Part0.Color = Color3.new(1, 0, 0.74902)
  29. Part0.Position = Vector3.new(-2.7750001, 4.96000671, -11.4200001)
  30. Part0.Color = Color3.new(1, 0, 0.74902)
  31. for i,v in pairs(mas:GetChildren()) do
  32. v.Parent = workspace
  33. pcall(function() v:MakeJoints() end)
  34. end
  35. mas:Destroy()
  36. for i,v in pairs(cors) do
  37. spawn(function()
  38. pcall(v)
  39. end)
  40. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement