Advertisement
Guest User

Untitled

a guest
Apr 4th, 2020
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  2. local remote = ReplicatedStorage:WaitForChild("ChangeUniform")
  3.  
  4.  
  5. remote.OnServerEvent:Connect(function(player, prop, value)
  6.     local humanoid = player.Character and player.Character:FindFirstChild("Humanoid")
  7.     local descriptionClone = humanoid:GetAppliedDescription()
  8.     if prop == "Shirt" then
  9.         descriptionClone.Shirts = value
  10.     elseif prop == "Pants" then
  11.         descriptionClone.Pants = value
  12.     end
  13.     humanoid:ApplyDescription(descriptionClone)
  14. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement