Advertisement
Riky47-Haxer

R47CmdsSploit - v1.0

Oct 21st, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.27 KB | None | 0 0
  1. prefix = "/"
  2. NoClip = false
  3. WSpeed = 200
  4. FSPrefix = 1
  5. flying = false
  6. FSpeed = 1
  7.  
  8. function Change()
  9. WSpeed = WSpeed
  10. FSpeed = FSpeed
  11. end
  12.  
  13. plr = game:GetService("Players").LocalPlayer
  14. plr.Chatted:Connect(function(msg)
  15. -- WSpeed [Value - Speed]
  16. if string.sub(msg, 1, 7) == (prefix.."WSpeed") then
  17.     WSpeed = string.sub(msg, 9, 50)
  18.     wait()
  19.     Change()
  20.     -- Script
  21.     game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = WSpeed
  22. end
  23. -- UnSpeed
  24. if string.sub(msg, 1, 9) == (prefix.."UnWSpeed") then
  25.     -- Script
  26.     game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  27. end
  28. -- R47FGui - R47$ploit Fps Gui
  29. if string.sub(msg, 1, 8) == (prefix.."R47FGui") then
  30.     -- Script
  31.     loadstring(game:GetObjects("rbxassetid://2486235684")[1].Source)()
  32. end
  33. -- NoClip
  34. if string.sub(msg, 1, 7) == (prefix.."NoClip") then
  35. NoClip = true
  36. -- Script
  37. if NoClip then
  38.     local Workspace = game:GetService("Workspace")
  39.     local Players = game:GetService("Players")
  40.     local Plr = Players.LocalPlayer
  41.         Clipon = true
  42.         Stepped = game:GetService("RunService").Stepped:Connect(function()
  43.             if not Clipon == false then
  44.             for a, b in pairs(Workspace:GetChildren()) do
  45.             if b.Name == Plr.Name then
  46.             for i, v in pairs(Workspace[Plr.Name]:GetChildren()) do
  47.             if v:IsA("BasePart") then
  48.             v.CanCollide = false
  49.             end end end end
  50.         else
  51.             Stepped:Disconnect()
  52.         end
  53.     end)
  54.     else
  55.         Clipon = false
  56.     end
  57. end
  58. -- Clip
  59. if string.sub(msg, 1, 5) == (prefix.."Clip") then
  60.     NoClip = false
  61. -- Script
  62. if NoClip then
  63.     local Workspace = game:GetService("Workspace")
  64.     local Players = game:GetService("Players")
  65.     local Plr = Players.LocalPlayer
  66.         Clipon = true
  67.         Stepped = game:GetService("RunService").Stepped:Connect(function()
  68.             if not Clipon == false then
  69.             for a, b in pairs(Workspace:GetChildren()) do
  70.             if b.Name == Plr.Name then
  71.             for i, v in pairs(Workspace[Plr.Name]:GetChildren()) do
  72.             if v:IsA("BasePart") then
  73.             v.CanCollide = false
  74.             end end end end
  75.         else
  76.             Stepped:Disconnect()
  77.         end
  78.     end)
  79.         else
  80.     Clipon = false
  81.     end
  82. end
  83.  
  84. -- FlySpeed
  85. if string.sub(msg, 1, 9) == (prefix.."FlySpeed") then
  86.     FSpeed = string.sub(msg, 11, 50)
  87.     wait()
  88.     Change()
  89. end
  90.  
  91. -- Fly [Value - Speed]
  92. local Mouse = plr:GetMouse()   
  93. repeat wait() until plr and plr.Character and plr.Character:FindFirstChild('HumanoidRootPart') and plr.Character:FindFirstChild('Humanoid')
  94. repeat wait() until Mouse
  95.  
  96. -- Fly Script
  97. local T = plr.Character.HumanoidRootPart
  98. local CONTROL = {F = 0, B = 0, L = 0, R = 0}
  99. local lCONTROL = {F = 0, B = 0, L = 0, R = 0}
  100. local SPEED = FSPrefix 
  101.  
  102. local function fly()
  103.         flying = true
  104.         local BG = Instance.new('BodyGyro', T)
  105.         local BV = Instance.new('BodyVelocity', T)
  106.         BG.P = 9e4
  107.         BG.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  108.         BG.cframe = T.CFrame
  109.         BV.velocity = Vector3.new(0, 0.1, 0)
  110.         BV.maxForce = Vector3.new(9e9, 9e9, 9e9)
  111.         spawn(function()
  112.         repeat wait()
  113.         plr.Character.Humanoid.PlatformStand = true
  114.         if CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0 then
  115.         SPEED = 50
  116.         elseif not (CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0) and SPEED ~= 0 then
  117.         SPEED = 0
  118.         end
  119.         if (CONTROL.L + CONTROL.R) ~= 0 or (CONTROL.F + CONTROL.B) ~= 0 then
  120.         BV.velocity = ((workspace.CurrentCamera.CoordinateFrame.lookVector * (CONTROL.F + CONTROL.B)) + ((workspace.CurrentCamera.CoordinateFrame * CFrame.new(CONTROL.L + CONTROL.R, (CONTROL.F + CONTROL.B) * 0.2, 0).p) - workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
  121.         lCONTROL = {F = CONTROL.F, B = CONTROL.B, L = CONTROL.L, R = CONTROL.R}
  122.         elseif (CONTROL.L + CONTROL.R) == 0 and (CONTROL.F + CONTROL.B) == 0 and SPEED ~= 0 then
  123.         BV.velocity = ((workspace.CurrentCamera.CoordinateFrame.lookVector * (lCONTROL.F + lCONTROL.B)) + ((workspace.CurrentCamera.CoordinateFrame * CFrame.new(lCONTROL.L + lCONTROL.R, (lCONTROL.F + lCONTROL.B) * 0.2, 0).p) - workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
  124.         else
  125.         BV.velocity = Vector3.new(0, 0.1, 0)
  126.         end
  127.         BG.cframe = workspace.CurrentCamera.CoordinateFrame
  128.                 until not flying
  129.                 CONTROL = {F = 0, B = 0, L = 0, R = 0}
  130.                 lCONTROL = {F = 0, B = 0, L = 0, R = 0}
  131.                 SPEED = 0
  132.                 BG:destroy()
  133.                 BV:destroy()
  134.                 plr.Character.Humanoid.PlatformStand = false
  135.             end)
  136.         end
  137.     Mouse.KeyDown:connect(function(KEY)
  138.         if KEY:lower() == 'w' then
  139.             CONTROL.F = FSpeed
  140.         elseif KEY:lower() == 's' then
  141.             CONTROL.B = -FSpeed
  142.         elseif KEY:lower() == 'a' then
  143.             CONTROL.L = -FSpeed
  144.         elseif KEY:lower() == 'd' then
  145.             CONTROL.R = FSpeed
  146.         end
  147.     end)
  148.     Mouse.KeyUp:connect(function(KEY)
  149.         if KEY:lower() == 'w' then
  150.             CONTROL.F = 0
  151.         elseif KEY:lower() == 's' then
  152.             CONTROL.B = 0
  153.         elseif KEY:lower() == 'a' then
  154.             CONTROL.L = 0
  155.         elseif KEY:lower() == 'd' then
  156.             CONTROL.R = 0
  157.         end
  158.     end)
  159. fly()
  160. -- UnFly
  161. if string.sub(msg, 1, 6) == (prefix.."UnFly") then
  162.     flying = false
  163.     plr.Character.Humanoid.PlatformStand = false
  164. end
  165. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement