altf4foradmin

[R] Universal Gui

Feb 5th, 2022 (edited)
1,159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.87 KB | None | 0 0
  1. local Workspace = game:GetService("Workspace")
  2. local Players = game:GetService("Players")
  3. local Lighting = game:GetService("Lighting")
  4. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  5. local TweenService = game:GetService("TweenService")
  6. local CoreGui = game:GetService("CoreGui")
  7. local StarterGui = game:GetService("StarterGui")
  8. local ReplicatedFirst = game:GetService("ReplicatedFirst")
  9. local Chat = game:GetService("Chat")
  10. local SoundService = game:GetService("SoundService")
  11. local RunService = game:GetService("RunService")
  12. local JointsService = game:GetService("JointsService")
  13. local gui = CoreGui.RobloxGui.Backpack.Hotbar
  14. local part1
  15. local part1_weld
  16. local SPeeD = 0.5
  17. local playertofling
  18. local flingpower = 10000
  19. local c
  20. local SpeedEnabled = false
  21. local FlingEnabled = false
  22. local NoclipEnabled = false
  23. local antibring_oldtool
  24. local AntibringEnabled = false
  25. local fakelag = false
  26. local Admins = {}
  27. local connections = {}
  28. local prefix = "/"
  29.  
  30. local plr = Players.LocalPlayer
  31. local mv = require(plr:WaitForChild("PlayerScripts").PlayerModule:WaitForChild("ControlModule"))
  32. local mouse = plr:GetMouse()
  33.  
  34. table.insert(Admins,plr.Name)
  35. plr.Chatted:connect(function(msg)
  36. findcmd(plr,msg)
  37. end)
  38.  
  39. local function findplr(Target)
  40. local name = Target
  41. local found = false
  42. for _,v in pairs(game.Players:GetPlayers()) do
  43. if not found and (v.Name:lower():sub(1,#name) == name:lower() or v.DisplayName:lower():sub(1,#name) == name:lower()) then
  44. name = v
  45. found = true
  46. end
  47. end
  48. if name ~= nil and name ~= Target then
  49. return name
  50. end
  51. end
  52.  
  53. function Moveto(pos)
  54. if plr.Character and plr.Character:FindFirstChild("Humanoid") then
  55. plr.Character.Humanoid:MoveTo(pos)
  56. end
  57. end
  58.  
  59. spawn(function()
  60. while true do wait()
  61. if SpeedEnabled and plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") and plr.Character:FindFirstChildOfClass("Humanoid") then
  62. plr.Character.HumanoidRootPart.CFrame = plr.Character.HumanoidRootPart.CFrame+(plr.Character.Humanoid.MoveDirection*SPeeD)
  63. end
  64. end
  65. end)
  66.  
  67. function findcmd(player,msg)
  68. local Args = msg:lower():split(" ")
  69. local arg1 = Args[1]
  70. local arg2 = Args[2]
  71. local arg3 = Args[3]
  72. local arg4 = Args[4]
  73. local arg5 = Args[5]
  74. if arg1 == "/e" then
  75. arg1 = arg2
  76. arg2 = arg3
  77. arg3 = arg4
  78. arg4 = arg5
  79. end
  80. local target
  81. if arg1 == prefix.."reset" then
  82. if plr.Character and plr.Character:FindFirstChildOfClass("Humanoid") then
  83. plr.Character:FindFirstChildOfClass("Humanoid"):ChangeState(Enum.HumanoidStateType.Dead)
  84. plr.Character:FindFirstChildOfClass("Humanoid").Health = 0
  85. end
  86. elseif arg1 == prefix.."kill" then
  87. if arg2 ~= "me" then
  88. target = arg2
  89. end
  90. if arg2 == "me" then
  91. target = player.Name
  92. end
  93. kill_player(true,target)
  94. elseif arg1 == prefix.."prefix" then
  95. if player == plr then
  96. prefix = arg2:sub(1,1)
  97. end
  98. elseif arg1 == prefix.."bring" then
  99. if arg2 ~= "me" then
  100. target = arg2:lower()
  101. end
  102. if arg2 == "me" then
  103. target = player.Name:lower()
  104. end
  105. if player and player.Character and player.Character.HumanoidRootPart then
  106. kill_player(false,target,player.Character.HumanoidRootPart.CFrame)
  107. end
  108. elseif arg1 == prefix.."moveto" then
  109. if arg2 ~= "me" then
  110. target = findplr(arg2)
  111. end
  112. if arg2 == "me" then
  113. target = player
  114. end
  115. if target and target.Character and target.Character:FindFirstChild("HumanoidRootPart") then
  116. Moveto(target.Character.HumanoidRootPart.Position)
  117. end
  118. elseif arg1 == prefix.."fly" then
  119. if not arg2 then arg2 = 50 end
  120. local val = tonumber(arg2)
  121. if val then
  122. unfly() fly(val)
  123. end
  124. elseif arg1 == prefix.."unfly" then
  125. unfly()
  126. elseif arg1 == prefix.."cfly" then
  127. if not arg2 then arg2 = 20 end
  128. local val = tonumber(arg2)
  129. if val then
  130. uncfly() cfly(val)
  131. end
  132. elseif arg1 == prefix.."uncfly" then
  133. uncfly()
  134. elseif arg1 == prefix.."speed" then
  135. if not arg2 then arg2 = 0.5 end
  136. local val = tonumber(arg2)
  137. if val then
  138. SpeedEnabled = true
  139. SPeeD = val
  140. end
  141. elseif arg1 == prefix.."unspeed" then
  142. SpeedEnabled = false
  143. elseif arg1 == prefix.."goto" then
  144. if arg2 ~= "me" then
  145. target = findplr(arg2)
  146. end
  147. if arg2 == "me" then
  148. target = player
  149. end
  150. if plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") and target and target.Character and target.Character:FindFirstChild("HumanoidRootPart") then
  151. plr.Character.HumanoidRootPart.CFrame = target.Character.HumanoidRootPart.CFrame
  152. end
  153. elseif arg1 == prefix.."tp" then
  154. local target1
  155. if arg2 ~= "me" then
  156. target = arg2:lower()
  157. end
  158. if arg2 == "me" then
  159. target = player.Name:lower()
  160. end
  161. if arg3 ~= "me" then
  162. target1 = findplr(arg3:lower())
  163. end
  164. if arg3 == "me" then
  165. target1 = player
  166. end
  167. if player and player.Character and player.Character.HumanoidRootPart and target1 and target1.Character and target1.Character:FindFirstChild("HumanoidRootPart") then
  168. kill_player(false,target,target1.Character.HumanoidRootPart.CFrame)
  169. end
  170. elseif arg1 == prefix.."fling" then
  171. local en = FlingEnabled
  172. if arg2 ~= "me" then
  173. target = findplr(arg2)
  174. end
  175. if arg2 == "me" then
  176. target = player
  177. end
  178. if plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") and target.Character and target.Character:FindFirstChild("HumanoidRootPart") then
  179. oldpos = plr.Character.HumanoidRootPart.CFrame
  180. local co = 0
  181. repeat wait(0.1) co = co+1
  182. FlingEnabled = true
  183. if plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") and target and target.Character and target.Character:FindFirstChild("HumanoidRootPart") then
  184. plr.Character.HumanoidRootPart.CFrame = target.Character.HumanoidRootPart.CFrame
  185. plr.Character.HumanoidRootPart.RotVelocity = Vector3.new(flingpower,flingpower,flingpower)
  186. for _,v in pairs(plr.Character:GetChildren()) do
  187. if v:IsA("BasePart") then
  188. v.Velocity = Vector3.new(0,5,0)
  189. end
  190. end
  191. end
  192. until co >= 100
  193. FlingEnabled = en
  194. for i = 1,10 do wait()
  195. if plr.Character then
  196. for _,v in pairs(plr.Character:GetChildren()) do
  197. if v:IsA("BasePart") then
  198. v.CanCollide = true
  199. v.Massless = false
  200. v.Velocity = Vector3.new(0,0,0)
  201. v.RotVelocity = Vector3.new(0,0,0)
  202. end
  203. end
  204. if plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then
  205. plr.Character.HumanoidRootPart.CFrame = oldpos
  206. end
  207. end
  208. end
  209. end
  210. end
  211. end
  212.  
  213. function kill_player(kill,player,nextpos)
  214. local player = findplr(player)
  215. local kill_oldpos
  216. if plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then
  217. kill_oldpos = plr.Character.HumanoidRootPart.CFrame
  218. end
  219. if plr.Character and plr.Character:FindFirstChildOfClass("Tool") then
  220. plr.Character:FindFirstChildOfClass("Tool").Parent = plr.Backpack
  221. end
  222. local foundtool = false
  223. function findtool()
  224. if not plr.Character:FindFirstChildOfClass("Tool") or (plr.Character:FindFirstChildOfClass("Tool") and not plr.Character:FindFirstChildOfClass("Tool"):FindFirstChild("Handle")) then
  225. for _,v in pairs(plr.Backpack:GetDescendants()) do
  226. if v.Name == "Handle" and not foundtool then
  227. v.Parent.Parent = plr.Character
  228. foundtool = true
  229. end
  230. end
  231. end
  232. end
  233. if player then
  234. if plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") and plr.Character:FindFirstChild("Humanoid") then
  235. local pos = plr.Character:FindFirstChild("HumanoidRootPart").CFrame
  236. plr.Character.Humanoid.Name = "1"
  237. local l = plr.Character["1"]:Clone()
  238. l.Parent = plr.Character
  239. l.Name = "Humanoid"
  240. wait(0.1)
  241. plr.Character["1"]:Destroy()
  242. workspace.CurrentCamera.CameraSubject = plr.Character.Humanoid
  243. plr.Character.Animate.Disabled = true
  244. findtool()
  245. spawn(function()
  246. plr.CharacterAdded:wait()
  247. wait(0.3)
  248. if kill_oldpos ~= nil and plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then
  249. plr.Character.HumanoidRootPart.CFrame = kill_oldpos
  250. kill_oldpos = nil
  251. end
  252. end)
  253. if plr.Character:FindFirstChildOfClass("Tool") and plr.Character:FindFirstChildOfClass("Tool"):FindFirstChild("Handle") then
  254. local tool = plr.Character:FindFirstChildOfClass("Tool")
  255. if plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") and nextpos then
  256. plr.Character.HumanoidRootPart.CFrame = nextpos
  257. end
  258. local wtime = 0
  259. repeat wait(.1)
  260. wtime = wtime + 1
  261. if kill and plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then
  262. plr.Character.HumanoidRootPart.Position = Vector3.new(66611,workspace.FallenPartsDestroyHeight+2,66611)
  263. end
  264. if firetouchinterest and player.Character and player.Character:FindFirstChild("HumanoidRootPart") and tool and tool:FindFirstChild("Handle") then
  265. firetouchinterest(player.Character.HumanoidRootPart,tool.Handle,0)
  266. firetouchinterest(player.Character.HumanoidRootPart,tool.Handle,1)
  267. elseif player.Character and player.Character:FindFirstChild("HumanoidRootPart") and tool and tool:FindFirstChild("Handle") and plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then
  268. player.Character.HumanoidRootPart.CFrame = tool.Handle.CFrame
  269. plr.Character.HumanoidRootPart.Anchored = true
  270. end
  271. until (not plr.Character:FindFirstChildOfClass("Tool") or not plr.Character:FindFirstChild("HumanoidRootPart") or wtime > 80) and wtime > 3
  272. if plr.Character:FindFirstChild("HumanoidRootPart") then
  273. plr.Character.HumanoidRootPart.Anchored = false
  274. end
  275. end
  276. end
  277. end
  278. end
  279.  
  280. function noarm(Target,Silent)
  281. local Target = findplr(Target)
  282. if plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then
  283. givetool_oldpos = plr.Character.HumanoidRootPart.CFrame
  284. end
  285. if plr.Character and plr.Character:FindFirstChildOfClass("Tool") then
  286. oldtool = plr.Character:FindFirstChildOfClass("Tool")
  287. plr.Character:FindFirstChildOfClass("Tool").Parent = plr.Backpack
  288. end
  289. if plr.Character then
  290. for _,v in pairs(plr.Backpack:GetDescendants()) do
  291. if v.Name == "Handle" then
  292. v.Parent.Parent = plr.Character
  293. end
  294. end
  295. wait(0.1)
  296. for _,v in pairs(plr.Character:GetChildren()) do
  297. if v:IsA("Tool") then
  298. v.Parent = plr.Backpack
  299. end
  300. end
  301. end
  302.  
  303. local foundtool = false
  304. function findtool()
  305. if plr.Character and (not plr.Character:FindFirstChildOfClass("Tool") or (plr.Character:FindFirstChildOfClass("Tool") and not plr.Character:FindFirstChildOfClass("Tool"):FindFirstChild("Handle"))) then
  306. for _,v in pairs(plr.Backpack:GetDescendants()) do
  307. if v.Name == "Handle" and not foundtool then
  308. v.Parent.Parent = plr.Character
  309. if not UseAllTools then
  310. foundtool = true
  311. end
  312. end
  313. end
  314. end
  315. end
  316. if plr.Character and plr.Character:FindFirstChild("Torso") and plr.Character:FindFirstChild("Torso"):FindFirstChild("Right Shoulder") and plr.Character:FindFirstChild("Right Arm") then
  317. local cl = plr.Character:FindFirstChild("Right Arm"):Clone()
  318. cl.Parent = nil
  319. plr.Character:FindFirstChild("Right Arm"):Destroy()
  320. cl.Parent = plr.Character
  321. plr.Character:FindFirstChild("Torso")["Right Shoulder"].Part1 = cl
  322. elseif plr.Character:FindFirstChild("RightHand") then
  323. local cl = plr.Character:FindFirstChild("RightHand"):Clone()
  324. cl.Parent = nil
  325. plr.Character:FindFirstChild("RightHand"):Destroy()
  326. cl.Parent = plr.Character
  327. end
  328. findtool()
  329. wait(0.3)
  330. if Target then
  331. if (plr.Character:FindFirstChildOfClass("Tool") and plr.Character:FindFirstChildOfClass("Tool"):FindFirstChild("Handle")) then
  332. local tool = plr.Character:FindFirstChildOfClass("Tool")
  333. tool.Parent = Workspace
  334. if Target.Character and Target.Character:FindFirstChild("HumanoidRootPart") then
  335. targetoldpos = Target.Character.HumanoidRootPart.CFrame
  336. end
  337. local wtime = 0
  338. repeat wait(.1)
  339. wtime = wtime + 1
  340. if firetouchinterest and Target.Character and Target.Character:FindFirstChild("HumanoidRootPart") and tool and tool:FindFirstChild("Handle") then
  341. firetouchinterest(Target.Character.HumanoidRootPart,tool.Handle,0)
  342. firetouchinterest(Target.Character.HumanoidRootPart,tool.Handle,1)
  343. elseif not firetouchinterest and plr.Character and Target.Character and Target.Character:FindFirstChild("HumanoidRootPart") and tool and tool:FindFirstChild("Handle") and plr.Character:FindFirstChild("HumanoidRootPart") then
  344. if plr.Character:FindFirstChild("RightHand") then
  345. Target.Character.HumanoidRootPart.CFrame = plr.Character["RightHand"].CFrame
  346. elseif plr.Character:FindFirstChild("Right Arm") then
  347. Target.Character.HumanoidRootPart.CFrame = plr.Character["Right Arm"].CFrame
  348. end
  349. plr.Character:FindFirstChild("HumanoidRootPart").Velocity = Vector3.new(0,0,0)
  350. plr.Character.HumanoidRootPart.CustomPhysicalProperties = PhysicalProperties.new(1000,.1,1,1,1)
  351. end
  352. until (not tool or not plr.Character:FindFirstChild("HumanoidRootPart") or not Target.Character or tool.Parent == Target.Backpack or tool.Parent == Target.Character or wtime > 500) and wtime > 3
  353. if plr.Character and plr.Character:FindFirstChild("Humanoid") then
  354. plr.Character:FindFirstChild("Humanoid"):ChangeState(Enum.HumanoidStateType.Dead)
  355. plr.Character:FindFirstChild("Humanoid").Health = 0
  356. if Silent then
  357. for _,v in pairs(plr.Character:GetChildren()) do
  358. if not v:IsA("Humanoid") then
  359. v:Destroy()
  360. end
  361. end
  362. end
  363. end
  364. spawn(function()
  365. plr.CharacterAdded:wait()
  366. wait(0.3)
  367. if givetool_oldpos ~= nil and plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then
  368. plr.Character.HumanoidRootPart.CFrame = givetool_oldpos
  369. givetool_oldpos = nil
  370. end
  371. end)
  372. if plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then
  373. plr.Character.HumanoidRootPart.CustomPhysicalProperties = PhysicalProperties.new(1,.1,1,1,1)
  374. end
  375. if Target.Character and Target.Character:FindFirstChild("HumanoidRootPart") then
  376. Target.Character.HumanoidRootPart.CFrame = targetoldpos
  377. end
  378. end
  379. end
  380. end
  381.  
  382. spawn(function()
  383. local gui = CoreGui.RobloxGui.Backpack.Hotbar
  384. while true do wait()
  385. if AntibringEnabled and plr.Character and plr.Character:FindFirstChildOfClass("Tool") and plr.Character:FindFirstChildOfClass("Tool") ~= oldtool then
  386. plr.Character:FindFirstChildOfClass("Tool").Parent = plr.Backpack
  387. if antibring_oldtool ~= nil then
  388. antibring_oldtool.Parent = plr.Character
  389. end
  390. end
  391. end
  392. end)
  393. spawn(function()
  394. mouse.KeyDown:connect(function(key)
  395. local numberkey = tonumber(key)
  396. if numberkey then
  397. if gui:FindFirstChild(key) and gui[key].ToolName.Text ~= "" then
  398. if plr.Character and plr.Character:FindFirstChild(gui[key].ToolName.Text) then
  399. antibring_oldtool = plr.Character:FindFirstChild(gui[key].ToolName.Text)
  400. end
  401. antibring_oldtool = plr.Backpack:FindFirstChild(gui[key].ToolName.Text)
  402. end
  403. end
  404. end)
  405. end)
  406.  
  407. local function RandomString()
  408. local length = math.random(10,20)
  409. local array = {}
  410. for i = 1, length do
  411. array[i] = string.char(math.random(32, 126))
  412. end
  413. return table.concat(array)
  414. end
  415.  
  416. function fake_lag(enable)
  417. fakelag = enable
  418. wait(0.1)
  419. if fakelag and plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then
  420. local cl = plr.Character.HumanoidRootPart:Clone()
  421. local p = Instance.new("Folder")
  422. p.Name = "_Fake Lag_.1970_"
  423. cl.Name = "HumanoidRootPart"
  424. cl.Parent = plr.Character
  425. p.Parent = cl
  426. if plr.Character:FindFirstChild("Animate") then
  427. plr.Character.Animate.Disabled = true
  428. end
  429. elseif not fakelag and plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then
  430. for _,v in pairs(plr.Character:GetDescendants()) do
  431. if v.Name == "_Fake Lag_.1970_" then
  432. v.Parent:Destroy()
  433. end
  434. end
  435. if plr.Character:FindFirstChild("Animate") then
  436. plr.Character.Animate.Disabled = false
  437. end
  438. end
  439. end
  440.  
  441. cflying = false
  442. function cfly(cspeed1)
  443. if not cspeed1 then cspeed1 = 5 end
  444. cspeed1 = cspeed1/10
  445. repeat wait() until plr.Character and plr.Character:FindFirstChild('HumanoidRootPart')
  446. local part = plr.Character.HumanoidRootPart
  447. local function cfly1()
  448. cflying = true
  449. spawn(function()
  450. spawn(function()
  451. table.insert(connections,
  452. RunService.RenderStepped:Connect(function()
  453. if plr.Character then
  454. for _,v in next,plr.Character:GetDescendants() do
  455. if v:IsA("BasePart") then
  456. v.Velocity = Vector3.new(0,v:GetMass()-0.7,0)
  457. end
  458. end
  459. end
  460. end))
  461. end)
  462. repeat wait()
  463. if mv:GetMoveVector() ~= Vector3.new(0,0,0) and plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then
  464. local pos = (workspace.CurrentCamera.CoordinateFrame.LookVector * (-mv:GetMoveVector().Z) + (workspace.CurrentCamera.CoordinateFrame*CFrame.new(mv:GetMoveVector().X, (mv:GetMoveVector().Z) * 0, 0).p - workspace.CurrentCamera.CoordinateFrame.p))
  465. plr.Character.HumanoidRootPart.CFrame = plr.Character.HumanoidRootPart.CFrame+pos*cspeed1
  466. end
  467. until not cflying
  468. for i,v in next,connections do
  469. connections[i]:Disconnect()
  470. end
  471. end)
  472. end
  473. cfly1()
  474. end
  475. function uncfly()
  476. cflying = false
  477. end
  478.  
  479. local function SpawnPart()
  480. for _,v in pairs(Workspace:GetDescendants()) do
  481. if v:IsA("IntValue") and v.Name == "NAFP1234567890" and v.Value == 192 then
  482. v.Parent:Destroy()
  483. end
  484. end
  485. for _,v in pairs(JointsService:GetDescendants()) do
  486. if v:IsA("IntValue") and v.Name == "NAFP1234567890" and v.Value == 192 then
  487. v.Parent:Destroy()
  488. end
  489. end
  490. part1 = Instance.new("Part",Workspace)
  491. part1.CanCollide = false
  492. part1.Transparency = 1
  493. part1.Name = RandomString()
  494. local ind = Instance.new("IntValue",part1)
  495. ind.Name = "NAFP1234567890"
  496. ind.Value = 192
  497. local weld = Instance.new("Weld",JointsService)
  498. part1_weld = weld
  499. weld.Name = RandomString()
  500. weld.Part0 = part1
  501. ind:Clone().Parent = weld
  502. end
  503.  
  504. flying = false
  505. speed1 = 50
  506. function fly(tween,gyroless)
  507. SpawnPart()
  508. repeat wait() until plr.Character and plr.Character:FindFirstChild('HumanoidRootPart') and part1 and part1_weld
  509.  
  510. local part = part1
  511. part1_weld.Part1 = plr.Character.HumanoidRootPart
  512.  
  513. local function fly1()
  514. flying = true
  515. local BG = nil
  516. local BV = Instance.new('BodyVelocity', part)
  517. BV.Name = RandomString()
  518. BV.Velocity = Vector3.new(0, 0.1, 0)
  519. BV.MaxForce = Vector3.new(9e9, 9e9, 9e9)
  520. if not gyroless then
  521. BG = Instance.new('BodyGyro', part)
  522. BG.Name = RandomString()
  523. BG.P = 9e4
  524. BG.MaxTorque = Vector3.new(9e9, 9e9, 9e9)
  525. end
  526. spawn(function()
  527. repeat wait()
  528. if not part1 or not part1_weld or part1_weld.Part1 == nil then
  529. unfly() wait() fly()
  530. end
  531. if mv:GetMoveVector() ~= Vector3.new(0,0,0) then
  532. BV.Velocity = ((workspace.CurrentCamera.CoordinateFrame.LookVector * -(mv:GetMoveVector().Z)) + ((workspace.CurrentCamera.CoordinateFrame * CFrame.new(mv:GetMoveVector().X, (mv:GetMoveVector().Z) * 0, 0).p) - workspace.CurrentCamera.CoordinateFrame.p)) * speed1
  533. else
  534. BV.Velocity = Vector3.new(0,0,0)
  535. end
  536. if BG ~= nil and not gyroless then
  537. BG.CFrame = workspace.CurrentCamera.CoordinateFrame
  538. end
  539. until not flying
  540. if BG ~= nil then
  541. BG:Destroy()
  542. end
  543. BV:Destroy()
  544. end)
  545. end
  546. fly1()
  547. end
  548. function unfly()
  549. flying = false
  550. if part1 then
  551. part1:Destroy()
  552. end
  553. if part1_weld then
  554. part1_weld:Destroy()
  555. end
  556. end
  557.  
  558. spawn(function()
  559. RunService.Stepped:connect(function()
  560. if FlingEnabled or NoclipEnabled then
  561. for _,v in pairs(plr.Character:GetChildren()) do
  562. if v:IsA("BasePart") then
  563. v.CanCollide = false
  564. v.Massless = true
  565. if FlindEnabled then
  566. v.Velocity = Vector3.new(0,0.3,0)
  567. end
  568. end
  569. end
  570. end
  571. end)
  572. end)
  573.  
  574. plr.CharacterAdded:connect(function()
  575. wait(0.5)
  576. if flying then unfly() wait() fly() end
  577. end)
  578.  
  579. local library = loadstring(game:HttpGet('https://raw.githubusercontent.com/1111-ssss/raw-script/main/UI_Library'))()
  580.  
  581. local wd = library.CreateWindow({Name = "Universal Script"})
  582. local pg1 = wd.CreatePage({Name = "Main Functions"})
  583. local pg2 = wd.CreatePage({Name = "Tool Functions"})
  584.  
  585. pg1.CreateToggle({
  586. Name = "Fly",
  587. Callback = function(bool)
  588. if bool then
  589. unfly()
  590. wait()
  591. fly()
  592. elseif not bool then
  593. unfly()
  594. end
  595. end
  596. })
  597.  
  598. pg1.CreateToggle({
  599. Name = "CFrame Fly",
  600. Callback = function(bool)
  601. if bool then
  602. uncfly()
  603. wait()
  604. cfly()
  605. elseif not bool then
  606. uncfly()
  607. end
  608. end
  609. })
  610.  
  611. pg1.CreateToggle({
  612. Name = "Speed",
  613. Callback = function(bool)
  614. SpeedEnabled = bool
  615. end})
  616.  
  617. pg1.CreateBox({
  618. Name = "Speed",
  619. Mode = "number",
  620. Callback = function(value)
  621. SPeeD = value
  622. end})
  623.  
  624. pg1.CreateBox({
  625. Name = "Player To Fling",
  626. Mode = "string",
  627. Callback = function(value)
  628. playertofling = findplr(value)
  629. end})
  630.  
  631. pg1.CreateBox({
  632. Name = "Fling Power",
  633. Mode = "number",
  634. Callback = function(value)
  635. flingpower = value
  636. end})
  637.  
  638. pg1.CreateToggle({
  639. Name = "Fling Player",
  640. Callback = function(bool)
  641. FlingEnabled = bool
  642. if bool and plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then
  643. oldpos = plr.Character.HumanoidRootPart.CFrame
  644. end
  645. if not bool and plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then
  646. for i = 1,10 do wait()
  647. if plr.Character then
  648. for _,v in pairs(plr.Character:GetChildren()) do
  649. if v:IsA("BasePart") then
  650. v.CanCollide = true
  651. v.Massless = false
  652. v.Velocity = Vector3.new(0,0,0)
  653. v.RotVelocity = Vector3.new(0,0,0)
  654. end
  655. end
  656. plr.Character.HumanoidRootPart.CFrame = oldpos
  657. end
  658. end
  659. end
  660. spawn(function()
  661. while FlingEnabled do wait()
  662. if plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") and playertofling and playertofling.Character and playertofling.Character:FindFirstChild("HumanoidRootPart") then
  663. plr.Character.HumanoidRootPart.CFrame = playertofling.Character.HumanoidRootPart.CFrame
  664. plr.Character.HumanoidRootPart.RotVelocity = Vector3.new(flingpower,flingpower,flingpower)
  665. for _,v in pairs(plr.Character:GetChildren()) do
  666. if v:IsA("BasePart") then
  667. v.Velocity = Vector3.new(0,5,0)
  668. end
  669. end
  670. end
  671. end
  672. end)
  673. end})
  674.  
  675. pg1.CreateToggle({
  676. Name = "Noclip",
  677. Callback = function(bool)
  678. NoclipEnabled = bool
  679. end})
  680.  
  681. pg1.CreateToggle({
  682. Name = "Blink (Fake Lag)",
  683. Callback = function(bool)
  684. fake_lag(bool)
  685. end})
  686.  
  687. pg1.CreateBox({
  688. Name = "Admin Player",
  689. Mode = "string",
  690. Callback = function(value)
  691. local newadmin = findplr(value)
  692. table.insert(Admins,newadmin.Name)
  693. local con = newadmin.Chatted:Connect(function(msg)
  694. if table.find(Admins,newadmin.Name) then
  695. findcmd(newadmin,msg)
  696. elseif not table.find(Admins,newadmin.Name) then
  697. con:Disconnect()
  698. end
  699. end)
  700. end})
  701.  
  702. pg1.CreateButton({
  703. Name = "Clear Admins",
  704. Callback = function()
  705. Admins = {}
  706. end})
  707.  
  708. pg2.CreateToggle({
  709. Name = "Antibring [Beta]",
  710. Callback = function(bool)
  711. AntibringEnabled = bool
  712. end})
  713.  
  714. pg2.CreateBox({
  715. Name = "FE Kill Player [Godmode method]",
  716. Mode = "string",
  717. Callback = function(value)
  718. kill_player(true,value)
  719. end})
  720.  
  721. pg2.CreateBox({
  722. Name = "FE Bring Player [Godmode method]",
  723. Mode = "string",
  724. Callback = function(value)
  725. kill_player(false,value)
  726. end})
  727.  
  728. pg2.CreateBox({
  729. Name = "Give Tool [No-arm method]",
  730. Mode = "string",
  731. Callback = function(value)
  732. noarm(value,false)
  733. end})
  734.  
  735. pg2.CreateBox({
  736. Name = "Silent Give Tool [No-arm method]",
  737. Mode = "string",
  738. Callback = function(value)
  739. noarm(value,true)
  740. end})
  741.  
  742. --[[pg1.CreateButton({
  743. Name = "button name",
  744. Callback = function()
  745. print("Button Pressed")
  746. end})]]
Advertisement
Add Comment
Please, Sign In to add comment