Advertisement
bryanesfeo

Untitled

Jul 19th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.11 KB | None | 0 0
  1. wait(1)
  2. Player = "raily_nl123"
  3. tsactive = false
  4. damage = 50
  5. gui1 = Instance.new("ScreenGui",game.Players:FindFirstChild(Player).PlayerGui)
  6. button = Instance.new("TextButton",gui1)
  7. button.TextScaled = true
  8. button.Text = "stop you violated the law mr"
  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 driving thanks"
  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 = character.HumanoidRootPart.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 velocity = Instance.new("BodyVelocity",block)
  107. velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  108. velocity.Velocity = character.HumanoidRootPart.CFrame.lookVector*75
  109. block.Orientation = character.HumanoidRootPart.Orientation
  110. game:GetService("Debris"):AddItem(block,3)
  111. block.Touched:connect(function(part)
  112. if part.Parent:FindFirstChild("Humanoid") then
  113. if part:FindFirstAncestor(Player) == nil then
  114. part.Parent.Humanoid:TakeDamage(damage)
  115. local hitsfx = Instance.new("Sound",workspace)
  116. hitsfx.SoundId = "rbxassetid://367499850"
  117. hitsfx.Volume = 0.2
  118. hitsfx:Play()
  119. game:GetService("Debris"):AddItem(hitsfx,1)
  120. block:Destroy()
  121. end
  122. end
  123. end)
  124. end
  125. tsknife = function()
  126. local player = game.Players:FindFirstChild(Player)
  127. local character = player.Character
  128. local block = Instance.new("Part")
  129. local lookvector = character.HumanoidRootPart.CFrame.lookVector
  130. block.Anchored = false
  131. block.CanCollide = false
  132. block.Parent = game.Workspace
  133. block.Size = Vector3.new(1,1,1)
  134. block.CFrame = character.HumanoidRootPart.CFrame
  135. local mesh = Instance.new("SpecialMesh",block)
  136. mesh.MeshId = "rbxassetid://1107996700"
  137. mesh.Scale = Vector3.new(0.04,0.04,0.04)
  138. mesh.TextureId = "rbxassetid://1107996710"
  139. local velocity = Instance.new("BodyVelocity",block)
  140. velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  141. velocity.Velocity = Vector3.new(0,0,0)
  142. block.Orientation = character.HumanoidRootPart.Orientation
  143. for i = 0,100000,1 do
  144. if tsactive == false then
  145. break
  146. end
  147. wait(.1)
  148. end
  149. velocity.Velocity = lookvector*75
  150. game:GetService("Debris"):AddItem(block,3)
  151. block.Touched:connect(function(part)
  152. if part.Parent:FindFirstChild("Humanoid") then
  153. if part:FindFirstAncestor(Player) == nil then
  154. part.Parent.Humanoid:TakeDamage(damage)
  155. local hitsfx = Instance.new("Sound",workspace)
  156. hitsfx.SoundId = "rbxassetid://367499850"
  157. hitsfx.Volume = 0.1
  158. hitsfx:Play()
  159. game:GetService("Debris"):AddItem(hitsfx,1)
  160. block:Destroy()
  161. end
  162. end
  163. end)
  164.  
  165. end
  166.  
  167. player1 = game.Players:FindFirstChild(Player)
  168. tool = Instance.new("Tool")
  169. tool.Name = "knife"
  170. tool.Parent = player1.Backpack
  171. tool.RequiresHandle = false
  172. tool.Activated:connect(function()
  173. if tsactive == false then
  174. normalknife()
  175. elseif tsactive == true then
  176. tsknife()
  177. end
  178. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement