Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Frame.Draggable = true
- Frame.Selectable = true
- Frame.Active = true
- local fast = 16
- local player = game:GetService("Players").LocalPlayer
- local uis = game:GetService("UserInputService")
- local runservice = game:GetService("RunService")
- local run_db = false
- local jump_db = false
- local sprint_db = false
- local fly_db = false
- local step = 0.01
- local percentage = 0
- local userID = player.UserId
- local thumtype = Enum.ThumbnailType.AvatarBust
- local thumsize = Enum.ThumbnailSize.Size420x420
- local content = game.Players:GetUserThumbnailAsync(userID, thumtype , thumsize)
- local flyspeeds = fly0.Text
- local tpwalking = false
- local function beginSprint(input, gameprocessed)
- if not gameprocessed then
- if input.UerInputType == Enum.UserInputType.Keyboard then
- local keycode = input.KeyCode
- if keycode == Enum.KeyCode.LeftShift then
- game:GetService("RunService").RenderStepped:connect(function()
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = tonumber(sprint16.Text)
- end)
- end
- end
- end
- end
- local function EndSprint(input, gameprocessed)
- if not gameprocessed then
- if input.UerInputType == Enum.UserInputType.Keyboard then
- local keycode = input.KeyCode
- if keycode == Enum.KeyCode.LeftShift then
- game:GetService("RunService").RenderStepped:connect(function()
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = tonumber(speed16.Text)
- end)
- end
- end
- end
- end
- function snap(number,factor)
- if factor == 0 then
- return number
- else
- return math.floor(number/factor+0.5)*factor
- end
- end
- uis.InputEnded:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- run_db = false
- jump_db = false
- sprint_db = false
- fly_db = false
- end
- end)
- speedbutton.MouseButton1Down:Connect(function()--speed_bar_button
- run_db = true
- end)
- jumpbutton.MouseButton1Down:Connect(function()--speed_bar_button
- jump_db = true
- end)
- Flybutton.MouseButton1Down:Connect(function()--speed_bar_button
- fly_db = true
- flyspeeds = fly0.Text
- if nowe == true then
- tpwalking = false
- for i = 1, flyspeeds do
- spawn(function()
- local hb = game:GetService("RunService").Heartbeat
- tpwalking = true
- local chr = game.Players.LocalPlayer.Character
- local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
- while tpwalking and hb:Wait() and chr and hum and hum.Parent do
- if hum.MoveDirection.Magnitude > 0 then
- chr:TranslateBy(hum.MoveDirection)
- end
- end
- end)
- end
- end
- fly_db = true
- flyspeeds = fly0.Text
- if nowe == true then
- tpwalking = false
- for i = 1, flyspeeds do
- spawn(function()
- local hb = game:GetService("RunService").Heartbeat
- tpwalking = true
- local chr = game.Players.LocalPlayer.Character
- local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
- while tpwalking and hb:Wait() and chr and hum and hum.Parent do
- if hum.MoveDirection.Magnitude > 0 then
- chr:TranslateBy(hum.MoveDirection)
- end
- end
- end)
- end
- end
- end)
- runservice.RenderStepped:Connect(function()--speed function
- if run_db then
- local mousepos = uis:GetMouseLocation().X
- local btnpos = speedbutton.Position
- local framesize = SpeedSlideBar.AbsoluteSize.X
- local framepos = SpeedSlideBar.AbsolutePosition.X
- local pos = snap((mousepos-framepos)/framesize,step)
- percentage = math.clamp(pos,0,1)
- speedbutton.Position = UDim2.new(percentage,0,btnpos.Y.Scale,btnpos.Y.Offset)
- local scale = speedbutton.Position.X.Scale
- local number = math.floor(scale*484)
- local speed = number
- speed16.Text = tonumber(16+(1*speed))
- fast = speed16.Text
- end
- end)
- runservice.RenderStepped:Connect(function()--jump function
- if jump_db then
- local mousepos = uis:GetMouseLocation().X
- local btnpos = jumpbutton.Position
- local framesize = JumpSlideBar.AbsoluteSize.X
- local framepos = JumpSlideBar.AbsolutePosition.X
- local pos = snap((mousepos-framepos)/framesize,step)
- percentage = math.clamp(pos,0,1)
- jumpbutton.Position = UDim2.new(percentage,0,btnpos.Y.Scale,btnpos.Y.Offset)
- local scale = jumpbutton.Position.X.Scale
- local number = math.floor(scale*450)
- local jump = number
- jump50.Text = tonumber(50+(1*jump))
- game.Players.LocalPlayer.Character.Humanoid.JumpPower = tonumber(jump50.Text)
- end
- end)
- runservice.RenderStepped:Connect(function()--fly function
- if fly_db then
- local mousepos = uis:GetMouseLocation().X
- local btnpos = Flybutton.Position
- local framesize = FlySlideBar.AbsoluteSize.X
- local framepos = FlySlideBar.AbsolutePosition.X
- local pos = snap((mousepos-framepos)/framesize,step)
- percentage = math.clamp(pos,0,1)
- Flybutton.Position = UDim2.new(percentage,0,btnpos.Y.Scale,btnpos.Y.Offset)
- local scale = Flybutton.Position.X.Scale
- local number = math.floor(scale*9)
- local fly = number
- fly0.Text = tonumber(1+(1*fly))
- end
- end)
- runservice.RenderStepped:Connect(function()--sprint function
- if sprint_db then
- local mousepos = uis:GetMouseLocation().X
- local btnpos = sprintbutton.Position
- local framesize = SprintSlideBar.AbsoluteSize.X
- local framepos = SprintSlideBar.AbsolutePosition.X
- local pos = snap((mousepos-framepos)/framesize,step)
- percentage = math.clamp(pos,0,1)
- sprintbutton.Position = UDim2.new(percentage,0,btnpos.Y.Scale,btnpos.Y.Offset)
- local scale = sprintbutton.Position.X.Scale
- local number = math.floor(scale*784)
- local sprint = number
- sprint16.Text = tonumber(16+(1*sprint))
- fast = speed16.Text
- end
- end)
- local mouse = game.Players.LocalPlayer:GetMouse()
- local running = false
- function getTool()
- for _, kid in ipairs(script.Parent:GetChildren()) do
- if kid.className == "Tool" then return kid end
- end
- return nil
- end
- mouse.KeyDown:connect(function (key) -- Run function
- key = string.lower(key)
- if string.byte(key) == 48 then
- running = true
- local keyConnection = mouse.KeyUp:connect(function (key)
- if string.byte(key) == 48 then
- running = false
- end
- end)
- for i = 1,5 do
- game.Workspace.CurrentCamera.FieldOfView = (70+(i*2))
- wait()
- end
- fast = sprint16.Text
- repeat wait () until running == false
- keyConnection:disconnect()
- fast = speed16.Text
- for i = 1,5 do
- game.Workspace.CurrentCamera.FieldOfView = (80-(i*2))
- wait()
- end
- end
- end)
- sprintbutton.MouseButton1Down:Connect(function()--speed_bar_button
- sprint_db = true
- local mouse = game.Players.LocalPlayer:GetMouse()
- local running = false
- function getTool()
- for _, kid in ipairs(script.Parent:GetChildren()) do
- if kid.className == "Tool" then return kid end
- end
- return nil
- end
- mouse.KeyDown:connect(function (key) -- Run function
- key = string.lower(key)
- if string.byte(key) == 48 then
- running = true
- local keyConnection = mouse.KeyUp:connect(function (key)
- if string.byte(key) == 48 then
- running = false
- end
- end)
- for i = 1,5 do
- game.Workspace.CurrentCamera.FieldOfView = (70+(i*2))
- wait()
- end
- fast = sprint16.Text
- repeat wait () until running == false
- keyConnection:disconnect()
- fast = speed16.Text
- for i = 1,5 do
- game.Workspace.CurrentCamera.FieldOfView = (80-(i*2))
- wait()
- end
- end
- end)
- end)
- game:GetService("RunService").RenderStepped:connect(function()
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = tonumber(fast)
- end)
- flyspeeds = 0
- local speaker = game:GetService("Players").LocalPlayer
- local chr = game.Players.LocalPlayer.Character
- local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
- local mouse = game.Players.LocalPlayer:GetMouse()
- nowe = false
- mouse.KeyDown:connect(function(key)
- if key:lower() == "f" then
- if nowe == true then
- nowe = false
- speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Climbing,true)
- speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown,true)
- speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying,true)
- speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Freefall,true)
- speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp,true)
- speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping,true)
- speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Landed,true)
- speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Physics,true)
- speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding,true)
- speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,true)
- speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Running,true)
- speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.RunningNoPhysics,true)
- speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated,true)
- speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.StrafingNoPhysics,true)
- speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming,true)
- speaker.Character.Humanoid:ChangeState(Enum.HumanoidStateType.RunningNoPhysics)
- else
- nowe = true
- flyspeeds = fly0.Text
- for i = 1, flyspeeds do
- spawn(function()
- local hb = game:GetService("RunService").Heartbeat
- tpwalking = true
- local chr = game.Players.LocalPlayer.Character
- local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
- while tpwalking and hb:Wait() and chr and hum and hum.Parent do
- if hum.MoveDirection.Magnitude > 0 then
- chr:TranslateBy(hum.MoveDirection)
- end
- end
- end)
- end
- game.Players.LocalPlayer.Character.Animate.Disabled = true
- local Char = game.Players.LocalPlayer.Character
- local Hum = Char:FindFirstChildOfClass("Humanoid") or Char:FindFirstChildOfClass("AnimationController")
- for i,v in next, Hum:GetPlayingAnimationTracks() do
- v:AdjustSpeed(0)
- end
- speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Climbing,false)
- speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown,false)
- speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying,false)
- speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Freefall,false)
- speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp,false)
- speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping,false)
- speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Landed,false)
- speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Physics,false)
- speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding,false)
- speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,false)
- speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Running,false)
- speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.RunningNoPhysics,false)
- speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated,false)
- speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.StrafingNoPhysics,false)
- speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming,false)
- speaker.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Swimming)
- end
- if game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Humanoid").RigType == Enum.HumanoidRigType.R6 then
- local plr = game.Players.LocalPlayer
- local torso = plr.Character.Torso
- local flying = true
- local deb = true
- local ctrl = {f = 0, b = 0, l = 0, r = 0}
- local lastctrl = {f = 0, b = 0, l = 0, r = 0}
- local maxspeed = 50
- local speed = 0
- local bg = Instance.new("BodyGyro", torso)
- bg.P = 9e4
- bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
- bg.cframe = torso.CFrame
- local bv = Instance.new("BodyVelocity", torso)
- bv.velocity = Vector3.new(0,0.1,0)
- bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
- if nowe == true then
- plr.Character.Humanoid.PlatformStand = true
- end
- while nowe == true or game:GetService("Players").LocalPlayer.Character.Humanoid.Health == 0 do
- game:GetService("RunService").RenderStepped:Wait()
- if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
- speed = speed+.5+(speed/maxspeed)
- if speed > maxspeed then
- speed = maxspeed
- end
- elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
- speed = speed-1
- if speed < 0 then
- speed = 0
- end
- end
- if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
- bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
- lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
- elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
- bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
- else
- bv.velocity = Vector3.new(0,0,0)
- end
- -- game.Players.LocalPlayer.Character.Animate.Disabled = true
- bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
- end
- ctrl = {f = 0, b = 0, l = 0, r = 0}
- lastctrl = {f = 0, b = 0, l = 0, r = 0}
- speed = 0
- bg:Destroy()
- bv:Destroy()
- plr.Character.Humanoid.PlatformStand = false
- game.Players.LocalPlayer.Character.Animate.Disabled = false
- tpwalking = false
- else
- local plr = game.Players.LocalPlayer
- local UpperTorso = plr.Character.UpperTorso
- local flying = true
- local deb = true
- local ctrl = {f = 0, b = 0, l = 0, r = 0}
- local lastctrl = {f = 0, b = 0, l = 0, r = 0}
- local maxspeed = 50
- local speed = 0
- local bg = Instance.new("BodyGyro", UpperTorso)
- bg.P = 9e4
- bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
- bg.cframe = UpperTorso.CFrame
- local bv = Instance.new("BodyVelocity", UpperTorso)
- bv.velocity = Vector3.new(0,0.1,0)
- bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
- if nowe == true then
- plr.Character.Humanoid.PlatformStand = true
- end
- while nowe == true or game:GetService("Players").LocalPlayer.Character.Humanoid.Health == 0 do
- wait()
- if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
- speed = speed+.5+(speed/maxspeed)
- if speed > maxspeed then
- speed = maxspeed
- end
- elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
- speed = speed-1
- if speed < 0 then
- speed = 0
- end
- end
- if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
- bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
- lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
- elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
- bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
- else
- bv.velocity = Vector3.new(0,0,0)
- end
- bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
- end
- ctrl = {f = 0, b = 0, l = 0, r = 0}
- lastctrl = {f = 0, b = 0, l = 0, r = 0}
- speed = 0
- bg:Destroy()
- bv:Destroy()
- plr.Character.Humanoid.PlatformStand = false
- game.Players.LocalPlayer.Character.Animate.Disabled = false
- tpwalking = false
- end
- end
- end)
- local tis
- game:GetService("Players").LocalPlayer.CharacterAdded:Connect(function(char)
- wait(0.7)
- game.Players.LocalPlayer.Character.Humanoid.PlatformStand = false
- game.Players.LocalPlayer.Character.Animate.Disabled = false
- end)
- playerImage.Image = content
- PlayerName.Text = player.Name
- local Inf_State = false
- local InfiniteJumpEnabled = false
- local function inf_function()
- if Inf_State == true then
- inf_toogle_cricle:TweenPosition(UDim2.new(0, 34,0, 1), "In", "Linear", 0.2, false)
- Inf_toogle_Frame.BackgroundColor3 = Color3.fromRGB(7, 42, 0)
- InfiniteJumpEnabled = true
- game:GetService("UserInputService").JumpRequest:connect(function()
- if InfiniteJumpEnabled then
- game:GetService"Players".LocalPlayer.Character:FindFirstChildOfClass'Humanoid':ChangeState("Jumping")
- InfiniteJumpEnabled = true
- end
- end)
- else
- inf_toogle_cricle:TweenPosition(UDim2.new(0, 2,0, 1), "Out", "Linear", 0.2, false)
- Inf_toogle_Frame.BackgroundColor3 = Color3.fromRGB(42, 0, 0)
- InfiniteJumpEnabled = false
- game:GetService("UserInputService").JumpRequest:connect(function()
- if InfiniteJumpEnabled then
- game:GetService"Players".LocalPlayer.Character:FindFirstChildOfClass'Humanoid':ChangeState("Jumping")
- end
- end)
- end
- end
- Inf_toogle.MouseButton1Click:Connect(function()
- Inf_State = not Inf_State
- inf_function()
- end)
- local fog_State = false
- local fogend = math.random(1000,3000)
- local bri = 1
- local function fog_function()
- if fog_State == true then
- fog_toogle_cricle:TweenPosition(UDim2.new(0, 34,0, 1), "In", "Linear", 0.2, false)
- Fog_toogle_Frame.BackgroundColor3 = Color3.fromRGB(7, 42, 0)
- fogend = 9999
- bri = 2
- else
- fog_toogle_cricle:TweenPosition(UDim2.new(0, 2,0, 1), "Out", "Linear", 0.2, false)
- Fog_toogle_Frame.BackgroundColor3 = Color3.fromRGB(42, 0, 0)
- fogend = math.random(1000,3000)
- bri = 1
- end
- end
- Fog_toogle.MouseButton1Click:Connect(function()
- fog_State = not fog_State
- fog_function()
- end)
- game.Lighting.Changed:connect(function()
- game.Lighting.FogEnd = fogend
- game.Lighting.Brightness = bri
- end)
- local BTool__ = "Nothing"
- Copy.MouseButton1Click:Connect(function()
- if BTool__ == "Copy" then
- BTool__ = "Nothing"
- Copy.BackgroundColor3 = Color3.fromRGB(42, 0, 0)
- else
- BTool__ = "Copy"
- Copy.BackgroundColor3 = Color3.fromRGB(7, 42, 0)
- Delete.BackgroundColor3 = Color3.fromRGB(42, 0, 0)
- Move.BackgroundColor3 = Color3.fromRGB(42, 0, 0)
- end
- end)
- Move.MouseButton1Click:Connect(function()
- if BTool__ == "Move" then
- BTool__ = "Nothing"
- Move.BackgroundColor3 = Color3.fromRGB(42, 0, 0)
- else
- BTool__ = "Move"
- Copy.BackgroundColor3 = Color3.fromRGB(42, 0, 0)
- Delete.BackgroundColor3 = Color3.fromRGB(42, 0, 0)
- Move.BackgroundColor3 = Color3.fromRGB(7, 42, 0)
- end
- end)
- Delete.MouseButton1Click:Connect(function()
- if BTool__ == "Delete" then
- BTool__ = "Nothing"
- Delete.BackgroundColor3 = Color3.fromRGB(42, 0, 0)
- else
- BTool__ = "Delete"
- Copy.BackgroundColor3 = Color3.fromRGB(42, 0, 0)
- Delete.BackgroundColor3 = Color3.fromRGB(7, 42, 0)
- Move.BackgroundColor3 = Color3.fromRGB(42, 0, 0)
- end
- end)
- local Mouse = game.Players.LocalPlayer:GetMouse()
- local MDown = false
- Mouse.Button1Up:connect(function()
- MDown = false
- end)
- Mouse.Button1Down:connect(function()
- MDown = true
- if BTool__ == "Copy" then
- if Mouse.Target ~= nil then
- Clone = Mouse.Target:clone()
- Clone.Parent = game.Workspace
- end
- end
- if BTool__ == "Delete" then
- if Mouse.Target ~= nil then
- Mouse.Target:remove()
- end
- end
- if BTool__ == "Move" then
- if Mouse.Target ~= nil then
- MoveObject = Mouse.Target
- end
- end
- wait()
- if Clone ~= nil then
- Clone.CanCollide = false
- repeat
- wait()
- SubX = Clone.Size.X/2
- SubY = Clone.Size.Y/2
- SubZ = Clone.Size.Z/2
- Clone.Position = Vector3.new(Mouse.Hit.X - SubX, Mouse.Hit.Y - SubY, Mouse.Hit.Z - SubZ)
- until MDown == false
- Clone.CanCollide = true
- Clone.Position = Clone.Position + Vector3.new(SubX, SubY, SubZ)
- Clone = nil
- end
- if MoveObject ~= nil then
- MoveObject.CanCollide = false
- repeat
- wait()
- SubX = MoveObject.Size.X/2
- SubY = MoveObject.Size.Y/2
- SubZ = MoveObject.Size.Z/2
- MoveObject.Position = Vector3.new(Mouse.Hit.X - SubX, Mouse.Hit.Y - SubY, Mouse.Hit.Z - SubZ)
- until MDown == false
- MoveObject.CanCollide = true
- MoveObject.Position = MoveObject.Position + Vector3.new(SubX, SubY, SubZ)
- MoveObject= nil
- end
- end)
- Thomas.MouseButton1Click:Connect(function()
- local p = game.Players.LocalPlayer.Character
- local weld = Instance.new("Weld",p.Torso)
- weld.Part0 = p.Torso
- local train = Instance.new("Part",p.Torso)
- train.Anchored = true
- train.CanCollide = false
- train.Size = Vector3.new(3,2,6)
- train.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
- weld.Part1 = train
- weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(180),0)
- train.Anchored = false
- local TrainMesh = Instance.new("SpecialMesh",train)
- TrainMesh.MeshType = Enum.MeshType.FileMesh
- TrainMesh.Scale = Vector3.new(0.020,0.020,0.015)
- TrainMesh.MeshId = "rbxassetid://431017802"
- TrainMesh.TextureId = "rbxassetid://431017809"
- local weld2 = Instance.new("Weld",p.Torso)
- weld2.Part0 = p.Torso
- local Smoke = Instance.new("Part",p.Torso)
- Smoke.Anchored = true
- Smoke.CanCollide = false
- Smoke.Size = Vector3.new(1,1,1)
- Smoke.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
- weld2.Part1 = Smoke
- weld2.C1 = CFrame.new(0,-4,3.5)-- * CFrame.Angles(0,math.rad(180),0)
- Smoke.Anchored = false
- Smoke.Transparency = 1;
- local Particle = Instance.new("ParticleEmitter",Smoke)
- Particle.Rate = 50;
- Particle.Speed = NumberRange.new(30,60);
- Particle.VelocitySpread = 4;
- Particle.Texture = "rbxassetid://133619974"
- local Light = Instance.new("SpotLight",train)
- Light.Angle = 45;
- Light.Brightness = 100;
- Light.Face = Enum.NormalId.Back;
- Light.Range = 30;
- p.Humanoid.WalkSpeed = 60;
- for i,v in pairs(p:GetChildren()) do
- if v:IsA("Part") then
- v.Transparency = 1;
- elseif v:IsA("Hat") then
- v:Destroy()
- elseif v:IsA("Model") then
- v:Destroy()
- end
- end
- local function SFX(id) local s=Instance.new("Sound",p.Torso); s.SoundId = "rbxassetid://"..id; s.Volume = 1; return s; end
- train.Touched:connect(function(p)
- if p.Parent then
- if p.Parent:IsA("Model") then
- if game.Players:FindFirstChild(p.Parent.Name) then
- if p.Parent.Name ~= game.Players.LocalPlayer.Name then
- game.Players:FindFirstChild(p.Parent.Name).Character:BreakJoints()
- local Whistle = SFX(475073913)
- Whistle:Play()
- end
- end
- end
- end
- end)
- local Music = SFX(190819252)
- Music.Looped = true;
- wait(1)
- Music:Play();
- end)
- Police.MouseButton1Click:Connect(function()
- ----i didn't made the arrest em original script i just add the avatar.
- Character = game.Players.LocalPlayer.Character
- Player = game.Players.LocalPlayer
- char = Character
- hum = Character.Humanoid
- Torso = Character.Torso
- Head = Character.Head
- char.Shirt.ShirtTemplate = "rbxassetid://1073211165"
- char.Pants.PantsTemplate = "rbxassetid://997496591"
- local BC = char["Body Colors"]
- BC.HeadColor = BrickColor.new("Pastel brown")
- BC.LeftArmColor = BrickColor.new("Pastel brown")
- BC.LeftLegColor = BrickColor.new("Pastel brown")
- BC.RightArmColor = BrickColor.new("Pastel brown")
- BC.RightLegColor = BrickColor.new("Pastel brown")
- BC.TorsoColor = BrickColor.new("Pastel brown")
- char.Head.face.Texture = "rbxassetid://42070872"
- hum.MaxHealth = math.huge
- for i,v in pairs(char:children()) do
- if v:IsA("Hat") then
- v:Destroy()
- end
- end
- for i,v in pairs(char:children()) do
- if v:IsA("Accessory") then
- v:Destroy()
- end
- end
- for i,v in pairs(char:children()) do
- if v:IsA("Hair") then
- v:Destroy()
- end
- end
- --141378828
- Reaper = Instance.new("Model")
- Reaper.Parent = Player.Character
- Reaper.Name = "Reaper"
- rh = Instance.new("Part")
- rh.Parent = Reaper
- rh.BrickColor = BrickColor.new("Really red")
- rh.Locked = true
- rh.CanCollide = false
- mesh = Instance.new("SpecialMesh")
- rh.formFactor = "Symmetric"
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "http://www.roblox.com/asset/?id=1028788"
- mesh.TextureId = "http://www.roblox.com/asset/?id=1081380"
- mesh.Parent = rh
- local weld = Instance.new("Weld")
- weld.Parent = rh
- rh.Transparency = 0
- weld.Part0 = rh
- weld.Part1 = Player.Character.Head
- weld.C0 = weld.C0 * CFrame.new(0,-0.70,0.10)
- local s = Instance.new("Sound",char)
- s.SoundId = "http://www.roblox.com/asset/?id=458157165"
- s.Pitch = 1
- s.Volume = 2
- s.Looped = true
- wait(1)
- s:play()
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Tool0 = Instance.new("Tool")
- Part1 = Instance.new("Part")
- SpecialMesh2 = Instance.new("SpecialMesh")
- Script3 = Instance.new("Script")
- Tool0.Name = "Arrest"
- Tool0.Parent = mas
- Tool0.GripForward = Vector3.new(-0.77155745, 0.462976098, 0.43629396)
- Tool0.GripPos = Vector3.new(0.899999976, 0.5, 0.400000006)
- Tool0.GripRight = Vector3.new(0.632408082, 0.63257581, 0.447110623)
- Tool0.GripUp = Vector3.new(0.0689874813, -0.620887339, 0.780858338)
- Tool0.ToolTip = "Take those skids to gulag!"
- Tool0.CanBeDropped = false
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- Part1.FormFactor = Enum.FormFactor.Custom
- Part1.Size = Vector3.new(2, 2, 2)
- Part1.CFrame = CFrame.new(1.70000003e-05, 1.00001395, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.Position = Vector3.new(1.70000003e-05, 1.00001395, 0)
- SpecialMesh2.Parent = Part1
- SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=88046657"
- SpecialMesh2.Scale = Vector3.new(2, 2, 2)
- SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=88046679"
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- SpecialMesh2.Scale = Vector3.new(2, 2, 2)
- Script3.Parent = Part1
- debounce = false
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 50
- table.insert(cors,sandbox(Script3,function()
- function arrest(hit)
- if hit.Parent ~= nil and hit.Parent:FindFirstChild("Head") ~= nil and hit.Parent.Name ~= game.Players.LocalPlayer.Name and debounce ~= true and hit.Parent.Head:FindFirstChild("ArrestedGui") == nil then
- debounce = true
- num = math.random(1,99)
- local message = Instance.new("Hint",workspace)
- message.Text = hit.Parent.Name.." Has been arrested by "..game.Players.LocalPlayer.Name.."! He or she has to spend "..num.." years in jail!"
- --hit.Parent:Destroy()
- hit.Parent.Humanoid.MaxHealth = math.huge
- print("Godded!")
- a = Instance.new("ForceField", hit.Parent)
- a.Visible = false
- print("FFed!")
- local SOUND = Instance.new("Sound", script.Parent)
- SOUND.SoundId = "rbxassetid://460919688"
- SOUND.Volume = 10
- SOUND:Play()
- BillboardGui0 = Instance.new("BillboardGui")
- TextLabel1 = Instance.new("TextLabel")
- BillboardGui0.Name = "ArrestedGui"
- BillboardGui0.Parent = hit.Parent.Head
- BillboardGui0.Size = UDim2.new(10, 0, 2, 0)
- BillboardGui0.StudsOffset = Vector3.new(0, 3, 0)
- TextLabel1.Name = "Text"
- TextLabel1.Parent = BillboardGui0
- TextLabel1.Transparency = 1
- TextLabel1.Size = UDim2.new(1, 0, 1, 0)
- TextLabel1.Text = hit.Parent.Name.."| Arrested | "..num.. " Years until release"
- TextLabel1.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel1.BackgroundTransparency = 1
- TextLabel1.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- TextLabel1.Font = Enum.Font.ArialBold
- TextLabel1.FontSize = Enum.FontSize.Size48
- TextLabel1.TextColor3 = Color3.new(1, 1, 1)
- TextLabel1.TextScaled = true
- TextLabel1.TextStrokeTransparency = 0
- TextLabel1.TextWrapped = true
- TextLabel1.TextYAlignment = Enum.TextYAlignment.Top
- game:GetService("Debris"):AddItem(SOUND,5)
- game:GetService("Debris"):AddItem(message,5)
- hit.Parent.Humanoid:Destroy()
- --jailtime(hit.Parent)
- wait(3)
- debounce = false
- end
- end
- function jailtime(char)
- for i = num, 0, -1 do
- wait(1)
- TextLabel1.Text = char.Name.."| Arrested | "..i.. " Years until release"
- end
- char.Humanoid.MaxHealth = 100
- print("Godded!")
- char.ForceField:Destroy()
- print("UNFFed!")
- char.Humanoid.PlatformStand = false
- BillboardGui0:Destroy()
- end
- script.Parent.Touched:connect(arrest)
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.Backpack
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- end)
- Spray.MouseButton1Click:Connect(function()
- plr=game:service'Players'.LocalPlayer ch=plr.Character tor,torso,rootpart,rj=ch.Torso,ch.Torso,ch.HumanoidRootPart,ch.HumanoidRootPart.RootJoint m,mouse=plr:GetMouse(),plr:GetMouse() cfn,ang,mr,int=CFrame.new,CFrame.Angles,math.rad,Instance.new clr='White' sz=0.2 mag=0.5 undotable={} if ch:findFirstChild("Draw") then ch.Draw:Destroy() end local tube=int("Model",ch) tube.Name='Draw' getSound=function(id) local s=int("Sound",ch.Head) s.Volume=1 s.SoundId=id return s end local spray=getSound('rbxassetid://137065982') spray.Volume=0.5 Weld = function(p0,p1,x,y,z,rx,ry,rz,par) p0.Position = p1.Position local w = Instance.new('Motor',par or p0) w.Part0 = p1 w.Part1 = p0 w.C0 = CFrame.new(x or 0,y or 0,z or 0)*CFrame.Angles(rx or 0,ry or 0,rz or 0) w.MaxVelocity = .1 return w end weld=function(p0,p1,c0) local w=Instance.new("Weld",p0) w.Part0=p0 w.Part1=p1 w.C0=c0 return w end cp=function(parent,color,size,anchored,cancollide) local newp=Instance.new("Part",parent) newp.TopSurface='Smooth' newp.BottomSurface='Smooth' newp.FormFactor="Custom" newp.Material='SmoothPlastic' newp.BrickColor=BrickColor.new(color) newp.Size=size newp.Anchored=anchored newp.CanCollide=cancollide newp:BreakJoints() return newp end Tween = function(Weld, Stop, Step,a) ypcall(function() local func = function() local Start = Weld.C1 local X1, Y1, Z1 = Start:toEulerAnglesXYZ() local Stop = Stop local X2, Y2, Z2 = Stop:toEulerAnglesXYZ() for i = 0, 1, Step or .1 do Weld.C1 = CFrame.new( (Start.p.X * (1 - i)) + (Stop.p.X * i), (Start.p.Y * (1 - i)) + (Stop.p.Y * i), (Start.p.Z * (1 - i)) + (Stop.p.Z * i)) * CFrame.fromEulerAnglesXYZ( (X1 * (1 - i)) + (X2 * i), (Y1 * (1 - i)) + (Y2 * i), (Z1 * (1 - i)) + (Z2 * i) ) wait() end Weld.C1 = Stop end if a then coroutine.wrap(func)() else func() end end) end cyl=function(prt) local c=int("CylinderMesh",prt) return c end blo=function(prt) local c=int("BlockMesh",prt) return c end rabr = cp(tube,'White',Vector3.new(1,1,1),false,false) rabr.Transparency = 1 rabr.Name='Locker' rabr.Position = torso.Position rw = Weld(rabr,torso,1.5,.5,0,0,0,0) rw.Parent = tube rw.Name = 'rw' w = Instance.new("Weld",tube) w.Part0,w.Part1 = ch['Right Arm'],rabr w.C1 = CFrame.new(0,-.5,0) mh=cp(tube,"White",Vector3.new(0.6,1,0.6)) cyl(mh) mw=weld(ch['Right Arm'],mh,cfn(0,-1,0)*ang(mr(-90),0,0)) mha=cp(tube,"Really black",Vector3.new(0.6,0.2,0.6)) cyl(mha).Scale=Vector3.new(0.85,1,0.85) weld(mh,mha,cfn(0,0.6,0)) local pz=cp(tube,"White",Vector3.new(0.6,0.2,0.6)) cyl(pz).Scale=Vector3.new(0.9,0.4,0.9) weld(mha,pz,cfn(0,0,0)) local p=cp(tube,"Dark stone grey",Vector3.new(0.6,0.2,0.6)) cyl(p).Scale=Vector3.new(0.95,0.4,0.95) weld(mh,p,cfn(0,0.5,0)) local pa=cp(tube,"Dark stone grey",Vector3.new(0.6,0.3,0.6)) pa.Material='Plastic' cyl(pa).Scale=Vector3.new(1.1,1,1.1) weld(mh,pa,cfn(0,0,0)) local p=cp(tube,"Really black",Vector3.new(0.6,0.2,0.6)) p.Material='Plastic' cyl(p).Scale=Vector3.new(1.05,0.4,1.05) weld(pa,p,cfn(0,0.18,0)) local p=cp(tube,"Really black",Vector3.new(0.6,0.2,0.6)) p.Material='Plastic' cyl(p).Scale=Vector3.new(1.05,0.4,1.05) weld(pa,p,cfn(0,-0.18,0)) mha2=cp(tube,"White",Vector3.new(0.2,0.2,0.2)) cyl(mha2).Scale=Vector3.new(1,1,1) weld(mha,mha2,cfn(0,0,-0.3)*ang(mr(-90),0,0)) mha2b=cp(tube,"Really black",Vector3.new(0.2,0.2,0.2)) cyl(mha2b).Scale=Vector3.new(0.9,1.02,0.9) weld(mha2,mha2b,cfn(0,0,0)*ang(0,0,0)) local filtr=int("Model",ch) filtr.Name='TargetFilter' m.TargetFilter=filtr drawLine=function(point_a,point_b,bc_code) local dist=(point_a-point_b).magnitude; local rad=dist/2; local line=Instance.new('Part',filtr) line.Anchored=true; line.FormFactor='Custom'; line.Transparency=0.4 line.Color=BrickColor.new(bc_code).Color; line.CanCollide=false; line.Size=Vector3.new(sz,.1,dist); Instance.new("BlockMesh",line).Name='blok' line.CFrame=CFrame.new(point_a,point_b)*CFrame.new(0,0,-rad); return line; end; draw=false mha3=nil m.Button1Down:connect(function() if sheathed==false then for _,v in pairs(undotable) do ypcall(function() for i=1,10 do table.remove(undotable,_) end end) table.remove(undotable,_) end draw=true spray.Looped=true spray:Play() mha3=cp(tube,clr,Vector3.new(0.2,0.2,0.2),true,false) cyl(mha3).Scale=Vector3.new(1,1,1) position=m.Hit game:service'RunService'.RenderStepped:connect(function() position=m.Hit local distance = (position.p - mha2.CFrame.p).magnitude mha3.Size=Vector3.new(0.2,distance,02) mha3.CFrame=CFrame.new(position.p, mha2.CFrame.p) * CFrame.new(0, 0, -distance/2)*ang(mr(-90),0,0) end) end end) m.Button1Up:connect(function() spray:Stop() spray.Looped=false draw=false ypcall(function() mha3:Destroy() end) end) plr.Chatted:connect(function(chat) if chat:sub(1,4)=='clr;' and sheathed==false then ypcall(function() clr=string.sub(chat,5) mh.BrickColor=BrickColor.new(clr) pz.BrickColor=BrickColor.new(clr) Tween(rw,cfn()*ang(mr(-110),mr(-20),mr(-10)),0.3) Tween(rw,cfn()*ang(mr(-90),mr(-20),mr(-10)),0.3) Tween(rw,cfn()*ang(mr(-110),mr(-20),mr(-10)),0.3) Tween(rw,cfn()*ang(mr(-90),mr(-20),mr(-10)),0.3) end) elseif chat:sub(1,3)=='sz;' then sz=tonumber(string.sub(chat,4)) elseif chat:sub(1,4)=='mag;' then mag=tonumber(string.sub(chat,5)) end end) tttable={} sheathed=false m.KeyUp:connect(function(key) if key=='z' then for i=1,10 do for _,v in pairs(undotable) do v:Destroy() table.remove(undotable,_) end end elseif key=='c' then for i=1,10 do for _,v in pairs(tttable) do ypcall(function() v:Destroy() end) table.remove(tttable,_) end end elseif key=='e' and sheathed==false then clr=tostring(BrickColor.Random()) mh.BrickColor=BrickColor.new(clr) pz.BrickColor=BrickColor.new(clr) Tween(rw,cfn()*ang(mr(-110),mr(-20),mr(-10)),0.3) Tween(rw,cfn()*ang(mr(-90),mr(-20),mr(-10)),0.3) Tween(rw,cfn()*ang(mr(-110),mr(-20),mr(-10)),0.3) Tween(rw,cfn()*ang(mr(-90),mr(-20),mr(-10)),0.3) elseif key=='q' and sheathed==false then Tween(rw,cfn()*ang(0,0,0),0.2) mw:Destroy() mw=weld(torso,mh,CFrame.new(1.3,-1.6,0.16)*ang(math.rad(-30),0,0)) rabr:Destroy() w:Destroy() labr:Destroy() ww:Destroy() sheathed=true elseif key=='q' and sheathed==true then mw:Destroy() ypcall(function() mw:Destroy() end) mw=weld(ch['Right Arm'],mh,cfn(0,-1,0)*ang(mr(-90),0,0)) rabr = cp(tube,'White',Vector3.new(1,1,1),false,false) rabr.Transparency = 1 rabr.Name='Locker' rabr.Position = torso.Position rw = Weld(rabr,torso,1.5,.5,0,0,0,0) rw.Parent = tube rw.Name = 'rw' w = Instance.new("Weld",tube) w.Part0,w.Part1 = ch['Right Arm'],rabr w.C1 = CFrame.new(0,-.5,0) Tween(rw,cfn()*ang(mr(-90),mr(-20),mr(-10))) sheathed=false end end) Tween(rw,cfn()*ang(mr(-90),mr(-20),mr(-10))) last=m.Hit game:service'RunService'.RenderStepped:connect(function() if draw==false then last=m.Hit Tween(rw,cfn()*ang(mr(-70),mr(-40),0),0.02) Tween(rw,cfn()*ang(mr(-60),mr(-30),0),0.02) else ypcall(function() if m.Target and m.Target.Parent and m.Target.Parent:findFirstChild('Humanoid') then m.Target.Parent.Humanoid:TakeDamage(1) end end) coroutine.resume(coroutine.create(function() if m.Hit and m.Target then local c=m.Hit local m=(c.p-last.p).magnitude; if(m>mag)then local l=drawLine(last.p,c.p,clr); Instance.new("PointLight",l).Color=l.BrickColor.Color l.Material='Neon' table.insert(undotable,l) table.insert(tttable,l) last=c; end; end end)); end end) --hl/https://httpget-inumeration.c9.io/spraycan.lua
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement