Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- local plr = owner
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- SpecialMesh2 = Instance.new("SpecialMesh")
- Weld3 = Instance.new("Weld")
- Model0.Parent = mas
- Part1.Parent = Model0
- Part1.CFrame = plr.Character.HumanoidRootPart.CFrame
- Part1.Orientation = Vector3.new(0, -39.0499992, -0.180000007)
- Part1.Rotation = Vector3.new(0, -39.0499992, -0.180000007)
- Part1.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- Part1.Size = Vector3.new(15, 15, 15)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.BrickColor = BrickColor.new("Cyan")
- Part1.CanCollide = false
- Part1.Material = Enum.Material.ForceField
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Cyan")
- SpecialMesh2.Parent = Part1
- SpecialMesh2.MeshType = Enum.MeshType.Sphere
- Weld3.Name = "AccessoryWeld"
- Weld3.Parent = Part1
- Weld3.C0 = CFrame.new(8.65838956e-09, 0.150000095, 0.199727759, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld3.C1 = CFrame.new(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld3.Part0 = Part1
- Weld3.Part1 = plr.Character.HumanoidRootPart
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- local ff = Instance.new("ForceField",plr.Character)
- ff.Visible = false
- LandMine = Part1
- function onTouched(hit)
- if hit.Parent:FindFirstChild("Humanoid")then
- hit.Parent.Humanoid:remove()
- local Script33 = Instance.new("Script")
- Script33.Name = "Disintegrate"
- Script33.Parent = hit.Parent
- table.insert(cors,sandbox(Script33,function()
- local t = game:GetService("TweenService")
- local c = script.Parent:GetDescendants()
- local p = {}
- for x=1,#c do
- if c[x]:IsA("BasePart") then
- p[#p+1] = c[x]
- c[x].Anchored = true
- elseif c[x]:IsA("Decal") then
- local tween = t:Create(c[x],TweenInfo.new(1),{Transparency = 1})
- tween:Play()
- end
- end
- for x=1,#p do
- local tween = t:Create(p[x],TweenInfo.new(1),{Transparency = 1})
- tween:Play()
- if p[x].Parent == script.Parent then
- local picle = script.Dust:Clone()
- picle.Color = ColorSequence.new(p[x].Color)
- picle.Parent = p[x]
- p[x].Dust:Emit(10*math.abs(p[x].Size.magnitude))
- end
- wait(.1)
- end
- end))
- local ParticleEmitter34 = Instance.new("ParticleEmitter")
- ParticleEmitter34.Name = "Dust"
- ParticleEmitter34.Parent = Script33
- ParticleEmitter34.Speed = NumberRange.new(2, 6)
- ParticleEmitter34.Rotation = NumberRange.new(-180, 180)
- ParticleEmitter34.Color = ColorSequence.new(Color3.new(0.686275, 0.509804, 0.294118),Color3.new(0.686275, 0.509804, 0.294118))
- ParticleEmitter34.Enabled = false
- ParticleEmitter34.LightInfluence = 1
- ParticleEmitter34.Texture = "rbxassetid://282305485"
- ParticleEmitter34.Transparency = NumberSequence.new(1,0.20000000298023,1)
- ParticleEmitter34.Size = NumberSequence.new(0.20000000298023,0)
- ParticleEmitter34.Acceleration = Vector3.new(0, 2, 0)
- ParticleEmitter34.EmissionDirection = Enum.NormalId.Left
- ParticleEmitter34.Lifetime = NumberRange.new(0.5, 2)
- ParticleEmitter34.RotSpeed = NumberRange.new(-50, 50)
- ParticleEmitter34.SpreadAngle = Vector2.new(45, 10)
- ParticleEmitter34.VelocitySpread = 45
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = script
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- hit:BreakJoints()
- wait(4)
- hit.Parent:remove()
- end
- end
- connection = LandMine.Touched:connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement