Riky47-Haxer

R47Gui By Riky47

Sep 14th, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.73 KB | None | 0 0
  1. -- R47Gui -- By Riky47 -- Enjoy in my first Gui!
  2. print("-- R47Gui -- By Riky47 -- Enjoy! --")
  3. -- Instances:
  4. local R47Gui = Instance.new("ScreenGui")
  5. local R47Frame = Instance.new("Frame")
  6. local TextLabel = Instance.new("TextLabel")
  7. local BTool = Instance.new("TextButton")
  8. local GodMode = Instance.new("TextButton")
  9. local GravityOn = Instance.new("TextButton")
  10. local WalkSpeedOn = Instance.new("TextButton")
  11. local Fly2ON = Instance.new("TextButton")
  12. local WalkSpeedOff = Instance.new("TextButton")
  13. local GravityOff = Instance.new("TextButton")
  14. local Fly2Off = Instance.new("TextButton")
  15. local OpenButton = Instance.new("TextButton")
  16. --Properties:
  17. R47Gui.Name = "R47Gui"
  18. R47Gui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  19.  
  20. R47Frame.Name = "R47Frame"
  21. R47Frame.Parent = R47Gui
  22. R47Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  23. R47Frame.Position = UDim2.new(-0.904509246, 0, 0, 0)
  24. R47Frame.Size = UDim2.new(0, 712, 0, 113)
  25.  
  26. TextLabel.Parent = R47Frame
  27. TextLabel.BackgroundColor3 = Color3.new(0, 0, 0)
  28. TextLabel.Position = UDim2.new(0.359550565, 0, 0, 0)
  29. TextLabel.Size = UDim2.new(0, 200, 0, 50)
  30. TextLabel.Font = Enum.Font.SourceSans
  31. TextLabel.Text = "R47Gui - By Riky47"
  32. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  33. TextLabel.TextSize = 30
  34.  
  35. BTool.Name = "BTool"
  36. BTool.Parent = R47Frame
  37. BTool.BackgroundColor3 = Color3.new(1, 0.333333, 0)
  38. BTool.Position = UDim2.new(0.761235952, 0, 0, 0)
  39. BTool.Size = UDim2.new(0, 98, 0, 50)
  40. BTool.Font = Enum.Font.SourceSans
  41. BTool.Text = "Alt+Click=Destroy"
  42. BTool.TextColor3 = Color3.new(0, 0, 0)
  43. BTool.TextSize = 14
  44.  
  45. GodMode.Name = "GodMode"
  46. GodMode.Parent = R47Frame
  47. GodMode.BackgroundColor3 = Color3.new(1, 0.333333, 0)
  48. GodMode.Position = UDim2.new(0.641853929, 0, 0, 0)
  49. GodMode.Size = UDim2.new(0, 85, 0, 50)
  50. GodMode.Font = Enum.Font.SourceSans
  51. GodMode.Text = "GodMode"
  52. GodMode.TextColor3 = Color3.new(0, 0, 0)
  53. GodMode.TextSize = 14
  54.  
  55. GravityOn.Name = "GravityOn"
  56. GravityOn.Parent = R47Frame
  57. GravityOn.BackgroundColor3 = Color3.new(0, 0.666667, 0)
  58. GravityOn.Position = UDim2.new(0.230337083, 0, 0, 0)
  59. GravityOn.Size = UDim2.new(0, 92, 0, 24)
  60. GravityOn.Font = Enum.Font.SourceSans
  61. GravityOn.Text = "Gravity: ON"
  62. GravityOn.TextColor3 = Color3.new(0, 0, 0)
  63. GravityOn.TextSize = 14
  64.  
  65. WalkSpeedOn.Name = "WalkSpeedOn"
  66. WalkSpeedOn.Parent = R47Frame
  67. WalkSpeedOn.BackgroundColor3 = Color3.new(0, 0.666667, 0)
  68. WalkSpeedOn.Position = UDim2.new(0.11095506, 0, 0, 0)
  69. WalkSpeedOn.Size = UDim2.new(0, 85, 0, 24)
  70. WalkSpeedOn.Font = Enum.Font.SourceSans
  71. WalkSpeedOn.Text = "WalkSpeed: ON"
  72. WalkSpeedOn.TextColor3 = Color3.new(0, 0, 0)
  73. WalkSpeedOn.TextSize = 14
  74.  
  75. Fly2ON.Name = "Fly2ON"
  76. Fly2ON.Parent = R47Frame
  77. Fly2ON.BackgroundColor3 = Color3.new(0, 0.666667, 0)
  78. Fly2ON.Position = UDim2.new(0.11095506, 0, 0.442477882, 0)
  79. Fly2ON.Size = UDim2.new(0, 278, 0, 63)
  80. Fly2ON.Font = Enum.Font.SourceSans
  81. Fly2ON.Text = "Fly: ON"
  82. Fly2ON.TextColor3 = Color3.new(0, 0, 0)
  83. Fly2ON.TextSize = 14
  84.  
  85. WalkSpeedOff.Name = "WalkSpeedOff"
  86. WalkSpeedOff.Parent = R47Frame
  87. WalkSpeedOff.BackgroundColor3 = Color3.new(1, 0, 0)
  88. WalkSpeedOff.Position = UDim2.new(0.11095506, 0, 0.21238938, 0)
  89. WalkSpeedOff.Size = UDim2.new(0, 85, 0, 26)
  90. WalkSpeedOff.Font = Enum.Font.SourceSans
  91. WalkSpeedOff.Text = "WalkSpeed: OFF"
  92. WalkSpeedOff.TextColor3 = Color3.new(0, 0, 0)
  93. WalkSpeedOff.TextSize = 14
  94.  
  95. GravityOff.Name = "GravityOff"
  96. GravityOff.Parent = R47Frame
  97. GravityOff.BackgroundColor3 = Color3.new(1, 0, 0)
  98. GravityOff.Position = UDim2.new(0.230337083, 0, 0.21238938, 0)
  99. GravityOff.Size = UDim2.new(0, 92, 0, 26)
  100. GravityOff.Font = Enum.Font.SourceSans
  101. GravityOff.Text = "Gravity: OFF"
  102. GravityOff.TextColor3 = Color3.new(0, 0, 0)
  103. GravityOff.TextSize = 14
  104.  
  105. Fly2Off.Name = "Fly2Off"
  106. Fly2Off.Parent = R47Frame
  107. Fly2Off.BackgroundColor3 = Color3.new(1, 0, 0)
  108. Fly2Off.Position = UDim2.new(0.501404524, 0, 0.442477882, 0)
  109. Fly2Off.Size = UDim2.new(0, 283, 0, 63)
  110. Fly2Off.Font = Enum.Font.SourceSans
  111. Fly2Off.Text = "Fly: OFF"
  112. Fly2Off.TextColor3 = Color3.new(0, 0, 0)
  113. Fly2Off.TextSize = 14
  114.  
  115. OpenButton.Name = "OpenButton"
  116. OpenButton.Parent = R47Gui
  117. OpenButton.BackgroundColor3 = Color3.new(1, 1, 1)
  118. OpenButton.Size = UDim2.new(0, 30, 0, 113)
  119. OpenButton.Font = Enum.Font.SourceSans
  120. OpenButton.Text = ">"
  121. OpenButton.TextColor3 = Color3.new(0, 0, 0)
  122. OpenButton.TextSize = 30
  123. -- Scripts:
  124. function BToolScript() -- BTool.LocalScript
  125. getfenv().script = Instance.new('LocalScript', BTool)
  126.  
  127. BTool.MouseButton1Click:connect(function()
  128. local plr = game:GetService("Players").LocalPlayer
  129. local BtoolActive = true
  130. local m = plr:GetMouse()
  131. local sb = Instance.new("SelectionBox", workspace.CurrentCamera)
  132. local sb = workspace.CurrentCamera:FindFirstChildOfClass("SelectionBox")
  133.  
  134. _G.iEnabledOrNot = true;
  135. _G.iEnabledOrNot = true; local pPlayerMouse = game:GetService('Players').LocalPlayer:GetMouse(); local uUserService = game:GetService('UserInputService'); pPlayerMouse.Button1Down:connect(function() if (_G.iEnabledOrNot) then if (uUserService:IsKeyDown(Enum.KeyCode.LeftAlt)) then if (pPlayerMouse.Target) then pPlayerMouse.Target:Destroy() return true; else return false; end return true; else return false; end else return false; end end)
  136.  
  137. while BtoolActive do
  138. wait()
  139. if m.Target then
  140. wait()
  141. sb.Adornee = m.Target
  142. end
  143. end
  144. end)
  145.  
  146.  
  147.  
  148. end
  149. coroutine.resume(coroutine.create(BToolScript))
  150. function GodModeScript() -- GodMode.LocalScript
  151. getfenv().script = Instance.new('LocalScript', GodMode)
  152.  
  153. script.Parent.MouseButton1Click:connect(function()
  154. game:GetService("Players").LocalPlayer.Character.Humanoid.Name = 1
  155. local l = game:GetService("Players").LocalPlayer.Character["1"]:Clone()
  156. l.Parent = game:GetService("Players").LocalPlayer.Character
  157. l.Name = "Humanoid"
  158. game:GetService("Players").LocalPlayer.Character["1"]:Destroy()
  159. game:GetService("Workspace").CurrentCamera.CameraSubject = game:GetService("Players").LocalPlayer.Character
  160. game:GetService("Players").LocalPlayer.Character.Animate.Disabled = true
  161. game:GetService("Players").LocalPlayer.Character.Animate.Disabled = false
  162. game:GetService("Players").LocalPlayer.Character.Humanoid.DisplayDistanceType = "None"
  163. end)
  164.  
  165. end
  166. coroutine.resume(coroutine.create(GodModeScript))
  167. function GravityOnScript() -- GravityOn.LocalScript
  168. getfenv().script = Instance.new('LocalScript', GravityOn)
  169.  
  170. GravityOn.MouseButton1Click:connect(function()
  171. workspace.Gravity = 50
  172. end)
  173.  
  174. end
  175. coroutine.resume(coroutine.create(GravityOnScript))
  176. function WalkSpeedOnScript() -- WalkSpeedOn.LocalScript
  177. getfenv().script = Instance.new('LocalScript', WalkSpeedOn)
  178.  
  179. WalkSpeedOn.MouseButton1Click:connect(function()
  180. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 200
  181. end)
  182.  
  183. end
  184. coroutine.resume(coroutine.create(WalkSpeedOnScript))
  185. function Fly2OnScript() -- Fly2ON.LocalScript
  186. getfenv().script = Instance.new('LocalScript', Fly2ON)
  187.  
  188. Fly2ON.MouseButton1Click:connect(function()
  189.  
  190. local mouse=game:GetService("Players").LocalPlayer:GetMouse''
  191. localplayer=game:GetService("Players").LocalPlayer
  192. game:GetService("Players").LocalPlayer.Character:WaitForChild("HumanoidRootPart")
  193. local torso = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart
  194. local speed=0
  195. local keys={a=false,d=false,w=false,s=false}
  196. local e1
  197. local e2
  198. local function start()
  199. local pos = Instance.new("BodyPosition",torso)
  200. local gyro = Instance.new("BodyGyro",torso)
  201. pos.Name="EPIXPOS"
  202. pos.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  203. pos.position = torso.Position
  204. gyro.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  205. gyro.cframe = torso.CFrame
  206. repeat
  207. wait()
  208. localplayer.Character.Humanoid.PlatformStand=true
  209. local new=gyro.cframe - gyro.cframe.p + pos.position
  210. if not keys.w and not keys.s and not keys.a and not keys.d then
  211. speed=1
  212. end
  213. if keys.w then
  214. new = new + workspace.CurrentCamera.CoordinateFrame.lookVector * speed
  215. speed=speed+0.01
  216. end
  217. if keys.s then
  218. new = new - workspace.CurrentCamera.CoordinateFrame.lookVector * speed
  219. speed=speed+0.01
  220. end
  221. if keys.d then
  222. new = new * CFrame.new(speed,0,0)
  223. speed=speed+0.01
  224. end
  225. if keys.a then
  226. new = new * CFrame.new(-speed,0,0)
  227. speed=speed+0.01
  228. end
  229. if speed>5 then
  230. speed=5
  231. end
  232. pos.position=new.p
  233. if keys.w then
  234. gyro.cframe = workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(-math.rad(speed*15),0,0)
  235. elseif keys.s then
  236. gyro.cframe = workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(math.rad(speed*15),0,0)
  237. else
  238. gyro.cframe = workspace.CurrentCamera.CoordinateFrame
  239. end
  240. until not Fly
  241. if gyro then gyro:Destroy() end
  242. if pos then pos:Destroy() end
  243. flying=false
  244. localplayer.Character.Humanoid.PlatformStand=false
  245. speed=0
  246. end
  247. e1=mouse.KeyDown:connect(function(key)
  248. if not torso or not torso.Parent then flying=false e1:disconnect() e2:disconnect() return end
  249. if key=="w" then
  250. keys.w=true
  251. elseif key=="s" then
  252. keys.s=true
  253. elseif key=="a" then
  254. keys.a=true
  255. elseif key=="d" then
  256. keys.d=true
  257. end
  258. end)
  259. e2=mouse.KeyUp:connect(function(key)
  260. if key=="w" then
  261. keys.w=false
  262. elseif key=="s" then
  263. keys.s=false
  264. elseif key=="a" then
  265. keys.a=false
  266. elseif key=="d" then
  267. keys.d=false
  268. end
  269. end)
  270.  
  271. flyy = true
  272. Fly = true
  273. start()
  274. end)
  275.  
  276. end
  277. coroutine.resume(coroutine.create(Fly2OnScript))
  278. function WalkSpeedOffScript() -- WalkSpeedOff.LocalScript
  279. getfenv().script = Instance.new('LocalScript', WalkSpeedOff)
  280.  
  281. WalkSpeedOff.MouseButton1Click:connect(function()
  282. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  283. end)
  284.  
  285. end
  286. coroutine.resume(coroutine.create(WalkSpeedOffScript))
  287. function GravityOffScript() -- GravityOff.LocalScript
  288. getfenv().script = Instance.new('LocalScript', GravityOff)
  289.  
  290. GravityOff.MouseButton1Click:connect(function()
  291. workspace.Gravity = 196.2
  292. end)
  293.  
  294. end
  295. coroutine.resume(coroutine.create(GravityOffScript))
  296. function Fly2OffScript() -- Fly2Off.LocalScript
  297. getfenv().script = Instance.new('LocalScript', Fly2Off)
  298.  
  299. Fly2Off.MouseButton1Click:connect(function()
  300.  
  301. local mouse=game:GetService("Players").LocalPlayer:GetMouse''
  302. localplayer=game:GetService("Players").LocalPlayer
  303. game:GetService("Players").LocalPlayer.Character:WaitForChild("HumanoidRootPart")
  304. local torso = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart
  305. local speed=0
  306. local keys={a=false,d=false,w=false,s=false}
  307. local e1
  308. local e2
  309. local function start()
  310. local pos = Instance.new("BodyPosition",torso)
  311. local gyro = Instance.new("BodyGyro",torso)
  312. pos.Name="EPIXPOS"
  313. pos.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  314. pos.position = torso.Position
  315. gyro.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  316. gyro.cframe = torso.CFrame
  317. repeat
  318. wait()
  319. localplayer.Character.Humanoid.PlatformStand=true
  320. local new=gyro.cframe - gyro.cframe.p + pos.position
  321. if not keys.w and not keys.s and not keys.a and not keys.d then
  322. speed=1
  323. end
  324. if keys.w then
  325. new = new + workspace.CurrentCamera.CoordinateFrame.lookVector * speed
  326. speed=speed+0.01
  327. end
  328. if keys.s then
  329. new = new - workspace.CurrentCamera.CoordinateFrame.lookVector * speed
  330. speed=speed+0.01
  331. end
  332. if keys.d then
  333. new = new * CFrame.new(speed,0,0)
  334. speed=speed+0.01
  335. end
  336. if keys.a then
  337. new = new * CFrame.new(-speed,0,0)
  338. speed=speed+0.01
  339. end
  340. if speed>5 then
  341. speed=5
  342. end
  343. pos.position=new.p
  344. if keys.w then
  345. gyro.cframe = workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(-math.rad(speed*15),0,0)
  346. elseif keys.s then
  347. gyro.cframe = workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(math.rad(speed*15),0,0)
  348. else
  349. gyro.cframe = workspace.CurrentCamera.CoordinateFrame
  350. end
  351. until not Fly
  352. if gyro then gyro:Destroy() end
  353. if pos then pos:Destroy() end
  354. flying=false
  355. localplayer.Character.Humanoid.PlatformStand=false
  356. speed=0
  357. end
  358. e1=mouse.KeyDown:connect(function(key)
  359. if not torso or not torso.Parent then flying=false e1:disconnect() e2:disconnect() return end
  360. if key=="w" then
  361. keys.w=true
  362. elseif key=="s" then
  363. keys.s=true
  364. elseif key=="a" then
  365. keys.a=true
  366. elseif key=="d" then
  367. keys.d=true
  368. end
  369. end)
  370. e2=mouse.KeyUp:connect(function(key)
  371. if key=="w" then
  372. keys.w=false
  373. elseif key=="s" then
  374. keys.s=false
  375. elseif key=="a" then
  376. keys.a=false
  377. elseif key=="d" then
  378. keys.d=false
  379. end
  380. end)
  381.  
  382. flyy = false
  383. Fly = false
  384. start()
  385. end)
  386.  
  387. end
  388. coroutine.resume(coroutine.create(Fly2OffScript))
  389. function FrameInOut() -- OpenButton.LocalScript
  390. getfenv().script = Instance.new('LocalScript', OpenButton)
  391.  
  392. -- Frame In - Out
  393. OpenButton.MouseButton1Click:connect(function()
  394. local t = OpenButton.Text == ">" and true or false
  395. R47Gui.R47Frame = t and R47Frame:TweenPosition(UDim2.new(0,0,0,0), "Out", "Quad", 1)or R47Frame:TweenPosition(UDim2.new(-0.905,0,0,0), "Out", "Quad", 1)
  396. OpenButton.Text = t and "<" or ">"
  397. end)
  398.  
  399. end
  400. coroutine.resume(coroutine.create(FrameInOut))
Advertisement
Add Comment
Please, Sign In to add comment