Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local remote = ReplicatedStorage:WaitForChild("ChangeUniform")
- remote.OnServerEvent:Connect(function(player, prop, value)
- local humanoid = player.Character and player.Character:FindFirstChild("Humanoid")
- local descriptionClone = humanoid:GetAppliedDescription()
- if prop == "Shirt" then
- descriptionClone.Shirts = value
- elseif prop == "Pants" then
- descriptionClone.Pants = value
- end
- humanoid:ApplyDescription(descriptionClone)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement