Advertisement
Sungmingamerpro13

Roles#2 (Break In Style)

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