Advertisement
sawgamer1

Untitled

May 5th, 2019
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.81 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. local plr = owner
  4. function sandbox(var,func)
  5. local env = getfenv(func)
  6. local newenv = setmetatable({},{
  7. __index = function(self,k)
  8. if k=="script" then
  9. return var
  10. else
  11. return env[k]
  12. end
  13. end,
  14. })
  15. setfenv(func,newenv)
  16. return func
  17. end
  18. cors = {}
  19. mas = Instance.new("Model",game:GetService("Lighting"))
  20. Model0 = Instance.new("Model")
  21. Part1 = Instance.new("Part")
  22. SpecialMesh2 = Instance.new("SpecialMesh")
  23. Weld3 = Instance.new("Weld")
  24. Model0.Parent = mas
  25. Part1.Parent = Model0
  26. Part1.CFrame = plr.Character.HumanoidRootPart.CFrame
  27. Part1.Orientation = Vector3.new(0, -39.0499992, -0.180000007)
  28. Part1.Rotation = Vector3.new(0, -39.0499992, -0.180000007)
  29. Part1.Color = Color3.new(0.0156863, 0.686275, 0.92549)
  30. Part1.Size = Vector3.new(15, 15, 15)
  31. Part1.BottomSurface = Enum.SurfaceType.Smooth
  32. Part1.BrickColor = BrickColor.new("Cyan")
  33. Part1.CanCollide = false
  34. Part1.Material = Enum.Material.ForceField
  35. Part1.TopSurface = Enum.SurfaceType.Smooth
  36. Part1.brickColor = BrickColor.new("Cyan")
  37. SpecialMesh2.Parent = Part1
  38. SpecialMesh2.MeshType = Enum.MeshType.Sphere
  39. Weld3.Name = "AccessoryWeld"
  40. Weld3.Parent = Part1
  41. Weld3.C0 = CFrame.new(8.65838956e-09, 0.150000095, 0.199727759, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  42. Weld3.C1 = CFrame.new(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  43. Weld3.Part0 = Part1
  44. Weld3.Part1 = plr.Character.HumanoidRootPart
  45. for i,v in pairs(mas:GetChildren()) do
  46. v.Parent = workspace
  47. pcall(function() v:MakeJoints() end)
  48. end
  49. mas:Destroy()
  50. for i,v in pairs(cors) do
  51. spawn(function()
  52. pcall(v)
  53. end)
  54. end
  55. local ff = Instance.new("ForceField",plr.Character)
  56. ff.Visible = false
  57. LandMine = Part1
  58.  
  59. function onTouched(hit)
  60. if hit.Parent:FindFirstChild("Humanoid")then
  61. hit.Parent.Humanoid:remove()
  62. local Script33 = Instance.new("Script")
  63. Script33.Name = "Disintegrate"
  64. Script33.Parent = hit.Parent
  65. table.insert(cors,sandbox(Script33,function()
  66. local t = game:GetService("TweenService")
  67.  
  68.  
  69. local c = script.Parent:GetDescendants()
  70. local p = {}
  71. for x=1,#c do
  72. if c[x]:IsA("BasePart") then
  73. p[#p+1] = c[x]
  74. c[x].Anchored = true
  75. elseif c[x]:IsA("Decal") then
  76. local tween = t:Create(c[x],TweenInfo.new(1),{Transparency = 1})
  77. tween:Play()
  78. end
  79. end
  80. for x=1,#p do
  81. local tween = t:Create(p[x],TweenInfo.new(1),{Transparency = 1})
  82. tween:Play()
  83. if p[x].Parent == script.Parent then
  84. local picle = script.Dust:Clone()
  85. picle.Color = ColorSequence.new(p[x].Color)
  86. picle.Parent = p[x]
  87. p[x].Dust:Emit(10*math.abs(p[x].Size.magnitude))
  88. end
  89. wait(.1)
  90. end
  91. end))
  92.  
  93. local ParticleEmitter34 = Instance.new("ParticleEmitter")
  94. ParticleEmitter34.Name = "Dust"
  95. ParticleEmitter34.Parent = Script33
  96. ParticleEmitter34.Speed = NumberRange.new(2, 6)
  97. ParticleEmitter34.Rotation = NumberRange.new(-180, 180)
  98. ParticleEmitter34.Color = ColorSequence.new(Color3.new(0.686275, 0.509804, 0.294118),Color3.new(0.686275, 0.509804, 0.294118))
  99. ParticleEmitter34.Enabled = false
  100. ParticleEmitter34.LightInfluence = 1
  101. ParticleEmitter34.Texture = "rbxassetid://282305485"
  102. ParticleEmitter34.Transparency = NumberSequence.new(1,0.20000000298023,1)
  103. ParticleEmitter34.Size = NumberSequence.new(0.20000000298023,0)
  104. ParticleEmitter34.Acceleration = Vector3.new(0, 2, 0)
  105. ParticleEmitter34.EmissionDirection = Enum.NormalId.Left
  106. ParticleEmitter34.Lifetime = NumberRange.new(0.5, 2)
  107. ParticleEmitter34.RotSpeed = NumberRange.new(-50, 50)
  108. ParticleEmitter34.SpreadAngle = Vector2.new(45, 10)
  109. ParticleEmitter34.VelocitySpread = 45
  110. for i,v in pairs(mas:GetChildren()) do
  111. v.Parent = script
  112. pcall(function() v:MakeJoints() end)
  113. end
  114. mas:Destroy()
  115. for i,v in pairs(cors) do
  116. spawn(function()
  117. pcall(v)
  118. end)
  119. end
  120. hit:BreakJoints()
  121. wait(4)
  122. hit.Parent:remove()
  123. end
  124. end
  125.  
  126. connection = LandMine.Touched:connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement