Gostrondude

Untitled

Dec 9th, 2017
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.72 KB | None | 0 0
  1. TickingNoise = true -- false for no ticking noise
  2. AmountOfBlood = 100 -- How many parts of blood there are, more parts = more lag, minimum of 1 blood
  3. Keybind = "l" -- Key you will press to Create the landmine (that is L not one btw)
  4. AffectWalkSpeed = true -- When a player touches the mine, it will stop them from moving (false to turn off)
  5. Blastpressure = 500000 -- How much pressure the explosion will have, 500000 seems perfect tbh
  6.  
  7. Instructions = {
  8. 'Press whatever you set the keybind to and click to place your mine (you can place multiple)'
  9. }
  10.  
  11. ---Do not touch anything below this line unless you know what to do
  12. LocalPlayer = game:GetService('Players').LocalPlayer
  13. Mouse = LocalPlayer:GetMouse()
  14. HasClicked = false
  15. IsPlacing = false
  16. Mouse.KeyDown:connect(function(Key)
  17. if Key == Keybind then
  18. if not IsPlacing then
  19. IsPlacing = true
  20. local Main = Instance.new("Part")
  21. local Ticker = Instance.new("Part")
  22. Main.Name = "Main"
  23. Main.Parent = workspace
  24. Main.BrickColor = BrickColor.new("Dark stone grey")
  25. Main.Rotation = Vector3.new(0, 0, -90)
  26. Main.Shape = Enum.PartType.Cylinder
  27. Main.Size = Vector3.new(0.300000012, 3.5, 3.5)
  28. Main.BottomSurface = Enum.SurfaceType.Smooth
  29. Main.LeftSurface = Enum.SurfaceType.Weld
  30. Main.TopSurface = Enum.SurfaceType.Smooth
  31. Main.Color = Color3.new(0.4, 0.360784, 0.376471)
  32. Main.Position = Vector3.new(-23.75, 0.160003006, -29.75)
  33. Main.Orientation = Vector3.new(0, 0, -90)
  34. Main.Color = Color3.new(0.4, 0.360784, 0.376471)
  35. repeat
  36. wait(.001)
  37. Main.Position = Mouse.Hit.p
  38. until
  39. HasClicked == true
  40. IsPlacing = false
  41. Main.Anchored = true
  42. Main.Rotation = Vector3.new(0, 0, -90)
  43. Ticker.Anchored = true
  44. Ticker.Name = "Ticker"
  45. Ticker.Parent = Main
  46. Ticker.BrickColor = BrickColor.new("Really red")
  47. Ticker.Rotation = Vector3.new(0, 0, -90)
  48. Ticker.Shape = Enum.PartType.Cylinder
  49. Ticker.Size = Vector3.new(0.400000012, 3.5, 1.5)
  50. Ticker.Color = Color3.new(1, 0, 0.0156863)
  51. Ticker.Position = Main.Position
  52. Ticker.Orientation = Vector3.new(0, 0, -90)
  53. Ticker.Color = Color3.new(1, 0, 0.0156863)
  54. Ticker.Rotation = Vector3.new(0, 0, -90)
  55. local Beep = Instance.new('Sound',Ticker)
  56. Beep.PlaybackSpeed = 1
  57. Beep.MaxDistance = 50
  58. Beep.EmitterSize = 10
  59. Beep.Looped = true
  60. Beep.SoundId = 'rbxassetid://138081500'
  61. if TickingNoise then
  62. Beep:Play()
  63. end
  64. local StartTick = coroutine.wrap(function(Item)
  65. while wait() do
  66. Item.Color = Color3.fromRGB(255, 0, 4)
  67. wait(1)
  68. Item.Color = Color3.fromRGB(216, 255, 19)
  69. end
  70. end)
  71. StartTick(Ticker)
  72. local HasTriggered = false
  73. Main.Touched:connect(function(Item)
  74. if Item.Parent:FindFirstChild('Humanoid') then
  75. if AffectWalkSpeed then
  76. Item.Parent.Humanoid.WalkSpeed = 0
  77. end
  78. if not HasTriggered then
  79. HasTriggered = true
  80. Beep:Destroy()
  81. local Dead = Instance.new('Sound',Ticker)
  82. Dead.PlaybackSpeed = 2
  83. Dead.MaxDistance = 50
  84. Dead.EmitterSize = 10
  85. Dead.Looped = true
  86. Dead.SoundId = 'rbxassetid://138081500'
  87. Dead:Play()
  88. wait(2)
  89. local cpart = Item:Clone()
  90. cpart.Parent = workspace
  91. cpart.Position = Item.Position
  92. cpart.Name = "ClonedPart"
  93. cpart.CanCollide = true
  94. cpart.Color = Color3.fromRGB(0,0,0)
  95. local Fire = Instance.new('Fire', cpart)
  96. Fire.Size = 5
  97. Fire.Color = Color3.fromRGB(47, 27, 13)
  98. Item:Destroy()
  99. local asd = coroutine.wrap(function()
  100. for i=0,AmountOfBlood do
  101. wait(.01)
  102. local Part0 = Instance.new("Part",workspace)
  103. Part0.Position = cpart.Position
  104. Part0.Name = 'Blood' .. i
  105. Part0.Rotation = Vector3.new(0, 0, -90)
  106. Part0.Shape = Enum.PartType.Cylinder
  107. Part0.Size = Vector3.new(0.000100001, 0.5, 0.5)
  108. Part0.BottomSurface = Enum.SurfaceType.Smooth
  109. Part0.TopSurface = Enum.SurfaceType.Smooth
  110. Part0.Orientation = Vector3.new(0, 0, -90)
  111. Part0.Color = Color3.fromRGB(180, 0, 0)
  112. end
  113. end)
  114. asd()
  115. Dead:Stop()
  116. local Explosion = Instance.new('Explosion',cpart)
  117. Explosion.BlastPressure = Blastpressure
  118. Explosion.DestroyJointRadiusPercent = 1
  119. Explosion.BlastRadius = 15
  120. Explosion.ExplosionType = 2
  121. Explosion.Position = Ticker.Position
  122. local Sound = Instance.new('Sound',Main)
  123. Sound.SoundId = 'rbxassetid://323678277'
  124. Sound.MaxDistance = 10000
  125. Sound.EmitterSize = 50
  126. Sound.Volume = 1
  127. Sound:Play()
  128. local Smoke = Instance.new('Smoke')
  129. Smoke.Parent = Main
  130. Smoke.Size = 3.000
  131. Smoke.RiseVelocity = 10.000
  132. Smoke.Opacity = 1
  133. Smoke.Color = Color3.fromRGB(0,0,0)
  134. local Sfire = Instance.new('Fire')
  135. Sfire.Parent = Main
  136. Sfire.Color = Color3.fromRGB(40,23,11)
  137. Sfire.Heat = 25
  138. Sfire.Size = 30
  139. Sfire.SecondaryColor = Color3.fromRGB(130,74,51)
  140. Main.Transparency = 1
  141. Ticker.Transparency = 1
  142. wait(10)
  143. Main:Destroy()
  144. for i=0,AmountOfBlood do
  145. wait(.2)
  146. pcall(function()
  147. workspace['Blood' .. i]:Destroy()
  148. end)
  149. end
  150. Fire:Destroy()
  151. end
  152. end
  153. end)
  154. end
  155. end
  156. end)
  157.  
  158. Mouse.Button1Down:connect(function()
  159. if IsPlacing then
  160. HasClicked = true
  161. wait()
  162. HasClicked = false
  163. end
  164. end)
Add Comment
Please, Sign In to add comment