ZHFK

Pizza Place Gui

Jun 11th, 2020 (edited)
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 24.71 KB | None | 0 0
  1. spawn(loadstring(game:HttpGet("https://pastebin.com/raw/q817HYb9",true)))
  2.  
  3. --Use \ to execute commands
  4.  
  5. spawn(function()
  6. local message = Instance.new("Message",workspace)
  7. message.Text = "Loaded press z to execute inviseble , press x to respawn)"
  8. wait(0.5)
  9. message:Destroy()
  10. end)
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19. local mouse = game.Players.LocalPlayer:GetMouse()
  20.  
  21. local groot = nil
  22.  
  23. mouse.KeyDown:connect(function(k)
  24.    
  25.     if k == "z" then
  26.        
  27.        
  28.        
  29. spawn(function()
  30. local message = Instance.new("Message",workspace)
  31. message.Text = "Fe Invisible Fling By Diemiers#4209 Loaded (wait 11 seconds to load)"
  32. wait(11)
  33. message:Destroy()
  34. end)
  35.  
  36.  
  37. local ch = game.Players.LocalPlayer.Character
  38. local prt=Instance.new("Model", workspace)
  39. local z1 =  Instance.new("Part", prt)
  40. z1.Name="Torso"
  41. z1.CanCollide = false
  42. z1.Anchored = true
  43. local z2  =Instance.new("Part", prt)
  44. z2.Name="Head"
  45. z2.Anchored = true
  46. z2.CanCollide = false
  47. local z3 =Instance.new("Humanoid", prt)
  48. z3.Name="Humanoid"
  49. z1.Position = Vector3.new(0,9999,0)
  50. z2.Position = Vector3.new(0,9991,0)
  51.  game.Players.LocalPlayer.Character=prt
  52. wait(5)
  53. game.Players.LocalPlayer.Character=ch
  54. wait(6)
  55.  
  56.  
  57. local plr = game.Players.LocalPlayer
  58. mouse = plr:GetMouse()
  59.  
  60. local Hum = Instance.new("Humanoid")
  61. Hum.Parent = game.Players.LocalPlayer.Character
  62.  
  63.  
  64. local root =  game.Players.LocalPlayer.Character.HumanoidRootPart
  65.  
  66.  
  67. for i,v in pairs(plr.Character:GetChildren()) do
  68.    
  69.     if v ~= root and  v.Name ~= "Humanoid" then
  70.        
  71.         v:Destroy()
  72.        
  73.     end
  74.    
  75.    
  76. end
  77.            
  78. workspace.CurrentCamera.CameraSubject = root
  79.  
  80. local se = Instance.new("SelectionBox",root)
  81. se.Adornee = root
  82.  
  83.  
  84. game:GetService('RunService').Stepped:connect(function()
  85. game.Players.LocalPlayer.Character.HumanoidRootPart.CanCollide = false
  86. end)
  87. game:GetService('RunService').RenderStepped:connect(function()
  88. game.Players.LocalPlayer.Character.HumanoidRootPart.CanCollide = false
  89. end)
  90.  
  91.  
  92. power = 999999 -- change this to make it more or less powerful
  93.  
  94. power = power*10
  95.  
  96. ---
  97. wait(.1)
  98. local bambam = Instance.new("BodyThrust")
  99. bambam.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  100. bambam.Force = Vector3.new(power,0,power)
  101. bambam.Location = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  102.  
  103.  
  104.  
  105.  
  106.  
  107. local plr = game.Players.LocalPlayer
  108. local torso = root
  109. local flying = true
  110. local deb = true
  111. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  112. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  113. local maxspeed = 120
  114. local speed = 15
  115.  
  116.  
  117. ---local bambam = Instance.new("BodyThrust")
  118. ---bambam.Parent = torso
  119. --bambam.Force = Vector3.new(9999999,0,9999999)
  120. --bambam.Location = torso.Position
  121.  
  122.  
  123. ---
  124. groot = root
  125.  
  126. function Fly()
  127. local bg = Instance.new("BodyGyro", torso)
  128. bg.P = 9e4
  129. bg.maxTorque = Vector3.new(0, 0, 0)
  130. bg.cframe = torso.CFrame
  131. local bv = Instance.new("BodyVelocity", torso)
  132. bv.velocity = Vector3.new(0,0,0)
  133. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  134. repeat wait()
  135.  
  136. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  137. speed = speed+.2
  138. if speed > maxspeed then
  139. speed = maxspeed
  140. end
  141. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  142. speed = speed-1
  143. if speed < 0 then
  144. speed = 0
  145. end
  146. end
  147. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  148. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  149. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  150. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  151. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  152. else
  153. bv.velocity = Vector3.new(0,0.1,0)
  154. end
  155.  
  156. until not flying
  157. ctrl = {f = 0, b = 0, l = 0, r = 0}
  158. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  159. speed = 0
  160. bg:Destroy()
  161. bv:Destroy()
  162.  
  163. end
  164. mouse.KeyDown:connect(function(key)
  165. if key:lower() == "e" then
  166. if flying then flying = false
  167. else
  168. flying = true
  169. Fly()
  170. end
  171. elseif key:lower() == "w" then
  172. ctrl.f = 1
  173. elseif key:lower() == "s" then
  174. ctrl.b = -1
  175. elseif key:lower() == "a" then
  176. ctrl.l = -1
  177. elseif key:lower() == "d" then
  178. ctrl.r = 1
  179. end
  180. end)
  181. mouse.KeyUp:connect(function(key)
  182. if key:lower() == "w" then
  183. ctrl.f = 0
  184. elseif key:lower() == "s" then
  185. ctrl.b = 0
  186. elseif key:lower() == "a" then
  187. ctrl.l = 0
  188. elseif key:lower() == "d" then
  189. ctrl.r = 0
  190. elseif key:lower() == "r" then
  191.  
  192. end
  193. end)
  194. Fly()
  195.  
  196.        
  197.        
  198.     elseif k == "x" then
  199.        
  200.        
  201.         spawn(function()
  202. local message = Instance.new("Message",workspace)
  203. message.Text = "Respawning dont spam"
  204. wait(1)
  205. message:Destroy()
  206. end)
  207.        
  208.         local saved = groot.Position
  209.        
  210. local ch = game.Players.LocalPlayer.Character
  211. local prt=Instance.new("Model", workspace)
  212. local z1 =  Instance.new("Part", prt)
  213. z1.Name="Torso"
  214. z1.CanCollide = false
  215. z1.Anchored = true
  216. local z2  =Instance.new("Part", prt)
  217. z2.Name="Head"
  218. z2.Anchored = true
  219. z2.CanCollide = false
  220. local z3 =Instance.new("Humanoid", prt)
  221. z3.Name="Humanoid"
  222. z1.Position = Vector3.new(0,9999,0)
  223. z2.Position = Vector3.new(0,9991,0)
  224.  game.Players.LocalPlayer.Character=prt
  225. wait(5)
  226.  game.Players.LocalPlayer.Character=ch
  227. local poop = nil
  228.         repeat wait() poop = game.Players.LocalPlayer.Character:FindFirstChild("Head") until poop ~= nil
  229.         wait(1)
  230.         game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(saved)
  231.        
  232.     end
  233.    
  234.    
  235. end)--TOMQ-SCRIPT-2020
  236. -- prevent from being ran more than once
  237.  
  238.  
  239. if not _G.ini then
  240. _G.ini = true
  241.  
  242. local sound = Instance.new("Sound")
  243. sound.SoundId = "rbxassetid://216917652"
  244. sound.Parent = game:GetService("SoundService")
  245. sound:Play()
  246.  
  247.  
  248.  
  249. wait()
  250. game.StarterGui:SetCore("SendNotification", {
  251. Title = "Unanchored To Player"; -- the title (ofc)
  252. Text = "GUI Loaded - F to Hide/Show"; -- what the text says (ofc)
  253. Duration = 5; -- how long the notification should in secounds
  254. })
  255.  
  256. print "================UNANCHORED TO PLAYER LOADED================"
  257. print "================MADE BY TomQ#6764================"
  258.  
  259. local heartbeat = game:GetService("RunService").Heartbeat
  260. spawn(function()
  261.     while true do heartbeat:Wait()
  262.     for i,v in pairs(game.Players:GetPlayers()) do
  263.         if v == game.Players.LocalPlayer == false then
  264.             game.Players.LocalPlayer.MaximumSimulationRadius = math.pow(math.huge,math.huge)*math.huge
  265.             game.Players.LocalPlayer.SimulationRadius = math.pow(math.huge,math.huge)*math.huge
  266.             v.MaximumSimulationRadius = 0
  267.             v.SimulationRadius = 0
  268.             game:GetService("RunService").Stepped:wait()
  269.     end
  270. end
  271. end
  272. end)
  273.  
  274. local Imput = game:GetService("UserInputService")
  275. local Plr = game.Players.LocalPlayer
  276. local Mouse = Plr:GetMouse()
  277.  
  278. function To(position)
  279. local Chr = Plr.Character
  280. local sound2 = Instance.new("Sound")
  281. sound2.SoundId = "rbxassetid://3398620867"
  282. sound2.Parent = game:GetService("SoundService")
  283. if Chr ~= nil then
  284. for index, part in pairs(game:GetDescendants()) do
  285. if part:IsA("BasePart" or "UnionOperation" or "Model") and part.Anchored == false and part:IsDescendantOf(game.Players.LocalPlayer.Character) == false and part.Name == "Torso" == false and part.Name == "Head" == false and part.Name == "Right Arm" == false and part.Name == "Left Arm" == false and part.Name == "Right Leg" == false and part.Name == "Left Leg" == false and part.Name == "HumanoidRootPart" == false then --// Checks Part Properties
  286.     part.CFrame = CFrame.new(position) --TP Part To Mouse
  287.     sound2:Play()
  288.  
  289.     if spam == true and part:FindFirstChild("BodyGyro") == nil then
  290.     local bodyPos = Instance.new("BodyPosition")
  291.     bodyPos.Position = part.Position
  292.     bodyPos.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  293.     bodyPos.P = 1e6
  294.     bodyPos.Parent = part
  295.     end
  296. end
  297. end
  298. end
  299. end
  300.  
  301.  
  302.  
  303.  
  304.  
  305. Imput.InputBegan:Connect(function(input)
  306.    if input.UserInputType == Enum.UserInputType.MouseButton1 and Imput:IsKeyDown(Enum.KeyCode.LeftControl) then
  307.        To(Mouse.Hit.p)
  308.    end
  309. end)
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317. -- key that opens/closes the ui
  318. local toggle_key = Enum.KeyCode.F
  319.  
  320. -- function that executes desired code
  321. execute = function(name)
  322.  
  323.  
  324.  
  325.     for index, part in pairs(game:GetDescendants()) do
  326.     if part:IsA("BasePart" or "UnionOperation" or "Model") and part.Anchored == false and part:IsDescendantOf(game.Players.LocalPlayer.Character) == false and part.Name == "Torso" == false and part.Name == "Head" == false and part.Name == "Right Arm" == false and part.Name == "Left Arm" == false and part.Name == "Right Leg" == false and part.Name == "Left Leg" == false and part.Name == "HumanoidRootPart" == false then --// Checks Part Properties
  327.     part.CFrame = CFrame.new(game.workspace[name].Head.Position) --TP Part To User
  328.     end
  329.     end
  330.  
  331.  
  332.  
  333. end
  334.  
  335. local uis = game:GetService("UserInputService")
  336. local ts = game:GetService("TweenService")
  337.  
  338. -- ui functions
  339. fade = function(obj, len, props)
  340.     ts:Create(obj, TweenInfo.new(len, Enum.EasingStyle.Sine), props):Play()
  341. end
  342.  
  343. -- shorthand variables
  344. local u2, c3 = UDim2.new, Color3.fromRGB
  345. local u2f, c3w = u2(1, 0, 1, 0), c3(255, 255, 255)
  346.  
  347. -- ui init
  348. local g = Instance.new("ScreenGui", game.CoreGui)
  349. local f = Instance.new("Frame", g)
  350. local t = Instance.new("TextLabel", f)
  351. local c = Instance.new("ScrollingFrame", f)
  352.  
  353. -- core ui styling
  354. local padding = Instance.new("UIPadding", f)
  355. local maxsize = Instance.new("UISizeConstraint", f)
  356. local textsize = Instance.new("UITextSizeConstraint", t)
  357. local listcons = Instance.new("UIListLayout", c)
  358.  
  359. padding.PaddingBottom = UDim.new(0, 8)
  360. padding.PaddingLeft = UDim.new(0, 15)
  361. padding.PaddingRight = UDim.new(0, 15)
  362. padding.PaddingTop = UDim.new(0, 0)
  363.  
  364. maxsize.MaxSize = Vector2.new(275, 450)
  365. maxsize.MinSize = Vector2.new(200, 0)
  366. textsize.MaxTextSize = 16
  367. listcons.Padding = UDim.new(0, 3)
  368.  
  369. -- ui instance properties
  370. g.Name = "unanchor_ui"
  371. g.ResetOnSpawn = false
  372. f.Name = "main"
  373. t.Name = "header"
  374.  
  375. f.Size = u2(0.165, 0, 0.6, 0)
  376. f.BorderSizePixel = 0
  377. f.BackgroundTransparency = 0.3
  378. f.Position = u2(1, -215, 0.5, -150)
  379. f.BackgroundColor3 = c3()
  380. f.AnchorPoint = Vector2.new(1, 0.5)
  381. f.Position = u2(1, -15, 0.5, 0)
  382.  
  383. t.Size = u2(1, 0, 0.1, 0)
  384. t.BackgroundTransparency = 1
  385. t.TextColor3 = c3w
  386. t.Font = Enum.Font.GothamBold
  387. t.TextScaled = true
  388. t.TextXAlignment = Enum.TextXAlignment.Center
  389. t.Text = "UNANCHORED TO PLAYER BY TomQ#6764"
  390.  
  391. c.Name = "playerlist"
  392. c.Position = u2(0, 0, 0.1, 0)
  393. c.Size = u2(1, 0, 0.45, 0)
  394. c.BackgroundTransparency = 1
  395. c.BorderSizePixel = 0
  396. c.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  397. c.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  398. c.ScrollingDirection = Enum.ScrollingDirection.Y
  399. c.ScrollBarThickness = 5
  400. c.VerticalScrollBarInset = Enum.ScrollBarInset.ScrollBar
  401.  
  402. -- playerlist entry ui template
  403. local temp = Instance.new("Frame", f)
  404. temp.Name = "temp"
  405. temp.Visible = false
  406. temp.Size = u2(1, -5, 0, 27)
  407. temp.BackgroundTransparency = 0.5
  408. temp.BorderSizePixel = 0
  409. temp.ClipsDescendants = true
  410. temp.BackgroundColor3 = c3()
  411.  
  412. local tpad = Instance.new("UIPadding", temp)
  413. tpad.PaddingLeft = UDim.new(0, 5)
  414. tpad.PaddingRight = UDim.new(0, 5)
  415.  
  416. local tb = Instance.new("TextButton", temp)
  417. tb.Name = "button"
  418. tb.BackgroundTransparency = 1
  419. tb.ZIndex = 5
  420. tb.BorderSizePixel = 0
  421. tb.Text = ""
  422. tb.Size = u2(1, 10, 1, 0)
  423. tb.Position = u2(0, -5, 0, 0)
  424.  
  425. local tcl = Instance.new("TextLabel", temp)
  426. tcl.Name = "username"
  427. tcl.BackgroundTransparency = 1
  428. tcl.BorderSizePixel = 0
  429. tcl.Size = u2f
  430. tcl.TextColor3 = c3w
  431. tcl.TextXAlignment = Enum.TextXAlignment.Left
  432. tcl.TextScaled = true
  433. tcl.Size = u2(0.6, 0, 1, 0)
  434. tcl.Font = Enum.Font.Gotham
  435.  
  436. local tcls = Instance.new("UITextSizeConstraint", tcl)
  437. tcls.MaxTextSize = 14
  438.  
  439. local thumb = Instance.new("ImageLabel", temp)
  440. thumb.Name = "thumb"
  441. thumb.Size = u2(0.35, 0, 0.35, 0)
  442. thumb.SizeConstraint = Enum.SizeConstraint.RelativeXX
  443. thumb.Position = u2(1, 0, 0, -15)
  444. thumb.AnchorPoint = Vector2.new(1, 0)
  445. thumb.BackgroundTransparency = 1
  446. thumb.BorderSizePixel = 0
  447.  
  448. -- settings ui
  449. local sh = Instance.new("TextLabel", f)
  450. sh.Name = "settings_header"
  451. sh.Size = u2(1, 0, 0.1, 0)
  452. sh.Position = u2(0, 0, 0.55, 0)
  453. sh.BackgroundTransparency = 1
  454. sh.BorderSizePixel = 0
  455. sh.ZIndex = 3
  456. sh.TextColor3 = c3w
  457. sh.Font = Enum.Font.GothamBold
  458. sh.TextScaled = true
  459. sh.TextXAlignment = Enum.TextXAlignment.Center
  460. sh.Text = "SETTINGS"
  461.  
  462. local shs = Instance.new("UITextSizeConstraint", sh)
  463. shs.MaxTextSize = 16
  464.  
  465. local items = Instance.new("ScrollingFrame", f)
  466. items.Name = "items"
  467. items.Size = u2(1, 0, 0.35, 0)
  468. items.Position = u2(0, 0, 0.65, 0)
  469. items.BackgroundTransparency = 1
  470. items.BorderSizePixel = 0
  471. items.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  472. items.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  473. items.ScrollingDirection = Enum.ScrollingDirection.Y
  474. items.ScrollBarThickness = 5
  475. items.VerticalScrollBarInset = Enum.ScrollBarInset.ScrollBar
  476.  
  477. local itemll = Instance.new("UIListLayout", items)
  478. itemll.Padding = UDim.new(0, 3)
  479.  
  480. createSetting = function(name)
  481.     local setting = Instance.new("Frame", items)
  482.     setting.Size = u2(1, -5, 0, 27)
  483.     setting.BackgroundColor3 = c3()
  484.     setting.BackgroundTransparency = 0.5
  485.     setting.BorderSizePixel = 0
  486.    
  487.     local spad = tpad:Clone()
  488.     spad.Parent = setting
  489.    
  490.     local slab = tcl:Clone()
  491.     slab.Name = "label"
  492.     slab.Parent = setting
  493.     slab.Size = u2(1, 0, 1, 0)
  494.     slab.Text = name
  495.    
  496.     local stbt = tb:Clone()
  497.     stbt.Parent = setting
  498.    
  499.     stbt.MouseEnter:connect(function()
  500.         fade(setting, 0.25, {BackgroundTransparency = 0.8})
  501.     end)
  502.    
  503.     stbt.MouseLeave:connect(function()
  504.         fade(setting, 0.25, {BackgroundTransparency = 0.5})
  505.     end)
  506.    
  507.     items.CanvasSize = u2(0, 0, 0, itemll.AbsoluteContentSize.Y)
  508.    
  509.     return stbt
  510. end
  511.  
  512.  
  513. -- settings & functionality
  514.  
  515.  
  516.  
  517.     local sound = Instance.new("Sound")
  518.     sound.SoundId = "rbxassetid://179235828"
  519.     sound.Parent = game:GetService("SoundService")
  520.  
  521.  
  522. spam = false
  523. local spamblocks = createSetting("Spam Parts")
  524. spamblocks.MouseButton1Down:connect(function()
  525. spam = not spam
  526.    if spam then
  527.        fade(spamblocks.Parent.label, 0.25, {TextColor3 = c3(52, 189, 98)})
  528.        sound:Play()
  529.        -- code to loop here
  530.    else
  531.        fade(spamblocks.Parent.label, 0.25, {TextColor3 = c3w})
  532.        sound:Play()
  533.        -- code to break the loop here
  534.    end
  535. end)
  536.  
  537.  
  538.  
  539. createSetting("Break Spam").MouseButton1Down:connect(function()
  540.     for index, part in pairs(game:GetDescendants()) do
  541.     if part:IsA("BasePart" or "UnionOperation" or "Model") and part.Anchored == false and part:IsDescendantOf(game.Players.LocalPlayer.Character) == false and part.Name == "Torso" == false and part.Name == "Head" == false and part.Name == "Right Arm" == false and part.Name == "Left Arm" == false and part.Name == "Right Leg" == false and part.Name == "Left Leg" == false and part.Name == "HumanoidRootPart" == false then --// Checks Part Properties
  542.     sound:Play()
  543.     if part:FindFirstChild("BodyForce") then
  544.     part.BodyForce:Destroy()
  545.     end
  546.  
  547.     if part:FindFirstChild("BodyGyro") then
  548.     part.BodyGyro:Destroy()
  549.     end
  550.  
  551.     if part:FindFirstChild("BodyPosition") then
  552.     part.BodyPosition:Destroy()
  553.     end
  554.  
  555.     if part:FindFirstChild("BodyThrust") then
  556.     part.BodyThrust:Destroy()
  557.     end
  558. end
  559. end
  560. end)
  561.  
  562. freeze = false
  563. local freezeblocks = createSetting("Freeze Parts")
  564. freezeblocks.MouseButton1Down:connect(function()
  565. freeze = not freeze
  566.     if freeze then
  567.         fade(freezeblocks.Parent.label, 0.25, {TextColor3 = c3(52, 189, 98)})
  568.         sound:Play()
  569.         print "UTP: Freezed Parts"
  570.         for _,part in pairs(workspace:GetChildren()) do
  571.         if part:IsA("BasePart" or "UnionOperation" or "Model") and part.Anchored == false and part:IsDescendantOf(game.Players.LocalPlayer.Character) == false and part.Name == "Torso" == false and part.Name == "Head" == false and part.Name == "Right Arm" == false and part.Name == "Left Arm" == false and part.Name == "Right Leg" == false and part.Name == "Left Leg" == false and part.Name == "HumanoidRootPart" == false then --// Checks Part Properties
  572.             local bodyPos = Instance.new("BodyPosition")
  573.             bodyPos.Position = part.Position
  574.             bodyPos.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  575.             bodyPos.P = 1e6
  576.             bodyPos.Parent = part
  577.         end
  578.         end
  579.     else
  580.         fade(freezeblocks.Parent.label, 0.25, {TextColor3 = c3w})
  581.         sound:Play()
  582.         print "UTP: Thawed Parts"
  583.         for _,part in pairs(workspace:GetChildren()) do
  584.         if part:IsA("BasePart" or "UnionOperation" or "Model") and part.Anchored == false and part:IsDescendantOf(game.Players.LocalPlayer.Character) == false and part.Name == "Torso" == false and part.Name == "Head" == false and part.Name == "Right Arm" == false and part.Name == "Left Arm" == false and part.Name == "Right Leg" == false and part.Name == "Left Leg" == false and part.Name == "HumanoidRootPart" == false then --// Checks Part Properties
  585.             if part:FindFirstChild("BodyPosition") then
  586.             part.BodyPosition:Destroy()
  587.             end
  588.         end
  589.        -- code to break the loop here
  590. end
  591. end
  592. end)
  593.  
  594. createSetting("Remove Accessories Mesh").MouseButton1Down:connect(function()
  595.     sound:Play()
  596.  
  597.     local plr = game:GetService("Players").LocalPlayer
  598.     local char = plr.Character
  599.     for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  600.     if v:IsA("Accessory") and v.Handle:FindFirstChild("SpecialMesh") then
  601.     ag = v.Handle:FindFirstChild("SpecialMesh")
  602.     ag:Destroy()
  603.     end
  604.     end
  605.  
  606.  
  607.     local plr = game:GetService("Players").LocalPlayer
  608.     local char = plr.Character
  609.     for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  610.     if v:IsA("Accessory") and v.Handle:FindFirstChild("Mesh") then
  611.     ag = v.Handle:FindFirstChild("Mesh")
  612.     ag:Destroy()
  613.     end
  614.     end
  615. end)
  616.  
  617. createSetting("Drop Accessories").MouseButton1Down:connect(function()
  618.     sound:Play()
  619.     for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  620.         if v:IsA("Accessory") then
  621.             v.Handle.Parent = workspace
  622.             v.Parent = workspace
  623.         end
  624.     end
  625. end)
  626.  
  627. createSetting("Reset").MouseButton1Down:connect(function()
  628.     sound:Play()
  629.     game.Players.LocalPlayer.Character:BreakJoints()
  630. end)
  631.  
  632.  
  633. highlight = false
  634. local highlights = createSetting("Highlight Unanchored")
  635. highlights.MouseButton1Down:connect(function()
  636. highlight = not highlight
  637.     if highlight then
  638.         fade(highlights.Parent.label, 0.25, {TextColor3 = c3(52, 189, 98)})
  639.         sound:Play()
  640.         print "UTP: Unanchored Highlighted"
  641.         for _,part in pairs(workspace:GetDescendants()) do
  642.         if part:IsA("BasePart") and part.Anchored == false and part:IsDescendantOf(game.Players.LocalPlayer.Character) == false and part.Name == "Torso" == false and part.Name == "Head" == false and part.Name == "Right Arm" == false and part.Name == "Left Arm" == false and part.Name == "Right Leg" == false and part.Name == "Left Leg" == false and part.Name == "HumanoidRootPart" == false and part:FindFirstChild("Weld") == nil then --// Checks Part Properties
  643.             local selectionBox = Instance.new("SelectionBox")
  644.             selectionBox.Adornee = part
  645.             selectionBox.Color3 = Color3.new(1,0,0)
  646.             selectionBox.Parent = part
  647.         end
  648.         end
  649.     else
  650.         fade(highlights.Parent.label, 0.25, {TextColor3 = c3w})
  651.         sound:Play()
  652.         print "UTP: Unanchored Un-Highlighted"
  653.         for _,part in pairs(workspace:GetDescendants()) do
  654.         if part:IsA("BasePart") and part.Anchored == false and part:IsDescendantOf(game.Players.LocalPlayer.Character) == false and part.Name == "Torso" == false and part.Name == "Head" == false and part.Name == "Right Arm" == false and part.Name == "Left Arm" == false and part.Name == "Right Leg" == false and part.Name == "Left Leg" == false and part.Name == "HumanoidRootPart" == false and part:FindFirstChild("Weld") == nil then --// Checks Part Properties
  655.             if part:FindFirstChild("SelectionBox") then
  656.             part.SelectionBox:Destroy()
  657.             end
  658.         end
  659. end
  660. end
  661. end)
  662.  
  663. createSetting("Check Other Players").MouseButton1Down:connect(function()
  664.     sound:Play()
  665.     g = 0
  666.     spawn(function()
  667.         for i,v in pairs(game.Players:GetPlayers()) do
  668.             if v.SimulationRadius > 5555 then
  669.                 g = g + 1
  670.                 print(v.Name, "is using Unanchored To Player")
  671.                 game:GetService("RunService").Stepped:wait()
  672.                
  673.         end
  674.     end
  675.     print ("Checked all players, found", g ,"using Unanchored To Player")
  676.     end)
  677. end)
  678.  
  679. createSetting("Count Unanchored Parts").MouseButton1Down:connect(function()
  680.     sound:Play()
  681.     b = 0
  682.     for index, part in pairs(game.workspace:GetDescendants()) do
  683.     if part:IsA("BasePart") and part.Anchored == false and part:IsDescendantOf(game.Players.LocalPlayer.Character) == false and part.Name == "Torso" == false and part.Name == "Head" == false and part.Name == "Right Arm" == false and part.Name == "Left Arm" == false and part.Name == "Right Leg" == false and part.Name == "Left Leg" == false and part.Name == "HumanoidRootPart" == false and part:FindFirstChild("Weld") == nil then --// Checks Part Properties
  684.         b = b + 1
  685.     end
  686.     end
  687.     print ("All parts checked, found", b ,"that are unanchored")
  688. end)
  689.  
  690.  
  691.  
  692.  
  693.  
  694.  
  695.  
  696.  
  697. createEntry = function(name, id)
  698.     local entry = temp:Clone()
  699.     entry.Parent = c
  700.     entry.username.Text = name
  701.     entry.thumb.Image = game:GetService("Players"):GetUserThumbnailAsync(id, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size100x100)
  702.     entry.Visible = true
  703.     entry.LayoutOrder = #c:GetChildren()
  704.     entry.Name = name
  705.  
  706.     local sound = Instance.new("Sound")
  707.     sound.SoundId = "rbxassetid://3398620867"
  708.     sound.Parent = game:GetService("SoundService")
  709.     -- handle clicking for player
  710.     entry.button.MouseButton1Down:connect(function()
  711.         execute(name)
  712.         sound:Play()
  713.     end)
  714.    
  715.     entry.button.MouseEnter:connect(function()
  716.         fade(entry, 0.25, {BackgroundTransparency = 0.8})
  717.     end)
  718.    
  719.     entry.button.MouseLeave:connect(function()
  720.         fade(entry, 0.25, {BackgroundTransparency = 0.5})
  721.     end)
  722. end
  723.  
  724. deleteEntry = function(name)
  725.     for _,v in pairs(c:GetChildren()) do
  726.         if v.Name == name then
  727.             v:Destroy()
  728.         end
  729.     end
  730. end
  731.  
  732. -- create entry for client
  733. createEntry(game.Players.LocalPlayer.Name, game.Players.LocalPlayer.UserId)
  734.  
  735. -- create entries for all other players
  736. for _,v in pairs(game.Players:GetPlayers()) do
  737.     if v ~= game.Players.LocalPlayer then
  738.         createEntry(v.Name, v.UserId)
  739.     end
  740. end
  741.  
  742. listcons:GetPropertyChangedSignal("AbsoluteContentSize"):connect(function()
  743.     c.CanvasSize = u2(0, 0, 0, listcons.AbsoluteContentSize.Y)
  744. end)
  745.  
  746. itemll:GetPropertyChangedSignal("AbsoluteContentSize"):connect(function()
  747.     items.CanvasSize = u2(0, 0, 0, itemll.AbsoluteContentSize.Y)
  748. end)
  749.  
  750. uis.InputBegan:connect(function(input, gpe)
  751.     if not gpe then
  752.         if input.KeyCode == toggle_key then
  753.             g.Enabled = not g.Enabled
  754.         end
  755.     end
  756. end)
  757.  
  758. -- dragging code, ripped from https://devforum.roblox.com/t/draggable-property-is-hidden-on-gui-objects/107689/5
  759. local dragging
  760. local dragInput
  761. local dragStart
  762. local startPos
  763.  
  764. local function update(input)
  765.     local delta = input.Position - dragStart
  766.     f.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  767. end
  768.  
  769. f.InputBegan:Connect(function(input)
  770.     if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  771.         dragging = true
  772.         dragStart = input.Position
  773.         startPos = f.Position
  774.        
  775.         input.Changed:Connect(function()
  776.             if input.UserInputState == Enum.UserInputState.End then
  777.                 dragging = false
  778.             end
  779.         end)
  780.     end
  781. end)
  782.  
  783. f.InputChanged:Connect(function(input)
  784.     if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  785.         dragInput = input
  786.     end
  787. end)
  788.  
  789. uis.InputChanged:Connect(function(input)
  790.     if input == dragInput and dragging then
  791.         update(input)
  792.     end
  793. end)
  794.  
  795. game.Players.PlayerAdded:connect(function(plr)
  796.     createEntry(plr.Name, plr.UserId)
  797. end)
  798.  
  799. game.Players.PlayerRemoving:connect(function(plr)
  800.     deleteEntry(plr.Name)
  801. end)
  802. else
  803. print "================ALREADY LOADED================"
  804.  
  805.  
  806.  
  807.     local sound = Instance.new("Sound")
  808.     sound.SoundId = "rbxassetid://2130284653"
  809.     sound.Parent = game:GetService("SoundService")
  810. sound:Play()
  811.  
  812. game.StarterGui:SetCore("SendNotification", {
  813. Title = "Already Loaded"; -- the title (ofc)
  814. Text = "GUI Already Loaded"; -- what the text says (ofc)
  815. Duration = 5; -- how long the notification should in secounds
  816. })
  817. end
Add Comment
Please, Sign In to add comment