Advertisement
Sungmingamerpro13

RoleScript

Oct 26th, 2022
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.91 KB | None | 0 0
  1. game.ReplicatedStorage.VillagerRole.OnServerEvent:Connect(function(player)
  2. player:WaitForChild("Role").Value = "Mini Villager"
  3. player.Character.Humanoid.MaxHealth = 100
  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. local Shirt1 = script.Villager:WaitForChild("Shirt"):Clone()
  8. local Pants1 = script.Villager:WaitForChild("Pants"):Clone()
  9. if (player) and (player.Character) then
  10. for _, Item in pairs(player.Character:GetChildren()) do
  11. if Item:IsA("Shirt") then
  12. Item:Destroy()
  13. Shirt1.Parent = player.Character
  14. elseif Item:IsA("Pants") then
  15. Item:Destroy()
  16. end
  17. end
  18. end
  19. Shirt1.Parent = player.Character
  20. Pants1.Parent = player.Character
  21. end)
  22.  
  23. game.ReplicatedStorage.TheFatRole.OnServerEvent:Connect(function(player)
  24. player:WaitForChild("Role").Value = "Fat"
  25. player.Character.Humanoid.MaxHealth = 100
  26. player.Character.Humanoid.BodyDepthScale.Value = 0.9
  27. player.Character.Humanoid.BodyHeightScale.Value = 0.7
  28. player.Character.Humanoid.BodyWidthScale.Value = 0.7
  29. local Shirt1 = script.The_Fat:WaitForChild("Shirt"):Clone()
  30. local Pants1 = script.The_Fat:WaitForChild("Pants"):Clone()
  31. if (player) and (player.Character) then
  32. for _, Item in pairs(player.Character:GetChildren()) do
  33. if Item:IsA("Shirt") then
  34. Item:Destroy()
  35. Shirt1.Parent = player.Character
  36. elseif Item:IsA("Pants") then
  37. Item:Destroy()
  38. end
  39. end
  40. end
  41. Shirt1.Parent = player.Character
  42. Pants1.Parent = player.Character
  43. end)
  44.  
  45. game.ReplicatedStorage.Villager2Role.OnServerEvent:Connect(function(player)
  46. player:WaitForChild("Role").Value = "Villager"
  47. player.Character.Humanoid.MaxHealth = 50
  48. local Shirt1 = script.Villager:WaitForChild("Shirt"):Clone()
  49. local Pants1 = script.Villager:WaitForChild("Pants"):Clone()
  50. if (player) and (player.Character) then
  51. for _, Item in pairs(player.Character:GetChildren()) do
  52. if Item:IsA("Shirt") then
  53. Item:Destroy()
  54. Shirt1.Parent = player.Character
  55. elseif Item:IsA("Pants") then
  56. Item:Destroy()
  57. end
  58. end
  59. end
  60. Shirt1.Parent = player.Character
  61. Pants1.Parent = player.Character
  62. end)
  63.  
  64. game.ReplicatedStorage.FitnessRole.OnServerEvent:Connect(function(player)
  65. player:WaitForChild("Role").Value = "Fitness"
  66. local tool = game.ServerStorage.RoleTools.Punch:Clone()
  67. player.Character.Humanoid.MaxHealth = 50
  68. player.Character.Humanoid.WalkSpeed = 25
  69. local Shirt1 = script.The_Fitness:WaitForChild("Shirt"):Clone()
  70. local Pants1 = script.The_Fitness:WaitForChild("Pants"):Clone()
  71. if (player) and (player.Character) then
  72. for _, Item in pairs(player.Character:GetChildren()) do
  73. if Item:IsA("Shirt") then
  74. Item:Destroy()
  75. Shirt1.Parent = player.Character
  76. elseif Item:IsA("Pants") then
  77. Item:Destroy()
  78. end
  79. end
  80. end
  81. Shirt1.Parent = player.Character
  82. Pants1.Parent = player.Character
  83. end)
  84.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement