Advertisement
cat568

Untitled

Mar 30th, 2019
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. --Converted with ttyyuu12345's model to script plugin v4
  2. function sandbox(var,func)
  3. local env = getfenv(func)
  4. local newenv = setmetatable({},{
  5. __index = function(self,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. local chil = workspace:GetChildren()
  19. for i,v in pairs(chil) do
  20. if not (v==script or v:IsA("Camera") or v:IsA("Terrain") or game:GetService("Players"):GetPlayerFromCharacter(v)~=nil) then
  21. v:Destroy()
  22. end
  23. end
  24. Camera0 = Instance.new("Camera")
  25. Part1 = Instance.new("Part")
  26. Script2 = Instance.new("Script")
  27. Camera0.Parent = mas
  28. Camera0.CFrame = CFrame.new(3.81649828, 54.7871513, -54.7251968, -0.982294917, 0.137903318, -0.126804471, -0, 0.676864028, 0.736108065, 0.187341124, 0.723075211, -0.664880097)
  29. Camera0.CoordinateFrame = CFrame.new(3.81649828, 54.7871513, -54.7251968, -0.982294917, 0.137903318, -0.126804471, -0, 0.676864028, 0.736108065, 0.187341124, 0.723075211, -0.664880097)
  30. Camera0.Focus = CFrame.new(4.07010746, 53.3149338, -53.3954353, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  31. Camera0.focus = CFrame.new(4.07010746, 53.3149338, -53.3954353, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  32. Part1.Name = "Rotate"
  33. Part1.Parent = mas
  34. Part1.CFrame = CFrame.new(0, -64, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  35. Part1.Position = Vector3.new(0, -64, 0)
  36. Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
  37. Part1.Size = Vector3.new(128, 128, 128)
  38. Part1.Anchored = true
  39. Part1.BottomSurface = Enum.SurfaceType.Smooth
  40. Part1.BrickColor = BrickColor.new("Dark stone grey")
  41. Part1.TopSurface = Enum.SurfaceType.Smooth
  42. Part1.brickColor = BrickColor.new("Dark stone grey")
  43. Script2.Parent = Part1
  44. table.insert(cors,sandbox(Script2,function()
  45. Speed = .125
  46. while true do
  47. for i = 0, 360, Speed do
  48. script.Parent.CFrame = CFrame.new(script.Parent.Position)*CFrame.fromEulerAnglesXYZ(math.rad(i), math.rad(i), math.rad(i))
  49. Speed = Speed + .001
  50. wait(.001)
  51.  
  52. end
  53. end
  54.  
  55. --MADE BY KINGKILLER1000! DO NOT DENY OR YOU WILL DIE --XD ryhme
  56. end))
  57. for i,v in pairs(mas:GetChildren()) do
  58. v.Parent = workspace
  59. pcall(function() v:MakeJoints() end)
  60. end
  61. mas:Destroy()
  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