justneed

x0y0zkidd's admin

Nov 30th, 2024 (edited)
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 27.38 KB | Gaming | 0 0
  1. --x0y0zkidd admin script MEGA UPDATE + FIX!!! :D
  2.  
  3. local plr      = game:GetService("Players")
  4. local me       = plr.LocalPlayer
  5. local hum      = me.Character:WaitForChild("Humanoid")
  6. local hrp      = me.Character:WaitForChild("HumanoidRootPart")
  7.  
  8. local uis      = game:GetService("UserInputService")
  9. local rep = game:GetService("ReplicatedStorage")
  10. local textChat = game:GetService("TextChatService")
  11. local run = game:GetService("RunService")
  12.  
  13. local Uhold = false
  14. local Dhold = false
  15. local Fhold = false
  16. local Bhold
  17. local Rhold = false
  18. local Lhold = false
  19.  
  20. local uisHolder
  21.  
  22. local work = game:GetService("Workspace")
  23.  
  24. local rightleg = "Right Leg"
  25.  
  26. local function update()
  27.     if me.Character then
  28.         hum = me.Character:WaitForChild("Humanoid")
  29.         hrp = me.Character:WaitForChild("HumanoidRootPart")
  30.     end
  31. end
  32.  
  33. me.CharacterAdded:Connect(update)
  34. if me.Character then
  35.     update()
  36. end
  37.  
  38. local speedCon
  39. local jumpCon
  40. local gravityCon
  41. local flyCon
  42. local flyCon2
  43. local flyCon3
  44. local flyCon4
  45. local flyCon5
  46. local flyCon6
  47.  
  48. local fhCon
  49.  
  50. local toolcon
  51.  
  52. local screen  = Instance.new("ScreenGui")
  53. screen.Name   = "xyz_admin"
  54. screen.Parent = me.PlayerGui
  55.  
  56. local frame            = Instance.new("Frame")
  57. frame.Parent           = screen
  58. frame.Size             = UDim2.new(0, 270, 0, 350)
  59. frame.BackgroundColor3 = Color3.fromRGB(255,20,147)
  60. frame.Position         = UDim2.new(0, 1340, 0, 550)
  61.  
  62. frame.Active     = true
  63. frame.Selectable = true
  64. frame.Draggable  = true
  65.  
  66. local keyt                  = Instance.new("TextBox")
  67. keyt.Parent                 = frame
  68. keyt.Size                   = UDim2.new(0, 105, 0, 45)
  69. keyt.Position               = UDim2.new(0, 85, 0, 174)
  70. keyt.Text                   = ""
  71. keyt.TextColor3             = Color3.fromRGB(255,255,255)
  72. keyt.TextSize               = 10
  73. keyt.PlaceholderText        = ""
  74. keyt.ClearTextOnFocus       = false
  75. keyt.MultiLine              = true
  76. keyt.Font                   = Enum.Font.GothamBold
  77. keyt.PlaceholderColor3      = Color3.fromRGB(65,65,65)
  78. keyt.BackgroundColor3       = Color3.fromRGB(186,85,211)
  79. keyt.BackgroundTransparency = 1
  80. keyt.TextXAlignment         = "Left"
  81. keyt.TextYAlignment         = "Top"
  82.  
  83. local exe                  = Instance.new("ImageLabel")
  84. exe.Parent                 = frame
  85. exe.Size                   = keyt.Size
  86. exe.Position               = keyt.Position
  87. exe.BackgroundTransparency = 1
  88. exe.Image                  = "rbxassetid://89760411485169"
  89. exe.ZIndex                 = 1
  90. keyt.ZIndex                = 2
  91.  
  92. local btn            = Instance.new("TextButton")
  93. btn.Parent           = frame
  94. btn.Size             = UDim2.new(0, 20, 0, 19)
  95. btn.Position         = UDim2.new(0, 245, 0, 4)
  96. btn.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  97. btn.Text             = "X"
  98. btn.TextSize         = 12
  99. btn.TextColor3       = Color3.fromRGB(255,0,0)
  100.  
  101. local btn2            = Instance.new("TextButton")
  102. btn2.Parent           = frame
  103. btn2.Size             = UDim2.new(0, 105, 0, 45)
  104. btn2.Position         = UDim2.new(0, 85, 0, 114)
  105. btn2.Text             = "Clear"
  106. btn2.TextSize         = 11
  107. btn2.BackgroundColor3 = Color3.fromRGB(186,85,211)
  108.  
  109. local text             = Instance.new("TextBox")
  110. text.Parent            = frame
  111. text.Size              = UDim2.new(0, 105, 0, 45)
  112. text.Position          = UDim2.new(0, 85, 0, 54)
  113. text.Text              = ""
  114. text.TextSize          = 12
  115. text.PlaceholderText   = "Command"
  116. text.PlaceholderColor3 = Color3.fromRGB(65,65,65)
  117. text.ClearTextOnFocus  = false
  118. text.BackgroundColor3  = Color3.fromRGB(186,85,211)
  119.  
  120. local btn3            = Instance.new("TextButton")
  121. btn3.Parent           = frame
  122. btn3.Size             = UDim2.new(0, 75, 0, 15)
  123. btn3.Position         = UDim2.new(0, 34, 0, 16)
  124. btn3.Text             = "Command list"
  125. btn3.BackgroundColor3 = Color3.fromRGB(186,85,211)
  126.  
  127. local btn4            = Instance.new("TextButton")
  128. btn4.Parent           = frame
  129. btn4.Size             = UDim2.new(0, 75, 0, 15)
  130. btn4.Position         = UDim2.new(0, 162, 0, 16)
  131. btn4.Text             = "Themes"
  132. btn4.BackgroundColor3 = Color3.fromRGB(186,85,211)
  133.  
  134. local label           = Instance.new("TextLabel")
  135. label.Parent          = frame
  136. label.Text            = "x0y0zkidd's\nadmin"
  137. label.TextSize        = 16
  138. label.BorderSizePixel = 0
  139. label.Position        = UDim2.new(0, 137, 0, 310)
  140.  
  141. local labelP           = Instance.new("TextLabel")
  142. labelP.Parent          = frame
  143. labelP.Text            = "Pray for\nTubers93!"
  144. labelP.TextSize        = 16
  145. labelP.BorderSizePixel = 0
  146. labelP.Position        = UDim2.new(0, 137, 0, 250)
  147. labelP.Name            = "TextLabel2"
  148.  
  149. local frame2            = Instance.new("Frame")
  150. frame2.Parent           = screen
  151. frame2.Size             = UDim2.new(0, 310, 0, 420)
  152. frame2.BackgroundColor3 = Color3.fromRGB(255,20,147)
  153. frame2.Position         = UDim2.new(0, 1040, 0, 550)
  154. frame2.Name             = "f2"
  155. frame2.Visible = false
  156.    
  157.    
  158. frame2.Active     = true
  159. frame2.Selectable = true
  160. frame2.Draggable  = true
  161.    
  162. local label2           = Instance.new("TextLabel")
  163. label2.Parent          = frame2
  164. label2.BorderSizePixel = 0
  165. label2.TextSize        = 11
  166. label2.Text            = "to <player> //tp you to player\nfollow<player> //follows player\nheadsit <player> //sits to player's head\nwaypoint <name> //creates a waypoint\nwayrm <name> //removes waypoint by name\ntpway <name> //tp you to wyapoint by name\nview <player> spectate the player\nunview //stop spectating\nspeed <num> //changes ur speed\njumppower <num> //changes ur jumppower\ngravity <num> //changes ur gravity\nsay <msg> says the msg in chat\ngrabtools //grabs all the tools\nungrabtools //stop grabbingtools\ndroptools //drops all the tools\nlay //makes you lay\nsit //makes you sit\nreset //reset you\nmaxzoom <num> //set your maxzoom\nminzoom <num> //set your minzoom\nrejoin //rejoin the game\nclicktp //ctrl + m1 to tp\ninfjump // inf jumps\njump //jumps\n fly / unfly // toggle fly"
  167. label2.Position        = UDim2.new(0, 155, 0, 220)
  168.    
  169. local labelC           = Instance.new("TextLabel")
  170. labelC.Parent          = frame2
  171. labelC.BorderSizePixel = 0
  172. labelC.TextSize        = 14
  173. labelC.Text            = "Command list"
  174. labelC.Position        = UDim2.new(0, 150, 0, 15)
  175.    
  176. local btnX            = Instance.new("TextButton")
  177. btnX.Parent           = frame2
  178. btnX.Size             = UDim2.new(0, 20, 0, 19)
  179. btnX.Position         = UDim2.new(0, 284, 0, 4)
  180. btnX.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  181. btnX.Text             = "X"
  182. btnX.TextSize         = 12
  183. btnX.TextColor3       = Color3.fromRGB(255,0,0)
  184.  
  185. local frame3            = Instance.new("Frame")
  186. frame3.Parent           = screen
  187. frame3.Size             = UDim2.new(0, 235, 0, 250)
  188. frame3.BackgroundColor3 = Color3.fromRGB(255,20,147)
  189. frame3.Position         = UDim2.new(0, 1340, 0, 250)
  190. frame3.Name             = "f3"
  191. frame3.Visible = false
  192.    
  193.    
  194. frame3.Active     = true
  195. frame3.Selectable = true
  196. frame3.Draggable  = true
  197.    
  198. local btnX2            = Instance.new("TextButton")
  199. btnX2.Parent           = frame3
  200. btnX2.Size             = UDim2.new(0, 20, 0, 19)
  201. btnX2.Position         = UDim2.new(0, 210, 0, 4)
  202. btnX2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  203. btnX2.Text             = "X"
  204. btnX2.TextSize         = 12
  205. btnX2.TextColor3       = Color3.fromRGB(255,0,0)
  206.    
  207. btnX2.MouseButton1Click:Connect(function()
  208.     frame3.Visible = false
  209. end)
  210.    
  211. local btnT            = Instance.new("TextButton")
  212. btnT.Parent           = frame3
  213. btnT.Size             = UDim2.new(0, 55, 0, 25)
  214. btnT.Position         = UDim2.new(0, 92, 0, 35)
  215. btnT.Text             = "Light"
  216. btnT.BackgroundColor3 = Color3.fromRGB(186,85,211)
  217. btnT.TextSize         = 11
  218.    
  219. local btnT2            = Instance.new("TextButton")
  220. btnT2.Parent           = frame3
  221. btnT2.Size             = UDim2.new(0, 55, 0, 25)
  222. btnT2.Position         = UDim2.new(0, 92, 0, 85)
  223. btnT2.Text             = "Dark"
  224. btnT2.BackgroundColor3 = Color3.fromRGB(186,85,211)
  225. btnT2.TextSize         = 11
  226. btnT2.Name             = "btnT2"
  227.    
  228. local btnT3            = Instance.new("TextButton")
  229. btnT3.Parent           = frame3
  230. btnT3.Size             = UDim2.new(0, 55, 0, 25)
  231. btnT3.Position         = UDim2.new(0, 92, 0, 135)
  232. btnT3.Text             = "Basic"
  233. btnT3.BackgroundColor3 = Color3.fromRGB(186,85,211)
  234. btnT3.TextSize         = 11
  235. btnT3.Name             = "btnT3"
  236.  
  237. btnT.MouseButton1Click:Connect(function()
  238.     for _, col in pairs(screen:GetDescendants()) do
  239.         if col:IsA("Frame") then
  240.             col.BackgroundColor3 = Color3.fromRGB(254,254,254)
  241.         elseif col:IsA("TextButton") or col:IsA("TextBox") then
  242.             col.BackgroundColor3 = Color3.fromRGB(220,220,220)
  243.             col.TextColor3 = Color3.fromRGB(0,0,0)
  244.         elseif col:IsA("TextLabel") then
  245.             col.TextColor3 = Color3.fromRGB(0,0,0)
  246.         end
  247.     end
  248. end)
  249.  
  250. btnT2.MouseButton1Click:Connect(function()
  251.     for _, col in pairs(screen:GetDescendants()) do
  252.         if col:IsA("Frame") then
  253.             col.BackgroundColor3 = Color3.fromRGB(0,0,0)
  254.         elseif col:IsA("TextButton") or col:IsA("TextBox") then
  255.             col.BackgroundColor3 = Color3.fromRGB(100,100,100)
  256.             col.TextColor3 = Color3.fromRGB(255,255,255)
  257.         elseif col:IsA("TextLabel") then
  258.             col.TextColor3 = Color3.fromRGB(255,255,255)
  259.         end
  260.     end
  261. end)
  262.    
  263. btnT3.MouseButton1Click:Connect(function()
  264.     for _, col in pairs(screen:GetDescendants()) do
  265.         if col:IsA("Frame") then
  266.             col.BackgroundColor3 = Color3.fromRGB(255,20,147)
  267.         elseif col:IsA("TextButton") or col:IsA("TextBox") then
  268.             col.BackgroundColor3 = Color3.fromRGB(186,85,211)
  269.             col.TextColor3 = Color3.fromRGB(0,0,0)
  270.         elseif col:IsA("TextLabel") then
  271.             col.TextColor3 = Color3.fromRGB(0,0,0)
  272.         end
  273.     end
  274. end)
  275.    
  276. local labelT           = Instance.new("TextLabel")
  277. labelT.Parent          = frame3
  278. labelT.BorderSizePixel = 0
  279. labelT.TextSize        = 14
  280. labelT.Text            = "Themes"
  281. labelT.Position        = UDim2.new(0, 120, 0, 15)
  282. labelT.Name            = "labelT"
  283.    
  284. local textT             = Instance.new("TextBox")
  285. textT.Parent            = frame3
  286. textT.Size              = UDim2.new(0, 85, 0, 25)
  287. textT.Position          = UDim2.new(0, 78, 0, 174)
  288. textT.Text              = ""
  289. textT.PlaceholderText   = "Own"
  290. textT.TextSize          = 11
  291. textT.PlaceholderColor3 = Color3.fromRGB(65,65,65)
  292. textT.ClearTextOnFocus  = false
  293. textT.BackgroundColor3  = Color3.fromRGB(186,85,211)
  294. textT.Name              = "textT"
  295.    
  296. local labelT2           = Instance.new("TextLabel")
  297. labelT2.Parent          = frame3
  298. labelT2.BorderSizePixel = 0
  299. labelT2.Text            = "Example:\nblue"
  300. labelT2.TextSize        = 10
  301. labelT2.Position        = UDim2.new(0, 200, 0, 186)
  302. labelT2.Name            = "labelT2"
  303.    
  304. textT.FocusLost:Connect(function(ent)
  305.     if ent then
  306.         if textT.Text == "blue" then
  307.             for _, col in pairs(screen:GetDescendants()) do
  308.                 if col:IsA("Frame") then
  309.                     col.BackgroundColor3 = Color3.fromRGB(0,0,255)
  310.                 elseif col:IsA("TextButton") or col:IsA("TextBox") then
  311.                     col.BackgroundColor3 = Color3.fromRGB(0,125,255)
  312.                     col.TextColor3 = Color3.fromRGB(0,0,0)
  313.                 elseif col:IsA("TextLabel") then
  314.                     col.TextColor3 = Color3.fromRGB(0,0,0)
  315.                 end
  316.             end
  317.         elseif textT.Text == "red" then
  318.             for _, col in pairs(screen:GetDescendants()) do
  319.                 if col:IsA("Frame") then
  320.                     col.BackgroundColor3 = Color3.fromRGB(255,0,0)
  321.                 elseif col:IsA("TextButton") or col:IsA("TextBox") then
  322.                     col.BackgroundColor3 = Color3.fromRGB(255,126,126)
  323.                     col.TextColor3 = Color3.fromRGB(0,0,0)
  324.                 elseif col:IsA("TextLabel") then
  325.                     col.TextColor3 = Color3.fromRGB(0,0,0)
  326.                 end
  327.             end
  328.         elseif textT.Text == "green" then
  329.             for _, col in pairs(screen:GetDescendants()) do
  330.                 if col:IsA("Frame") then
  331.                     col.BackgroundColor3 = Color3.fromRGB(0,255,0)
  332.                 elseif col:IsA("TextButton") or col:IsA("TextBox") then
  333.                     col.BackgroundColor3 = Color3.fromRGB(0,200,0)
  334.                     col.TextColor3 = Color3.fromRGB(0,0,0)
  335.                 elseif col:IsA("TextLabel") then
  336.                     col.TextColor3 = Color3.fromRGB(0,0,0)
  337.                 end
  338.             end
  339.         elseif textT.Text == "orange" then
  340.             for _, col in pairs(screen:GetDescendants()) do
  341.                 if col:IsA("Frame") then
  342.                     col.BackgroundColor3 = Color3.fromRGB(255,135,0)
  343.                 elseif col:IsA("TextButton") or col:IsA("TextBox") then
  344.                     col.BackgroundColor3 = Color3.fromRGB(255,159,102)
  345.                     col.TextColor3 = Color3.fromRGB(0,0,0)
  346.                 elseif col:IsA("TextLabel") then
  347.                     col.TextColor3 = Color3.fromRGB(0,0,0)
  348.                 end
  349.             end
  350.         elseif textT.Text == "yellow" then
  351.             for _, col in pairs(screen:GetDescendants()) do
  352.                 if col:IsA("Frame") then
  353.                     col.BackgroundColor3 = Color3.fromRGB(255,255,0)
  354.                 elseif col:IsA("TextButton") or col:IsA("TextBox") then
  355.                     col.BackgroundColor3 = Color3.fromRGB(188,255,0)
  356.                     col.TextColor3 = Color3.fromRGB(0,0,0)
  357.                 elseif col:IsA("TextLabel") then
  358.                     col.TextColor3 = Color3.fromRGB(0,0,0)
  359.                 end
  360.             end
  361.         elseif textT.Text == "purple" then
  362.             for _, col in pairs(screen:GetDescendants()) do
  363.                 if col:IsA("Frame") then
  364.                     col.BackgroundColor3 = Color3.fromRGB(170,0,255)
  365.                 elseif col:IsA("TextButton") or col:IsA("TextBox") then
  366.                     col.BackgroundColor3 = Color3.fromRGB(215,135,255)
  367.                     col.TextColor3 = Color3.fromRGB(0,0,0)
  368.                 elseif col:IsA("TextLabel") then
  369.                     col.TextColor3 = Color3.fromRGB(0,0,0)
  370.                 end
  371.             end
  372.         elseif textT.Text == "pink" then
  373.             for _, col in pairs(screen:GetDescendants()) do
  374.                 if col:IsA("Frame") then
  375.                     col.BackgroundColor3 = Color3.fromRGB(255,155,255)
  376.                 elseif col:IsA("TextButton") or col:IsA("TextBox") then
  377.                     col.BackgroundColor3 = Color3.fromRGB(215,135,255)
  378.                     col.TextColor3 = Color3.fromRGB(0,0,0)
  379.                 elseif col:IsA("TextLabel") then
  380.                     col.TextColor3 = Color3.fromRGB(0,0,0)
  381.                 end
  382.             end
  383.         end
  384.     end
  385. end)
  386.    
  387. local btnT4            = Instance.new("TextButton")
  388. btnT4.Parent           = frame3
  389. btnT4.Size             = UDim2.new(0, 55, 0, 25)
  390. btnT4.Position         = UDim2.new(0, 92, 0, 214)
  391. btnT4.Text             = "Clear"
  392. btnT4.BackgroundColor3 = Color3.fromRGB(186,85,211)
  393. btnT4.TextSize         = 11
  394. btnT4.Name             = "btnT4"
  395.    
  396. btnT4.MouseButton1Click:Connect(function()
  397.     textT.Text = ""
  398. end)
  399.    
  400. btnX.MouseButton1Click:Connect(function()
  401.     frame2.Visible = false
  402. end)
  403.  
  404. btn.MouseButton1Click:Connect(function()
  405.     screen:Destroy()
  406. end)
  407.  
  408. btn2.MouseButton1Click:Connect(function()
  409.     text.Text = ""
  410. end)
  411.  
  412. btn3.MouseButton1Click:Connect(function()
  413.     for _, com in pairs(screen:GetChildren()) do
  414.         if com.Name == "f2" then
  415.             com.Visible = true
  416.         end
  417.     end
  418. end)
  419.  
  420. btn4.MouseButton1Click:Connect(function()
  421.     for _, the in pairs(screen:GetChildren()) do
  422.         if the.Name == "f3" then
  423.             the.Visible = true
  424.         end
  425.     end
  426. end)
  427.  
  428. text.FocusLost:Connect(function(e)
  429.     if e then
  430.         if text.Text:sub(1, 2) == "to" then
  431.             local args = text.Text:sub(4)
  432.             if args ~= "" then
  433.                 for _, oth in pairs(plr:GetPlayers()) do
  434.                     if oth.Name:lower():find(args:lower()) or oth.DisplayName:lower():find(args:lower()) then
  435.                         hrp.CFrame = oth.Character.HumanoidRootPart.CFrame
  436.                     end
  437.                 end
  438.             end
  439.         elseif text.Text:sub(1, 6) == "follow" then
  440.             local args2 = text.Text:sub(8)
  441.             if args2 ~= "" then
  442.                 for _, oth2 in pairs(plr:GetPlayers()) do
  443.                     if oth2.Name:lower():find(args2:lower()) or oth2.DisplayName:lower():find(args2:lower()) then
  444.                         local connection
  445.                         connection = game:GetService("RunService").RenderStepped:Connect(function()
  446.                             hum:MoveTo(oth2.Character.HumanoidRootPart.Position)
  447.                             if text.Text == "unfollow" then
  448.                                 connection:Disconnect()
  449.                                 wait()
  450.                                 hum:MoveTo(hrp.Position)
  451.                             end
  452.                         end)
  453.                     end
  454.                 end
  455.             end
  456.         elseif text.Text:sub(1, 7) == "headsit" then
  457.             local args3 = text.Text:sub(9)
  458.             if args3 ~= "" then
  459.                 for _, oth3 in pairs(plr:GetPlayers()) do
  460.                     if oth3.Name:lower():find(args3:lower()) or oth3.DisplayName:lower():find(args3:lower()) then
  461.                         hum.Sit = true
  462.  
  463.                         local con2
  464.                         con2 = game:GetService("RunService").RenderStepped:Connect(function()
  465.                             hrp.CFrame = oth3.Character.Head.CFrame * CFrame.Angles(0,0,0)
  466.                             uis.InputBegan:Connect(function(i2, g2)
  467.                                 if i2.KeyCode == Enum.KeyCode.Space and not g2 then
  468.                                     hum.Sit = false
  469.  
  470.                                     if con2 then
  471.                                         con2:Disconnect()
  472.                                         con2 = nil
  473.                                     end
  474.                                 end
  475.                             end)
  476.                         end)
  477.                     end
  478.                 end
  479.             end
  480.         elseif text.Text:sub(1, 8) == "waypoint" then
  481.             local args4 = text.Text:sub(10)
  482.             if args4 ~= "" then
  483.                 local p        = Instance.new("Part")
  484.                 p.Parent       = me.Character
  485.                 p.Name         = args4
  486.                 p.Transparency = 0.9
  487.                 p.Anchored     = true
  488.                 p.CanCollide   = false
  489.                 p.BrickColor   = BrickColor.new("Pink")
  490.                 if me.Character:FindFirstChild("RightFoot") then
  491.                     p.CFrame = me.Character.RightFoot.CFrame
  492.                 else
  493.                     p.CFrame = me.Character[rightleg].CFrame
  494.                 end
  495.             end
  496.         elseif text.Text:sub(1, 5) == "wayrm" then
  497.             local args5 = text.Text:sub(7)
  498.             if args5 ~= "" then
  499.                 me.Character[args5]:Destroy()
  500.             end
  501.         elseif text.Text:sub(1, 5) == "tpway" then
  502.             local args6 = text.Text:sub(7)
  503.             if args6 ~= "" then
  504.                 hrp.CFrame = me.Character[args6].CFrame
  505.             end
  506.         elseif text.Text:sub(1, 4) == "view" then
  507.             local args7 = text.Text:sub(6)
  508.             if args7 ~= "" then
  509.                 for _, oth4 in pairs(plr:GetPlayers()) do
  510.                     if oth4.Name:lower():find(args7:lower()) or oth4.DisplayName:lower():find(args7:lower()) then
  511.                         work.Camera.CameraSubject = oth4.Character
  512.                     end
  513.                 end
  514.             end
  515.         elseif text.Text == "unview" then
  516.             work.Camera.CameraSubject = me.Character
  517.         elseif text.Text:sub(1, 5) == "speed" then
  518.             local args8 = text.Text:sub(7)
  519.             if args8 ~= "" then
  520.                 if speedCon then
  521.                     speedCon:Disconnect()
  522.                     speedCon = nil
  523.  
  524.                     speedCon = run.RenderStepped:Connect(function()
  525.                         hum.WalkSpeed = args8
  526.                     end)
  527.                 else
  528.                     speedCon = run.RenderStepped:Connect(function()
  529.                         hum.WalkSpeed = args8
  530.                     end)
  531.                 end
  532.             end
  533.         elseif text.Text:sub(1, 9) == "jumppower" then
  534.             local args9 = text.Text:sub(11)
  535.             if args9 ~= "" then
  536.                 if jumpCon then
  537.                     jumpCon:Disconnect()
  538.                     jumpCon = nil
  539.  
  540.                     jumpCon = run.RenderStepped:Connect(function()
  541.                         hum.JumpPower = args9
  542.                     end)
  543.                 else
  544.                     jumpCon = run.RenderStepped:Connect(function()
  545.                         hum.JumpPower = args9
  546.                     end)
  547.                 end
  548.             end
  549.         elseif text.Text:sub(1, 7) == "gravity" then
  550.             local grav = text.Text:sub(9)
  551.             if grav ~= "" then
  552.                 if gravityCon then
  553.                     gravityCon:Disconnect()
  554.                     gravityCon = nil
  555.  
  556.                     gravityCon = run.RenderStepped:Connect(function()
  557.                         work.Gravity = grav
  558.                     end)
  559.                 else
  560.                     gravityCon = run.RenderStepped:Connect(function()
  561.                         work.Gravity = grav
  562.                     end)
  563.                 end
  564.             end
  565.         elseif text.Text:sub(1,3) == "say" then
  566.             local say = text.Text:sub(5)
  567.             if say ~= "" then
  568.                 if textChat and textChat:FindFirstChild("TextChannels") then
  569.                     local textChat2 = textChat.TextChannels:FindFirstChild("RBXGeneral")
  570.                     if textChat2 then
  571.                         textChat2:SendAsync(say)
  572.                     end
  573.                 elseif rep and rep:FindFirstChild("DefaultChatSystemChatEvents") then
  574.                     local oldChat = rep.DefaultChatSystemChatEvents
  575.                     if oldChat then
  576.                         oldChat.SayMessageRequest:FireServer(say, "ALL")
  577.                     end
  578.                 end
  579.             end
  580.         elseif text.Text == "grabtools" then
  581.             toolcon = game:GetService("RunService").RenderStepped:Connect(function()
  582.                 for _, tool in pairs(work:GetChildren()) do
  583.                     if tool:IsA("Tool") then
  584.                         tool.Parent = me.Backpack
  585.                     end
  586.                 end
  587.             end)
  588.         elseif text.Text == "ungrabtools" then
  589.             toolcon:Disconnect()
  590.         elseif text.Text == "droptools" then
  591.             for _, drop in pairs(me.Backpack:GetChildren()) do
  592.                 if drop:IsA("Tool") then
  593.                     drop.Parent = work
  594.                 end
  595.             end
  596.         elseif text.Text == "lay" then
  597.             hum.Sit = true
  598.             task.wait(0.1)
  599.             hum.RootPart.CFrame = hum.RootPart.CFrame * CFrame.Angles(math.pi * 0.5, 0, 0)
  600.             for _, nigger in pairs(hum:GetPlayingAnimationTracks()) do
  601.                 nigger:Stop()
  602.             end
  603.         elseif text.Text == "sit" then
  604.             hum.Sit = true
  605.         elseif text.Text == "reset" then
  606.             hum.Health = 0
  607.         elseif text.Text == "rejoin" then
  608.             local p = plr:GetPlayers()
  609.  
  610.             if #p <= 1 then
  611.                 p.LocalPlayer:Kick("Rejoin")
  612.                 wait()
  613.                 game:GetService("TeleportService"):Teleport(game.PlaceId, p.LocalPlayer)
  614.             else
  615.                 game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, game.JobId, p.LocalPlayer)
  616.             end
  617.         elseif text.Text:sub(1, 7) == "maxzoom" then
  618.             local mz = text.Text:sub(9)
  619.             if mz ~= "" then
  620.                 me.CameraMaxZoomDistance = mz
  621.             end
  622.         elseif text.Text:sub(1, 7) == "minzoom" then
  623.             local minz = text.Text:sub(9)
  624.             if minz ~= "" then
  625.                 me.CameraMinZoomDistance = minz
  626.             end
  627.         elseif text.Text == "clicktp" then
  628.             game:GetService("UserInputService").InputBegan:Connect(function(input, gay)
  629.                 if gay then return end
  630.    
  631.                 local ctrl = game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.LeftControl)
  632.    
  633.                 if input.UserInputType == Enum.UserInputType.MouseButton1 then
  634.                     if ctrl then
  635.                         mouse      = plr.LocalPlayer:GetMouse()
  636.                         local tp   = mouse.Hit+Vector3.new(0,2.5,0)
  637.                         tp         = CFrame.new(tp.X,tp.Y,tp.Z)
  638.                         hrp.CFrame = tp
  639.                     else
  640.                         print("Only m1 :(")
  641.                     end
  642.                 end
  643.             end)
  644.         elseif text.Text == "infjump" then
  645.             game:GetService("UserInputService").InputBegan:Connect(function(i,g)
  646.                 if i.KeyCode == Enum.KeyCode.Space and not g then
  647.                     me.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  648.                 end
  649.             end)
  650.         elseif text.Text == "jump" then
  651.             me.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  652.         elseif text.Text == "fly" then
  653.             local flyHolder = Instance.new("Part")
  654.             flyHolder.Parent = me.Character
  655.             flyHolder.Transparency = 0.999
  656.             flyHolder.Name = "FlyHolder"
  657.             fhCon = run.RenderStepped:Connect(function()
  658.                 flyHolder.CFrame = hrp.CFrame * CFrame.new(0,-3.6,0)
  659.             end)
  660.             uisHolder = uis.InputBegan:Connect(function(i,g)
  661.                 if g then return end
  662.  
  663.                 if i.KeyCode == Enum.KeyCode.E and not Uhold then
  664.                     Uhold = true
  665.                     flyCon = run.RenderStepped:Connect(function(dt)
  666.                         for _, endAnims in pairs(hum:GetPlayingAnimationTracks()) do
  667.                             endAnims:Stop()
  668.                         end
  669.                        
  670.                         hrp.CFrame = hrp.CFrame + hrp.CFrame.UpVector * 100 * dt
  671.                     end)
  672.                 elseif i.KeyCode == Enum.KeyCode.Q and not Dhold then
  673.                     Dhold = true
  674.                     flyCon2 = run.RenderStepped:Connect(function(dt)
  675.                         for _, endAnims in pairs(hum:GetPlayingAnimationTracks()) do
  676.                             endAnims:Stop()
  677.                         end
  678.                        
  679.                         hrp.CFrame = hrp.CFrame + -hrp.CFrame.UpVector * 100 * dt
  680.                     end)
  681.                 elseif i.KeyCode == Enum.KeyCode.W and not Fhold then
  682.                     Fhold = true
  683.                     flyCon3 = run.RenderStepped:Connect(function(dt)
  684.                         for _, endAnims in pairs(hum:GetPlayingAnimationTracks()) do
  685.                             endAnims:Stop()
  686.                         end
  687.                        
  688.                         hrp.CFrame = hrp.CFrame + hrp.CFrame.LookVector * 100 * dt
  689.                     end)
  690.                 elseif i.KeyCode == Enum.KeyCode.S and not Bhold then
  691.                     Bhold = true
  692.                     flyCon4 = run.RenderStepped:Connect(function(dt)
  693.                         for _, endAnims in pairs(hum:GetPlayingAnimationTracks()) do
  694.                             endAnims:Stop()
  695.                         end
  696.                        
  697.                         hrp.CFrame = hrp.CFrame + -hrp.CFrame.LookVector * 100 * dt
  698.                     end)
  699.                 elseif i.KeyCode == Enum.KeyCode.D and not Rhold then
  700.                     Rhold = true
  701.                     flyCon5 = run.RenderStepped:Connect(function(dt)
  702.                         for _, endAnims in pairs(hum:GetPlayingAnimationTracks()) do
  703.                             endAnims:Stop()
  704.                         end
  705.                        
  706.                         hrp.CFrame = hrp.CFrame + hrp.CFrame.RightVector * 100 * dt
  707.                     end)
  708.                 elseif i.KeyCode == Enum.KeyCode.A and not Lhold then
  709.                     Lhold = true
  710.                     flyCon6 = run.RenderStepped:Connect(function(dt)
  711.                         for _, endAnims in pairs(hum:GetPlayingAnimationTracks()) do
  712.                             endAnims:Stop()
  713.                         end
  714.                        
  715.                         hrp.CFrame = hrp.CFrame + -hrp.CFrame.RightVector * 100 * dt
  716.                     end)
  717.                 end
  718.             end)
  719.             uis.InputEnded:Connect(function(i,g)
  720.                 if g then return end
  721.  
  722.                 if i.KeyCode == Enum.KeyCode.E then
  723.                     Uhold = false
  724.                    
  725.                     if flyCon then
  726.                         flyCon:Disconnect()
  727.                         flyCon = nil
  728.                     end
  729.                 elseif i.KeyCode == Enum.KeyCode.Q then
  730.                     Dhold = false
  731.                    
  732.                     if flyCon2 then
  733.                         flyCon2:Disconnect()
  734.                         flyCon2 = nil
  735.                     end
  736.                 elseif i.KeyCode == Enum.KeyCode.W then
  737.                     Fhold = false
  738.                    
  739.                     if flyCon3 then
  740.                         flyCon3:Disconnect()
  741.                         flyCon3 = nil
  742.                     end
  743.                 elseif i.KeyCode == Enum.KeyCode.S then
  744.                     Bhold = false
  745.                    
  746.                     if flyCon4 then
  747.                         flyCon4:Disconnect()
  748.                         flyCon4 = nil
  749.                     end
  750.                 elseif i.KeyCode == Enum.KeyCode.D then
  751.                     Rhold = false
  752.                    
  753.                     if flyCon5 then
  754.                         flyCon5:Disconnect()
  755.                         flyCon5 = nil
  756.                     end
  757.                 elseif i.KeyCode == Enum.KeyCode.A then
  758.                     Lhold = false
  759.                    
  760.                     if flyCon6 then
  761.                         flyCon6:Disconnect()
  762.                         flyCon6 = nil
  763.                     end
  764.                 end
  765.             end)
  766.         elseif text.Text == "unfly" then
  767.             hrp.Anchored = false
  768.            
  769.             local fPart = me.Character:FindFirstChild("FlyHolder")
  770.             if fPart then
  771.                 fPart:Destroy()
  772.             end
  773.            
  774.             if uisHolder then
  775.                 uisHolder:Disconnect()
  776.                 uisHolder = nil
  777.             elseif fhCon then
  778.                 fhCon:Disconnect()
  779.                 fhCon = nil
  780.             end
  781.         end
  782.     end
  783. end)
  784.  
  785. uis.InputBegan:Connect(function(i, g)
  786.     if i.KeyCode == Enum.KeyCode.Semicolon and not g then
  787.         text:CaptureFocus()
  788.         wait(0)
  789.         text.Text = ""
  790.     end
  791. end)
  792.  
  793. screen.ResetOnSpawn = false
  794.  
Add Comment
Please, Sign In to add comment