Dark_Agent

MyWorld Script - Source [OLD]

Aug 27th, 2023
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 54.38 KB | None | 0 0
  1. --[[
  2.     info script
  3.     by MyWorld (remember me)
  4.     discord.gg/pYVHtSJmEY
  5. ]]
  6.  
  7. local twait, tspawn, tdelay = task.wait, task.spawn, task.delay
  8. local g = game
  9. while not g:IsLoaded() do twait() end
  10. local plrs = g:GetService("Players")
  11. local lp = plrs.LocalPlayer
  12. local mouse = lp:GetMouse()
  13. local ws = g:GetService("Workspace")
  14. local cg = g:GetService("CoreGui")
  15. local pg = lp:FindFirstChildOfClass("PlayerGui")
  16. local rs = g:GetService("RunService")
  17. local uis = g:GetService("UserInputService")
  18. local stepped = rs.Stepped
  19. local renderstepped = rs.RenderStepped
  20. local heartbeat = rs.Heartbeat
  21. local currentplayer = lp
  22. local fenv = getfenv()
  23. local shp = fenv.sethiddenproperty or fenv.set_hidden_property or fenv.sethiddenprop or fenv.set_hidden_prop
  24. local v3 = Vector3.new
  25. local v3_0 = v3(0, 0, 0)
  26. local v3_101 = v3(1, 0, 1)
  27. local cf = CFrame.new
  28. local flycf = false
  29. local schar, mrandom, mclamp = string.char, math.random, math.clamp
  30. local tfind, tinsert, tremove = table.find, table.insert, table.remove
  31. local tick = os.clock
  32. local instancenew = Instance.new
  33.  
  34. local function gp(parent, name, className)
  35.     if typeof(parent) == "Instance" then
  36.         for _, v in pairs(parent:GetChildren()) do
  37.             if (v.Name == name) and v:IsA(className) then
  38.                 return v
  39.             end
  40.         end
  41.     end
  42.     return nil
  43. end
  44.  
  45. local function randomstring(len)
  46.     len = len or mrandom(8, 15)
  47.     local ret = ""
  48.     for i=1, len do
  49.         if mrandom(1, 2) == 1 then
  50.             ret = ret .. schar(mrandom(97, 122)):lower()
  51.         else
  52.             ret = ret .. schar(mrandom(97, 122)):upper()
  53.         end
  54.     end
  55.     return ret
  56. end
  57.  
  58. local function instancefromtable(t)
  59.     local instance, parent = instancenew(t.ClassName), t.Parent
  60.     t.Parent, t.Name, t.ClassName = nil, t.Name or randomstring(), nil
  61.     for i, v in pairs(t) do
  62.         instance[i] = v
  63.     end
  64.     if not parent then
  65.         return instance
  66.     end
  67.     instance.Parent = parent
  68.     return instance
  69. end
  70.  
  71. local guiname = tostring(g.PlaceId) .. "_info"
  72.  
  73. local function deleteguifrom(a)
  74.     gp(a, guiname, "ScreenGui"):Destroy()
  75. end
  76. pcall(deleteguifrom, cg)
  77. pcall(deleteguifrom, pg)
  78.  
  79. local gui = instancefromtable({
  80.     ClassName = "ScreenGui",
  81.     Name = guiname,
  82.     ResetOnSpawn = false,
  83.     ZIndexBehavior = Enum.ZIndexBehavior.Sibling,
  84.     IgnoreGuiInset = true
  85. })
  86. gui:GetPropertyChangedSignal("Parent"):Connect(function()
  87.     if not (gui and gui.Parent) then
  88.         gui = nil
  89.     end
  90. end)
  91. local function roundcorners(a)
  92.     instancenew("UICorner", a)
  93. end
  94. local mainFrame = instancefromtable({
  95.     ClassName = "Frame",
  96.     Parent = gui,
  97.     BackgroundColor3 = Color3.fromRGB(21, 21, 21),
  98.     BorderSizePixel = 0,
  99.     Position = UDim2.new(0, 0, 1, -200),
  100.     Size = UDim2.new(1, 0, 0, 200)
  101. })
  102. local mf = instancefromtable({
  103.     ClassName = "Frame",
  104.     Parent = mainFrame,
  105.     BackgroundColor3 = mainFrame.BackgroundColor3,
  106.     BorderSizePixel = 0,
  107.     Position = UDim2.new(0, 0, 1, 0),
  108.     Size = UDim2.new(1, 0, 1, 0)
  109. })
  110. local scriptName = instancefromtable({
  111.     ClassName = "TextLabel",
  112.     Parent = mainFrame,
  113.     BackgroundTransparency = 1,
  114.     Size = UDim2.new(1, 0, 0, 20),
  115.     Font = Enum.Font.SourceSans,
  116.     Text = "info script made by MyWorld",
  117.     TextColor3 = Color3.fromRGB(181, 181, 181),
  118.     TextSize = 20,
  119.     TextWrapped = true
  120. })
  121. local line = instancefromtable({
  122.     ClassName = "Frame",
  123.     Parent = scriptName,
  124.     BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  125.     BackgroundTransparency = 0.7,
  126.     BorderSizePixel = 0,
  127.     Position = UDim2.new(0, 5, 1, 0),
  128.     Size = UDim2.new(1, -10, 0, 1)
  129. })
  130. local showhide = instancefromtable({
  131.     ClassName = "TextButton",
  132.     Parent = mainFrame,
  133.     BackgroundColor3 = Color3.fromRGB(21, 21, 21),
  134.     BorderSizePixel = 0,
  135.     Position = UDim2.new(0.5, -25, 0, -30),
  136.     Size = UDim2.new(0, 50, 0, 30),
  137.     Font = Enum.Font.SourceSans,
  138.     Text = "\\/",
  139.     TextColor3 = Color3.fromRGB(235, 235, 235),
  140.     TextSize = 20
  141. })
  142. local scrollingFrame = instancefromtable({
  143.     ClassName = "ScrollingFrame",
  144.     Parent = mainFrame,
  145.     Active = true,
  146.     BackgroundTransparency = 1,
  147.     BorderSizePixel = 0,
  148.     ClipsDescendants = false,
  149.     Position = UDim2.new(0, 5, 0, 30),
  150.     Size = UDim2.new(1, -10, 1, -35),
  151.     CanvasSize = UDim2.new(0, 0, 0, 0),
  152.     ScrollBarThickness = 10,
  153.     AutomaticCanvasSize = Enum.AutomaticSize.X
  154. })
  155. local UIListLayout = instancefromtable({
  156.     ClassName = "UIListLayout",
  157.     Parent = scrollingFrame,
  158.     FillDirection = Enum.FillDirection.Horizontal,
  159.     SortOrder = Enum.SortOrder.LayoutOrder,
  160.     Padding = UDim.new(0, 10)
  161. })
  162.  
  163. local sn = scriptName.Text
  164. local function notify(msg)
  165.     local msg1 = sn .. " - " .. msg
  166.     scriptName.Text = msg1
  167.     tdelay(3, function()
  168.         if scriptName.Text == msg1 then
  169.             scriptName.Text = sn
  170.         end
  171.     end)
  172. end
  173.  
  174. local ancprt = nil
  175. local function weldtp(part, cfr)
  176.     if not (part and part:IsDescendantOf(ws) and part:IsA("BasePart") and (not part:IsGrounded())) then
  177.         return stepped:Wait()
  178.     end
  179.     if not (ancprt and ancprt:IsDescendantOf(ws) and ancprt:IsGrounded()) then
  180.         for i, v in pairs(ws:GetDescendants()) do
  181.             if v:IsA("BasePart") and v:IsGrounded() then
  182.                 ancprt = v
  183.                 break
  184.             end
  185.         end
  186.     end
  187.     if not ancprt then
  188.         return stepped:Wait()
  189.     end
  190.     local weld = instancefromtable({
  191.         ClassName = "Weld",
  192.         Part0 = part,
  193.         C0 = cfr:Inverse(),
  194.         Part1 = ancprt,
  195.         C1 = ancprt.CFrame:Inverse(),
  196.         Parent = ancprt
  197.     })
  198.     stepped:Wait()
  199.     pcall(function()
  200.         weld:Destroy()
  201.     end)
  202. end
  203.  
  204. local function respawnRequest()
  205.     local ccfr = ws.CurrentCamera.CFrame
  206.     local c = lp.Character
  207.     if c then
  208.         lp.Character = nil
  209.         lp.Character = c
  210.     else
  211.         c = instancenew("Model")
  212.         lp.Character = c
  213.         if lp.Character == c then
  214.             lp.Character = nil
  215.         end
  216.     end
  217.     local con0, con1 = nil, nil
  218.     con0 = ws.CurrentCamera:GetPropertyChangedSignal("CFrame"):Connect(function()
  219.         con0:Disconnect()
  220.         con1:Disconnect()
  221.         ws.CurrentCamera.CFrame = ccfr
  222.     end)
  223.     con1 = renderstepped:Connect(function()
  224.         con0:Disconnect()
  225.         con1:Disconnect()
  226.     end)
  227. end
  228.  
  229. local function removehats(c)
  230.     c = c or lp.Character
  231.     if not c then return end
  232.     for i, v in pairs(c:GetChildren()) do
  233.         if v:IsA("Accessory") then
  234.             local handle = gp(v, "Handle", "BasePart")
  235.             if handle then
  236.                 handle:Destroy()
  237.             end
  238.             v:Destroy()
  239.         end
  240.     end
  241. end
  242.  
  243. local function makeFrame(parent, text, color)
  244.     local frame = instancefromtable({
  245.         ClassName = "Frame",
  246.         Parent = parent,
  247.         BackgroundColor3 = color,
  248.         Size = UDim2.new(0, 300, 0, 145),
  249.         BorderSizePixel = 0
  250.     })
  251.     roundcorners(frame)
  252.     local framelabel = instancefromtable({
  253.         ClassName = "TextLabel",
  254.         Parent = frame,
  255.         BackgroundTransparency = 1,
  256.         Size = UDim2.new(1, 0, 0, 20),
  257.         Font = Enum.Font.SourceSans,
  258.         Text = text,
  259.         TextColor3 = Color3.fromRGB(197, 197, 197),
  260.         TextSize = 14
  261.     })
  262.     local line = instancefromtable({
  263.         ClassName = "Frame",
  264.         Parent = framelabel,
  265.         BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  266.         BackgroundTransparency = 0.7,
  267.         BorderSizePixel = 0,
  268.         Position = UDim2.new(0, 5, 1, 0),
  269.         Size = UDim2.new(1, -10, 0, 1)
  270.     })
  271.     local ScrollingFrame = instancefromtable({
  272.         ClassName = "ScrollingFrame",
  273.         Parent = frame,
  274.         Active = true,
  275.         BackgroundTransparency = 1,
  276.         BorderSizePixel = 0,
  277.         Position = UDim2.new(0, 5, 0, 25),
  278.         Size = UDim2.new(1, -5, 1, -30),
  279.         CanvasSize = UDim2.new(0, 0, 0, 0),
  280.         ScrollBarThickness = 7,
  281.         AutomaticCanvasSize = Enum.AutomaticSize.Y
  282.     })
  283.     local UIListLayout = instancefromtable({
  284.         ClassName = "UIListLayout",
  285.         Parent = ScrollingFrame,
  286.         SortOrder = Enum.SortOrder.LayoutOrder,
  287.         Padding = UDim.new(0, 5)
  288.     })
  289.     return frame
  290. end
  291.  
  292. local con, hidden, Y, hidespeed = nil, false, -200, 769.69
  293. con = renderstepped:Connect(function(deltaTime)
  294.     if not gui then return con:Disconnect() end
  295.     if hidden then
  296.         Y = mclamp(Y+deltaTime*hidespeed, -200, -5)
  297.     else
  298.         Y = mclamp(Y-deltaTime*hidespeed, -200, -5)
  299.     end
  300.     mainFrame.Position = UDim2.new(0, 0, 1, Y)
  301. end)
  302. showhide.MouseButton1Click:Connect(function()
  303.     hidden = not hidden
  304.     if hidden then
  305.         showhide.Text = "/\\"
  306.     else
  307.         showhide.Text = "\\/"
  308.     end
  309. end)
  310.  
  311. local cbring = {}
  312. local controllable = {}
  313. local lastc = nil
  314. local con = nil
  315. con = lp.CharacterAdded:Connect(function(c)
  316.     if not gui then
  317.         con:Disconnect()
  318.         return
  319.     end
  320.     if c and c.Parent then
  321.         if lastc == c then
  322.             return
  323.         end
  324.         lastc = c
  325.         controllable = {}
  326.         for i, v in pairs(plrs:GetPlayers()) do
  327.             local c = v.Character
  328.             if c then
  329.                 tinsert(controllable, c)
  330.             end
  331.         end
  332.     end
  333. end)
  334.  
  335. local viewedPlayer = nil
  336. local viewbutton = {Text = ""}
  337.  
  338. local playersframe = makeFrame(scrollingFrame, "Players", Color3.fromRGB(12, 59, 100))
  339. local playercframe = makeFrame(playersframe, "playerscontrol", Color3.fromRGB(12, 59, 100))
  340. playercframe.BorderSizePixel = 1.000
  341. playercframe.BorderColor3 = Color3.fromRGB(27, 42, 53)
  342. playercframe.Position = UDim2.new(0, 10, -1, -40)
  343. playercframe.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  344. playercframe.Visible = true
  345. local playerframef = makeFrame(playercframe, "friends", Color3.fromRGB(0, 150, 0))
  346. playerframef.Position = UDim2.new(1, 10, 0, 5)
  347.  
  348. local function addbtn(parent, plr)
  349.     local playerbutton = instancefromtable({
  350.         ClassName = "TextButton",
  351.         Name = plr.Name,
  352.         Parent = parent,
  353.         BorderSizePixel = 0,
  354.         Size = UDim2.new(1, -10, 0, 20),
  355.         Font = Enum.Font.SourceSans,
  356.         Text = plr.Name,
  357.         TextColor3 = Color3.fromRGB(0, 0, 0),
  358.         TextSize = 15
  359.     })
  360.     if plr.DisplayName ~= plr.Name then
  361.         playerbutton.Text = playerbutton.Text .. " (" .. plr.DisplayName .. ")"
  362.     end
  363.     if plr == lp then
  364.         playerbutton.BackgroundColor3 = Color3.fromRGB(100, 200, 200)
  365.     else
  366.         playerbutton.BackgroundColor3 = Color3.fromRGB(136, 136, 136)
  367.     end
  368.     roundcorners(playerbutton)
  369.     playerbutton.MouseButton1Click:Connect(function()
  370.         playercframe:FindFirstChildOfClass("TextLabel").Text = "player: " .. playerbutton.Text
  371.         currentplayer = plr
  372.         playercframe.Visible = true
  373.         playerframef.Visible = false
  374.         viewbutton.Text = ((viewedPlayer == plr) and "unview") or "view"
  375.     end)
  376. end
  377.  
  378. local function unview()
  379.     viewedPlayer = nil
  380.     viewbutton.Text = "view"
  381.     local c = lp.Character
  382.     if c and c.Parent then
  383.         local subject = c:FindFirstChildOfClass("Humanoid") or c:FindFirstChildWhichIsA("BasePart")
  384.         if subject then
  385.             ws.CurrentCamera.CameraType = Enum.CameraType.Custom
  386.             ws.CurrentCamera.CameraSubject = subject
  387.         else
  388.             notify("no part to view")
  389.         end
  390.     else
  391.         notify("character not found")
  392.     end
  393. end
  394.  
  395. local playersScroll = playersframe:FindFirstChildOfClass("ScrollingFrame")
  396.  
  397. for i, v in pairs(plrs:GetPlayers()) do
  398.     addbtn(playersScroll, v)
  399. end
  400. local reset = function() end
  401. local con = nil
  402. con = plrs.PlayerAdded:Connect(function(plr)
  403.     if gui then
  404.         addbtn(playersScroll, plr)
  405.         if playerframef.Visible then
  406.             tspawn(function()
  407.                 if plr and plr.Parent and currentplayer:IsFriendsWith(plr.UserId) then
  408.                     addbtn(playerframef:FindFirstChildOfClass("ScrollingFrame"), plr)
  409.                 end
  410.             end)
  411.         end
  412.     else
  413.         con:Disconnect()
  414.     end
  415. end)
  416. local con = nil
  417. con = plrs.PlayerRemoving:Connect(function(plr)
  418.     if gui then
  419.         local playerbutton = gp(playersScroll, plr.Name, "TextButton")
  420.         if playerbutton then
  421.             playerbutton:Destroy()
  422.         end
  423.         if plr == currentplayer then
  424.             playercframe.Visible = false
  425.         end
  426.         if plr == viewedPlayer then
  427.             unview()
  428.         end
  429.     else
  430.         con:Disconnect()
  431.     end
  432. end)
  433. local hideplayerc = instancefromtable({
  434.     ClassName = "TextButton",
  435.     Parent = playercframe:FindFirstChildOfClass("TextLabel"),
  436.     BackgroundColor3 = Color3.fromRGB(59, 59, 59),
  437.     BorderSizePixel = 0,
  438.     Position = UDim2.new(1, -17, 0, 2),
  439.     Size = UDim2.new(0, 15, 0, 15),
  440.     Font = Enum.Font.SourceSans,
  441.     Text = "X",
  442.     TextColor3 = Color3.fromRGB(206, 206, 206),
  443.     TextSize = 14
  444. })
  445. roundcorners(hideplayerc)
  446. hideplayerc.MouseButton1Click:Connect(function()
  447.     playercframe.Visible = false
  448. end)
  449. local function makeplrbutton(buttontext)
  450.     local button = instancefromtable({
  451.         ClassName = "TextButton",
  452.         Parent = playercframe:FindFirstChildOfClass("ScrollingFrame"),
  453.         BackgroundColor3 = Color3.fromRGB(53, 53, 53),
  454.         BorderSizePixel = 0,
  455.         Size = UDim2.new(1, -10, 0, 20),
  456.         Font = Enum.Font.SourceSans,
  457.         Text = buttontext,
  458.         TextColor3 = Color3.fromRGB(226, 226, 226),
  459.         TextSize = 15
  460.     })
  461.     roundcorners(button)
  462.     return button
  463. end
  464. makeplrbutton("goto").MouseButton1Click:Connect(function()
  465.     local c = lp.Character
  466.     if c and c.Parent then
  467.         local tp = gp(c, "HumanoidRootPart", "BasePart") or gp(c, "Head", "BasePart") or c:FindFirstChildWhichIsA("BasePart")
  468.         if tp then
  469.             local c1 = currentplayer.Character
  470.             if c1 and c1.Parent then
  471.                 local to = gp(c1, "HumanoidRootPart", "BasePart") or gp(c1, "Head", "BasePart") or c1:FindFirstChildWhichIsA("BasePart")
  472.                 if to then
  473.                     if flycf then
  474.                         flycf = to.CFrame
  475.                     else
  476.                         weldtp(tp, to.CFrame)
  477.                     end
  478.                     if viewedPlayer == currentplayer then
  479.                         unview()
  480.                     end
  481.                     notify("goto: " .. currentplayer.Name)
  482.                 else
  483.                     notify("no target part found")
  484.                 end
  485.             else
  486.                 notify("target character not found")
  487.             end
  488.         else
  489.             notify("no part found")
  490.         end
  491.     else
  492.         notify("character not found")
  493.     end
  494. end)
  495. viewbutton = makeplrbutton("view")
  496. viewbutton.MouseButton1Click:Connect(function()
  497.     if viewedPlayer == currentplayer then
  498.         unview()
  499.     else
  500.         viewedPlayer = currentplayer
  501.         viewbutton.Text = "unview"
  502.     end
  503. end)
  504.  
  505. local cbringb = makeplrbutton("cbring")
  506.  
  507. local function noanimations()
  508.     local c = lp.Character
  509.     if c then
  510.         local hum = c:FindFirstChildOfClass("Humanoid")
  511.         if hum then
  512.             local animate = gp(c, "Animate", "LocalScript")
  513.             if animate then
  514.                 animate.Disabled = true
  515.             end
  516.             for i, v in pairs(hum:GetPlayingAnimationTracks()) do
  517.                 v:Stop()
  518.             end
  519.         else
  520.             notify("humanoid not found")
  521.         end
  522.     else
  523.         notify("character not found")
  524.     end
  525. end
  526.  
  527. local isConnected = nil
  528. isConnected = function(part0, part1, tested)
  529.     if not ((typeof(part0) == "Instance") and part0:IsA("BasePart")) then
  530.         return false
  531.     end
  532.     if not ((typeof(part1) == "Instance") and part1:IsA("BasePart")) then
  533.         return false
  534.     end
  535.     if not tested then
  536.         tested = {}
  537.     end
  538.     local ret = false
  539.     tinsert(tested, part0)
  540.     for i, v in pairs(part0:GetConnectedParts()) do
  541.         if part1 == v then
  542.             return true
  543.         elseif not tfind(tested, v) then
  544.             ret = ret or isConnected(v, part1, tested)
  545.         end
  546.     end
  547.     return ret
  548. end
  549.  
  550. local function attach(c1)
  551.     local bck = lp:FindFirstChildOfClass("Backpack")
  552.     local c = lp.Character
  553.     --checks for: model, humanoid, arm, torso for main character:
  554.     if not (c and c.Parent) then
  555.         notify("character not found")
  556.         return false
  557.     end
  558.     local hum = c:FindFirstChildOfClass("Humanoid")
  559.     if not hum then
  560.         notify("humanoid not found")
  561.         return false
  562.     end
  563.     local arm = gp(c, "Right Arm", "BasePart") or gp(c, "RightHand", "BasePart")
  564.     if not arm then
  565.         notify("arm not found")
  566.         return false
  567.     end
  568.     local torso = gp(c, "Torso", "BasePart") or gp(c, "UpperTorso", "BasePart")
  569.     if not torso then
  570.         notify("torso not found")
  571.         return
  572.     end
  573.     if torso:IsGrounded() then
  574.         notify("torso is grounded")
  575.         return
  576.     end
  577.     if not isConnected(arm, torso) then
  578.         notify("arm and toso not connected")
  579.         return
  580.     end
  581.     --checks for: tool:
  582.     local tool, handle = nil, nil
  583.     for i, v in pairs(c:GetChildren()) do
  584.         if v:IsA("Tool") then
  585.             handle = gp(v, "Handle", "BasePart")
  586.             if handle then
  587.                 tool = v
  588.                 break
  589.             end
  590.         end
  591.     end
  592.     if (not tool) and bck then
  593.         for i, v in pairs(bck:GetChildren()) do
  594.             if v:IsA("Tool") then
  595.                 handle = gp(v, "Handle", "BasePart")
  596.                 if handle then
  597.                     tool = v
  598.                     break
  599.                 end
  600.             end
  601.         end
  602.     end
  603.     if not tool then
  604.         notify("no tools with handle found")
  605.         return false
  606.     end
  607.     --checks for: model, humanoid, arm, torso for target character:
  608.     if not (c1 and c1.Parent) then
  609.         notify("target character not found")
  610.         return false
  611.     end
  612.     local hum1 = c1:FindFirstChildOfClass("Humanoid")
  613.     if not hum1 then
  614.         notify("target humanoid not found")
  615.         return false
  616.     end
  617.     local arm1 = gp(c1, "Right Arm", "BasePart") or gp(c1, "RightHand", "BasePart")
  618.     if not arm1 then
  619.         notify("target arm not found")
  620.         return false
  621.     end
  622.     local torso1 = gp(c1, "Torso", "BasePart") or gp(c1, "UpperTorso", "BasePart")
  623.     if not torso1 then
  624.         notify("target torso not found")
  625.         return
  626.     end
  627.     if torso1:IsGrounded() then
  628.         notify("target torso is grounded")
  629.         return
  630.     end
  631.     if not isConnected(arm1, torso1) then
  632.         notify("target arm and toso not connected")
  633.         return
  634.     end
  635.     --all checks good
  636.     if bck then
  637.         for i, v in pairs(c:GetChildren()) do
  638.             if v:IsA("Tool") then
  639.                 v.Parent = bck
  640.             end
  641.         end
  642.     end
  643.     removehats(c)
  644.     local nhum = hum:Clone()
  645.     hum:Destroy()
  646.     hum = nhum
  647.     hum.Parent = c
  648.     hum:EquipTool(tool)
  649.     for i, v in pairs(c1:GetDescendants()) do
  650.         if v and v:IsA("BasePart") then
  651.             v.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  652.         end
  653.     end
  654.     for i, v in pairs(tool:GetDescendants()) do
  655.         if v ~= handle and not v:IsA("TouchTransmitter") then
  656.             v:Destroy()
  657.         end
  658.     end
  659.     handle.Massless = true
  660.     local attaching = true
  661.     tspawn(function()
  662.         while renderstepped:Wait() and attaching do
  663.             --checks for: model, humanoid, arm, torso for main character:
  664.             if not (c and c.Parent) then
  665.                 handle = nil
  666.                 tool.Parent = bck
  667.                 return notify("character removed")
  668.             end
  669.             if (not hum and hum.Parent) then
  670.                 handle = nil
  671.                 tool.Parent = bck
  672.                 return notify("humanoid removed")
  673.             end
  674.             if not (arm and arm.Parent) then
  675.                 handle = nil
  676.                 tool.Parent = bck
  677.                 return notify("arm removed")
  678.             end
  679.             if not (torso and torso.Parent) then
  680.                 handle = nil
  681.                 tool.Parent = bck
  682.                 return notify("torso removed")
  683.             end
  684.             if torso:IsGrounded() then
  685.                 handle = nil
  686.                 tool.Parent = bck
  687.                 return notify("torso got grounded")
  688.             end
  689.             if not isConnected(arm, torso) then
  690.                 handle = nil
  691.                 tool.Parent = bck
  692.                 return notify("arm and toso connection removed")
  693.             end
  694.             --checks for: model, humanoid, arm, torso for target character:
  695.             if not (c1 and c1.Parent) then
  696.                 handle = nil
  697.                 tool.Parent = bck
  698.                 return notify("target character removed")
  699.             end
  700.             if not (hum1 and hum1.Parent) then
  701.                 handle = nil
  702.                 tool.Parent = bck
  703.                 return notify("target humanoid removed")
  704.             end
  705.             if not (arm1 and arm1.Parent) then
  706.                 handle = nil
  707.                 tool.Parent = bck
  708.                 return notify("target arm removed")
  709.             end
  710.             if not (torso1 and torso1.Parent) then
  711.                 handle = nil
  712.                 tool.Parent = bck
  713.                 return notify("target torso removed")
  714.             end
  715.             if torso:IsGrounded() then
  716.                 handle = nil
  717.                 tool.Parent = bck
  718.                 return notify("target torso got grounded")
  719.             end
  720.             if not isConnected(arm1, torso1) then
  721.                 handle = nil
  722.                 tool.Parent = bck
  723.                 return notify("target arm and toso connection removed")
  724.             end
  725.             --checks for: tool
  726.             if not (tool and tool.Parent) then
  727.                 handle = nil
  728.                 tool.Parent = bck
  729.                 return notify("tool removed")
  730.             end
  731.             if not (handle and handle.Parent) then
  732.                 handle = nil
  733.                 tool.Parent = bck
  734.                 return notify("tool handle removed")
  735.             end
  736.             if (tool.Parent ~= c) and (tool.Parent ~= c1) and (tool.Parent ~= bck) then
  737.                 handle = nil
  738.                 tool.Parent = bck
  739.                 return notify("unexpected tool parent")
  740.             end
  741.             weldtp(arm1, handle.CFrame)
  742.         end
  743.     end)
  744.     while tool do
  745.         tool.AncestryChanged:Wait()
  746.         attaching = false
  747.         break
  748.     end
  749.     if hum1 and hum1.Parent then
  750.         hum1.PlatformStand = true
  751.     else
  752.         notify("target humanoid removed after attached")
  753.     end
  754.     return handle
  755. end
  756.  
  757. makeplrbutton("bring").MouseButton1Click:Connect(function()
  758.     local plr = currentplayer
  759.     local c1 = plr.Character
  760.     if not (c1 and c1.Parent) then
  761.         notify("target character not found")
  762.         return
  763.     end
  764.     if not tfind(controllable, c1) then
  765.         reset(true)
  766.         twait(0.1)
  767.     end
  768.     if not (plr and plr.Parent) then
  769.         notify("target player left")
  770.         return
  771.     end
  772.     if not (c1 and c1.Parent) then
  773.         c1 = plr.Character
  774.     end
  775.     if not (c1 and c1.Parent) then
  776.         notify("target character not found")
  777.         return
  778.     end
  779.     local c = lp.Character
  780.     if not (c and c.Parent) then
  781.         notify("character not found")
  782.         return
  783.     end
  784.     local part = gp(c, "HumanoidRootPart", "BasePart") or gp(c, "Torso", "BasePart") or gp(c, "UpperTorso", "BasePart") or gp(c, "Head", "BasePart")
  785.     if not part then
  786.         notify("part not found")
  787.         return
  788.     end
  789.     local cfr = part.CFrame
  790.     local joint = attach(plr.Character)
  791.     if not joint then
  792.         return
  793.     end
  794.     weldtp(part, cfr)
  795.     twait(0.5)
  796.     if c and c.Parent and part and part.Parent and joint and joint.Parent then
  797.         weldtp(part, cfr)
  798.         if not (joint and joint.Parent) then
  799.             notify("joint removed")
  800.             reset(false)
  801.             return
  802.         end
  803.         reset(false)
  804.         if viewedPlayer == plr then
  805.             unview()
  806.         end
  807.         notify("brought " .. plr.Name)
  808.     end
  809. end)
  810.  
  811. local fekill = nil
  812. fekill = function(c1)
  813.     if not (c1 and c1.Parent) then
  814.         return notify("target character not found")
  815.     end
  816.     local torso = gp(c1, "Torso", "BasePart") or gp(c1, "UpperTorso", "BasePart")
  817.     if not torso then
  818.         return notify("target torso not found")
  819.     end
  820.     local head = gp(c1, "Head", "BasePart")
  821.     if not head then
  822.         return notify("target head not found")
  823.     end
  824.     if not isConnected(torso, head) then
  825.         return notify("torso and head not connected")
  826.     end
  827.     if not tfind(controllable, c1) then
  828.         reset(true)
  829.         twait(0.1)
  830.     end
  831.     if (plrs.RespawnTime < 15) and (plrs.RespawnTime > 1) then
  832.         notify("preparing fast respawn")
  833.         respawnRequest()
  834.         twait(plrs.RespawnTime - 1)
  835.     end
  836.     if not (c1 and c1.Parent) then
  837.         return notify("target character removed")
  838.     end
  839.     local c = lp.Character
  840.     if not (c and c.Parent) then
  841.         return notify("character not found")
  842.     end
  843.     local part = gp(c, "HumanoidRootPart", "BasePart") or gp(c, "Torso", "BasePart") or gp(c, "UpperTorso", "BasePart") or gp(c, "Head", "BasePart")
  844.     if not part then
  845.         return notify("part not found")
  846.     end
  847.     local hum = c1:FindFirstChildOfClass("Humanoid")
  848.     if not hum then
  849.         return notify("humanoid not found")
  850.     end
  851.     if not isConnected(torso, head) then
  852.         return notify("torso and head joint removed")
  853.     end
  854.     local cfr = part.CFrame
  855.     local part1 = gp(c1, "HumanoidRootPart", "BasePart") or gp(c1, "Torso", "BasePart") or gp(c1, "UpperTorso", "BasePart") or gp(c1, "Head", "BasePart")
  856.     if part1 then
  857.         weldtp(part, part1.CFrame)
  858.     end
  859.     if hum.Health > 0 then
  860.         hum.BreakJointsOnDeath = false
  861.     end
  862.     stepped:Wait()
  863.     local joint = attach(c1)
  864.     if not joint then
  865.         return weldtp(part, cfr)
  866.     end
  867.     stepped:Wait()
  868.     hum:ChangeState(Enum.HumanoidStateType.Dead)
  869.     twait(0.3)
  870.     if joint then
  871.         joint:BreakJoints()
  872.     end
  873.     weldtp(part, cfr)
  874.     reset(false)
  875.     local c, con = lp.Character, nil
  876.     con = heartbeat:Connect(function()
  877.         if not (c and c.Parent) then return con:Disconnect() end
  878.         local ff = c:FindFirstChildOfClass("ForceField")
  879.         if ff then ff:Destroy() return con:Disconnect() end
  880.     end)
  881.     notify("kill attempt failed")
  882.     local t = tick() + 1
  883.     local con = nil
  884.     con = stepped:Connect(function()
  885.         if tick() > t then
  886.             return con:Disconnect()
  887.         end
  888.         if not isConnected(torso, head) then
  889.             con:Disconnect()
  890.             notify("killed succesfully")
  891.         end
  892.     end)
  893. end
  894.  
  895. makeplrbutton("kill").MouseButton1Click:Connect(function()
  896.     fekill(currentplayer.Character)
  897. end)
  898.  
  899. makeplrbutton("attach").MouseButton1Click:Connect(function()
  900.     return attach(currentplayer.Character) and notify("attached to " .. currentplayer.Name)
  901. end)
  902.  
  903. makeplrbutton("view friends").MouseButton1Click:Connect(function()
  904.     playerframef.Visible = not playerframef.Visible
  905.     if not playerframef.Visible then
  906.         return
  907.     end
  908.     playerframef:FindFirstChildOfClass("TextLabel").Text = "friends of: " .. currentplayer.Name
  909.     local scroll = playerframef:FindFirstChildOfClass("ScrollingFrame")
  910.     for i, v in pairs(scroll:GetChildren()) do
  911.         if v and v.Parent and v:IsA("TextButton") then
  912.             v:Destroy()
  913.         end
  914.     end
  915.     for i, v in pairs(plrs:GetPlayers()) do
  916.         tspawn(function()
  917.             if v and v.Parent and currentplayer:IsFriendsWith(v.UserId) then
  918.                 addbtn(playerframef:FindFirstChildOfClass("ScrollingFrame"), v)
  919.             end
  920.         end)
  921.     end
  922. end)
  923.  
  924. local flingvel = v3(20000, 20000, 20000)
  925. local function makeflingbutton(partname)
  926.     makeplrbutton("fling (" .. partname .. ")").MouseButton1Click:Connect(function()
  927.         local c = lp.Character
  928.         if c and c.Parent then
  929.             local part = gp(c, partname, "BasePart")
  930.             if part then
  931.                 local c1 = currentplayer.Character
  932.                 if c1 and c1.Parent then
  933.                     local part1 = gp(c1, partname, "BasePart")
  934.                     if part1 then              
  935.                         c:BreakJoints()
  936.                         for i, v in pairs(c:GetDescendants()) do
  937.                             if (v ~= part) and v:IsA("BasePart") then
  938.                                 v:Destroy()
  939.                             end
  940.                         end
  941.                         if part.Transparency > 0.5 then
  942.                             part.Transparency = 0.5
  943.                         end
  944.                         while heartbeat:Wait() and c and c.Parent and part and part.Parent and c1 and c1.Parent and part1 and part1.Parent do
  945.                             local x = part1.Position.X
  946.                             local y = part1.Position.Y
  947.                             local z = part1.Position.Z
  948.                             local sine = math.abs(math.sin(tick() * 20))
  949.                             x = x + part1.Velocity.X * sine
  950.                             y = y + part1.Velocity.Y * sine
  951.                             z = z + part1.Velocity.Z * sine
  952.                             local heightlock = ws.FallenPartsDestroyHeight + 5
  953.                             if y < heightlock then
  954.                                 y = heightlock
  955.                             end
  956.                             part.Position = v3(x, y, z)
  957.                             part.Velocity = flingvel
  958.                             part.RotVelocity = flingvel
  959.                             ws.CurrentCamera.CameraSubject = part1
  960.                         end
  961.                         twait(0.1)
  962.                         local c = lp.Character
  963.                         if (c and c.Parent) then
  964.                             ws.CurrentCamera.CameraSubject = c:FindFirstChildOfClass("Humanoid") or c:FindFirstChildWhichIsA("BasePart") or c
  965.                         end
  966.                     else
  967.                         notify("target part not found")
  968.                     end
  969.                 else
  970.                     notify("target character not found")
  971.                 end
  972.             else
  973.                 notify("part not found")
  974.             end
  975.         else
  976.             notify("character not found")
  977.         end
  978.     end)
  979. end
  980. makeflingbutton("Head")
  981. makeflingbutton("HumanoidRootPart")
  982. makeflingbutton("Torso")
  983.  
  984. local graphicsframe = makeFrame(scrollingFrame, "Graphics", Color3.fromRGB(84, 45, 162))
  985. local function makegraphicsbutton(buttontext)
  986.     local button = instancefromtable({
  987.         ClassName = "TextButton",
  988.         Parent = graphicsframe:FindFirstChildOfClass("ScrollingFrame"),
  989.         BackgroundColor3 = Color3.fromRGB(53, 53, 53),
  990.         BorderSizePixel = 0,
  991.         Size = UDim2.new(1, -10, 0, 20),
  992.         Font = Enum.Font.SourceSans,
  993.         Text = buttontext,
  994.         TextColor3 = Color3.fromRGB(226, 226, 226),
  995.         TextSize = 15
  996.     })
  997.     roundcorners(button)
  998.     return button
  999. end
  1000. local lig = g:GetService("Lighting")
  1001. makegraphicsbutton("remove fog").MouseButton1Click:Connect(function()
  1002.     lig.FogStart = 9e9
  1003.     lig.FogEnd = 9e9
  1004. end)
  1005. local function setupremove(button, classname)
  1006.     button.MouseButton1Click:Connect(function()
  1007.         for i, v in pairs(g:GetDescendants()) do
  1008.             if v:IsA(classname) then
  1009.                 v:Destroy()
  1010.             end
  1011.         end
  1012.     end)
  1013. end
  1014. setupremove(makegraphicsbutton("remove atmosphere effects"), "Atmosphere")
  1015. setupremove(makegraphicsbutton("remove blur"), "BlurEffect")
  1016. setupremove(makegraphicsbutton("remove decals"), "Decal")
  1017. setupremove(makegraphicsbutton("default sky"), "Sky")
  1018. setupremove(makegraphicsbutton("remove sun rays"), "SunRaysEffect")
  1019. setupremove(makegraphicsbutton("remove particles"), "ParticleEmitter")
  1020. setupremove(makegraphicsbutton("remove color correction effects"), "ColorCorrectionEffect")
  1021.  
  1022. local cfly = nil
  1023. local fhrp = nil
  1024. local flyspeed = 60
  1025.  
  1026. local positionsframe = makeFrame(scrollingFrame, "Positions", Color3.fromRGB(162, 108, 42))
  1027. local positionsscroll = positionsframe:FindFirstChildOfClass("ScrollingFrame")
  1028. local addpositionbutton = instancefromtable({
  1029.     ClassName = "TextButton",
  1030.     Parent = positionsframe:FindFirstChildOfClass("TextLabel"),
  1031.     BackgroundColor3 = Color3.fromRGB(59, 59, 59),
  1032.     BorderSizePixel = 0,
  1033.     Position = UDim2.new(1, -77, 0, 2),
  1034.     Size = UDim2.new(0, 75, 1, -4),
  1035.     Font = Enum.Font.SourceSans,
  1036.     Text = "+ add current",
  1037.     TextColor3 = Color3.fromRGB(206, 206, 206),
  1038.     TextSize = 14
  1039. })
  1040. roundcorners(addpositionbutton)
  1041. addpositionbutton.MouseButton1Click:Connect(function()
  1042.     local c = lp.Character
  1043.     if c and c.Parent then
  1044.         local hrp = gp(c, "HumanoidRootPart", "BasePart") or gp(c, "Head", "BasePart") or c:FindFirstChildWhichIsA("BasePart")
  1045.         if hrp then
  1046.             local cfr = hrp.CFrame
  1047.             local positionframe = instancefromtable({
  1048.                 ClassName = "Frame",
  1049.                 Parent = positionsscroll,
  1050.                 BackgroundColor3 = Color3.fromRGB(106, 106, 106),
  1051.                 BorderSizePixel = 0,
  1052.                 Size = UDim2.new(1, -10, 0, 30)
  1053.             })
  1054.             roundcorners(positionframe)
  1055.             local loadposbutton = instancefromtable({
  1056.                 ClassName = "TextButton",
  1057.                 Parent = positionframe,
  1058.                 BackgroundColor3 = Color3.fromRGB(47, 47, 47),
  1059.                 BorderSizePixel = 0,
  1060.                 Position = UDim2.new(1, -70, 0, 5),
  1061.                 Size = UDim2.new(0, 40, 1, -10),
  1062.                 Font = Enum.Font.SourceSans,
  1063.                 Text = "load",
  1064.                 TextColor3 = Color3.fromRGB(223, 223, 223),
  1065.                 TextSize = 16
  1066.             })
  1067.             roundcorners(loadposbutton)
  1068.             local removeposbutton = instancefromtable({
  1069.                 ClassName = "TextButton",
  1070.                 Parent = positionframe,
  1071.                 BackgroundColor3 = Color3.fromRGB(47, 47, 47),
  1072.                 BorderSizePixel = 0,
  1073.                 Position = UDim2.new(1, -25, 0, 5),
  1074.                 Size = UDim2.new(0, 20, 1, -10),
  1075.                 Font = Enum.Font.SourceSans,
  1076.                 Text = "X",
  1077.                 TextColor3 = Color3.fromRGB(223, 223, 223),
  1078.                 TextSize = 16
  1079.             })
  1080.             roundcorners(removeposbutton)
  1081.             local positionName = instancefromtable({
  1082.                 ClassName = "TextBox",
  1083.                 Parent = positionframe,
  1084.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1085.                 BackgroundTransparency = 1,
  1086.                 Position = UDim2.new(0, 5, 0, 5),
  1087.                 Size = UDim2.new(1, -80, 1, -10),
  1088.                 Font = Enum.Font.SourceSans,
  1089.                 Text = "Position1",
  1090.                 ClearTextOnFocus = false,
  1091.                 TextColor3 = Color3.fromRGB(0, 0, 0),
  1092.                 TextSize = 25,
  1093.                 TextXAlignment = Enum.TextXAlignment.Left
  1094.             })
  1095.             loadposbutton.MouseButton1Click:Connect(function()
  1096.                 c = lp.Character
  1097.                 if c and c.Parent then
  1098.                     hrp = gp(c, "HumanoidRootPart", "BasePart") or gp(c, "Head", "BasePart") or c:FindFirstChildWhichIsA("BasePart")
  1099.                     if hrp then
  1100.                         if flycf then
  1101.                             flycf = cfr
  1102.                         else
  1103.                             weldtp(hrp, cfr)
  1104.                         end
  1105.                     else
  1106.                         notify("part not found")
  1107.                     end
  1108.                 else
  1109.                     notify("character not found")
  1110.                 end
  1111.             end)
  1112.             removeposbutton.MouseButton1Click:Connect(function()
  1113.                 positionframe:Destroy()
  1114.             end)
  1115.         end
  1116.     end
  1117. end)
  1118.  
  1119. local charframe = makeFrame(scrollingFrame, "Character", Color3.fromRGB(99, 15, 15))
  1120. local function makecharbutton(buttontext)
  1121.     local button = instancefromtable({
  1122.         ClassName = "TextButton",
  1123.         Parent = charframe:FindFirstChildOfClass("ScrollingFrame"),
  1124.         BackgroundColor3 = Color3.fromRGB(53, 53, 53),
  1125.         BorderSizePixel = 0,
  1126.         Size = UDim2.new(1, -10, 0, 20),
  1127.         Font = Enum.Font.SourceSans,
  1128.         Text = buttontext,
  1129.         TextColor3 = Color3.fromRGB(226, 226, 226),
  1130.         TextSize = 15
  1131.     })
  1132.     roundcorners(button)
  1133.     return button
  1134. end
  1135. local loopr = false
  1136. local fakevoidp = nil
  1137. reset = function(respawn)
  1138.     if fakevoidp then
  1139.         fakevoidp = nil
  1140.         twait(0.3)
  1141.     end
  1142.     local c = lp.Character
  1143.     local partName, cfr, ccfr = nil, nil, nil
  1144.     if not (c and c.Parent) then
  1145.         respawnRequest()
  1146.         if not loopr then
  1147.             notify("character not found, trying to respawn")
  1148.         end
  1149.         return
  1150.     end
  1151.     local part = gp(c, "HumanoidRootPart", "BasePart") or gp(c, "Torso", "BasePart") or gp(c, "Head", "BasePart") or c:FindFirstChildWhichIsA("BasePart")
  1152.     if not part then
  1153.         respawnRequest()
  1154.         if not loopr then
  1155.             notify("no part found in the character, trying to respawn")
  1156.         end
  1157.         return
  1158.     end
  1159.     partName, cfr, ccfr = part.Name, part.CFrame, ws.CurrentCamera.CFrame
  1160.     tspawn(function()
  1161.         local c, part = c, nil
  1162.         while c and c.Parent do
  1163.             heartbeat:Wait()
  1164.         end
  1165.         while true do
  1166.             c = lp.Character
  1167.             if c and c.Parent then
  1168.                 break
  1169.             end
  1170.             heartbeat:Wait()
  1171.         end
  1172.         while c and c.Parent do
  1173.             part = gp(c, partName, "BasePart")
  1174.             if part then
  1175.                 break
  1176.             end
  1177.             heartbeat:Wait()
  1178.         end
  1179.         if not part then
  1180.             if not loopr then
  1181.                 notify("failed to tp back")
  1182.             end
  1183.             return
  1184.         end
  1185.         weldtp(part, cfr)
  1186.         ws.CurrentCamera.CFrame = ccfr
  1187.         cfr = nil
  1188.         if not loopr then
  1189.             notify("respawned")
  1190.         end
  1191.     end)
  1192.     if respawn and (not loopr) then
  1193.         notify("respawning...")
  1194.     end
  1195.     if respawn then
  1196.         tspawn(function()
  1197.             while c and c.Parent do
  1198.                 if part and part.Parent then
  1199.                     cfr = part.CFrame
  1200.                 end
  1201.                 ccfr = ws.CurrentCamera.CFrame
  1202.                 stepped:Wait()
  1203.             end
  1204.         end)
  1205.         local function respawnifalive()
  1206.             if c and c.Parent then
  1207.                 respawnRequest()
  1208.             end
  1209.         end
  1210.         if plrs.RespawnTime > 0.5 then
  1211.             for i=0, 4 do tdelay(i/10, respawnifalive) end
  1212.             twait(mclamp(plrs.RespawnTime - 0.5, 0, math.abs(plrs.RespawnTime)))
  1213.         else
  1214.             respawnRequest()
  1215.         end
  1216.         part = nil
  1217.     end
  1218.     if c and c.Parent then
  1219.         if respawn then
  1220.             local hum = c:FindFirstChildOfClass("Humanoid")
  1221.             if hum then
  1222.                 hum.BreakJointsOnDeath = false
  1223.                 hum:ChangeState(Enum.HumanoidStateType.Dead)
  1224.             end
  1225.             tdelay(1, function()
  1226.                 if c and c.Parent then
  1227.                     c:BreakJoints()
  1228.                     respawnRequest()
  1229.                 end
  1230.             end)
  1231.         else
  1232.             c:BreakJoints()
  1233.         end
  1234.         while gui and cfr do
  1235.             stepped:Wait()
  1236.         end
  1237.     end
  1238. end
  1239. makecharbutton("respawn").MouseButton1Click:Connect(function()
  1240.     if not loopr then
  1241.         reset(true)
  1242.         twait()
  1243.     end
  1244. end)
  1245. makecharbutton("reset").MouseButton1Click:Connect(function()
  1246.     reset(false)
  1247. end)
  1248. local looprb = makecharbutton("loop respawn")
  1249. tspawn(function()
  1250.     while twait() and gui do
  1251.         if loopr then
  1252.             reset(true)
  1253.         end
  1254.     end
  1255. end)
  1256. looprb.MouseButton1Click:Connect(function()
  1257.     loopr = not loopr
  1258.     looprb.Text = "loop respawn" .. ((loopr and " (Enabled)") or "")
  1259. end)
  1260. makecharbutton("remove meshes").MouseButton1Click:Connect(function()
  1261.     local c = lp.Character
  1262.     if c and c.Parent then
  1263.         for i, v in pairs(c:GetDescendants()) do
  1264.             if v and v.Parent and (v:IsA("Mesh") or v:IsA("SpecialMesh") or v:IsA("CharacterMesh")) then
  1265.                 v:Destroy()
  1266.             end
  1267.         end
  1268.         notify("removed meshes")
  1269.     else
  1270.         notify("no character")
  1271.     end
  1272. end)
  1273. makecharbutton("remove accessories").MouseButton1Click:Connect(function()
  1274.     removehats()
  1275. end)
  1276. makecharbutton("break joints").MouseButton1Click:Connect(function()
  1277.     local c = lp.Character
  1278.     if c and c.Parent then
  1279.         c:BreakJoints()
  1280.         notify("broken joints")
  1281.     else
  1282.         notify("no character")
  1283.     end
  1284. end)
  1285. local noclipb = makecharbutton("noclip")
  1286. local noclip = false
  1287. noclipb.MouseButton1Click:Connect(function()
  1288.     noclip = not noclip
  1289.     noclipb.Text = "noclip" .. ((noclip and " (Enabled)") or "")
  1290. end)
  1291. local fakevoidcf = cf()
  1292. local fakevoidb = makecharbutton("fake void")
  1293. fakevoidb.MouseButton1Click:Connect(function()
  1294.     if fakevoidp then
  1295.         fakevoidp = nil
  1296.         fakevoidb.Text = "fake void"
  1297.     else
  1298.         if cfly and cfly.Parent then
  1299.             cfly = nil
  1300.         end
  1301.         local c = lp.Character
  1302.         if not (c and c.Parent) then
  1303.             notify("character not found")
  1304.             return
  1305.         end
  1306.         local part = gp(c, "HumanoidRootPart", "BasePart") or gp(c, "Torso", "BasePart") or gp(c, "UpperTorso", "BasePart") or gp(c, "Head", "BasePart") or c:FindFirstChildWhichIsA("BasePart")
  1307.         if not part then
  1308.             notify("no part found")
  1309.             return
  1310.         end
  1311.         fakevoidp = part
  1312.         fakevoidb.Text = "fake void (Enabled)"
  1313.         notify("character teleported under FallenPartsDestroyHeight")
  1314.  
  1315.         local dh = ws.FallenPartsDestroyHeight
  1316.         fakevoidcf = fakevoidp.CFrame
  1317.         local newcf = cf(0, dh - 100, 0)
  1318.         local camcf = ws.CurrentCamera.CFrame
  1319.         ws.CurrentCamera.CameraType = Enum.CameraType.Scriptable
  1320.         ws.FallenPartsDestroyHeight = dh - 200
  1321.         while stepped:Wait() and gui and c and c.Parent and fakevoidp and fakevoidp.Parent do
  1322.             weldtp(fakevoidp, newcf)
  1323.         end
  1324.         ws.FallenPartsDestroyHeight = dh
  1325.         fakevoidb.Text = "fake void"
  1326.         if c and c.Parent then
  1327.             unview()
  1328.             ws.CurrentCamera.CFrame = camcf
  1329.             if part and part.Parent then
  1330.                 weldtp(part, fakevoidcf)
  1331.                 notify("teleported back")
  1332.             else
  1333.                 notify("part removed")
  1334.             end
  1335.         else
  1336.             notify("character removed")
  1337.         end
  1338.     end
  1339. end)
  1340. makecharbutton("block tool").MouseButton1Click:Connect(function()
  1341.     local c = lp.Character
  1342.     if c and c.Parent then
  1343.         local tool = c:FindFirstChildOfClass("Tool")
  1344.         if tool then
  1345.             local found = false
  1346.             for i, v in pairs(tool:GetDescendants()) do
  1347.                 if v and v.Parent and v:IsA("Mesh") or v:IsA("SpecialMesh") then
  1348.                     v:Destroy()
  1349.                 end
  1350.             end
  1351.             if found then
  1352.                 notify("removed tool meshes")
  1353.             else
  1354.                 notify("no meshes found")
  1355.             end
  1356.         else
  1357.             notify("tool not found")
  1358.         end
  1359.     else
  1360.         notify("no character")
  1361.     end
  1362. end)
  1363. local infjumpb = makecharbutton("infjump")
  1364. local infjump = false
  1365. local con = nil
  1366. con = g:GetService("UserInputService").JumpRequest:Connect(function()
  1367.     if not gui then
  1368.         con:Disconnect()
  1369.         return
  1370.     end
  1371.     if infjump then
  1372.         local c = lp.Character
  1373.         if c and c.Parent then
  1374.             local hum = c:FindFirstChildOfClass("Humanoid")
  1375.             if hum then
  1376.                 hum:ChangeState("Jumping")
  1377.             end
  1378.         end
  1379.     end
  1380. end)
  1381. infjumpb.MouseButton1Click:Connect(function()
  1382.     infjump = not infjump
  1383.     infjumpb.Text = "infjump" .. ((infjump and " (Enabled)") or "")
  1384. end)
  1385. makecharbutton("god (remove humanoid)").MouseButton1Click:Connect(function()
  1386.     local c = lp.Character
  1387.     if c and c.Parent then
  1388.         local hum = c:FindFirstChildOfClass("Humanoid")
  1389.         if hum then
  1390.             hum.Archivable = true
  1391.             local hum1 = hum:Clone()
  1392.             hum:Destroy()
  1393.             hum1.Parent = c
  1394.             notify("humanoid client sided")
  1395.         else
  1396.             notify("humanoid not found")
  1397.         end
  1398.     else
  1399.         notify("character not found")
  1400.     end
  1401. end)
  1402. local loopgb = makecharbutton("loop god mode")
  1403. local loopg = false
  1404. tspawn(function()
  1405.     while twait() and gui do
  1406.         if loopg then
  1407.             local c = lp.Character
  1408.             if c and c.Parent then
  1409.                 local part = gp(c, "HumanoidRootPart", "BasePart") or gp(c, "Head", "BasePart") or c:FindFirstChildWhichIsA("BasePart")
  1410.                 if part then
  1411.                     local hum = c:FindFirstChildOfClass("Humanoid")
  1412.                     if hum then
  1413.                         local partName = part.Name
  1414.                         local new = hum:Clone()
  1415.                         hum:Destroy()
  1416.                         new.Parent = c
  1417.                         ws.CurrentCamera.CameraSubject = new
  1418.                         local currentcfr = part.CFrame
  1419.                         local camcfr = ws.CurrentCamera.CFrame
  1420.                         while twait() and c and c.Parent and part and part.Parent do
  1421.                             currentcfr = part.CFrame
  1422.                             camcfr = ws.CurrentCamera.CFrame
  1423.                             removehats(c)
  1424.                             local ff = c:FindFirstChildOfClass("ForceField")
  1425.                             if ff then
  1426.                                 ff:Destroy()
  1427.                             end
  1428.                         end
  1429.                         part = nil
  1430.                         while not (part and part.Parent) do
  1431.                             twait()
  1432.                             c = lp.Character
  1433.                             part = gp(c, partName, "BasePart")
  1434.                         end
  1435.                         weldtp(part, currentcfr)
  1436.                         ws.CurrentCamera.CFrame = camcfr
  1437.                     end
  1438.                 end
  1439.             end
  1440.         end
  1441.     end
  1442. end)
  1443. loopgb.MouseButton1Click:Connect(function()
  1444.     loopg = not loopg
  1445.     loopgb.Text = "loop god mode" .. ((loopg and " (Enabled)") or "")
  1446. end)
  1447. local flyb = makecharbutton("fly")
  1448. flyb.MouseButton1Click:Connect(function()
  1449.     if cfly and cfly.Parent then
  1450.         cfly = nil
  1451.     else
  1452.         if fakevoidp then
  1453.             fakevoidp = nil
  1454.             fakevoidb.Text = "fake void"
  1455.             renderstepped:Wait()
  1456.         end
  1457.         cfly = lp.Character
  1458.         flyb.Text = "fly (Enabled)"
  1459.     end
  1460. end)
  1461.  
  1462. local ctrlf = {
  1463.     ["w"] = false,
  1464.     ["a"] = false,
  1465.     ["s"] = false,
  1466.     ["d"] = false
  1467. }
  1468. local con = nil
  1469. con = mouse.KeyDown:Connect(function(key)
  1470.     if not gui then
  1471.         con:Disconnect()
  1472.         return
  1473.     end
  1474.     key = key:lower()
  1475.     if ctrlf[key] ~= nil then
  1476.         ctrlf[key] = true
  1477.     end
  1478. end)
  1479. local con = nil
  1480. con = mouse.KeyUp:Connect(function(key)
  1481.     if not gui then
  1482.         con:Disconnect()
  1483.         return
  1484.     end
  1485.     key = key:lower()
  1486.     if ctrlf[key] ~= nil then
  1487.         ctrlf[key] = false
  1488.     end
  1489. end)
  1490. local con = nil
  1491. con = renderstepped:Connect(function(deltaTime)
  1492.     if not gui then
  1493.         con:Disconnect()
  1494.         return
  1495.     end
  1496.     if not flycf then
  1497.         return
  1498.     end
  1499.     local fb = ((ctrlf["w"] and flyspeed) or 0) + ((ctrlf["s"] and -flyspeed) or 0)
  1500.     local lr = ((ctrlf["a"] and -flyspeed) or 0) + ((ctrlf["d"] and flyspeed) or 0)
  1501.     local camcf = ws.CurrentCamera.CFrame
  1502.     flycf = cf(flycf.Position, flycf.Position + camcf.LookVector * v3_101)
  1503.     flycf += camcf.LookVector * fb * deltaTime
  1504.     flycf += camcf.RightVector * lr * deltaTime
  1505. end)
  1506. tspawn(function()
  1507.     while stepped:Wait() and gui do
  1508.         if cfly and cfly.Parent then
  1509.             fhrp = (fhrp and (fhrp.Parent == cfly) and fhrp) or gp(cfly, "HumanoidRootPart", "BasePart") or gp(cfly, "Head", "BasePart") or cfly:FindFirstChildWhichIsA("BasePart")
  1510.             if fhrp then
  1511.                 flycf = flycf or fhrp.CFrame
  1512.                 weldtp(fhrp, flycf)
  1513.             end
  1514.         else
  1515.             flycf = false
  1516.             fhrp = nil
  1517.             flyb.Text = "fly"
  1518.         end
  1519.     end
  1520. end)
  1521.  
  1522. local hiddenfling = false
  1523. tspawn(function()
  1524.     local hrp, c, vel, movel = nil, nil, nil, 0.1
  1525.     while gui do
  1526.         heartbeat:Wait()
  1527.         if hiddenfling then
  1528.             while gui and hiddenfling and not (c and c.Parent and hrp and hrp.Parent) do
  1529.                 heartbeat:Wait()
  1530.                 c = lp.Character
  1531.                 hrp = gp(c, "HumanoidRootPart", "BasePart") or gp(c, "Torso", "BasePart") or gp(c, "UpperTorso", "BasePart")
  1532.             end
  1533.             if gui and hiddenfling then
  1534.                 vel = hrp.Velocity
  1535.                 hrp.Velocity = vel * 10000 + v3(0, 10000, 0)
  1536.                 renderstepped:Wait()
  1537.                 if c and c.Parent and hrp and hrp.Parent then
  1538.                     hrp.Velocity = vel
  1539.                 end
  1540.                 stepped:Wait()
  1541.                 if c and c.Parent and hrp and hrp.Parent then
  1542.                     hrp.Velocity = vel + v3(0, movel, 0)
  1543.                     movel = movel * -1
  1544.                 end
  1545.             end
  1546.         end
  1547.     end
  1548. end)
  1549.  
  1550. local hiddenflingB = makecharbutton("hidden fling")
  1551. hiddenflingB.MouseButton1Click:Connect(function()
  1552.     hiddenfling = not hiddenfling
  1553.     hiddenflingB.Text = "hidden fling" .. ((hiddenfling and " (Enabled)") or "")
  1554. end)
  1555.  
  1556. makecharbutton("anti respawn (wait RespawnTime)").MouseButton1Click:Connect(respawnRequest)
  1557. makecharbutton("no animations").MouseButton1Click:Connect(noanimations)
  1558. makecharbutton("sit").MouseButton1Click:Connect(function()
  1559.     local c = lp.Character
  1560.     if c and c.Parent then
  1561.         local hum = c:FindFirstChildOfClass("Humanoid")
  1562.         if hum then
  1563.             hum.Sit = not hum.Sit
  1564.         else
  1565.             notify("humanoid not found")
  1566.         end
  1567.     else
  1568.         notify("character not found")
  1569.     end
  1570. end)
  1571. makecharbutton("fake sit").MouseButton1Click:Connect(function()
  1572.     local c = lp.Character
  1573.     if c and c.Parent then
  1574.         local hum = c:FindFirstChildOfClass("Humanoid")
  1575.         if hum then
  1576.             hum:SetStateEnabled(Enum.HumanoidStateType.Seated, false)
  1577.             hum.Sit = true
  1578.             notify("humanoid.Sit set to true")
  1579.         else
  1580.             notify("humanoid not found")
  1581.         end
  1582.     else
  1583.         notify("character not found")
  1584.     end
  1585. end)
  1586. makecharbutton("remove humanoidroot").MouseButton1Click:Connect(function()
  1587.     local c = lp.Character
  1588.     if c then
  1589.         local cpar = c.Parent
  1590.         if cpar then
  1591.             local hrp = gp(c, "HumanoidRootPart", "BasePart")
  1592.             if hrp then
  1593.                 c.Parent = nil
  1594.                 hrp:Destroy()
  1595.                 c.Parent = cpar
  1596.                 notify("hrp removed")
  1597.             else
  1598.                 notify("hrp not found")
  1599.             end
  1600.         else
  1601.             notify("character not found")
  1602.         end
  1603.     else
  1604.         notify("character not found")
  1605.     end
  1606. end)
  1607. makecharbutton("set CanTouch to false").MouseButton1Click:Connect(function()
  1608.     local c = lp.Character
  1609.     if c and c.Parent then
  1610.         local tool = c:FindFirstChildOfClass("Tool")
  1611.         for i, v in pairs(c:GetDescendants()) do
  1612.             if v and v.Parent and v:IsA("BasePart") and ((not tool) or (not v:IsDescendantOf(tool))) then
  1613.                 v.CanTouch = false
  1614.             end
  1615.         end
  1616.         notify("CanTouch has been set to false")
  1617.     else
  1618.         notify("character not found")
  1619.     end
  1620. end)
  1621. local ctrltp = false
  1622. local clicktpbutton = makecharbutton("ctrl click tp")
  1623. clicktpbutton.MouseButton1Click:Connect(function()
  1624.     ctrltp = not ctrltp
  1625.     clicktpbutton.Text = "ctrl click tp" .. ((ctrltp and " (Enabled)") or "")
  1626. end)
  1627. local con = nil
  1628. con = mouse.Button1Down:Connect(function()
  1629.     if not gui then
  1630.         con:Disconnect()
  1631.         return
  1632.     end
  1633.     if not ctrltp then
  1634.         return
  1635.     end
  1636.     if not (mouse.Target and uis:IsKeyDown(Enum.KeyCode.LeftControl)) then
  1637.         return
  1638.     end
  1639.     local to = mouse.Hit.Position + v3(0, 3, 0)
  1640.     to = cf(to, to + v3_101 * ws.CurrentCamera.CFrame.LookVector)
  1641.     if flycf then
  1642.         flycf = to
  1643.         return
  1644.     end
  1645.     if fakevoidp then
  1646.         fakevoidp = nil
  1647.         fakevoidb.Text = "fake void"
  1648.         fakevoidcf = to
  1649.         return
  1650.     end
  1651.     local c = lp.Character
  1652.     if not (c and c.Parent) then
  1653.         return
  1654.     end
  1655.     local hrp = gp(c, "HumanoidRootPart", "BasePart") or gp(c, "Torso", "BasePart") or gp(c, "UpperTorso", "BasePart") or gp(c, "Head", "BasePart") or c:FindFirstChildWhichIsA("BasePart")
  1656.     if hrp then
  1657.         weldtp(hrp, to)
  1658.     end
  1659. end)
  1660. makecharbutton("view").MouseButton1Click:Connect(unview)
  1661.  
  1662. local utilframe = makeFrame(scrollingFrame, "Utilities", Color3.fromRGB(0, 150, 150))
  1663. local utilscroll = utilframe:FindFirstChildOfClass("ScrollingFrame")
  1664.  
  1665. local function makeutilbutton(buttontext)
  1666.     local button = instancefromtable({
  1667.         ClassName = "TextButton",
  1668.         Parent = utilscroll,
  1669.         BackgroundColor3 = Color3.fromRGB(53, 53, 53),
  1670.         BorderSizePixel = 0,
  1671.         Size = UDim2.new(1, -10, 0, 20),
  1672.         Font = Enum.Font.SourceSans,
  1673.         Text = buttontext,
  1674.         TextColor3 = Color3.fromRGB(226, 226, 226),
  1675.         TextSize = 15
  1676.     })
  1677.     roundcorners(button)
  1678.     return button
  1679. end
  1680.  
  1681. local espb = makeutilbutton("esp")
  1682. local esp = false
  1683. espb.MouseButton1Click:Connect(function()
  1684.     esp = not esp
  1685.     espb.Text = "esp" .. ((esp and " (Enabled)") or "")
  1686. end)
  1687. local teamcheckb = makeutilbutton("esp team check")
  1688. local espTeamCheck = false
  1689. teamcheckb.MouseButton1Click:Connect(function()
  1690.     espTeamCheck = not espTeamCheck
  1691.     teamcheckb.Text = "esp team check" .. ((espTeamCheck and " (Enabled)") or "")
  1692. end)
  1693.  
  1694. local espcolor = Color3.fromRGB(255, 0, 0)
  1695.  
  1696. local vpf = instancefromtable({
  1697.     ClassName = "ViewportFrame",
  1698.     Parent = gui,
  1699.     BackgroundTransparency = 1,
  1700.     BorderSizePixel = 0,
  1701.     ImageTransparency = 0.5,
  1702.     ImageColor3 = espcolor,
  1703.     BackgroundColor3 = espcolor,
  1704.     Size = UDim2.new(1, 0, 1, 0),
  1705.     Visible = true
  1706. })
  1707.  
  1708. local con = nil
  1709. con = renderstepped:Connect(function()
  1710.     if not gui then
  1711.         con:Disconnect()
  1712.         return
  1713.     end
  1714.     vpf:ClearAllChildren()
  1715.     if esp then
  1716.         vpf.CurrentCamera = ws.CurrentCamera
  1717.         for i, plr in pairs(plrs:GetPlayers()) do
  1718.             if plr ~= lp then
  1719.                 local c = plr.Character
  1720.                 if c and ((not espTeamCheck) or (plr.Team ~= lp.Team)) then
  1721.                     for i, part in pairs(c:GetDescendants()) do
  1722.                         if part:IsA("BasePart") then
  1723.                             local part1 = instancenew("Part")
  1724.                             part1.Color = espcolor
  1725.                             part1.Size = part.Size
  1726.                             part1.CFrame = part.CFrame
  1727.                             part1.Parent = vpf
  1728.                         end
  1729.                     end
  1730.                 end
  1731.             end
  1732.         end
  1733.     end
  1734.     if viewedPlayer then
  1735.         if tfind(cbring, viewedPlayer.Name) then
  1736.             return unview()
  1737.         end
  1738.         local c = viewedPlayer.Character
  1739.         if c and c.Parent then
  1740.             local subject = c:FindFirstChildOfClass("Humanoid") or c:FindFirstChildWhichIsA("BasePart") or c
  1741.             if subject then
  1742.                 ws.CurrentCamera.CameraType = Enum.CameraType.Custom
  1743.                 ws.CurrentCamera.CameraSubject = subject
  1744.             end
  1745.         end
  1746.     end
  1747. end)
  1748.  
  1749. local antiflingb = makeutilbutton("anti fling")
  1750. local antifling = false
  1751. antiflingb.MouseButton1Click:Connect(function()
  1752.     antifling = not antifling
  1753.     antiflingb.Text = "anti fling" .. ((antifling and " (Enabled)") or "")
  1754. end)
  1755.  
  1756. local con0, con1 = nil, nil
  1757. local function antiflingF()
  1758.     if not gui then
  1759.         con0:Disconnect()
  1760.         con1:Disconnect()
  1761.         return
  1762.     end
  1763.     if antifling then
  1764.         for i, v in pairs(plrs:GetPlayers()) do
  1765.             if v ~= lp then
  1766.                 local c = v.Character
  1767.                 if c then
  1768.                     for i1, v1 in pairs(c:GetDescendants()) do
  1769.                         if v1:IsA("BasePart") then
  1770.                             v1.CanCollide, v1.Velocity, v1.RotVelocity = false, v3_0, v3_0
  1771.                         end
  1772.                     end
  1773.                 end
  1774.             end
  1775.         end
  1776.     end
  1777. end
  1778. con0 = heartbeat:Connect(antiflingF)
  1779. con1 = stepped:Connect(antiflingF)
  1780.  
  1781. local antiattb = makeutilbutton("anti attach")
  1782. local antiatt = false
  1783. antiattb.MouseButton1Click:Connect(function()
  1784.     antiatt = not antiatt
  1785.     antiattb.Text = "anti attach" .. ((antiatt and " (Enabled)") or "")
  1786. end)
  1787. local charcon = nil
  1788. local currentcon = nil
  1789. local function onchar(c)
  1790.     if not gui then
  1791.         charcon:Disconnect()
  1792.         return
  1793.     end
  1794.     if typeof(c) ~= "Instance" then
  1795.         return
  1796.     end
  1797.     if currentcon then
  1798.         currentcon:Disconnect()
  1799.     end
  1800.     currentcon = c.ChildAdded:Connect(function(t)
  1801.         if not (antiatt and gui) then
  1802.             return
  1803.         end
  1804.         if not t:IsA("Tool") then return end
  1805.         local h = gp(t, "Handle", "BasePart") or t:FindFirstChildWhichIsA("BasePart")
  1806.         if not h then return end
  1807.         for i, v in pairs(h:GetConnectedParts()) do
  1808.             if not v:IsDescendantOf(c) then
  1809.                 h:BreakJoints()
  1810.                 stepped:Wait()
  1811.                 if t and (t.Parent == c) then
  1812.                     t.Parent = lp:FindFirstChildOfClass("Backpack") or ws
  1813.                 end
  1814.                 return
  1815.             end
  1816.         end
  1817.     end)
  1818. end
  1819. onchar(lp.Character)
  1820. charcon = lp.CharacterAdded:Connect(onchar)
  1821.  
  1822. local net = false
  1823. local netb = makeutilbutton("net bypass")
  1824. netb.MouseButton1Click:Connect(function()
  1825.     if net then
  1826.         net = false
  1827.     elseif shp then
  1828.         net = true
  1829.     else
  1830.         notify("exploit not supported")
  1831.     end
  1832.     netb.Text = "net bypass" .. ((net and " (Enabled)") or "")
  1833. end)
  1834. local con = nil
  1835. con = heartbeat:Connect(function()
  1836.     if net then
  1837.         shp(lp, "SimulationRadius", 1000)
  1838.     end
  1839. end)
  1840.  
  1841. makeutilbutton("rejoin").MouseButton1Click:Connect(function()
  1842.     notify("attempting to rejoin")
  1843.        renderstepped:Wait()
  1844.     g:GetService("TeleportService"):TeleportToPlaceInstance(g.PlaceId, g.JobId, lp)
  1845. end)
  1846.  
  1847. makeutilbutton("serverhop").MouseButton1Click:Connect(function()
  1848.     local servers = nil
  1849.     pcall(function()
  1850.         servers = g:GetService("HttpService"):JSONDecode(g:HttpGetAsync("https://games.roblox.com/v1/games/" .. g.PlaceId .. "/servers/Public?sortOrder=Asc&limit=100")).data
  1851.     end)
  1852.     if type(servers) ~= "table" then
  1853.         notify("error getting server list")
  1854.         return
  1855.     end
  1856.     local jobIds = {}
  1857.     for i, v in pairs(servers) do
  1858.         if (type(v) == "table") and (v.maxPlayers > v.playing) and (v.id ~= g.JobId) then
  1859.             tinsert(jobIds, v.id)
  1860.         end
  1861.     end
  1862.     if #jobIds > 0 then
  1863.         notify("attempting to teleport")
  1864.         renderstepped:Wait()
  1865.         g:GetService("TeleportService"):TeleportToPlaceInstance(g.PlaceId, jobIds[mrandom(1, #jobIds)])
  1866.     else
  1867.         notify("no free server found")
  1868.     end
  1869. end)
  1870.  
  1871. makeutilbutton("instant leave").MouseButton1Click:Connect(function()
  1872.     lp:Kick()
  1873.     twait()
  1874.     g:Shutdown()
  1875. end)
  1876.  
  1877. local cbringframe = makeFrame(scrollingFrame, "cbring", Color3.fromRGB(15, 100, 15))
  1878. local cbringscroll = cbringframe:FindFirstChildOfClass("ScrollingFrame")
  1879.  
  1880. local togglecbring = nil
  1881. local function makecbringframe(name)
  1882.     local plrcbringf = instancefromtable({
  1883.         ClassName = "Frame",
  1884.         Name = name,
  1885.         BackgroundColor3 = Color3.fromRGB(106, 106, 106),
  1886.         BorderSizePixel = 0,
  1887.         Size = UDim2.new(1, -10, 0, 30),
  1888.         Parent = cbringscroll
  1889.     })
  1890.     roundcorners(plrcbringf)
  1891.     local uncbringbtn = instancefromtable({
  1892.         ClassName = "TextButton",
  1893.         Parent = plrcbringf,
  1894.         BackgroundColor3 = Color3.fromRGB(47, 47, 47),
  1895.         BorderSizePixel = 0,
  1896.         Position = UDim2.new(1, -25, 0, 5),
  1897.         Size = UDim2.new(0, 20, 1, -10),
  1898.         Font = Enum.Font.SourceSans,
  1899.         Text = "X",
  1900.         TextColor3 = Color3.fromRGB(223, 223, 223),
  1901.         TextSize = 16
  1902.     })
  1903.     roundcorners(uncbringbtn)
  1904.     local cbringplrname = instancefromtable({
  1905.         ClassName = "TextLabel",
  1906.         Parent = plrcbringf,
  1907.         BackgroundTransparency = 1,
  1908.         Position = UDim2.new(0, 5, 0, 5),
  1909.         Size = UDim2.new(1, -80, 1, -10),
  1910.         Font = Enum.Font.SourceSans,
  1911.         Text = name,
  1912.         TextColor3 = Color3.fromRGB(0, 0, 0),
  1913.         TextSize = 25,
  1914.         TextXAlignment = Enum.TextXAlignment.Left
  1915.     })
  1916.     uncbringbtn.MouseButton1Click:Connect(function()
  1917.         togglecbring(name)
  1918.     end)
  1919.     return plrcbringf
  1920. end
  1921.  
  1922. togglecbring = function(name)
  1923.     local frame = gp(cbringscroll, name, "Frame")
  1924.     if frame then
  1925.         pcall(function()
  1926.             tremove(cbring, tfind(cbring, name))
  1927.         end)
  1928.         frame:Destroy()
  1929.         notify("removed " .. name .. " from cbring")
  1930.     else
  1931.         tinsert(cbring, name)
  1932.         makecbringframe(name)
  1933.         notify("added " .. name .. " to cbring")
  1934.     end
  1935. end
  1936.  
  1937. cbringb.MouseButton1Click:Connect(function()
  1938.     togglecbring(currentplayer.Name)
  1939. end)
  1940.  
  1941. local cbringallbtn = instancefromtable({
  1942.     ClassName = "TextButton",
  1943.     Parent = cbringframe:FindFirstChildOfClass("TextLabel"),
  1944.     BackgroundColor3 = Color3.fromRGB(59, 59, 59),
  1945.     BorderSizePixel = 0,
  1946.     Position = UDim2.new(1, -57, 0, 2),
  1947.     Size = UDim2.new(0, 55, 1, -4),
  1948.     Font = Enum.Font.SourceSans,
  1949.     Text = "+ add all",
  1950.     TextColor3 = Color3.fromRGB(206, 206, 206),
  1951.     TextSize = 14
  1952. })
  1953. roundcorners(cbringallbtn)
  1954. cbringallbtn.MouseButton1Click:Connect(function()
  1955.     for i, v in pairs(plrs:GetPlayers()) do
  1956.         if (v ~= lp) and v and v.Parent and (not tfind(cbring, v.Name)) then
  1957.             togglecbring(v.Name)
  1958.         end
  1959.     end
  1960. end)
  1961.  
  1962. tspawn(function()
  1963.     while gui do
  1964.         local waited = false
  1965.         local lpc = lp.Character
  1966.         if (#cbring > 1) and lpc and lpc.Parent then
  1967.             local part0 = gp(lpc, "Torso", "BasePart") or gp(lpc, "HumanoidRootPart", "BasePart") or gp(lpc, "Head", "BasePart") or lpc:FindFirstChildWhichIsA("BasePart")
  1968.             if part0 then
  1969.                 for i, v in pairs(plrs:GetPlayers()) do
  1970.                     if v ~= lp then
  1971.                         local c = v.Character
  1972.                         if c and c.Parent then
  1973.                             if tfind(cbring, v.Name) then
  1974.                                 local part1 = gp(c, part0.Name, "BasePart") or gp(c, "Torso", "BasePart") or gp(c, "HumanoidRootPart", "BasePart") or gp(c, "Head", "BasePart") or c:FindFirstChildWhichIsA("BasePart")
  1975.                                 if part1 then
  1976.                                     local p1cf = part0.CFrame
  1977.                                     weldtp(part1, p1cf + p1cf.LookVector * 2)
  1978.                                     waited = true
  1979.                                 end
  1980.                             end
  1981.                         end
  1982.                     end
  1983.                 end
  1984.             end
  1985.         end
  1986.         if not waited then
  1987.             stepped:Wait()
  1988.         end
  1989.     end
  1990. end)
  1991.  
  1992. local con = nil
  1993. con = stepped:Connect(function()
  1994.     if not gui then
  1995.         con:Disconnect()
  1996.         return
  1997.     end
  1998.     local c = lp.Character
  1999.     if noclip and c then
  2000.         for i, v in pairs(c:GetDescendants()) do
  2001.             if v:IsA("BasePart") then
  2002.                 v.CanCollide = false
  2003.             end
  2004.         end
  2005.     end
  2006. end)
  2007.  
  2008. local success, _ = pcall(function()
  2009.     gui.Parent = cg
  2010. end)
  2011. if not success then
  2012.     gui.Parent = pg
  2013.     notify("gui in playergui")
  2014. end
  2015. renderstepped:Wait()
  2016. playercframe.Visible = false
Add Comment
Please, Sign In to add comment