Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Shirts = {
- [1] = "rbxassetid://735646641",
- [2] = "rbxassetid://1852410340",
- [3] = "rbxassetid://1011563561",
- [4] = "rbxassetid://938429753",
- [5] = "rbxassetid://906004412"
- }
- local Pants = {
- [1] = "rbxassetid://800575732",
- [2] = "rbxassetid://1852410340",
- [3] = "rbxassetid://484480221",
- [4] = "rbxassetid://938429753",
- [5] = "rbxassetid://906036249"
- }
- local Face = {
- [1] = "rbxassetid://162296900",
- [2] = "rbxassetid://680996448",
- [3] = "rbxassetid://25595114",
- [4] = "rbxassetid://21216027",
- [5] = "rbxassetid://66054946"
- }
- game.ReplicatedStorage.Remotes.Update.OnServerEvent:Connect(function(plr, _Name, _ID)
- if not _Name then print("Invalid Name") end
- if not _ID then print("Invalid ID") end
- if _Name == "Skin" then
- plr.Character["Body Colors"].HeadColor3 = _ID
- plr.Character["Body Colors"].LeftArmColor3 = _ID
- plr.Character["Body Colors"].LeftLegColor3 = _ID
- plr.Character["Body Colors"].RightArmColor3 = _ID
- plr.Character["Body Colors"].RightLegColor3 = _ID
- plr.Character["Body Colors"].TorsoColor3 = _ID
- elseif _Name == "Shirt" then
- plr.Character.Shirt.ShirtTemplate = Shirts[tonumber(_ID)]
- elseif _Name == "Pants" then
- plr.Character.Pants.PantsTemplate = Pants[tonumber(_ID)]
- elseif _Name == "Face" then
- plr.Character.Head.face.Texture = Face[tonumber(_ID)]
- else
- print("Invalid Param (2)")
- end
- end)
Add Comment
Please, Sign In to add comment