Advertisement
DesiredPaths

Untitled

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