Advertisement
ZHFK

FE Flying And Teleport Parts

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