Advertisement
Mr-Nightmare1

scripter roles here I come

Nov 28th, 2021
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.28 KB | None | 0 0
  1. -- 1.
  2.  
  3. local console = {} console.__index=console; setmetatable(console,{}) function console.log(msg) print(msg) end;
  4. local httpService = game:GetService("HttpService");
  5.  
  6. local module = {}
  7. module.__index = module;
  8. setmetatable(module,{});
  9.  
  10. local CAN_BE_ACCESSED_GLOBALLY = true;
  11.  
  12. function module.createBot(apiLink,msg)
  13. if CAN_BE_ACCESSED_GLOBALLY == true then
  14. local url = apiLink
  15. local ContentData = {
  16. ["content"] = tostring(msg);
  17. }
  18. ContentData = httpService:JSONEncode(ContentData);
  19. httpService:PostAsync(url, ContentData);
  20. console.log('Ended');
  21. else
  22. local url = apiLink
  23. local ContentData = {
  24. ["content"] ="ERROR: 592 GLOBALLY DISABLED!"
  25. }
  26. ContentData = httpService:JSONEncode(ContentData);
  27. httpService:PostAsync(url, ContentData);
  28. console.log('Ended');
  29. end
  30. end;
  31.  
  32. return module;
  33.  
  34. -- 2.
  35.  
  36. local EAModule = {};
  37.  
  38. local TweenService = game:GetService('TweenService');
  39.  
  40. EAModule.createEnemyAI = function(npc, pointCFrame)
  41. local enemy = npc;
  42. local Info = TweenInfo.new(
  43. enemy.Humanoid.WalkSpeed,
  44. Enum.EasingStyle.Linear,
  45. Enum.EasingDirection.Out
  46. )
  47. local track = TweenService:Create(enemy.HumanoidRootPart,Info,{CFrame = pointCFrame});
  48. track:Play();
  49. track.Completed:Wait();
  50. end;
  51.  
  52. return EAModule
  53.  
  54. -- 3.
  55.  
  56. local RS = game:GetService("ReplicatedStorage");
  57. local Enemies = RS.Enemies;
  58. --
  59. local SEModule = {}
  60. SEModule.__index = SEModule;
  61. setmetatable(SEModule, {});
  62. --
  63. function SEModule:SpawnEnemy(enemy,wave,amount,hp, cooldownBetween, spawnLocation)
  64. for i = amount, 0, -1 do
  65. local chosenEnemy = Enemies:FindFirstChild(tostring(enemy)):Clone();
  66. local chosenWave = wave;
  67. chosenEnemy.Humanoid.Health = tonumber(hp);
  68. chosenEnemy.Humanoid.MaxHealth = tonumber(hp);
  69. chosenEnemy.AI.Disabled = false;
  70. wait(cooldownBetween);
  71. chosenEnemy.Parent = workspace.MainGame.Enemies;
  72. chosenEnemy:SetPrimaryPartCFrame(spawnLocation);
  73. end
  74. end;
  75. --
  76. return SEModule;
  77.  
  78. -- 4.
  79.  
  80. local DataStoreService = game:GetService("DataStoreService")
  81. local Data1 = DataStoreService:GetDataStore("Data1")
  82.  
  83. game.Players.PlayerAdded:Connect(function(player)
  84. local leaderstats = Instance.new("Folder",player)
  85. leaderstats.Name = "leaderstats"
  86.  
  87. local Wins = Instance.new("IntValue",leaderstats)
  88. Wins.Name = "Wins"
  89.  
  90. local playerUserId = player.UserId
  91.  
  92. local data
  93. local success, errormessage = pcall(function()
  94. data = Data1:GetAsync(playerUserId)
  95. end)
  96.  
  97. if success then
  98. Wins.Value = data
  99. end
  100.  
  101. end)
  102.  
  103. game.Players.PlayerRemoving:Connect(function(player)
  104. local playerUserId = player.UserId
  105.  
  106. local data = player.leaderstats.Wins.Value
  107.  
  108. local success, errormessage = pcall(function()
  109. Data1:SetAsync(playerUserId, data)
  110. end)
  111.  
  112. if success then
  113. print("Data saved succesfully!")
  114. else
  115. print("There was an error while saving data!")
  116. warn(errormessage)
  117.  
  118. end
  119.  
  120. end)
  121.  
  122. -- 5.
  123.  
  124. local DSS = game:GetService("DataStoreService");
  125. local KillsOrderedDataStore = DSS:GetOrderedDataStore("KillsOrderedDataStore");
  126. --
  127. local function updateLeaderboard()
  128. local suc, err = pcall(function()
  129. local Data = KillsOrderedDataStore:GetSortedAsync(false, 6);
  130. local currentPage = Data:GetCurrentPage(); --// table
  131. for rank, data in pairs(currentPage) do
  132. local userName = game.Players:GetNameFromUserIdAsync(tonumber(data.key));
  133. --
  134. local Name = userName;
  135. local kills = data.value;
  136. local isOnLeaderboard = false;
  137. --
  138. for i, v in pairs(workspace.KillsLeaderboard.Gui.Holder:GetChildren()) do
  139. if v.Player.Text == Name then
  140. isOnLeaderboard = true;
  141. break;
  142. end;
  143. end;
  144. --
  145. if (kills and isOnLeaderboard == false) then
  146. local newLBFrame = game.ReplicatedStorage:WaitForChild("LBFrame"):Clone();
  147. --
  148. newLBFrame.Player.Text = Name
  149. newLBFrame.Place.Text = "#".. rank;
  150. newLBFrame.Kills.Text = kills; --// data.value
  151. --
  152. newLBFrame.Position = UDim2.new(0,0, newLBFrame.Position.Y.Scale + (.15 * #workspace.KillsLeaderboard.Gui.Holder:GetChildren()), 0);
  153. --
  154. newLBFrame.Parent = workspace.KillsLeaderboard.Gui.Holder;
  155. end;
  156. end;
  157. end);
  158. if not suc then
  159. warn(err);
  160. print("Error with kills leaderboard! v: test");
  161. end;
  162. end;
  163.  
  164. --
  165.  
  166. task.spawn(function()
  167. while true do
  168. --
  169. for i, v in pairs(game.Players:GetPlayers()) do
  170. KillsOrderedDataStore:SetAsync(v.UserId, v.leaderstats.Kills.Value);
  171. end;
  172. --
  173. for _, rank in pairs(workspace.KillsLeaderboard.Gui.Holder:GetChildren()) do
  174. rank:Destroy();
  175. end;
  176. --
  177. updateLeaderboard();
  178. --
  179. task.wait(6.9); --// cooldown
  180. end;
  181. end);
  182.  
  183. -- 6. local & server
  184.  
  185. local function using(service) return game:GetService(tostring(service)) end;
  186. --
  187. local TS = using "TweenService";
  188. local RS = using "ReplicatedStorage";
  189. local Bullet = RS:WaitForChild("Bullet");
  190. --
  191. game.ReplicatedStorage:WaitForChild("makeGunDoYes").OnServerEvent:Connect(function(player, gunPoint)
  192. local newBullet = Bullet:Clone();
  193. newBullet.Position = gunPoint.Position;
  194. newBullet.Orientation = gunPoint.Orientation;
  195. newBullet.Parent = workspace;
  196. --
  197. local Info = TweenInfo.new(
  198. .1,
  199. Enum.EasingStyle.Linear,
  200. Enum.EasingDirection.Out
  201. );
  202. --
  203. local data = { Position = gunPoint.Position + gunPoint.CFrame.lookVector * 30 };
  204. --
  205. local track = TS:Create(newBullet, Info, data);
  206. track:Play();
  207. --
  208. track.Completed:Wait();
  209. newBullet:Destroy();
  210. end);
  211.  
  212. ---------------------
  213.  
  214. local debounce = false;
  215. local cooldown = 1; --// seconds
  216. --
  217. local function using(service)
  218. local s = game:GetService(tostring(service));
  219. return s;
  220. end;
  221. --
  222. local RS = using "ReplicatedStorage";
  223. local makeGunDoYes = RS:WaitForChild("makeGunDoYes");
  224. --
  225. script.Parent.Activated:Connect(function()
  226. if debounce == false then
  227. debounce = true;
  228. --
  229. makeGunDoYes:FireServer(script.Parent.GunPoint);
  230. --
  231. task.wait(cooldown);
  232. debounce = false;
  233. end;
  234. end);
  235.  
  236. -- 7.
  237.  
  238. for i = 10, 0, -1 do
  239. wait(1)
  240. print("Countdown: ".. i);
  241. end;
  242. local a = 0;
  243.  
  244. spawn(function()
  245. while true do
  246. local newAttack1 = game.ReplicatedStorage.Attacks3.Attack1:Clone();
  247. local newAttack2 = game.ReplicatedStorage.Attacks3.Attack2:Clone();
  248. local newAttack3 = game.ReplicatedStorage.Attacks3.Attack3:Clone();
  249. local newAttack4 = game.ReplicatedStorage.Attacks3.Attack4:Clone();
  250. local newAttack5 = game.ReplicatedStorage.Attacks3.Attack5:Clone();
  251. local newAttack6 = game.ReplicatedStorage.Attacks3.Attack6:Clone();
  252. local newAttack7 = game.ReplicatedStorage.Attacks3.Attack7:Clone();
  253.  
  254. wait(5);
  255. newAttack1.Parent = workspace;
  256. wait(15);
  257. newAttack1:Destroy();
  258. newAttack2.Parent = workspace;
  259. wait(5);
  260. newAttack2:Destroy();
  261. wait(
  262. 2.5
  263. )
  264. newAttack4.Parent = workspace;
  265. wait(4);
  266. newAttack4:Destroy();
  267. newAttack5.Parent = workspace;
  268. wait(5.44)
  269. newAttack5:Destroy()
  270. wait(4);
  271. newAttack6.Parent = workspace;
  272. wait(10);
  273. newAttack6:Destroy();
  274. wait(5);
  275. newAttack7.Parent = workspace;
  276. wait(10);
  277. newAttack7:Destroy();
  278.  
  279. a += 1
  280.  
  281. if a == 1 then
  282. a = 0;
  283. newAttack3.Parent = workspace;
  284. workspace.getUp.CanCollide = true;
  285. wait(4)
  286. if workspace:FindFirstChild("Attack3") then
  287. workspace.Attack3:Destroy();
  288. workspace.getUp.CanCollide = false;
  289. end;
  290. workspace.getUp.CanCollide = false;
  291. end
  292.  
  293. end
  294. end)
  295.  
  296. -- 8. Full project
  297.  
  298. local debounce = false;
  299.  
  300. local COOLDOWN = 5;
  301.  
  302. game.Players.PlayerAdded:Connect(function(player)
  303. wait(10);
  304. if debounce == false then
  305. debounce = true;
  306. game.ReplicatedStorage.FirstAchivment:FireClient(player, "1"); -- also 20 seconds for the second one
  307. wait(COOLDOWN);
  308. debounce = false;
  309. end;
  310. end);
  311.  
  312. game.ReplicatedStorage.GiveUnlock.OnServerEvent:Connect(function(client,arg)
  313. if (arg == "A1") then
  314. client.Achievements.A1.Value = true;
  315. elseif (arg == "A2") then
  316. client.Achievements.A2.Value = true;
  317. elseif (arg == "A3") then
  318. client.Achievements.A3.Value = true;
  319. end;
  320. end);
  321.  
  322. local StarterGUI = game:GetService("StarterGui");
  323.  
  324. local Achievements = {
  325. "Big Mistake", --// 1
  326. "Do something" --// 2
  327. };
  328.  
  329. game.ReplicatedStorage.FirstAchivment.OnClientEvent:Connect(function(arg)
  330. if arg == "1" then
  331. game.StarterGui:SetCore("SendNotification", {
  332. Title = "Achievement Unlocked!";
  333. Text = Achievements[1];
  334. Duration = 6;
  335. game.ReplicatedStorage.GiveUnlock:FireServer("A1");
  336. });
  337. elseif (arg == "2") then
  338. game.StarterGui:SetCore("SendNotification", {
  339. Title = "Achievement Unlocked!";
  340. Text = Achievements[2];
  341. Duration = 6;
  342. game.ReplicatedStorage.GiveUnlock:FireServer("A2");
  343. })
  344.  
  345. end;
  346. end);
  347.  
  348. wait(1);
  349.  
  350. while wait(.1) do
  351. if game.Players.LocalPlayer.Achievements.A1.Value == false then
  352. script.Parent.BackgroundColor3 = Color3.fromRGB(255,0,0);
  353. else
  354. script.Parent.BackgroundColor3 = Color3.fromRGB(0,255,0);
  355. end;
  356. end; -- pretty much the same for the second one too
  357.  
  358. -- 9. TP System thing (local & server)
  359.  
  360. local Inside = workspace:WaitForChild('Inside');
  361.  
  362. local RunService = game:GetService('RunService')
  363.  
  364. local Region = Region3.new(Inside.Position - (Inside.Size/2), Inside.Position + (Inside.Size/2));
  365.  
  366. wait(1)
  367.  
  368. while wait() do
  369. for i = 20, 0, -1 do
  370. workspace.CountdownSign.SurfaceGui.SIGN.Text = "Countdown: ".. i
  371. wait(1)
  372. if i == 1 then --~> Makes it teleport a bit faster.
  373. local partsInRegion = workspace:FindPartsInRegion3WithWhiteList(Region, game.Players.LocalPlayer.Character:GetDescendants())
  374. for _, part in pairs(partsInRegion) do
  375. if part.Parent:FindFirstChild("Humanoid") ~= nil then
  376. local player = game.Players:GetPlayerFromCharacter(part.Parent);
  377. game.ReplicatedStorage.TP:FireServer()
  378. end
  379. end
  380. end
  381. end
  382. end
  383.  
  384. local TS = game:GetService("TeleportService")
  385. local Players = game:GetService("Players")
  386.  
  387. local ID = 7125188308;
  388.  
  389. local code = TS:ReserveServer(ID) -- Returns a code
  390. local players = Players:GetPlayers() -- Get a list of all players
  391.  
  392. local RS = game:GetService('ReplicatedStorage');
  393. local TP = RS:WaitForChild('TP');
  394.  
  395. TP.OnServerEvent:Connect(function(client)
  396. TS:TeleportToPrivateServer(ID,code,{client})
  397. end);
  398.  
  399. -- 10.
  400.  
  401. local Regions = game.Workspace.Regions
  402.  
  403. local Found = false
  404.  
  405. while wait(1) do
  406. for i, v in pairs(Regions:GetChildren()) do
  407. Found = false
  408. local Region = Region3.new(v.Position - (v.Size/2), v.Position + (v.Size/2))
  409. local parts = game.Workspace:FindPartsInRegion3WithWhiteList(Region, game.Players.LocalPlayer.Character:GetDescendants())
  410. for _, part in pairs(parts) do
  411. if part:FindFirstAncestor(game.Players.LocalPlayer.Name) then
  412. Found = true
  413. break
  414. end
  415. end
  416. if Found == true then
  417. if script.Parent.Sounds[v.Name].IsPlaying == false then
  418. script.Parent.Sounds[v.Name]:Play()
  419. end
  420. else
  421. script.Parent.Sounds[v.Name]:Stop()
  422. end
  423. end
  424. end
  425.  
  426. -- 11.
  427.  
  428. -- Variables
  429. local roundLength = 75
  430. local intermissionLength = 20
  431. local InRound = game.ReplicatedStorage.InRound
  432. local Status = game.ReplicatedStorage.Status
  433.  
  434. local playerIsAFK = false
  435.  
  436. local LobbySpawn = game.Workspace.BackToLobbyTeleporter
  437.  
  438. local Maps = {game.Workspace.Map2NoCap.CFrame, game.Workspace.ToGameTeleporter.CFrame, game.Workspace.Map3.CFrame, game.Workspace.Map4.CFrame};
  439.  
  440. InRound.Changed:Connect(function()
  441. wait(1)
  442. if InRound.Value == true then
  443. for _, player in pairs(game.Players:GetChildren()) do
  444. wait(1)
  445. if player.AFK == false then
  446. local char = player.Character
  447. char.HumanoidRootPart.CFrame = Maps[math.random(1,#Maps)]
  448. end
  449. end
  450. else
  451. for _, player in pairs(game.Players:GetChildren()) do
  452. wait(1)
  453. if player.AFK == false then
  454. wait(1)
  455. local char = player.Character
  456. char.HumanoidRootPart.CFrame = LobbySpawn.CFrame
  457. end
  458. end
  459. end
  460. end)
  461.  
  462.  
  463.  
  464. local function roundTimer()
  465. while wait() do
  466. for i = intermissionLength, 1, -1 do
  467. InRound.Value = false
  468. wait(1)
  469. Status.Value = "Intermission: ".. i .." seconds left!"
  470. end
  471. for i = roundLength, 1, -1 do
  472. InRound.Value = true
  473. wait(1)
  474. Status.Value = "Game: ".. i .." seconds left!"
  475. end
  476. end
  477. end
  478.  
  479. spawn (roundTimer)
  480.  
  481. -- 12.
  482.  
  483. local ToolsFolder = game.ReplicatedStorage.Tools
  484. local DTS = game:GetService('DataStoreService'):GetDataStore('DTS')
  485.  
  486. game.Players.PlayerAdded:Connect(function(player)
  487. local Data = DTS:GetAsync(player.UserId)
  488. local Backpack = player:WaitForChild('Backpack')
  489. local StarterGear = player:WaitForChild('StarterGear')
  490.  
  491. if Data ~= nil then
  492. for i, v in pairs(Data) do
  493. if ToolsFolder:FindFirstChild(v) and Backpack:FindFirstChild(v) == nil and StarterGear:FindFirstChild(v) == nil then
  494. ToolsFolder[v]:Clone().Parent = Backpack
  495. ToolsFolder[v]:Clone().Parent = StarterGear
  496. end
  497. end
  498. end
  499. end)
  500.  
  501. game.Players.PlayerRemoving:Connect(function(player)
  502. local ToolsTable = {}
  503.  
  504. for i, v in pairs(player.Backpack:GetChildren()) do
  505. table.insert(ToolsTable, v.Name)
  506. end
  507.  
  508. if ToolsTable ~= nil then
  509. DTS:SetAsync(player.UserId, ToolsTable)
  510. end
  511. end)
  512.  
  513. -- big scary placement code incoming (client & server)
  514.  
  515. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  516. local PlaceStructure = ReplicatedStorage:WaitForChild("PlaceStructure")
  517. local Structures = ReplicatedStorage:WaitForChild("Structures")
  518.  
  519. local UIS = game:GetService("UserInputService")
  520. local RunService = game:GetService("RunService")
  521.  
  522. -- variables lol
  523. local player = game:GetService("Players").LocalPlayer
  524. local StructureFrame = script.Parent.StructureFrame
  525. local char = player.Character or player.Character:Wait()
  526. local HumanoidRootPart = char:WaitForChild("HumanoidRootPart")
  527. local mouse = player:GetMouse()
  528. local yBuildingOffset = 2
  529. local maxPlacingDistance = 50
  530. local rKeyIsPressed = false
  531. local placingStructure = false
  532. local yOrientation=0
  533. local goodTOPlace = false
  534. local placedStructure
  535. local clientStructure
  536.  
  537. -- start of rotation hi
  538. function handleKeyInputStarted(input)
  539. rKeyIsPressed = true
  540.  
  541. local rotationSpeed = 5
  542. while rKeyIsPressed do
  543. wait()
  544. if placingStructure == true then
  545. yOrientation = yOrientation + rotationSpeed
  546. end
  547. end
  548.  
  549. end
  550.  
  551. -- tower rotation go brrrrr
  552. function handleKeyInputEnded(input)
  553. if input.KeyCode == Enum.KeyCode.R then
  554. rKeyIsPressed = false
  555. end
  556. end
  557.  
  558. function handleMouseInputBegan(input)
  559. if placingStructure == true then
  560. if goodTOPlace == true then
  561. local primPartCFrame = clientStructure:GetPrimaryPartCFrame()
  562.  
  563. if player.TowerLimit.Value < 15 then
  564. placedStructure = PlaceStructure:InvokeServer(clientStructure.Name, primPartCFrame)
  565. end;
  566.  
  567. if placedStructure == true then
  568. placingStructure = false
  569. clientStructure:Destroy()
  570. StructureFrame.Visible = true
  571. end
  572. end
  573. end
  574. end
  575. function handleInputStarted(input)
  576. if input.KeyCode == Enum.KeyCode.R then
  577. handleKeyInputStarted(input)
  578. elseif input.UserInputType == Enum.UserInputType.MouseButton1 then
  579. handleMouseInputBegan(input)
  580. end
  581. end
  582.  
  583. function handleRenderStepped()
  584. local mouseRay = mouse.UnitRay
  585. local castRay = Ray.new(mouseRay.Origin, mouseRay.Direction * 1000)
  586. local ignoreList = {clientStructure, char}
  587. local hit, position = workspace:FindPartOnRayWithIgnoreList(castRay, ignoreList)
  588.  
  589. if hit then
  590. goodTOPlace = true
  591. else
  592. goodTOPlace = false
  593. end
  594.  
  595. local newAnglesCFrame = CFrame.Angles(0, math.rad(yOrientation), 0)
  596. local newCFrame = CFrame.new(position.X, position.Y + yBuildingOffset, position.z)
  597.  
  598. if clientStructure:FindFirstChild("HumanoidRootPart") ~= nil then
  599. clientStructure:FindFirstChild("HumanoidRootPart").CFrame = newCFrame * newAnglesCFrame
  600. end
  601. end
  602.  
  603. -- Handles constructing the temporary placement brick when the create button is pressed.
  604. function handleBrickButtonPressed(structureName)
  605. StructureFrame.Visible = false
  606.  
  607. if placingStructure == false then
  608. placingStructure = true
  609.  
  610. clientStructure = Structures:FindFirstChild(structureName):Clone()
  611. clientStructure.HumanoidRootPart.BrickColor = BrickColor.new("Forest green")
  612. clientStructure.HumanoidRootPart.Material = "Neon"
  613. clientStructure.HumanoidRootPart.CanCollide = false
  614. clientStructure.Parent = game.Workspace
  615.  
  616. local startingCFrame = CFrame.new(0, -2, -15)
  617. clientStructure.HumanoidRootPart.CFrame = HumanoidRootPart.CFrame:ToWorldSpace(startingCFrame)
  618.  
  619. RunService.RenderStepped:Connect(handleRenderStepped)
  620. end
  621. end
  622.  
  623. for _, structureButton in pairs(StructureFrame:GetChildren()) do
  624. if structureButton:IsA("TextButton") then
  625. structureButton.MouseButton1Up:Connect(function()
  626. handleBrickButtonPressed(structureButton.Name)
  627. end)
  628. end
  629. end
  630.  
  631. UIS.InputBegan:Connect(function(input)
  632. if input.KeyCode == Enum.KeyCode.One then
  633. handleBrickButtonPressed("FastWoodMan")
  634. elseif input.KeyCode == Enum.KeyCode.Two then
  635. handleBrickButtonPressed("Sniper");
  636. end
  637. end)
  638.  
  639.  
  640. UIS.InputBegan:Connect(handleInputStarted)
  641. UIS.InputEnded:Connect(handleKeyInputEnded)
  642.  
  643. --------------------------------------------
  644.  
  645. local RS = game:GetService('ReplicatedStorage');
  646. local PlaceStructure = RS:WaitForChild('PlaceStructure');
  647. local Structures = RS:WaitForChild('Structures');
  648.  
  649. PlaceStructure.OnServerInvoke = function(player, StructureName, StructureCFrame)
  650.  
  651. player.TowerLimit.Value = player.TowerLimit.Value + 1
  652.  
  653. local crafted
  654. local realStructure = Structures:FindFirstChild(StructureName):Clone()
  655.  
  656. if realStructure then
  657. realStructure:SetPrimaryPartCFrame(StructureCFrame)
  658. realStructure.Parent = workspace.Enemies
  659. crafted = true
  660. else
  661. crafted = false
  662. end
  663.  
  664. return crafted
  665.  
  666. end
  667.  
  668. -- 14.
  669.  
  670. local PS = game:GetService("PhysicsService")
  671.  
  672. PS:CreateCollisionGroup("PlayerGroup")
  673. PS:CreateCollisionGroup("Enemies")
  674. PS:CollisionGroupSetCollidable("PlayerGroup", "Enemies", false)
  675.  
  676. spawn(function()
  677. while wait() do
  678. for _,v in pairs(script.Parent:GetDescendants()) do
  679. if v:IsA("BasePart") then
  680. PS:SetPartCollisionGroup(v,"Enemies")
  681. end
  682. end
  683. end
  684. end)
  685.  
  686. game.Players.PlayerAdded:Connect(function(plr)
  687. plr.CharacterAdded:Connect(function(char)
  688. task.wait()
  689. for _,v in pairs(char:GetChildren()) do
  690. if v:IsA("BasePart") then
  691. PS:SetPartCollisionGroup(v,"PlayerGroup")
  692. end
  693. end
  694. end)
  695. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement