Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TickingNoise = true -- false for no ticking noise
- AmountOfBlood = 100 -- How many parts of blood there are, more parts = more lag, minimum of 1 blood
- Keybind = "l" -- Key you will press to Create the landmine (that is L not one btw)
- AffectWalkSpeed = true -- When a player touches the mine, it will stop them from moving (false to turn off)
- Blastpressure = 500000 -- How much pressure the explosion will have, 500000 seems perfect tbh
- Instructions = {
- 'Press whatever you set the keybind to and click to place your mine (you can place multiple)'
- }
- ---Do not touch anything below this line unless you know what to do
- LocalPlayer = game:GetService('Players').LocalPlayer
- Mouse = LocalPlayer:GetMouse()
- HasClicked = false
- IsPlacing = false
- Mouse.KeyDown:connect(function(Key)
- if Key == Keybind then
- if not IsPlacing then
- IsPlacing = true
- local Main = Instance.new("Part")
- local Ticker = Instance.new("Part")
- Main.Name = "Main"
- Main.Parent = workspace
- Main.BrickColor = BrickColor.new("Dark stone grey")
- Main.Rotation = Vector3.new(0, 0, -90)
- Main.Shape = Enum.PartType.Cylinder
- Main.Size = Vector3.new(0.300000012, 3.5, 3.5)
- Main.BottomSurface = Enum.SurfaceType.Smooth
- Main.LeftSurface = Enum.SurfaceType.Weld
- Main.TopSurface = Enum.SurfaceType.Smooth
- Main.Color = Color3.new(0.4, 0.360784, 0.376471)
- Main.Position = Vector3.new(-23.75, 0.160003006, -29.75)
- Main.Orientation = Vector3.new(0, 0, -90)
- Main.Color = Color3.new(0.4, 0.360784, 0.376471)
- repeat
- wait(.001)
- Main.Position = Mouse.Hit.p
- until
- HasClicked == true
- IsPlacing = false
- Main.Anchored = true
- Main.Rotation = Vector3.new(0, 0, -90)
- Ticker.Anchored = true
- Ticker.Name = "Ticker"
- Ticker.Parent = Main
- Ticker.BrickColor = BrickColor.new("Really red")
- Ticker.Rotation = Vector3.new(0, 0, -90)
- Ticker.Shape = Enum.PartType.Cylinder
- Ticker.Size = Vector3.new(0.400000012, 3.5, 1.5)
- Ticker.Color = Color3.new(1, 0, 0.0156863)
- Ticker.Position = Main.Position
- Ticker.Orientation = Vector3.new(0, 0, -90)
- Ticker.Color = Color3.new(1, 0, 0.0156863)
- Ticker.Rotation = Vector3.new(0, 0, -90)
- local Beep = Instance.new('Sound',Ticker)
- Beep.PlaybackSpeed = 1
- Beep.MaxDistance = 50
- Beep.EmitterSize = 10
- Beep.Looped = true
- Beep.SoundId = 'rbxassetid://138081500'
- if TickingNoise then
- Beep:Play()
- end
- local StartTick = coroutine.wrap(function(Item)
- while wait() do
- Item.Color = Color3.fromRGB(255, 0, 4)
- wait(1)
- Item.Color = Color3.fromRGB(216, 255, 19)
- end
- end)
- StartTick(Ticker)
- local HasTriggered = false
- Main.Touched:connect(function(Item)
- if Item.Parent:FindFirstChild('Humanoid') then
- if AffectWalkSpeed then
- Item.Parent.Humanoid.WalkSpeed = 0
- end
- if not HasTriggered then
- HasTriggered = true
- Beep:Destroy()
- local Dead = Instance.new('Sound',Ticker)
- Dead.PlaybackSpeed = 2
- Dead.MaxDistance = 50
- Dead.EmitterSize = 10
- Dead.Looped = true
- Dead.SoundId = 'rbxassetid://138081500'
- Dead:Play()
- wait(2)
- local cpart = Item:Clone()
- cpart.Parent = workspace
- cpart.Position = Item.Position
- cpart.Name = "ClonedPart"
- cpart.CanCollide = true
- cpart.Color = Color3.fromRGB(0,0,0)
- local Fire = Instance.new('Fire', cpart)
- Fire.Size = 5
- Fire.Color = Color3.fromRGB(47, 27, 13)
- Item:Destroy()
- local asd = coroutine.wrap(function()
- for i=0,AmountOfBlood do
- wait(.01)
- local Part0 = Instance.new("Part",workspace)
- Part0.Position = cpart.Position
- Part0.Name = 'Blood' .. i
- Part0.Rotation = Vector3.new(0, 0, -90)
- Part0.Shape = Enum.PartType.Cylinder
- Part0.Size = Vector3.new(0.000100001, 0.5, 0.5)
- Part0.BottomSurface = Enum.SurfaceType.Smooth
- Part0.TopSurface = Enum.SurfaceType.Smooth
- Part0.Orientation = Vector3.new(0, 0, -90)
- Part0.Color = Color3.fromRGB(180, 0, 0)
- end
- end)
- asd()
- Dead:Stop()
- local Explosion = Instance.new('Explosion',cpart)
- Explosion.BlastPressure = Blastpressure
- Explosion.DestroyJointRadiusPercent = 1
- Explosion.BlastRadius = 15
- Explosion.ExplosionType = 2
- Explosion.Position = Ticker.Position
- local Sound = Instance.new('Sound',Main)
- Sound.SoundId = 'rbxassetid://323678277'
- Sound.MaxDistance = 10000
- Sound.EmitterSize = 50
- Sound.Volume = 1
- Sound:Play()
- local Smoke = Instance.new('Smoke')
- Smoke.Parent = Main
- Smoke.Size = 3.000
- Smoke.RiseVelocity = 10.000
- Smoke.Opacity = 1
- Smoke.Color = Color3.fromRGB(0,0,0)
- local Sfire = Instance.new('Fire')
- Sfire.Parent = Main
- Sfire.Color = Color3.fromRGB(40,23,11)
- Sfire.Heat = 25
- Sfire.Size = 30
- Sfire.SecondaryColor = Color3.fromRGB(130,74,51)
- Main.Transparency = 1
- Ticker.Transparency = 1
- wait(10)
- Main:Destroy()
- for i=0,AmountOfBlood do
- wait(.2)
- pcall(function()
- workspace['Blood' .. i]:Destroy()
- end)
- end
- Fire:Destroy()
- end
- end
- end)
- end
- end
- end)
- Mouse.Button1Down:connect(function()
- if IsPlacing then
- HasClicked = true
- wait()
- HasClicked = false
- end
- end)
Add Comment
Please, Sign In to add comment