Advertisement
xDavid673x

localplayer

Aug 2nd, 2022
1,100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 35.95 KB | None | 0 0
  1. Frame.Draggable = true
  2. Frame.Selectable = true
  3. Frame.Active = true
  4.  
  5. local fast = 16
  6. local player = game:GetService("Players").LocalPlayer
  7. local uis = game:GetService("UserInputService")
  8. local runservice = game:GetService("RunService")
  9. local run_db = false
  10. local jump_db = false
  11. local sprint_db = false
  12. local fly_db = false
  13. local step = 0.01
  14. local percentage = 0
  15. local userID = player.UserId
  16. local thumtype = Enum.ThumbnailType.AvatarBust
  17. local thumsize = Enum.ThumbnailSize.Size420x420
  18. local content = game.Players:GetUserThumbnailAsync(userID, thumtype , thumsize)
  19. local flyspeeds = fly0.Text
  20. local tpwalking = false
  21. local function beginSprint(input, gameprocessed)
  22.     if not gameprocessed then
  23.         if input.UerInputType == Enum.UserInputType.Keyboard then
  24.             local keycode = input.KeyCode
  25.             if keycode == Enum.KeyCode.LeftShift then
  26.                 game:GetService("RunService").RenderStepped:connect(function()
  27.                     game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = tonumber(sprint16.Text)
  28.                 end)
  29.             end
  30.         end
  31.     end
  32. end
  33. local function EndSprint(input, gameprocessed)
  34.     if not gameprocessed then
  35.         if input.UerInputType == Enum.UserInputType.Keyboard then
  36.             local keycode = input.KeyCode
  37.             if keycode == Enum.KeyCode.LeftShift then
  38.                 game:GetService("RunService").RenderStepped:connect(function()
  39.                     game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = tonumber(speed16.Text)
  40.                 end)
  41.             end
  42.         end
  43.     end
  44. end
  45.  
  46. function snap(number,factor)
  47.     if factor == 0  then
  48.         return number
  49.     else
  50.         return math.floor(number/factor+0.5)*factor
  51.     end
  52. end
  53.  
  54. uis.InputEnded:Connect(function(input)
  55.     if input.UserInputType == Enum.UserInputType.MouseButton1 then
  56.         run_db = false
  57.         jump_db = false
  58.         sprint_db = false
  59.         fly_db = false
  60.     end
  61. end)
  62.  
  63. speedbutton.MouseButton1Down:Connect(function()--speed_bar_button
  64.     run_db = true
  65. end)
  66.  
  67. jumpbutton.MouseButton1Down:Connect(function()--speed_bar_button
  68.     jump_db = true
  69. end)
  70.  
  71. Flybutton.MouseButton1Down:Connect(function()--speed_bar_button
  72.     fly_db = true
  73.     flyspeeds = fly0.Text
  74.     if nowe == true then
  75.  
  76.  
  77.         tpwalking = false
  78.         for i = 1, flyspeeds do
  79.             spawn(function()
  80.  
  81.                 local hb = game:GetService("RunService").Heartbeat 
  82.  
  83.  
  84.                 tpwalking = true
  85.                 local chr = game.Players.LocalPlayer.Character
  86.                 local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
  87.                 while tpwalking and hb:Wait() and chr and hum and hum.Parent do
  88.                     if hum.MoveDirection.Magnitude > 0 then
  89.                         chr:TranslateBy(hum.MoveDirection)
  90.                     end
  91.                 end
  92.  
  93.             end)
  94.         end
  95.     end
  96.     fly_db = true
  97.     flyspeeds = fly0.Text
  98.     if nowe == true then
  99.  
  100.  
  101.         tpwalking = false
  102.         for i = 1, flyspeeds do
  103.             spawn(function()
  104.  
  105.                 local hb = game:GetService("RunService").Heartbeat 
  106.  
  107.  
  108.                 tpwalking = true
  109.                 local chr = game.Players.LocalPlayer.Character
  110.                 local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
  111.                 while tpwalking and hb:Wait() and chr and hum and hum.Parent do
  112.                     if hum.MoveDirection.Magnitude > 0 then
  113.                         chr:TranslateBy(hum.MoveDirection)
  114.                     end
  115.                 end
  116.  
  117.             end)
  118.         end
  119.     end
  120. end)
  121.  
  122. runservice.RenderStepped:Connect(function()--speed function
  123.     if run_db then
  124.         local mousepos = uis:GetMouseLocation().X
  125.         local btnpos = speedbutton.Position
  126.         local framesize = SpeedSlideBar.AbsoluteSize.X
  127.         local framepos = SpeedSlideBar.AbsolutePosition.X
  128.         local pos = snap((mousepos-framepos)/framesize,step)
  129.         percentage = math.clamp(pos,0,1)
  130.         speedbutton.Position = UDim2.new(percentage,0,btnpos.Y.Scale,btnpos.Y.Offset)
  131.         local scale = speedbutton.Position.X.Scale
  132.         local number = math.floor(scale*484)
  133.         local speed = number
  134.         speed16.Text = tonumber(16+(1*speed))
  135.         fast = speed16.Text
  136.     end
  137. end)
  138.  
  139. runservice.RenderStepped:Connect(function()--jump function
  140.     if jump_db then
  141.         local mousepos = uis:GetMouseLocation().X
  142.         local btnpos = jumpbutton.Position
  143.         local framesize = JumpSlideBar.AbsoluteSize.X
  144.         local framepos = JumpSlideBar.AbsolutePosition.X
  145.         local pos = snap((mousepos-framepos)/framesize,step)
  146.         percentage = math.clamp(pos,0,1)
  147.         jumpbutton.Position = UDim2.new(percentage,0,btnpos.Y.Scale,btnpos.Y.Offset)
  148.         local scale = jumpbutton.Position.X.Scale
  149.         local number = math.floor(scale*450)
  150.         local jump = number
  151.         jump50.Text = tonumber(50+(1*jump))
  152.         game.Players.LocalPlayer.Character.Humanoid.JumpPower = tonumber(jump50.Text)
  153.     end
  154. end)
  155.  
  156. runservice.RenderStepped:Connect(function()--fly function
  157.     if fly_db then
  158.         local mousepos = uis:GetMouseLocation().X
  159.         local btnpos = Flybutton.Position
  160.         local framesize = FlySlideBar.AbsoluteSize.X
  161.         local framepos = FlySlideBar.AbsolutePosition.X
  162.         local pos = snap((mousepos-framepos)/framesize,step)
  163.         percentage = math.clamp(pos,0,1)
  164.         Flybutton.Position = UDim2.new(percentage,0,btnpos.Y.Scale,btnpos.Y.Offset)
  165.         local scale = Flybutton.Position.X.Scale
  166.         local number = math.floor(scale*9)
  167.         local fly = number
  168.         fly0.Text = tonumber(1+(1*fly))
  169.     end
  170. end)
  171.  
  172. runservice.RenderStepped:Connect(function()--sprint function
  173.     if sprint_db then
  174.         local mousepos = uis:GetMouseLocation().X
  175.         local btnpos = sprintbutton.Position
  176.         local framesize = SprintSlideBar.AbsoluteSize.X
  177.         local framepos = SprintSlideBar.AbsolutePosition.X
  178.         local pos = snap((mousepos-framepos)/framesize,step)
  179.         percentage = math.clamp(pos,0,1)
  180.         sprintbutton.Position = UDim2.new(percentage,0,btnpos.Y.Scale,btnpos.Y.Offset)
  181.         local scale = sprintbutton.Position.X.Scale
  182.         local number = math.floor(scale*784)
  183.         local sprint = number
  184.         sprint16.Text = tonumber(16+(1*sprint))
  185.         fast = speed16.Text
  186.     end
  187. end)
  188.  
  189. local mouse = game.Players.LocalPlayer:GetMouse()
  190. local running = false
  191.  
  192. function getTool()
  193.     for _, kid in ipairs(script.Parent:GetChildren()) do
  194.         if kid.className == "Tool" then return kid end
  195.     end
  196.     return nil
  197. end
  198.  
  199.  
  200. mouse.KeyDown:connect(function (key) -- Run function
  201.     key = string.lower(key)
  202.     if string.byte(key) == 48 then
  203.         running = true
  204.         local keyConnection = mouse.KeyUp:connect(function (key)
  205.             if string.byte(key) == 48 then
  206.                 running = false
  207.             end
  208.         end)
  209.         for i = 1,5 do
  210.             game.Workspace.CurrentCamera.FieldOfView = (70+(i*2))
  211.             wait()
  212.         end
  213.         fast = sprint16.Text
  214.         repeat wait () until running == false
  215.         keyConnection:disconnect()
  216.         fast = speed16.Text
  217.         for i = 1,5 do
  218.             game.Workspace.CurrentCamera.FieldOfView = (80-(i*2))
  219.             wait()
  220.         end
  221.     end
  222. end)
  223.  
  224. sprintbutton.MouseButton1Down:Connect(function()--speed_bar_button
  225.     sprint_db = true
  226.  
  227.     local mouse = game.Players.LocalPlayer:GetMouse()
  228.     local running = false
  229.  
  230.     function getTool()
  231.         for _, kid in ipairs(script.Parent:GetChildren()) do
  232.             if kid.className == "Tool" then return kid end
  233.         end
  234.         return nil
  235.     end
  236.  
  237.  
  238.     mouse.KeyDown:connect(function (key) -- Run function
  239.         key = string.lower(key)
  240.         if string.byte(key) == 48 then
  241.             running = true
  242.             local keyConnection = mouse.KeyUp:connect(function (key)
  243.                 if string.byte(key) == 48 then
  244.                     running = false
  245.                 end
  246.             end)
  247.             for i = 1,5 do
  248.                 game.Workspace.CurrentCamera.FieldOfView = (70+(i*2))
  249.                 wait()
  250.             end
  251.             fast = sprint16.Text
  252.             repeat wait () until running == false
  253.             keyConnection:disconnect()
  254.             fast = speed16.Text
  255.             for i = 1,5 do
  256.                 game.Workspace.CurrentCamera.FieldOfView = (80-(i*2))
  257.                 wait()
  258.             end
  259.         end
  260.     end)
  261. end)
  262.  
  263. game:GetService("RunService").RenderStepped:connect(function()
  264.     game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = tonumber(fast)
  265. end)
  266.  
  267. flyspeeds = 0
  268.  
  269. local speaker = game:GetService("Players").LocalPlayer
  270.  
  271. local chr = game.Players.LocalPlayer.Character
  272. local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
  273. local mouse = game.Players.LocalPlayer:GetMouse()
  274.  
  275. nowe = false
  276.  
  277. mouse.KeyDown:connect(function(key)
  278.     if key:lower() == "f" then
  279.         if nowe == true then
  280.             nowe = false
  281.  
  282.             speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Climbing,true)
  283.             speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown,true)
  284.             speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying,true)
  285.             speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Freefall,true)
  286.             speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp,true)
  287.             speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping,true)
  288.             speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Landed,true)
  289.             speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Physics,true)
  290.             speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding,true)
  291.             speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,true)
  292.             speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Running,true)
  293.             speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.RunningNoPhysics,true)
  294.             speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated,true)
  295.             speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.StrafingNoPhysics,true)
  296.             speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming,true)
  297.             speaker.Character.Humanoid:ChangeState(Enum.HumanoidStateType.RunningNoPhysics)
  298.         else
  299.             nowe = true
  300.             flyspeeds = fly0.Text
  301.             for i = 1, flyspeeds do
  302.                 spawn(function()
  303.  
  304.                     local hb = game:GetService("RunService").Heartbeat 
  305.  
  306.  
  307.                     tpwalking = true
  308.                     local chr = game.Players.LocalPlayer.Character
  309.                     local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
  310.                     while tpwalking and hb:Wait() and chr and hum and hum.Parent do
  311.                         if hum.MoveDirection.Magnitude > 0 then
  312.                             chr:TranslateBy(hum.MoveDirection)
  313.                         end
  314.                     end
  315.  
  316.                 end)
  317.             end
  318.             game.Players.LocalPlayer.Character.Animate.Disabled = true
  319.             local Char = game.Players.LocalPlayer.Character
  320.             local Hum = Char:FindFirstChildOfClass("Humanoid") or Char:FindFirstChildOfClass("AnimationController")
  321.  
  322.             for i,v in next, Hum:GetPlayingAnimationTracks() do
  323.                 v:AdjustSpeed(0)
  324.             end
  325.             speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Climbing,false)
  326.             speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown,false)
  327.             speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying,false)
  328.             speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Freefall,false)
  329.             speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp,false)
  330.             speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping,false)
  331.             speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Landed,false)
  332.             speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Physics,false)
  333.             speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding,false)
  334.             speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,false)
  335.             speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Running,false)
  336.             speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.RunningNoPhysics,false)
  337.             speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated,false)
  338.             speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.StrafingNoPhysics,false)
  339.             speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming,false)
  340.             speaker.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Swimming)
  341.         end
  342.  
  343.  
  344.  
  345.  
  346.         if game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Humanoid").RigType == Enum.HumanoidRigType.R6 then
  347.  
  348.  
  349.  
  350.             local plr = game.Players.LocalPlayer
  351.             local torso = plr.Character.Torso
  352.             local flying = true
  353.             local deb = true
  354.             local ctrl = {f = 0, b = 0, l = 0, r = 0}
  355.             local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  356.             local maxspeed = 50
  357.             local speed = 0
  358.  
  359.  
  360.             local bg = Instance.new("BodyGyro", torso)
  361.             bg.P = 9e4
  362.             bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  363.             bg.cframe = torso.CFrame
  364.             local bv = Instance.new("BodyVelocity", torso)
  365.             bv.velocity = Vector3.new(0,0.1,0)
  366.             bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  367.             if nowe == true then
  368.                 plr.Character.Humanoid.PlatformStand = true
  369.             end
  370.             while nowe == true or game:GetService("Players").LocalPlayer.Character.Humanoid.Health == 0 do
  371.                 game:GetService("RunService").RenderStepped:Wait()
  372.  
  373.                 if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  374.                     speed = speed+.5+(speed/maxspeed)
  375.                     if speed > maxspeed then
  376.                         speed = maxspeed
  377.                     end
  378.                 elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  379.                     speed = speed-1
  380.                     if speed < 0 then
  381.                         speed = 0
  382.                     end
  383.                 end
  384.                 if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  385.                     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
  386.                     lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  387.                 elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  388.                     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
  389.                 else
  390.                     bv.velocity = Vector3.new(0,0,0)
  391.                 end
  392.                 --  game.Players.LocalPlayer.Character.Animate.Disabled = true
  393.                 bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  394.             end
  395.             ctrl = {f = 0, b = 0, l = 0, r = 0}
  396.             lastctrl = {f = 0, b = 0, l = 0, r = 0}
  397.             speed = 0
  398.             bg:Destroy()
  399.             bv:Destroy()
  400.             plr.Character.Humanoid.PlatformStand = false
  401.             game.Players.LocalPlayer.Character.Animate.Disabled = false
  402.             tpwalking = false
  403.  
  404.  
  405.  
  406.  
  407.         else
  408.             local plr = game.Players.LocalPlayer
  409.             local UpperTorso = plr.Character.UpperTorso
  410.             local flying = true
  411.             local deb = true
  412.             local ctrl = {f = 0, b = 0, l = 0, r = 0}
  413.             local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  414.             local maxspeed = 50
  415.             local speed = 0
  416.  
  417.  
  418.             local bg = Instance.new("BodyGyro", UpperTorso)
  419.             bg.P = 9e4
  420.             bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  421.             bg.cframe = UpperTorso.CFrame
  422.             local bv = Instance.new("BodyVelocity", UpperTorso)
  423.             bv.velocity = Vector3.new(0,0.1,0)
  424.             bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  425.             if nowe == true then
  426.                 plr.Character.Humanoid.PlatformStand = true
  427.             end
  428.             while nowe == true or game:GetService("Players").LocalPlayer.Character.Humanoid.Health == 0 do
  429.                 wait()
  430.  
  431.                 if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  432.                     speed = speed+.5+(speed/maxspeed)
  433.                     if speed > maxspeed then
  434.                         speed = maxspeed
  435.                     end
  436.                 elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  437.                     speed = speed-1
  438.                     if speed < 0 then
  439.                         speed = 0
  440.                     end
  441.                 end
  442.                 if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  443.                     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
  444.                     lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  445.                 elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  446.                     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
  447.                 else
  448.                     bv.velocity = Vector3.new(0,0,0)
  449.                 end
  450.  
  451.                 bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  452.             end
  453.             ctrl = {f = 0, b = 0, l = 0, r = 0}
  454.             lastctrl = {f = 0, b = 0, l = 0, r = 0}
  455.             speed = 0
  456.             bg:Destroy()
  457.             bv:Destroy()
  458.             plr.Character.Humanoid.PlatformStand = false
  459.             game.Players.LocalPlayer.Character.Animate.Disabled = false
  460.             tpwalking = false
  461.  
  462.  
  463.  
  464.         end
  465.  
  466.  
  467.  
  468.     end
  469.  
  470. end)
  471.  
  472. local tis
  473.  
  474. game:GetService("Players").LocalPlayer.CharacterAdded:Connect(function(char)
  475.     wait(0.7)
  476.     game.Players.LocalPlayer.Character.Humanoid.PlatformStand = false
  477.     game.Players.LocalPlayer.Character.Animate.Disabled = false
  478.  
  479. end)
  480.  
  481. playerImage.Image = content
  482. PlayerName.Text = player.Name
  483.  
  484. local Inf_State = false
  485. local InfiniteJumpEnabled = false
  486.  
  487. local function inf_function()
  488.     if Inf_State == true then
  489.         inf_toogle_cricle:TweenPosition(UDim2.new(0, 34,0, 1), "In", "Linear", 0.2, false)
  490.         Inf_toogle_Frame.BackgroundColor3 = Color3.fromRGB(7, 42, 0)
  491.         InfiniteJumpEnabled = true
  492.         game:GetService("UserInputService").JumpRequest:connect(function()
  493.             if InfiniteJumpEnabled then
  494.                 game:GetService"Players".LocalPlayer.Character:FindFirstChildOfClass'Humanoid':ChangeState("Jumping")
  495.                 InfiniteJumpEnabled = true
  496.             end
  497.         end)
  498.     else
  499.         inf_toogle_cricle:TweenPosition(UDim2.new(0, 2,0, 1), "Out", "Linear", 0.2, false)
  500.         Inf_toogle_Frame.BackgroundColor3 = Color3.fromRGB(42, 0, 0)
  501.         InfiniteJumpEnabled = false
  502.         game:GetService("UserInputService").JumpRequest:connect(function()
  503.             if InfiniteJumpEnabled then
  504.                 game:GetService"Players".LocalPlayer.Character:FindFirstChildOfClass'Humanoid':ChangeState("Jumping")
  505.             end
  506.         end)
  507.     end
  508. end
  509.  
  510. Inf_toogle.MouseButton1Click:Connect(function()
  511.     Inf_State = not Inf_State
  512.     inf_function()
  513. end)
  514.  
  515. local fog_State = false
  516. local fogend = math.random(1000,3000)
  517. local bri = 1
  518.  
  519. local function fog_function()
  520.     if fog_State == true then
  521.         fog_toogle_cricle:TweenPosition(UDim2.new(0, 34,0, 1), "In", "Linear", 0.2, false)
  522.         Fog_toogle_Frame.BackgroundColor3 = Color3.fromRGB(7, 42, 0)
  523.         fogend = 9999
  524.         bri = 2
  525.     else
  526.         fog_toogle_cricle:TweenPosition(UDim2.new(0, 2,0, 1), "Out", "Linear", 0.2, false)
  527.         Fog_toogle_Frame.BackgroundColor3 = Color3.fromRGB(42, 0, 0)
  528.         fogend = math.random(1000,3000)
  529.         bri = 1
  530.     end
  531. end
  532.  
  533. Fog_toogle.MouseButton1Click:Connect(function()
  534.     fog_State = not fog_State
  535.     fog_function()
  536. end)
  537.  
  538. game.Lighting.Changed:connect(function()
  539.     game.Lighting.FogEnd = fogend
  540.     game.Lighting.Brightness = bri
  541. end)
  542.  
  543. local BTool__ = "Nothing"
  544.  
  545. Copy.MouseButton1Click:Connect(function()
  546.     if BTool__ == "Copy" then
  547.         BTool__ = "Nothing"
  548.         Copy.BackgroundColor3 = Color3.fromRGB(42, 0, 0)
  549.     else
  550.         BTool__ = "Copy"
  551.         Copy.BackgroundColor3 = Color3.fromRGB(7, 42, 0)
  552.         Delete.BackgroundColor3 = Color3.fromRGB(42, 0, 0)
  553.         Move.BackgroundColor3 = Color3.fromRGB(42, 0, 0)
  554.     end
  555. end)
  556.  
  557. Move.MouseButton1Click:Connect(function()
  558.     if BTool__ == "Move" then
  559.         BTool__ = "Nothing"
  560.         Move.BackgroundColor3 = Color3.fromRGB(42, 0, 0)
  561.     else
  562.         BTool__ = "Move"
  563.         Copy.BackgroundColor3 = Color3.fromRGB(42, 0, 0)
  564.         Delete.BackgroundColor3 = Color3.fromRGB(42, 0, 0)
  565.         Move.BackgroundColor3 = Color3.fromRGB(7, 42, 0)
  566.     end
  567. end)
  568.  
  569. Delete.MouseButton1Click:Connect(function()
  570.     if BTool__ == "Delete" then
  571.         BTool__ = "Nothing"
  572.         Delete.BackgroundColor3 = Color3.fromRGB(42, 0, 0)
  573.     else
  574.         BTool__ = "Delete"
  575.         Copy.BackgroundColor3 = Color3.fromRGB(42, 0, 0)
  576.         Delete.BackgroundColor3 = Color3.fromRGB(7, 42, 0)
  577.         Move.BackgroundColor3 = Color3.fromRGB(42, 0, 0)
  578.     end
  579. end)
  580.  
  581. local Mouse = game.Players.LocalPlayer:GetMouse()
  582. local MDown = false
  583.  
  584. Mouse.Button1Up:connect(function()
  585.     MDown = false
  586. end)
  587.  
  588. Mouse.Button1Down:connect(function()
  589.     MDown = true
  590.     if BTool__ == "Copy" then
  591.         if Mouse.Target ~= nil then
  592.             Clone = Mouse.Target:clone()
  593.             Clone.Parent = game.Workspace
  594.         end
  595.     end
  596.  
  597.     if BTool__ == "Delete" then
  598.         if Mouse.Target ~= nil then
  599.             Mouse.Target:remove()
  600.         end
  601.     end
  602.  
  603.     if BTool__ == "Move" then
  604.         if Mouse.Target ~= nil then
  605.             MoveObject = Mouse.Target
  606.         end
  607.     end
  608.  
  609.     wait()
  610.     if Clone ~= nil then
  611.         Clone.CanCollide = false
  612.         repeat
  613.             wait()
  614.             SubX = Clone.Size.X/2
  615.             SubY = Clone.Size.Y/2
  616.             SubZ = Clone.Size.Z/2
  617.             Clone.Position = Vector3.new(Mouse.Hit.X - SubX, Mouse.Hit.Y - SubY, Mouse.Hit.Z - SubZ)
  618.         until MDown == false
  619.         Clone.CanCollide = true
  620.         Clone.Position = Clone.Position + Vector3.new(SubX, SubY, SubZ)
  621.         Clone = nil
  622.     end
  623.  
  624.     if MoveObject ~= nil then
  625.         MoveObject.CanCollide = false
  626.         repeat
  627.             wait()
  628.             SubX = MoveObject.Size.X/2
  629.             SubY = MoveObject.Size.Y/2
  630.             SubZ = MoveObject.Size.Z/2
  631.             MoveObject.Position = Vector3.new(Mouse.Hit.X - SubX, Mouse.Hit.Y - SubY, Mouse.Hit.Z - SubZ)
  632.         until MDown == false
  633.         MoveObject.CanCollide = true
  634.         MoveObject.Position =  MoveObject.Position + Vector3.new(SubX, SubY, SubZ)
  635.         MoveObject= nil
  636.     end
  637. end)
  638.  
  639. Thomas.MouseButton1Click:Connect(function()
  640.     local p = game.Players.LocalPlayer.Character
  641.     local weld = Instance.new("Weld",p.Torso)
  642.     weld.Part0 = p.Torso
  643.  
  644.     local train = Instance.new("Part",p.Torso)
  645.     train.Anchored = true
  646.     train.CanCollide = false
  647.     train.Size = Vector3.new(3,2,6)
  648.     train.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  649.     weld.Part1 = train
  650.     weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(180),0)
  651.     train.Anchored = false
  652.     local TrainMesh = Instance.new("SpecialMesh",train)
  653.     TrainMesh.MeshType = Enum.MeshType.FileMesh
  654.     TrainMesh.Scale = Vector3.new(0.020,0.020,0.015)
  655.     TrainMesh.MeshId = "rbxassetid://431017802"
  656.     TrainMesh.TextureId = "rbxassetid://431017809"
  657.  
  658.  
  659.     local weld2 = Instance.new("Weld",p.Torso)
  660.     weld2.Part0 = p.Torso
  661.     local Smoke = Instance.new("Part",p.Torso)
  662.     Smoke.Anchored = true
  663.     Smoke.CanCollide = false
  664.     Smoke.Size = Vector3.new(1,1,1)
  665.     Smoke.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  666.     weld2.Part1 = Smoke
  667.     weld2.C1 = CFrame.new(0,-4,3.5)-- * CFrame.Angles(0,math.rad(180),0)
  668.     Smoke.Anchored = false
  669.     Smoke.Transparency = 1;
  670.  
  671.     local Particle = Instance.new("ParticleEmitter",Smoke)
  672.     Particle.Rate = 50;
  673.     Particle.Speed = NumberRange.new(30,60);
  674.     Particle.VelocitySpread = 4;
  675.     Particle.Texture = "rbxassetid://133619974"
  676.  
  677.     local Light = Instance.new("SpotLight",train)
  678.     Light.Angle = 45;
  679.     Light.Brightness = 100;
  680.     Light.Face = Enum.NormalId.Back;
  681.     Light.Range = 30;
  682.  
  683.     p.Humanoid.WalkSpeed = 60;
  684.  
  685.  
  686.     for i,v in pairs(p:GetChildren()) do
  687.         if v:IsA("Part") then
  688.             v.Transparency = 1;
  689.         elseif v:IsA("Hat") then
  690.             v:Destroy()
  691.         elseif v:IsA("Model") then
  692.             v:Destroy()
  693.         end
  694.     end
  695.  
  696.     local function SFX(id) local s=Instance.new("Sound",p.Torso); s.SoundId = "rbxassetid://"..id; s.Volume = 1; return s; end
  697.     train.Touched:connect(function(p)
  698.         if p.Parent then
  699.             if p.Parent:IsA("Model") then
  700.                 if game.Players:FindFirstChild(p.Parent.Name) then
  701.                     if p.Parent.Name ~= game.Players.LocalPlayer.Name then
  702.                         game.Players:FindFirstChild(p.Parent.Name).Character:BreakJoints()
  703.                         local Whistle = SFX(475073913)
  704.                         Whistle:Play()
  705.                     end
  706.                 end
  707.             end
  708.         end
  709.     end)
  710.  
  711.     local Music = SFX(190819252)
  712.     Music.Looped = true;
  713.     wait(1)
  714.     Music:Play();
  715. end)
  716.  
  717. Police.MouseButton1Click:Connect(function()
  718.     ----i didn't made the arrest em original script i just add the avatar.
  719.     Character = game.Players.LocalPlayer.Character
  720.     Player = game.Players.LocalPlayer
  721.     char = Character
  722.     hum = Character.Humanoid
  723.     Torso = Character.Torso
  724.     Head = Character.Head
  725.  
  726.     char.Shirt.ShirtTemplate = "rbxassetid://1073211165"
  727.     char.Pants.PantsTemplate = "rbxassetid://997496591"
  728.  
  729.  
  730.     local BC = char["Body Colors"]
  731.     BC.HeadColor = BrickColor.new("Pastel brown")
  732.     BC.LeftArmColor = BrickColor.new("Pastel brown")
  733.     BC.LeftLegColor = BrickColor.new("Pastel brown")
  734.     BC.RightArmColor = BrickColor.new("Pastel brown")
  735.     BC.RightLegColor = BrickColor.new("Pastel brown")
  736.     BC.TorsoColor = BrickColor.new("Pastel brown")
  737.  
  738.     char.Head.face.Texture = "rbxassetid://42070872"
  739.  
  740.     hum.MaxHealth = math.huge
  741.  
  742.  
  743.  
  744.  
  745.     for i,v in pairs(char:children()) do
  746.         if v:IsA("Hat") then
  747.             v:Destroy()
  748.         end
  749.     end
  750.     for i,v in pairs(char:children()) do
  751.         if v:IsA("Accessory") then
  752.             v:Destroy()
  753.         end
  754.     end
  755.     for i,v in pairs(char:children()) do
  756.         if v:IsA("Hair") then
  757.             v:Destroy()
  758.         end
  759.     end
  760.     --141378828
  761.     Reaper = Instance.new("Model")
  762.     Reaper.Parent = Player.Character
  763.     Reaper.Name = "Reaper"
  764.     rh = Instance.new("Part")
  765.     rh.Parent = Reaper
  766.     rh.BrickColor = BrickColor.new("Really red")
  767.     rh.Locked = true
  768.     rh.CanCollide = false
  769.     mesh = Instance.new("SpecialMesh")
  770.     rh.formFactor =  "Symmetric"
  771.     mesh.MeshType = "FileMesh"
  772.     mesh.MeshId = "http://www.roblox.com/asset/?id=1028788"
  773.     mesh.TextureId = "http://www.roblox.com/asset/?id=1081380"
  774.     mesh.Parent = rh
  775.     local weld = Instance.new("Weld")
  776.     weld.Parent = rh
  777.     rh.Transparency = 0
  778.     weld.Part0 = rh
  779.     weld.Part1 = Player.Character.Head
  780.     weld.C0 = weld.C0 * CFrame.new(0,-0.70,0.10)
  781.  
  782.     local s = Instance.new("Sound",char)
  783.     s.SoundId = "http://www.roblox.com/asset/?id=458157165"
  784.     s.Pitch = 1
  785.     s.Volume = 2
  786.     s.Looped = true
  787.     wait(1)
  788.     s:play()
  789.  
  790.  
  791.     function sandbox(var,func)
  792.         local env = getfenv(func)
  793.         local newenv = setmetatable({},{
  794.             __index = function(self,k)
  795.                 if k=="script" then
  796.                     return var
  797.                 else
  798.                     return env[k]
  799.                 end
  800.             end,
  801.         })
  802.         setfenv(func,newenv)
  803.         return func
  804.     end
  805.     cors = {}
  806.     mas = Instance.new("Model",game:GetService("Lighting"))
  807.     Tool0 = Instance.new("Tool")
  808.     Part1 = Instance.new("Part")
  809.     SpecialMesh2 = Instance.new("SpecialMesh")
  810.     Script3 = Instance.new("Script")
  811.     Tool0.Name = "Arrest"
  812.     Tool0.Parent = mas
  813.     Tool0.GripForward = Vector3.new(-0.77155745, 0.462976098, 0.43629396)
  814.     Tool0.GripPos = Vector3.new(0.899999976, 0.5, 0.400000006)
  815.     Tool0.GripRight = Vector3.new(0.632408082, 0.63257581, 0.447110623)
  816.     Tool0.GripUp = Vector3.new(0.0689874813, -0.620887339, 0.780858338)
  817.     Tool0.ToolTip = "Take those skids to gulag!"
  818.     Tool0.CanBeDropped = false
  819.     Part1.Name = "Handle"
  820.     Part1.Parent = Tool0
  821.     Part1.FormFactor = Enum.FormFactor.Custom
  822.     Part1.Size = Vector3.new(2, 2, 2)
  823.     Part1.CFrame = CFrame.new(1.70000003e-05, 1.00001395, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  824.     Part1.Position = Vector3.new(1.70000003e-05, 1.00001395, 0)
  825.     SpecialMesh2.Parent = Part1
  826.     SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=88046657"
  827.     SpecialMesh2.Scale = Vector3.new(2, 2, 2)
  828.     SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=88046679"
  829.     SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  830.     SpecialMesh2.Scale = Vector3.new(2, 2, 2)
  831.     Script3.Parent = Part1
  832.     debounce = false
  833.  
  834.     game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 50
  835.  
  836.     table.insert(cors,sandbox(Script3,function()
  837.         function arrest(hit)
  838.             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
  839.                 debounce = true
  840.                 num = math.random(1,99)
  841.                 local message = Instance.new("Hint",workspace)
  842.                 message.Text = hit.Parent.Name.." Has been arrested by "..game.Players.LocalPlayer.Name.."! He or she has to spend "..num.." years in jail!"
  843.                 --hit.Parent:Destroy()
  844.  
  845.                 hit.Parent.Humanoid.MaxHealth = math.huge
  846.                 print("Godded!")
  847.                 a = Instance.new("ForceField", hit.Parent)
  848.                 a.Visible = false
  849.                 print("FFed!")
  850.  
  851.                 local SOUND = Instance.new("Sound", script.Parent)
  852.                 SOUND.SoundId = "rbxassetid://460919688"
  853.                 SOUND.Volume = 10
  854.                 SOUND:Play()
  855.                 BillboardGui0 = Instance.new("BillboardGui")
  856.                 TextLabel1 = Instance.new("TextLabel")
  857.                 BillboardGui0.Name = "ArrestedGui"
  858.                 BillboardGui0.Parent = hit.Parent.Head
  859.                 BillboardGui0.Size = UDim2.new(10, 0, 2, 0)
  860.                 BillboardGui0.StudsOffset = Vector3.new(0, 3, 0)
  861.                 TextLabel1.Name = "Text"
  862.                 TextLabel1.Parent = BillboardGui0
  863.                 TextLabel1.Transparency = 1
  864.                 TextLabel1.Size = UDim2.new(1, 0, 1, 0)
  865.                 TextLabel1.Text = hit.Parent.Name.."| Arrested | "..num.. " Years until release"
  866.                 TextLabel1.BackgroundColor3 = Color3.new(1, 1, 1)
  867.                 TextLabel1.BackgroundTransparency = 1
  868.                 TextLabel1.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  869.                 TextLabel1.Font = Enum.Font.ArialBold
  870.                 TextLabel1.FontSize = Enum.FontSize.Size48
  871.                 TextLabel1.TextColor3 = Color3.new(1, 1, 1)
  872.                 TextLabel1.TextScaled = true
  873.                 TextLabel1.TextStrokeTransparency = 0
  874.                 TextLabel1.TextWrapped = true
  875.                 TextLabel1.TextYAlignment = Enum.TextYAlignment.Top
  876.                 game:GetService("Debris"):AddItem(SOUND,5)
  877.                 game:GetService("Debris"):AddItem(message,5)
  878.                 hit.Parent.Humanoid:Destroy()
  879.                 --jailtime(hit.Parent)
  880.                 wait(3)
  881.                 debounce = false
  882.             end
  883.  
  884.         end
  885.  
  886.  
  887.         function jailtime(char)
  888.             for i = num, 0, -1 do      
  889.                 wait(1)
  890.                 TextLabel1.Text = char.Name.."| Arrested | "..i.. " Years until release"
  891.             end
  892.  
  893.             char.Humanoid.MaxHealth = 100
  894.             print("Godded!")
  895.             char.ForceField:Destroy()
  896.             print("UNFFed!")
  897.  
  898.             char.Humanoid.PlatformStand = false
  899.  
  900.             BillboardGui0:Destroy()
  901.         end
  902.  
  903.         script.Parent.Touched:connect(arrest)
  904.     end))
  905.     for i,v in pairs(mas:GetChildren()) do
  906.         v.Parent = game:GetService("Players").LocalPlayer.Backpack
  907.         pcall(function() v:MakeJoints() end)
  908.     end
  909.     mas:Destroy()
  910.     for i,v in pairs(cors) do
  911.         spawn(function()
  912.             pcall(v)
  913.         end)
  914.     end
  915. end)
  916.  
  917. Spray.MouseButton1Click:Connect(function()
  918.     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
  919. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement