Advertisement
Sungmingamerpro13

Roles#3

Mar 9th, 2025
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.65 KB | None | 0 0
  1. game.Players.PlayerAdded:Connect(function(player)
  2.     player.CharacterAdded:Connect(function()
  3.         if player:WaitForChild("Role").Value == "Default" then
  4.             player:WaitForChild("Role").Value = "Default"
  5.             player.Character.Humanoid.BodyDepthScale.Value = 1
  6.             player.Character.Humanoid.BodyHeightScale.Value = 1
  7.             player.Character.Humanoid.BodyWidthScale.Value = 1
  8.             if (player) and (player.Backpack) then
  9.                 for _, Item in pairs(player.Backpack:GetChildren()) do
  10.                     if Item:IsA("Tool") then
  11.                         if Item.Name == "Chips" and Item.Name == "Bat" then
  12.                             Item:Destroy()
  13.                         end
  14.                     end
  15.                 end
  16.             end
  17.             game.ServerStorage.RoleItems.Bat:Clone().Parent = player.Backpack
  18.         elseif player:WaitForChild("Role").Value == "Medic" then
  19.             player:WaitForChild("Role").Value = "Medic"
  20.             player.Character.Humanoid.BodyDepthScale.Value = 1
  21.             player.Character.Humanoid.BodyHeightScale.Value = 1
  22.             player.Character.Humanoid.BodyWidthScale.Value = 1
  23.             if (player) and (player.Backpack) then
  24.                 for _, Item in pairs(player.Backpack:GetChildren()) do
  25.                     if Item:IsA("Tool") then
  26.                         if Item.Name == "Bat" then
  27.                             Item:Destroy()
  28.                         end
  29.                     end
  30.                 end
  31.             end
  32.             game.ServerStorage.RoleItems.Medkit:Clone().Parent = player.Backpack
  33.             game.ServerStorage.RoleItems.Bat:Clone().Parent = player.Backpack
  34.         elseif player:WaitForChild("Role").Value == "Athelete" then
  35.             player:WaitForChild("Role").Value = "Athele"
  36.             player.Character.Humanoid.BodyDepthScale.Value = 1
  37.             player.Character.Humanoid.BodyHeightScale.Value = 1
  38.             player.Character.Humanoid.BodyWidthScale.Value = 1
  39.             if (player) and (player.Backpack) then
  40.                 for _, Item in pairs(player.Backpack:GetChildren()) do
  41.                     if Item:IsA("Tool") then
  42.                         if Item.Name == "Medkit" and Item.Name == "Bat" then
  43.                             Item:Destroy()
  44.                         end
  45.                     end
  46.                 end
  47.             end
  48.             game.ServerStorage.RoleItems.Bloxiade:Clone().Parent = player.Backpack
  49.             game.ServerStorage.RoleItems.Bat:Clone().Parent = player.Backpack
  50.         elseif player:WaitForChild("Role").Value == "Fat" then
  51.             player:WaitForChild("Role").Value = "Fat"
  52.             player.Character.Humanoid.BodyDepthScale.Value = 0.9
  53.             player.Character.Humanoid.BodyHeightScale.Value = 0.7
  54.             player.Character.Humanoid.BodyWidthScale.Value = 0.7
  55.             if (player) and (player.Backpack) then
  56.                 for _, Item in pairs(player.Backpack:GetChildren()) do
  57.                     if Item:IsA("Tool") then
  58.                         if Item.Name == "Bloxiade" and Item.Name == "Bat" then
  59.                             Item:Destroy()
  60.                         end
  61.                     end
  62.                 end
  63.             end
  64.             game.ServerStorage.RoleItems.Chips:Clone().Parent = player.Backpack
  65.             game.ServerStorage.RoleItems.Bat:Clone().Parent = player.Backpack
  66.         end
  67.     end)
  68. end)
  69.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement