Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.Players.PlayerAdded:Connect(function(player)
- player.CharacterAdded:Connect(function()
- if player:WaitForChild("Role").Value == "DefaultKid" then
- player.Character.Humanoid.BodyDepthScale.Value = 0.7
- player.Character.Humanoid.BodyHeightScale.Value = 0.7
- player.Character.Humanoid.BodyWidthScale.Value = 0.6
- if (player) and (player.Backpack) then
- for _, Item in pairs(player.Backpack:GetChildren()) do
- if Item:IsA("Tool") then
- if Item.Name == "GoldenBat" then
- Item:Destroy()
- end
- end
- end
- end
- game.ServerStorage.Items.Bat:Clone().Parent = player.Backpack
- elseif player:WaitForChild("Role").Value == "DefaultAdult" then
- player.Character.Humanoid.BodyDepthScale.Value = 1
- player.Character.Humanoid.BodyHeightScale.Value = 1
- player.Character.Humanoid.BodyWidthScale.Value = 1
- if (player) and (player.Backpack) then
- for _, Item in pairs(player.Backpack:GetChildren()) do
- if Item.Name == "Bat" then
- Item:Destroy()
- end
- end
- end
- game.ServerStorage.Items.Bat:Clone().Parent = player.Backpack
- elseif player:WaitForChild("Role").Value == "Medic" then
- player.Character.Humanoid.BodyDepthScale.Value = 1
- player.Character.Humanoid.BodyHeightScale.Value = 1
- player.Character.Humanoid.BodyWidthScale.Value = 1
- if (player) and (player.Backpack) then
- for _, Item in pairs(player.Backpack:GetChildren()) do
- if Item.Name == "Bat" then
- Item:Destroy()
- end
- end
- end
- game.ServerStorage.Items.Bat:Clone().Parent = player.Backpack
- game.ServerStorage.Items.Medkit:Clone().Parent = player.Backpack
- elseif player:WaitForChild("Role").Value == "Fighter" then
- player.Character.Humanoid.BodyDepthScale.Value = 0.7
- player.Character.Humanoid.BodyHeightScale.Value = 0.7
- player.Character.Humanoid.BodyWidthScale.Value = 0.6
- if (player) and (player.Backpack) then
- for _, Item in pairs(player.Backpack:GetChildren()) do
- if Item.Name == "Medkit" and Item.Name == "Bat" then
- Item:Destroy()
- end
- end
- end
- game.ServerStorage.Items.WoodenSword:Clone().Parent = player.Backpack
- elseif player:WaitForChild("Role").Value == "GoldenProtector" then
- player.Character.Humanoid.BodyDepthScale.Value = 1
- player.Character.Humanoid.BodyHeightScale.Value = 1
- player.Character.Humanoid.BodyWidthScale.Value = 1
- if (player) and (player.Backpack) then
- for _, Item in pairs(player.Backpack:GetChildren()) do
- if Item.Name == "WoodenSword" then
- Item:Destroy()
- end
- end
- end
- game.ServerStorage.Items.GoldenBat:Clone().Parent = player.Backpack
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement