Advertisement
End_Wolf

Untitled

Jun 1st, 2018
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Model0 = Instance.new("Model")
  20. Part1 = Instance.new("Part")
  21. Part2 = Instance.new("Part")
  22. Weld3 = Instance.new("Weld")
  23. Script4 = Instance.new("Script")
  24. Model0.Parent = mas
  25. Part1.Name = "MainPart"
  26. Part1.Parent = Model0
  27. Part1.CFrame = CFrame.new(-21, 8.00002193, 77, 1, -0, 0, 0, -0, 1, 0, -1, 0)
  28. Part1.Orientation = Vector3.new(-90, 0, 0)
  29. Part1.Position = Vector3.new(-21, 8.00002193, 77)
  30. Part1.Rotation = Vector3.new(-90, 0, 0)
  31. Part1.Color = Color3.new(0.294118, 0.592157, 0.294118)
  32. Part1.Transparency = 0.30000001192093
  33. Part1.Velocity = Vector3.new(-0.884437203, 0.00769238546, -5.52216721)
  34. Part1.Size = Vector3.new(16, 16, 16)
  35. Part1.BackSurface = Enum.SurfaceType.Weld
  36. Part1.BottomSurface = Enum.SurfaceType.Weld
  37. Part1.BrickColor = BrickColor.new("Bright green")
  38. Part1.FrontSurface = Enum.SurfaceType.Weld
  39. Part1.LeftSurface = Enum.SurfaceType.Weld
  40. Part1.RightSurface = Enum.SurfaceType.Weld
  41. Part1.RotVelocity = Vector3.new(-0.686433971, -0.0313967951, 0.110840559)
  42. Part1.TopSurface = Enum.SurfaceType.Weld
  43. Part1.brickColor = BrickColor.new("Bright green")
  44. Part1.FormFactor = Enum.FormFactor.Symmetric
  45. Part1.formFactor = Enum.FormFactor.Symmetric
  46. Part1.Shape = Enum.PartType.Ball
  47. Part2.Parent = Model0
  48. Part2.CFrame = CFrame.new(-21, 8.00002193, 77.0198364, 1, 1.58881612e-14, 6.90108384e-20, -6.90108384e-20, 1.71581855e-14, 1, 1.58881612e-14, -1, 1.71581855e-14)
  49. Part2.Orientation = Vector3.new(-90, 0, 0)
  50. Part2.Position = Vector3.new(-21, 8.00002193, 77.0198364)
  51. Part2.Rotation = Vector3.new(-90, 0, 0)
  52. Part2.Color = Color3.new(1, 1, 0)
  53. Part2.Velocity = Vector3.new(-0.885060012, 0.0213087816, -5.52216721)
  54. Part2.Size = Vector3.new(8, 8, 8)
  55. Part2.BackSurface = Enum.SurfaceType.Weld
  56. Part2.BottomSurface = Enum.SurfaceType.Weld
  57. Part2.BrickColor = BrickColor.new("New Yeller")
  58. Part2.FrontSurface = Enum.SurfaceType.Weld
  59. Part2.LeftSurface = Enum.SurfaceType.Weld
  60. Part2.RightSurface = Enum.SurfaceType.Weld
  61. Part2.RotVelocity = Vector3.new(-0.686433971, -0.0313967951, 0.110840559)
  62. Part2.TopSurface = Enum.SurfaceType.Weld
  63. Part2.brickColor = BrickColor.new("New Yeller")
  64. Part2.FormFactor = Enum.FormFactor.Symmetric
  65. Part2.formFactor = Enum.FormFactor.Symmetric
  66. Part2.Shape = Enum.PartType.Ball
  67. Weld3.Parent = Part2
  68. Weld3.C0 = CFrame.new(4.03283507e-21, -7.54951657e-13, -2.4158453e-13, 1, -1.58881612e-14, -6.90108384e-20, 1.58881612e-14, 1, 1.71581855e-14, 6.90108384e-20, -1.71581855e-14, 1)
  69. Weld3.C1 = CFrame.new(0, -0.0198402405, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  70. Weld3.Part0 = Part2
  71. Weld3.Part1 = Part1
  72. Weld3.part1 = Part1
  73. Script4.Name = "WeldScript"
  74. Script4.Parent = Model0
  75. table.insert(cors,sandbox(Script4,function()
  76. t = script.Parent
  77.  
  78. wait(5)
  79.  
  80. function stick(x, y)
  81. weld = Instance.new("Weld")
  82. weld.Part0 = x
  83. weld.Part1 = y
  84. local HitPos = x.Position
  85. local CJ = CFrame.new(HitPos)
  86. local C0 = x.CFrame:inverse() *CJ
  87. local C1 = y.CFrame:inverse() * CJ
  88. weld.C0 = C0
  89. weld.C1 = C1
  90. weld.Parent = x
  91. end
  92.  
  93. function Weldnow()
  94. c = t:children()
  95. for n = 1, #c do
  96. if (c[n].className == "Part") then
  97. if (c[n].Name ~= "MainPart") then
  98. stick(c[n], t.MainPart)
  99. wait()
  100. c[n].Anchored = false
  101.  
  102.  
  103. end
  104. end
  105. end
  106.  
  107. wait()
  108.  
  109. t.MainPart.Anchored = false
  110.  
  111. Weldnow()
  112. end))
  113. for i,v in pairs(mas:GetChildren()) do
  114. v.Parent = workspace
  115. pcall(function() v:MakeJoints() end)
  116. end
  117. mas:Destroy()
  118. for i,v in pairs(cors) do
  119. spawn(function()
  120. pcall(v)
  121. end)
  122. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement