Advertisement
mari0playz

scoobis gun

Nov 12th, 2018
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. wait(1)
  2. Player = "Sp00ky_Scary0o0o"
  3. tsactive = false
  4. damage = 25
  5. gui1 = Instance.new("ScreenGui",game.Players:FindFirstChild(Player).PlayerGui)
  6. button = Instance.new("TextButton",gui1)
  7. button.TextScaled = true
  8. button.Text = "have a ticket for speed"
  9. button.Size = UDim2.new(0,200,0,50)
  10. button.Position = UDim2.new(0,0,0,400)
  11. timestop = function()
  12. button.Visible = false
  13. local gui = Instance.new("ScreenGui",game.Players:FindFirstChild(Player).PlayerGui)
  14. local textbutton = Instance.new("TextButton",gui)
  15. textbutton.TextScaled = true
  16. textbutton.Text = "resume sorry it was mistake"
  17. textbutton.Size = UDim2.new(0,200,0,50)
  18. textbutton.Position = UDim2.new(0,0,0,400)
  19. local changing = false
  20.  
  21. local player = game.Players:FindFirstChild(Player)
  22. local character = game.Workspace:FindFirstChild(Player)
  23. local t = {}
  24.  
  25. game.Lighting.Brightness = 0
  26.  
  27. --actual timestop here
  28. for i,v in pairs(game.Workspace:GetDescendants()) do
  29.  
  30. -- Sound
  31. if v:IsA("Sound") then
  32. if v.IsPlaying == true then
  33. table.insert(t,v)
  34. v:Pause()
  35. end
  36.  
  37. -- Parts
  38. elseif v:IsA("Part") then
  39. if v.Anchored == false then
  40. if v:FindFirstAncestor(Player) == nil then
  41. table.insert(t,v)
  42. v.Anchored = true
  43. end
  44. end
  45. elseif v:IsA("UnionOperation") then
  46. if v.Anchored == false then
  47. if v:FindFirstAncestor(Player) == nil then
  48. table.insert(t,v)
  49. v.Anchored = true
  50. end
  51. end
  52.  
  53. -- Players
  54. elseif v:IsA("Humanoid") then
  55. if v:FindFirstAncestor(Player) == nil then
  56. table.insert(t,v)
  57. v.WalkSpeed = 0
  58. end
  59. end
  60. end
  61.  
  62. textbutton.MouseButton1Click:connect(function()
  63. if changing == false then
  64. changing = true
  65. game.Lighting.Brightness = 1
  66. end
  67. for i,v in pairs(t) do
  68.  
  69. if v:IsA("Part") then
  70. v.Anchored = false
  71. elseif v:IsA("UnionOperation") then
  72. v.Anchored = false
  73. elseif v:IsA("Humanoid") then
  74. v.WalkSpeed = 16
  75. elseif v:IsA("Sound") then
  76. v:Resume()
  77. end
  78. end
  79. gui:Destroy()
  80. button.Visible = true
  81. tsactive = false
  82.  
  83. end)
  84. end
  85. button.MouseButton1Click:connect(function()
  86. if tsactive == false then
  87. tsactive = true
  88. timestop()
  89. end
  90. end)
  91. normalknife = function()
  92. local player = game.Players:FindFirstChild(Player)
  93. local character = player.Character
  94. local block = Instance.new("Part")
  95. block.Anchored = false
  96. block.CanCollide = false
  97. block.Parent = game.Workspace
  98. block.Size = Vector3.new(1,1,1)
  99. block.CFrame = handle.CFrame
  100. block.Orientation = block.Orientation + Vector3.new(180,0,0)
  101. local mesh = Instance.new("SpecialMesh",block)
  102. mesh.Scale = Vector3.new(1,1,1)
  103. mesh.MeshId = "rbxassetid://1107996700"
  104. mesh.TextureId = "rbxassetid://1107996710"
  105. mesh.Scale = Vector3.new(0.04,0.04,0.04)
  106. local light = Instance.new("PointLight",block)
  107. light.Color = Color3.new(158/255,86/255,38/255)
  108. local velocity = Instance.new("BodyVelocity",block)
  109. velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  110. velocity.Velocity = character.HumanoidRootPart.CFrame.lookVector*75
  111. block.Orientation = character.HumanoidRootPart.Orientation
  112. game:GetService("Debris"):AddItem(block,3)
  113. block.Touched:connect(function(part)
  114. if part.Parent.Name ~= "Workspace" then
  115. if part:FindFirstAncestor(Player) == nil then
  116. for i,v in pairs(part.Parent:GetDescendants()) do
  117. if v:IsA("Humanoid") then
  118. v.Health = 0
  119. wait()
  120. for i,v in pairs(part.Parent:GetDescendants()) do
  121. if v:IsA("Part") or v:IsA("UnionOperation") then
  122. if v.Anchored == true then
  123. v.Anchored = false
  124. v.Velocity = Vector3.new(math.random(-250,250),math.random(-250,250),math.random(-250,250))
  125. v.Velocity = Vector3.new(math.random(-250,250),math.random(-250,250),math.random(-250,250))
  126. elseif v.Anchored == false then
  127. v.Velocity = Vector3.new(math.random(-250,250),math.random(-250,250),math.random(-250,250))
  128. v.Velocity = Vector3.new(math.random(-250,250),math.random(-250,250),math.random(-250,250))
  129. end
  130. end
  131. end
  132. local hitsfx = Instance.new("Sound",workspace)
  133. hitsfx.SoundId = "rbxassetid://441202925"
  134. hitsfx.Volume = 0.1
  135. hitsfx:Play()
  136. game:GetService("Debris"):AddItem(hitsfx,1)
  137. block:Destroy()
  138. end
  139. end
  140. end
  141. end
  142. end)
  143. end
  144. tsknife = function()
  145. local player = game.Players:FindFirstChild(Player)
  146. local character = player.Character
  147. local block = Instance.new("Part")
  148. local lookvector = character.HumanoidRootPart.CFrame.lookVector
  149. block.Anchored = false
  150. block.CanCollide = false
  151. block.Parent = game.Workspace
  152. block.Size = Vector3.new(1,1,1)
  153. block.CFrame = handle.CFrame
  154. local mesh = Instance.new("SpecialMesh",block)
  155. mesh.MeshId = "rbxassetid://1107996700"
  156. mesh.Scale = Vector3.new(0.04,0.04,0.04)
  157. local light = Instance.new("PointLight",block)
  158. light.Color = Color3.new(158/255,86/255,38/255)
  159. mesh.TextureId = "rbxassetid://1107996710"
  160. local velocity = Instance.new("BodyVelocity",block)
  161. velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  162. velocity.Velocity = Vector3.new(0,0,0)
  163. block.Orientation = character.HumanoidRootPart.Orientation
  164. for i = 0,100000,1 do
  165. if tsactive == false then
  166. break
  167. end
  168. wait(.1)
  169. end
  170. wait()
  171. velocity.Velocity = lookvector*75
  172. game:GetService("Debris"):AddItem(block,3)
  173. block.Touched:connect(function(part)
  174. if part.Parent.Name ~= "Workspace" then
  175. if part:FindFirstAncestor(Player) == nil then
  176. for i,v in pairs(part.Parent:GetDescendants()) do
  177. if v:IsA("Humanoid") then
  178. v.Health = 0
  179. wait()
  180. for i,v in pairs(part.Parent:GetDescendants()) do
  181. if v:IsA("Part") or v:IsA("UnionOperation") then
  182. if v.Anchored == true then
  183. v.Anchored = false
  184. v.Velocity = Vector3.new(math.random(-250,250),math.random(-250,250),math.random(-250,250))
  185. v.Velocity = Vector3.new(math.random(-250,250),math.random(-250,250),math.random(-250,250))
  186. elseif v.Anchored == false then
  187. v.Velocity = Vector3.new(math.random(-250,250),math.random(-250,250),math.random(-250,250))
  188. v.Velocity = Vector3.new(math.random(-250,250),math.random(-250,250),math.random(-250,250))
  189. end
  190. end
  191. end
  192. local hitsfx = Instance.new("Sound",workspace)
  193. hitsfx.SoundId = "rbxassetid://441202925"
  194. hitsfx.Volume = 0.1
  195. hitsfx:Play()
  196. game:GetService("Debris"):AddItem(hitsfx,1)
  197. block:Destroy()
  198. end
  199. end
  200. end
  201. end
  202. end)
  203. end
  204.  
  205. player1 = game.Players:FindFirstChild(Player)
  206. tool = Instance.new("Tool")
  207. tool.Name = "gun of scoobis"
  208. tool.RequiresHandle = true
  209. handle = Instance.new("Part",tool)
  210. handle.Name = "Handle"
  211. handle.CanCollide = false
  212. gun = Instance.new("SpecialMesh",handle)
  213. gun.Scale = Vector3.new(0.015,0.015,0.02)
  214. gun.MeshId = "rbxassetid://1356917530"
  215. handle.Material = Enum.Material.Neon
  216. handle.Color = Color3.new(1,1,1)
  217. sparkle = Instance.new("Sparkles",handle)
  218. sparkle.SparkleColor = Color3.new(1,1,1)
  219. tool.Parent = player1.Backpack
  220. tool.GripForward = Vector3.new(-1,0,0)
  221. tool.GripPos = Vector3.new(0.5,-0.3,0)
  222. light1 = Instance.new("PointLight",handle)
  223. light1.Color = Color3.new(1,1,1)
  224. light1.Brightness = 5
  225.  
  226.  
  227.  
  228. tool.Activated:connect(function()
  229. if tsactive == false then
  230. normalknife()
  231. elseif tsactive == true then
  232. tsknife()
  233. end
  234. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement