ManBanannaCat

Bring Unanchored Parts Script

Jan 16th, 2023
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.13 KB | None | 0 0
  1. --TOMQ-SCRIPT-2020
  2. -- prevent from being ran more than once
  3.  
  4.  
  5. if not _G.ini then
  6. _G.ini = true
  7.  
  8. local sound = Instance.new("Sound")
  9. sound.SoundId = "rbxassetid://216917652"
  10. sound.Parent = game:GetService("SoundService")
  11. sound:Play()
  12.  
  13.  
  14.  
  15. wait()
  16. game.StarterGui:SetCore("SendNotification", {
  17. Title = "Unanchored To Player"; -- the title (ofc)
  18. Text = "GUI Loaded - F to Hide/Show"; -- what the text says (ofc)
  19. Duration = 5; -- how long the notification should in secounds
  20. })
  21.  
  22. print "================UNANCHORED TO PLAYER LOADED================"
  23. print "================MADE BY TomQ#6764================"
  24.  
  25. local heartbeat = game:GetService("RunService").Heartbeat
  26. spawn(function()
  27. while true do heartbeat:Wait()
  28. for i,v in pairs(game.Players:GetPlayers()) do
  29. if v == game.Players.LocalPlayer == false then
  30. game.Players.LocalPlayer.MaximumSimulationRadius = math.pow(math.huge,math.huge)*math.huge
  31. game.Players.LocalPlayer.SimulationRadius = math.pow(math.huge,math.huge)*math.huge
  32. v.MaximumSimulationRadius = 0
  33. v.SimulationRadius = 0
  34. game:GetService("RunService").Stepped:wait()
  35. end
  36. end
  37. end
  38. end)
  39.  
  40. local Imput = game:GetService("UserInputService")
  41. local Plr = game.Players.LocalPlayer
  42. local Mouse = Plr:GetMouse()
  43.  
  44. function To(position)
  45. local Chr = Plr.Character
  46. local sound2 = Instance.new("Sound")
  47. sound2.SoundId = "rbxassetid://3398620867"
  48. sound2.Parent = game:GetService("SoundService")
  49. if Chr ~= nil then
  50. for index, part in pairs(game:GetDescendants()) do
  51. 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
  52. part.CFrame = CFrame.new(position) --TP Part To Mouse
  53. sound2:Play()
  54.  
  55. if spam == true and part:FindFirstChild("BodyGyro") == nil then
  56. local bodyPos = Instance.new("BodyPosition")
  57. bodyPos.Position = part.Position
  58. bodyPos.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  59. bodyPos.P = 1e6
  60. bodyPos.Parent = part
  61. end
  62. end
  63. end
  64. end
  65. end
  66.  
  67.  
  68.  
  69.  
  70.  
  71. Imput.InputBegan:Connect(function(input)
  72. if input.UserInputType == Enum.UserInputType.MouseButton1 and Imput:IsKeyDown(Enum.KeyCode.LeftControl) then
  73. To(Mouse.Hit.p)
  74. end
  75. end)
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83. -- key that opens/closes the ui
  84. local toggle_key = Enum.KeyCode.F
  85.  
  86. -- function that executes desired code
  87. execute = function(name)
  88.  
  89.  
  90.  
  91. for index, part in pairs(game:GetDescendants()) do
  92. 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
  93. part.CFrame = CFrame.new(game.workspace[name].Head.Position) --TP Part To User
  94. end
  95. end
  96.  
  97.  
  98.  
  99. end
  100.  
  101. local uis = game:GetService("UserInputService")
  102. local ts = game:GetService("TweenService")
  103.  
  104. -- ui functions
  105. fade = function(obj, len, props)
  106. ts:Create(obj, TweenInfo.new(len, Enum.EasingStyle.Sine), props):Play()
  107. end
  108.  
  109. -- shorthand variables
  110. local u2, c3 = UDim2.new, Color3.fromRGB
  111. local u2f, c3w = u2(1, 0, 1, 0), c3(255, 255, 255)
  112.  
  113. -- ui init
  114. local g = Instance.new("ScreenGui", game.CoreGui)
  115. local f = Instance.new("Frame", g)
  116. local t = Instance.new("TextLabel", f)
  117. local c = Instance.new("ScrollingFrame", f)
  118.  
  119. -- core ui styling
  120. local padding = Instance.new("UIPadding", f)
  121. local maxsize = Instance.new("UISizeConstraint", f)
  122. local textsize = Instance.new("UITextSizeConstraint", t)
  123. local listcons = Instance.new("UIListLayout", c)
  124.  
  125. padding.PaddingBottom = UDim.new(0, 8)
  126. padding.PaddingLeft = UDim.new(0, 15)
  127. padding.PaddingRight = UDim.new(0, 15)
  128. padding.PaddingTop = UDim.new(0, 0)
  129.  
  130. maxsize.MaxSize = Vector2.new(275, 450)
  131. maxsize.MinSize = Vector2.new(200, 0)
  132. textsize.MaxTextSize = 16
  133. listcons.Padding = UDim.new(0, 3)
  134.  
  135. -- ui instance properties
  136. g.Name = "unanchor_ui"
  137. g.ResetOnSpawn = false
  138. f.Name = "main"
  139. t.Name = "header"
  140.  
  141. f.Size = u2(0.165, 0, 0.6, 0)
  142. f.BorderSizePixel = 0
  143. f.BackgroundTransparency = 0.3
  144. f.Position = u2(1, -215, 0.5, -150)
  145. f.BackgroundColor3 = c3()
  146. f.AnchorPoint = Vector2.new(1, 0.5)
  147. f.Position = u2(1, -15, 0.5, 0)
  148.  
  149. t.Size = u2(1, 0, 0.1, 0)
  150. t.BackgroundTransparency = 1
  151. t.TextColor3 = c3w
  152. t.Font = Enum.Font.GothamBold
  153. t.TextScaled = true
  154. t.TextXAlignment = Enum.TextXAlignment.Center
  155. t.Text = "UNANCHORED TO PLAYER BY TomQ#6764"
  156.  
  157. c.Name = "playerlist"
  158. c.Position = u2(0, 0, 0.1, 0)
  159. c.Size = u2(1, 0, 0.45, 0)
  160. c.BackgroundTransparency = 1
  161. c.BorderSizePixel = 0
  162. c.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  163. c.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  164. c.ScrollingDirection = Enum.ScrollingDirection.Y
  165. c.ScrollBarThickness = 5
  166. c.VerticalScrollBarInset = Enum.ScrollBarInset.ScrollBar
  167.  
  168. -- playerlist entry ui template
  169. local temp = Instance.new("Frame", f)
  170. temp.Name = "temp"
  171. temp.Visible = false
  172. temp.Size = u2(1, -5, 0, 27)
  173. temp.BackgroundTransparency = 0.5
  174. temp.BorderSizePixel = 0
  175. temp.ClipsDescendants = true
  176. temp.BackgroundColor3 = c3()
  177.  
  178. local tpad = Instance.new("UIPadding", temp)
  179. tpad.PaddingLeft = UDim.new(0, 5)
  180. tpad.PaddingRight = UDim.new(0, 5)
  181.  
  182. local tb = Instance.new("TextButton", temp)
  183. tb.Name = "button"
  184. tb.BackgroundTransparency = 1
  185. tb.ZIndex = 5
  186. tb.BorderSizePixel = 0
  187. tb.Text = ""
  188. tb.Size = u2(1, 10, 1, 0)
  189. tb.Position = u2(0, -5, 0, 0)
  190.  
  191. local tcl = Instance.new("TextLabel", temp)
  192. tcl.Name = "username"
  193. tcl.BackgroundTransparency = 1
  194. tcl.BorderSizePixel = 0
  195. tcl.Size = u2f
  196. tcl.TextColor3 = c3w
  197. tcl.TextXAlignment = Enum.TextXAlignment.Left
  198. tcl.TextScaled = true
  199. tcl.Size = u2(0.6, 0, 1, 0)
  200. tcl.Font = Enum.Font.Gotham
  201.  
  202. local tcls = Instance.new("UITextSizeConstraint", tcl)
  203. tcls.MaxTextSize = 14
  204.  
  205. local thumb = Instance.new("ImageLabel", temp)
  206. thumb.Name = "thumb"
  207. thumb.Size = u2(0.35, 0, 0.35, 0)
  208. thumb.SizeConstraint = Enum.SizeConstraint.RelativeXX
  209. thumb.Position = u2(1, 0, 0, -15)
  210. thumb.AnchorPoint = Vector2.new(1, 0)
  211. thumb.BackgroundTransparency = 1
  212. thumb.BorderSizePixel = 0
  213.  
  214. -- settings ui
  215. local sh = Instance.new("TextLabel", f)
  216. sh.Name = "settings_header"
  217. sh.Size = u2(1, 0, 0.1, 0)
  218. sh.Position = u2(0, 0, 0.55, 0)
  219. sh.BackgroundTransparency = 1
  220. sh.BorderSizePixel = 0
  221. sh.ZIndex = 3
  222. sh.TextColor3 = c3w
  223. sh.Font = Enum.Font.GothamBold
  224. sh.TextScaled = true
  225. sh.TextXAlignment = Enum.TextXAlignment.Center
  226. sh.Text = "SETTINGS"
  227.  
  228. local shs = Instance.new("UITextSizeConstraint", sh)
  229. shs.MaxTextSize = 16
  230.  
  231. local items = Instance.new("ScrollingFrame", f)
  232. items.Name = "items"
  233. items.Size = u2(1, 0, 0.35, 0)
  234. items.Position = u2(0, 0, 0.65, 0)
  235. items.BackgroundTransparency = 1
  236. items.BorderSizePixel = 0
  237. items.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  238. items.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  239. items.ScrollingDirection = Enum.ScrollingDirection.Y
  240. items.ScrollBarThickness = 5
  241. items.VerticalScrollBarInset = Enum.ScrollBarInset.ScrollBar
  242.  
  243. local itemll = Instance.new("UIListLayout", items)
  244. itemll.Padding = UDim.new(0, 3)
  245.  
  246. createSetting = function(name)
  247. local setting = Instance.new("Frame", items)
  248. setting.Size = u2(1, -5, 0, 27)
  249. setting.BackgroundColor3 = c3()
  250. setting.BackgroundTransparency = 0.5
  251. setting.BorderSizePixel = 0
  252.  
  253. local spad = tpad:Clone()
  254. spad.Parent = setting
  255.  
  256. local slab = tcl:Clone()
  257. slab.Name = "label"
  258. slab.Parent = setting
  259. slab.Size = u2(1, 0, 1, 0)
  260. slab.Text = name
  261.  
  262. local stbt = tb:Clone()
  263. stbt.Parent = setting
  264.  
  265. stbt.MouseEnter:connect(function()
  266. fade(setting, 0.25, {BackgroundTransparency = 0.8})
  267. end)
  268.  
  269. stbt.MouseLeave:connect(function()
  270. fade(setting, 0.25, {BackgroundTransparency = 0.5})
  271. end)
  272.  
  273. items.CanvasSize = u2(0, 0, 0, itemll.AbsoluteContentSize.Y)
  274.  
  275. return stbt
  276. end
  277.  
  278.  
  279. -- settings & functionality
  280.  
  281.  
  282.  
  283. local sound = Instance.new("Sound")
  284. sound.SoundId = "rbxassetid://179235828"
  285. sound.Parent = game:GetService("SoundService")
  286.  
  287.  
  288. spam = false
  289. local spamblocks = createSetting("Spam Parts")
  290. spamblocks.MouseButton1Down:connect(function()
  291. spam = not spam
  292. if spam then
  293. fade(spamblocks.Parent.label, 0.25, {TextColor3 = c3(52, 189, 98)})
  294. sound:Play()
  295. -- code to loop here
  296. else
  297. fade(spamblocks.Parent.label, 0.25, {TextColor3 = c3w})
  298. sound:Play()
  299. -- code to break the loop here
  300. end
  301. end)
  302.  
  303.  
  304.  
  305. createSetting("Break Spam").MouseButton1Down:connect(function()
  306. for index, part in pairs(game:GetDescendants()) do
  307. 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
  308. sound:Play()
  309. if part:FindFirstChild("BodyForce") then
  310. part.BodyForce:Destroy()
  311. end
  312.  
  313. if part:FindFirstChild("BodyGyro") then
  314. part.BodyGyro:Destroy()
  315. end
  316.  
  317. if part:FindFirstChild("BodyPosition") then
  318. part.BodyPosition:Destroy()
  319. end
  320.  
  321. if part:FindFirstChild("BodyThrust") then
  322. part.BodyThrust:Destroy()
  323. end
  324. end
  325. end
  326. end)
  327.  
  328. freeze = false
  329. local freezeblocks = createSetting("Freeze Parts")
  330. freezeblocks.MouseButton1Down:connect(function()
  331. freeze = not freeze
  332. if freeze then
  333. fade(freezeblocks.Parent.label, 0.25, {TextColor3 = c3(52, 189, 98)})
  334. sound:Play()
  335. print "UTP: Freezed Parts"
  336. for _,part in pairs(workspace:GetChildren()) do
  337. 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
  338. local bodyPos = Instance.new("BodyPosition")
  339. bodyPos.Position = part.Position
  340. bodyPos.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  341. bodyPos.P = 1e6
  342. bodyPos.Parent = part
  343. end
  344. end
  345. else
  346. fade(freezeblocks.Parent.label, 0.25, {TextColor3 = c3w})
  347. sound:Play()
  348. print "UTP: Thawed Parts"
  349. for _,part in pairs(workspace:GetChildren()) do
  350. 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
  351. if part:FindFirstChild("BodyPosition") then
  352. part.BodyPosition:Destroy()
  353. end
  354. end
  355. -- code to break the loop here
  356. end
  357. end
  358. end)
  359.  
  360. createSetting("Remove Accessories Mesh").MouseButton1Down:connect(function()
  361. sound:Play()
  362.  
  363. local plr = game:GetService("Players").LocalPlayer
  364. local char = plr.Character
  365. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  366. if v:IsA("Accessory") and v.Handle:FindFirstChild("SpecialMesh") then
  367. ag = v.Handle:FindFirstChild("SpecialMesh")
  368. ag:Destroy()
  369. end
  370. end
  371.  
  372.  
  373. local plr = game:GetService("Players").LocalPlayer
  374. local char = plr.Character
  375. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  376. if v:IsA("Accessory") and v.Handle:FindFirstChild("Mesh") then
  377. ag = v.Handle:FindFirstChild("Mesh")
  378. ag:Destroy()
  379. end
  380. end
  381. end)
  382.  
  383. createSetting("Drop Accessories").MouseButton1Down:connect(function()
  384. sound:Play()
  385. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  386. if v:IsA("Accessory") then
  387. v.Handle.Parent = workspace
  388. v.Parent = workspace
  389. end
  390. end
  391. end)
  392.  
  393. createSetting("Reset").MouseButton1Down:connect(function()
  394. sound:Play()
  395. game.Players.LocalPlayer.Character:BreakJoints()
  396. end)
  397.  
  398.  
  399. highlight = false
  400. local highlights = createSetting("Highlight Unanchored")
  401. highlights.MouseButton1Down:connect(function()
  402. highlight = not highlight
  403. if highlight then
  404. fade(highlights.Parent.label, 0.25, {TextColor3 = c3(52, 189, 98)})
  405. sound:Play()
  406. print "UTP: Unanchored Highlighted"
  407. for _,part in pairs(workspace:GetDescendants()) do
  408. 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
  409. local selectionBox = Instance.new("SelectionBox")
  410. selectionBox.Adornee = part
  411. selectionBox.Color3 = Color3.new(1,0,0)
  412. selectionBox.Parent = part
  413. end
  414. end
  415. else
  416. fade(highlights.Parent.label, 0.25, {TextColor3 = c3w})
  417. sound:Play()
  418. print "UTP: Unanchored Un-Highlighted"
  419. for _,part in pairs(workspace:GetDescendants()) do
  420. 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
  421. if part:FindFirstChild("SelectionBox") then
  422. part.SelectionBox:Destroy()
  423. end
  424. end
  425. end
  426. end
  427. end)
  428.  
  429. createSetting("Check Other Players").MouseButton1Down:connect(function()
  430. sound:Play()
  431. g = 0
  432. spawn(function()
  433. for i,v in pairs(game.Players:GetPlayers()) do
  434. if v.SimulationRadius > 5555 then
  435. g = g + 1
  436. print(v.Name, "is using Unanchored To Player")
  437. game:GetService("RunService").Stepped:wait()
  438.  
  439. end
  440. end
  441. print ("Checked all players, found", g ,"using Unanchored To Player")
  442. end)
  443. end)
  444.  
  445. createSetting("Count Unanchored Parts").MouseButton1Down:connect(function()
  446. sound:Play()
  447. b = 0
  448. for index, part in pairs(game.workspace:GetDescendants()) do
  449. 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
  450. b = b + 1
  451. end
  452. end
  453. print ("All parts checked, found", b ,"that are unanchored")
  454. end)
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463. createEntry = function(name, id)
  464. local entry = temp:Clone()
  465. entry.Parent = c
  466. entry.username.Text = name
  467. entry.thumb.Image = game:GetService("Players"):GetUserThumbnailAsync(id, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size100x100)
  468. entry.Visible = true
  469. entry.LayoutOrder = #c:GetChildren()
  470. entry.Name = name
  471.  
  472. local sound = Instance.new("Sound")
  473. sound.SoundId = "rbxassetid://3398620867"
  474. sound.Parent = game:GetService("SoundService")
  475. -- handle clicking for player
  476. entry.button.MouseButton1Down:connect(function()
  477. execute(name)
  478. sound:Play()
  479. end)
  480.  
  481. entry.button.MouseEnter:connect(function()
  482. fade(entry, 0.25, {BackgroundTransparency = 0.8})
  483. end)
  484.  
  485. entry.button.MouseLeave:connect(function()
  486. fade(entry, 0.25, {BackgroundTransparency = 0.5})
  487. end)
  488. end
  489.  
  490. deleteEntry = function(name)
  491. for _,v in pairs(c:GetChildren()) do
  492. if v.Name == name then
  493. v:Destroy()
  494. end
  495. end
  496. end
  497.  
  498. -- create entry for client
  499. createEntry(game.Players.LocalPlayer.Name, game.Players.LocalPlayer.UserId)
  500.  
  501. -- create entries for all other players
  502. for _,v in pairs(game.Players:GetPlayers()) do
  503. if v ~= game.Players.LocalPlayer then
  504. createEntry(v.Name, v.UserId)
  505. end
  506. end
  507.  
  508. listcons:GetPropertyChangedSignal("AbsoluteContentSize"):connect(function()
  509. c.CanvasSize = u2(0, 0, 0, listcons.AbsoluteContentSize.Y)
  510. end)
  511.  
  512. itemll:GetPropertyChangedSignal("AbsoluteContentSize"):connect(function()
  513. items.CanvasSize = u2(0, 0, 0, itemll.AbsoluteContentSize.Y)
  514. end)
  515.  
  516. uis.InputBegan:connect(function(input, gpe)
  517. if not gpe then
  518. if input.KeyCode == toggle_key then
  519. g.Enabled = not g.Enabled
  520. end
  521. end
  522. end)
  523.  
  524. -- dragging code, ripped from https://devforum.roblox.com/t/draggable-property-is-hidden-on-gui-objects/107689/5
  525. local dragging
  526. local dragInput
  527. local dragStart
  528. local startPos
  529.  
  530. local function update(input)
  531. local delta = input.Position - dragStart
  532. f.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  533. end
  534.  
  535. f.InputBegan:Connect(function(input)
  536. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  537. dragging = true
  538. dragStart = input.Position
  539. startPos = f.Position
  540.  
  541. input.Changed:Connect(function()
  542. if input.UserInputState == Enum.UserInputState.End then
  543. dragging = false
  544. end
  545. end)
  546. end
  547. end)
  548.  
  549. f.InputChanged:Connect(function(input)
  550. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  551. dragInput = input
  552. end
  553. end)
  554.  
  555. uis.InputChanged:Connect(function(input)
  556. if input == dragInput and dragging then
  557. update(input)
  558. end
  559. end)
  560.  
  561. game.Players.PlayerAdded:connect(function(plr)
  562. createEntry(plr.Name, plr.UserId)
  563. end)
  564.  
  565. game.Players.PlayerRemoving:connect(function(plr)
  566. deleteEntry(plr.Name)
  567. end)
  568. else
  569. print "================ALREADY LOADED================"
  570.  
  571.  
  572.  
  573. local sound = Instance.new("Sound")
  574. sound.SoundId = "rbxassetid://2130284653"
  575. sound.Parent = game:GetService("SoundService")
  576. sound:Play()
  577.  
  578. game.StarterGui:SetCore("SendNotification", {
  579. Title = "Already Loaded"; -- the title (ofc)
  580. Text = "GUI Already Loaded"; -- what the text says (ofc)
  581. Duration = 5; -- how long the notification should in secounds
  582. })
  583. end
Add Comment
Please, Sign In to add comment