Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(1)
- Player = "raily_nl123"
- tsactive = false
- damage = 50
- gui1 = Instance.new("ScreenGui",game.Players:FindFirstChild(Player).PlayerGui)
- button = Instance.new("TextButton",gui1)
- button.TextScaled = true
- button.Text = "stop you violated the law mr"
- button.Size = UDim2.new(0,200,0,50)
- button.Position = UDim2.new(0,0,0,400)
- timestop = function()
- button.Visible = false
- local gui = Instance.new("ScreenGui",game.Players:FindFirstChild(Player).PlayerGui)
- local textbutton = Instance.new("TextButton",gui)
- textbutton.TextScaled = true
- textbutton.Text = "resume driving thanks"
- textbutton.Size = UDim2.new(0,200,0,50)
- textbutton.Position = UDim2.new(0,0,0,400)
- local changing = false
- local player = game.Players:FindFirstChild(Player)
- local character = game.Workspace:FindFirstChild(Player)
- local t = {}
- game.Lighting.Brightness = 0
- --actual timestop here
- for i,v in pairs(game.Workspace:GetDescendants()) do
- -- Sound
- if v:IsA("Sound") then
- if v.IsPlaying == true then
- table.insert(t,v)
- v:Pause()
- end
- -- Parts
- elseif v:IsA("Part") then
- if v.Anchored == false then
- if v:FindFirstAncestor(Player) == nil then
- table.insert(t,v)
- v.Anchored = true
- end
- end
- elseif v:IsA("UnionOperation") then
- if v.Anchored == false then
- if v:FindFirstAncestor(Player) == nil then
- table.insert(t,v)
- v.Anchored = true
- end
- end
- -- Players
- elseif v:IsA("Humanoid") then
- if v:FindFirstAncestor(Player) == nil then
- table.insert(t,v)
- v.WalkSpeed = 0
- end
- end
- end
- textbutton.MouseButton1Click:connect(function()
- if changing == false then
- changing = true
- game.Lighting.Brightness = 1
- end
- for i,v in pairs(t) do
- if v:IsA("Part") then
- v.Anchored = false
- elseif v:IsA("UnionOperation") then
- v.Anchored = false
- elseif v:IsA("Humanoid") then
- v.WalkSpeed = 16
- elseif v:IsA("Sound") then
- v:Resume()
- end
- end
- gui:Destroy()
- button.Visible = true
- tsactive = false
- end)
- end
- button.MouseButton1Click:connect(function()
- if tsactive == false then
- tsactive = true
- timestop()
- end
- end)
- normalknife = function()
- local player = game.Players:FindFirstChild(Player)
- local character = player.Character
- local block = Instance.new("Part")
- block.Anchored = false
- block.CanCollide = false
- block.Parent = game.Workspace
- block.Size = Vector3.new(1,1,1)
- block.CFrame = character.HumanoidRootPart.CFrame
- block.Orientation = block.Orientation + Vector3.new(180,0,0)
- local mesh = Instance.new("SpecialMesh",block)
- mesh.Scale = Vector3.new(1,1,1)
- mesh.MeshId = "rbxassetid://1107996700"
- mesh.TextureId = "rbxassetid://1107996710"
- mesh.Scale = Vector3.new(0.04,0.04,0.04)
- local velocity = Instance.new("BodyVelocity",block)
- velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- velocity.Velocity = character.HumanoidRootPart.CFrame.lookVector*75
- block.Orientation = character.HumanoidRootPart.Orientation
- game:GetService("Debris"):AddItem(block,3)
- block.Touched:connect(function(part)
- if part.Parent:FindFirstChild("Humanoid") then
- if part:FindFirstAncestor(Player) == nil then
- part.Parent.Humanoid:TakeDamage(damage)
- local hitsfx = Instance.new("Sound",workspace)
- hitsfx.SoundId = "rbxassetid://367499850"
- hitsfx.Volume = 0.2
- hitsfx:Play()
- game:GetService("Debris"):AddItem(hitsfx,1)
- block:Destroy()
- end
- end
- end)
- end
- tsknife = function()
- local player = game.Players:FindFirstChild(Player)
- local character = player.Character
- local block = Instance.new("Part")
- local lookvector = character.HumanoidRootPart.CFrame.lookVector
- block.Anchored = false
- block.CanCollide = false
- block.Parent = game.Workspace
- block.Size = Vector3.new(1,1,1)
- block.CFrame = character.HumanoidRootPart.CFrame
- local mesh = Instance.new("SpecialMesh",block)
- mesh.MeshId = "rbxassetid://1107996700"
- mesh.Scale = Vector3.new(0.04,0.04,0.04)
- mesh.TextureId = "rbxassetid://1107996710"
- local velocity = Instance.new("BodyVelocity",block)
- velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- velocity.Velocity = Vector3.new(0,0,0)
- block.Orientation = character.HumanoidRootPart.Orientation
- for i = 0,100000,1 do
- if tsactive == false then
- break
- end
- wait(.1)
- end
- velocity.Velocity = lookvector*75
- game:GetService("Debris"):AddItem(block,3)
- block.Touched:connect(function(part)
- if part.Parent:FindFirstChild("Humanoid") then
- if part:FindFirstAncestor(Player) == nil then
- part.Parent.Humanoid:TakeDamage(damage)
- local hitsfx = Instance.new("Sound",workspace)
- hitsfx.SoundId = "rbxassetid://367499850"
- hitsfx.Volume = 0.1
- hitsfx:Play()
- game:GetService("Debris"):AddItem(hitsfx,1)
- block:Destroy()
- end
- end
- end)
- end
- player1 = game.Players:FindFirstChild(Player)
- tool = Instance.new("Tool")
- tool.Name = "knife"
- tool.Parent = player1.Backpack
- tool.RequiresHandle = false
- tool.Activated:connect(function()
- if tsactive == false then
- normalknife()
- elseif tsactive == true then
- tsknife()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement