Advertisement
Xen_YT

MY NEW RB WORLD 2 GUI

Apr 24th, 2020
2,070
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.97 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local OpenFrame = Instance.new("Frame")
  8. local Open = Instance.new("TextButton")
  9. local Main = Instance.new("Frame")
  10. local TextLabel = Instance.new("TextLabel")
  11. local StatChange = Instance.new("TextButton")
  12. local DropBall = Instance.new("TextButton")
  13. local NoclipQ = Instance.new("TextButton")
  14. local FlyQ = Instance.new("TextButton")
  15. local Court1 = Instance.new("TextButton")
  16. local Court2 = Instance.new("TextButton")
  17. local Court3 = Instance.new("TextButton")
  18. local Court4 = Instance.new("TextButton")
  19. local Admin = Instance.new("TextButton")
  20. local Court5 = Instance.new("TextButton")
  21.  
  22. --Properties:
  23.  
  24. ScreenGui.Parent = game.CoreGui
  25. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  26.  
  27. OpenFrame.Name = "OpenFrame"
  28. OpenFrame.Parent = ScreenGui
  29. OpenFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  30. OpenFrame.Position = UDim2.new(0, 0, 0.541907489, 0)
  31. OpenFrame.Size = UDim2.new(0, 100, 0, 33)
  32.  
  33. Open.Name = "Open"
  34. Open.Parent = OpenFrame
  35. Open.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
  36. Open.Size = UDim2.new(0, 111, 0, 33)
  37. Open.Font = Enum.Font.SourceSans
  38. Open.Text = "Open"
  39. Open.TextColor3 = Color3.fromRGB(255, 255, 255)
  40. Open.MouseButton1Down:connect(function()
  41. Main.Visible = true
  42. OpenFrame.Visible = false
  43. end)
  44.  
  45. Main.Name = "Main"
  46. Main.Parent = ScreenGui
  47. Main.BackgroundColor3 = Color3.fromRGB(46, 46, 46)
  48. Main.Position = UDim2.new(0.0728476793, 0, 0.0144508667, 0)
  49. Main.Size = UDim2.new(0, 332, 0, 325)
  50. Main.Visible = false
  51.  
  52. TextLabel.Parent = Main
  53. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  54. TextLabel.Size = UDim2.new(0, 332, 0, 42)
  55. TextLabel.Font = Enum.Font.SourceSans
  56. TextLabel.Text = "Spixxy#6147"
  57. TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  58. TextLabel.TextSize = 14.000
  59.  
  60. StatChange.Name = "Stat Change"
  61. StatChange.Parent = Main
  62. StatChange.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  63. StatChange.Position = UDim2.new(0.0903614461, 0, 0.177284464, 0)
  64. StatChange.Size = UDim2.new(0, 124, 0, 38)
  65. StatChange.Font = Enum.Font.SourceSans
  66. StatChange.Text = "Stat Change"
  67. StatChange.TextColor3 = Color3.fromRGB(0, 0, 0)
  68. StatChange.TextSize = 14.000
  69. StatChange.MouseButton1Down:connect(function()
  70. for i,v in pairs(getgc(true)) do
  71. if type(v) == "table" and rawget(v, "handles") then
  72. v.freethrow = math.huge;
  73. v.postscorer = math.huge;
  74. v.ballspeed = 99;
  75. v.jump = 100;
  76. v.steal = math.huge;
  77. v.shotcontest = math.huge;
  78. v["2pointer"] = math.huge
  79. v["3pointer"] = math.huge;
  80. v.passing = math.huge;
  81. v.layup = 96;
  82. v.strength = math.huge;
  83. v.dunk = 96;
  84. v.speed = 98;
  85. v.handles = math.huge;
  86. v.movingshot = math.huge;
  87. v.defense = math.huge;
  88. v.stamina = math.huge;
  89. end
  90. end
  91. end)
  92.  
  93. DropBall.Name = "DropBall"
  94. DropBall.Parent = Main
  95. DropBall.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  96. DropBall.Position = UDim2.new(0.0903614461, 0, 0.350944757, 0)
  97. DropBall.Size = UDim2.new(0, 124, 0, 38)
  98. DropBall.Font = Enum.Font.SourceSans
  99. DropBall.Text = "DropBall"
  100. DropBall.TextColor3 = Color3.fromRGB(0, 0, 0)
  101. DropBall.TextSize = 14.000
  102. DropBall.MouseButton1Down:connect(function()
  103. local descendants = game.workspace:GetDescendants()
  104.  
  105. for index, descendants in pairs(descendants) do
  106. if descendants .Name == "Basketball" then
  107. descendants.block:FireServer()
  108. end
  109. end
  110.  
  111. end)
  112.  
  113. NoclipQ.Name = "Noclip [Q]"
  114. NoclipQ.Parent = Main
  115. NoclipQ.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  116. NoclipQ.Position = UDim2.new(0.0903614461, 0, 0.518730044, 0)
  117. NoclipQ.Size = UDim2.new(0, 124, 0, 38)
  118. NoclipQ.Font = Enum.Font.SourceSans
  119. NoclipQ.Text = "Noclip [Q]"
  120. NoclipQ.TextColor3 = Color3.fromRGB(0, 0, 0)
  121. NoclipQ.TextSize = 14.000
  122. NoclipQ.MouseButton1Down:connect(function()
  123. Noclip = false
  124. game:GetService('RunService').Stepped:connect(function()
  125. if Noclip then
  126. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  127. end
  128. end)
  129.  
  130. local plr = game.Players.LocalPlayer
  131. local mouse = plr:GetMouse()
  132. mouse.KeyDown:connect(function(key)
  133.  
  134. if key == "q" then
  135. Noclip = not Noclip
  136. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  137.  
  138. end
  139. end)
  140. end)
  141.  
  142. FlyQ.Name = "Fly [F]"
  143. FlyQ.Parent = Main
  144. FlyQ.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  145. FlyQ.Position = UDim2.new(0.0903614461, 0, 0.683995903, 0)
  146. FlyQ.Size = UDim2.new(0, 124, 0, 38)
  147. FlyQ.Font = Enum.Font.SourceSans
  148. FlyQ.Text = "Fly [F]"
  149. FlyQ.TextColor3 = Color3.fromRGB(0, 0, 0)
  150. FlyQ.TextSize = 14.000
  151. FlyQ.MouseButton1Down:connect(function()
  152. local Enabled = false
  153. local Camera = game.Workspace.CurrentCamera
  154. local Player = game:GetService("Players").LocalPlayer
  155. local Input = game:GetService("UserInputService")
  156. local Forward = false
  157. local Back = false
  158. local Left = false
  159. local Right = false
  160. local Up = false
  161. local Down = false
  162.  
  163. local function SetPlayer()
  164. for i,v in pairs(Player.Character:GetChildren()) do
  165. pcall(function()
  166. v.Anchored = not v.Anchored
  167. end)
  168. end
  169. end
  170.  
  171. Input.InputBegan:Connect(function(Key,IsChat)
  172. if IsChat then return end
  173. if Key.KeyCode == Enum.KeyCode.F then
  174. Enabled = not Enabled
  175. SetPlayer()
  176. end
  177. if Key.KeyCode == Enum.KeyCode.W then
  178. Forward = true
  179. end
  180. if Key.KeyCode == Enum.KeyCode.S then
  181. Back = true
  182. end
  183. if Key.KeyCode == Enum.KeyCode.A then
  184. Left = true
  185. end
  186. if Key.KeyCode == Enum.KeyCode.D then
  187. Right = true
  188. end
  189. if Key.KeyCode == Enum.KeyCode.Space then
  190. Up = true
  191. end
  192. if Key.KeyCode == Enum.KeyCode.LeftControl then
  193. Down = true
  194. end
  195. end)
  196.  
  197. Input.InputEnded:Connect(function(Key,IsChat)
  198. if IsChat then return end
  199. if Key.KeyCode == Enum.KeyCode.W then
  200. Forward = false
  201. end
  202. if Key.KeyCode == Enum.KeyCode.S then
  203. Back = false
  204. end
  205. if Key.KeyCode == Enum.KeyCode.A then
  206. Left = false
  207. end
  208. if Key.KeyCode == Enum.KeyCode.D then
  209. Right = false
  210. end
  211. if Key.KeyCode == Enum.KeyCode.Space then
  212. Up = false
  213. end
  214. if Key.KeyCode == Enum.KeyCode.LeftControl then
  215. Down = false
  216. end
  217. end)
  218.  
  219. while game:GetService("RunService").RenderStepped:Wait() do
  220. if Enabled then
  221. pcall(function()
  222. if Forward then
  223. Player.Character:TranslateBy(Camera.CFrame.lookVector*2)
  224. end
  225. if Back then
  226. Player.Character:TranslateBy(-Camera.CFrame.lookVector*2)
  227. end
  228. if Left then
  229. Player.Character:TranslateBy(-Camera.CFrame:vectorToWorldSpace(Vector3.new(1,0,0))*2)
  230. end
  231. if Right then
  232. Player.Character:TranslateBy(Camera.CFrame:vectorToWorldSpace(Vector3.new(1,0,0))*2)
  233. end
  234. if Up then
  235. Player.Character:TranslateBy(Camera.CFrame:vectorToWorldSpace(Vector3.new(0,1,0))*2)
  236. end
  237. if Down then
  238. Player.Character:TranslateBy(-Camera.CFrame:vectorToWorldSpace(Vector3.new(0,1,0))*2)
  239. end
  240. end)
  241. end
  242. end
  243. end)
  244.  
  245. Court1.Name = "Court 1"
  246. Court1.Parent = Main
  247. Court1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  248. Court1.Position = UDim2.new(0.503012061, 0, 0.177284464, 0)
  249. Court1.Size = UDim2.new(0, 124, 0, 38)
  250. Court1.Font = Enum.Font.SourceSans
  251. Court1.Text = "Court 1"
  252. Court1.TextColor3 = Color3.fromRGB(0, 0, 0)
  253. Court1.TextSize = 14.000
  254. Court1.MouseButton1Down:connect(function()
  255. for x = 1, 7 do
  256. local A_1 = 1 ----- Change this to what court your on
  257. local A_2 = 1
  258. local Event = game:GetService("ReplicatedStorage")["join.court"]
  259. Event:InvokeServer(A_1, A_2)
  260.  
  261. local A_1 = 1 ----- Change this to what court your on
  262. local A_2 = 2
  263. local Event = game:GetService("ReplicatedStorage")["join.court"]
  264. Event:InvokeServer(A_1, A_2)
  265. wait(2)
  266. end
  267. end)
  268.  
  269. Court2.Name = "Court 2"
  270. Court2.Parent = Main
  271. Court2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  272. Court2.Position = UDim2.new(0.503012061, 0, 0.350944757, 0)
  273. Court2.Size = UDim2.new(0, 124, 0, 38)
  274. Court2.Font = Enum.Font.SourceSans
  275. Court2.Text = "Court 2"
  276. Court2.TextColor3 = Color3.fromRGB(0, 0, 0)
  277. Court2.TextSize = 14.000
  278. Court2.MouseButton1Down:connect(function()
  279. for x = 1, 7 do
  280. local A_1 = 2 ----- Change this to what court your on
  281. local A_2 = 1
  282. local Event = game:GetService("ReplicatedStorage")["join.court"]
  283. Event:InvokeServer(A_1, A_2)
  284.  
  285. local A_1 = 2 ----- Change this to what court your on
  286. local A_2 = 2
  287. local Event = game:GetService("ReplicatedStorage")["join.court"]
  288. Event:InvokeServer(A_1, A_2)
  289. wait(2)
  290. end
  291. end)
  292.  
  293. Court3.Name = "Court 3"
  294. Court3.Parent = Main
  295. Court3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  296. Court3.Position = UDim2.new(0.503012061, 0, 0.518730044, 0)
  297. Court3.Size = UDim2.new(0, 124, 0, 38)
  298. Court3.Font = Enum.Font.SourceSans
  299. Court3.Text = "Court 3"
  300. Court3.TextColor3 = Color3.fromRGB(0, 0, 0)
  301. Court3.TextSize = 14.000
  302. Court3.MouseButton1Down:connect(function()
  303. for x = 1, 7 do
  304. local A_1 = 3 ----- Change this to what court your on
  305. local A_2 = 1
  306. local Event = game:GetService("ReplicatedStorage")["join.court"]
  307. Event:InvokeServer(A_1, A_2)
  308.  
  309. local A_1 = 3 ----- Change this to what court your on
  310. local A_2 = 2
  311. local Event = game:GetService("ReplicatedStorage")["join.court"]
  312. Event:InvokeServer(A_1, A_2)
  313. wait(2)
  314. end
  315. end)
  316.  
  317. Court4.Name = "Court 4"
  318. Court4.Parent = Main
  319. Court4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  320. Court4.Position = UDim2.new(0.503012061, 0, 0.683995903, 0)
  321. Court4.Size = UDim2.new(0, 124, 0, 38)
  322. Court4.Font = Enum.Font.SourceSans
  323. Court4.Text = "Court 4"
  324. Court4.TextColor3 = Color3.fromRGB(0, 0, 0)
  325. Court4.TextSize = 14.000
  326. Court4.MouseButton1Down:connect(function()
  327. for x = 1, 7 do
  328. local A_1 = 4 ----- Change this to what court your on
  329. local A_2 = 1
  330. local Event = game:GetService("ReplicatedStorage")["join.court"]
  331. Event:InvokeServer(A_1, A_2)
  332.  
  333. local A_1 = 4 ----- Change this to what court your on
  334. local A_2 = 2
  335. local Event = game:GetService("ReplicatedStorage")["join.court"]
  336. Event:InvokeServer(A_1, A_2)
  337. wait(2)
  338. end
  339. end)
  340.  
  341. Admin.Name = "Admin"
  342. Admin.Parent = Main
  343. Admin.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  344. Admin.Position = UDim2.new(0.0903614461, 0, 0.844790936, 0)
  345. Admin.Size = UDim2.new(0, 124, 0, 38)
  346. Admin.Font = Enum.Font.SourceSans
  347. Admin.Text = "Admin"
  348. Admin.TextColor3 = Color3.fromRGB(0, 0, 0)
  349. Admin.TextSize = 14.000
  350. Admin.MouseButton1Down:connect(function()
  351. loadstring(game:HttpGet(('https://pastebin.com/raw/bkhK5iQg'),true))()
  352. end)
  353.  
  354. Court5.Name = "Court 5"
  355. Court5.Parent = Main
  356. Court5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  357. Court5.Position = UDim2.new(0.503012061, 0, 0.841899872, 0)
  358. Court5.Size = UDim2.new(0, 124, 0, 38)
  359. Court5.Font = Enum.Font.SourceSans
  360. Court5.Text = "Court 5"
  361. Court5.TextColor3 = Color3.fromRGB(0, 0, 0)
  362. Court5.TextSize = 14.000
  363. Court5.MouseButton1Down:connect(function()
  364. for x = 1, 7 do
  365. local A_1 = 5 ----- Change this to what court your on
  366. local A_2 = 1
  367. local Event = game:GetService("ReplicatedStorage")["join.court"]
  368. Event:InvokeServer(A_1, A_2)
  369.  
  370. local A_1 = 5 ----- Change this to what court your on
  371. local A_2 = 2
  372. local Event = game:GetService("ReplicatedStorage")["join.court"]
  373. Event:InvokeServer(A_1, A_2)
  374. wait(2)
  375. end
  376. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement