Last active
September 10, 2023 00:52
-
-
Save topherPedersen/fa837b9ba26c3b83d51ccdad6050f04d to your computer and use it in GitHub Desktop.
Changing a Roblox Humanoid's Appearance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local Players = game:GetService("Players") | |
local function alterPlayer(player) | |
local character = player.Character or player.CharacterAdded:Wait() | |
local humanoid = character:WaitForChild("Humanoid") | |
local userId = player.UserId | |
local humanoidDescription = game.Players:GetHumanoidDescriptionFromUserId(userId) | |
humanoidDescription.HeadColor = Color3.fromHex("#39FF14") | |
humanoidDescription.LeftArmColor = Color3.fromHex("#39FF14") | |
humanoidDescription.RightArmColor = Color3.fromHex("#39FF14") | |
humanoidDescription.TorsoColor = Color3.fromHex("#39FF14") | |
humanoidDescription.LeftLegColor = Color3.fromHex("#39FF14") | |
humanoidDescription.RightLegColor = Color3.fromHex("#39FF14") | |
if humanoid then | |
humanoid:ApplyDescription(humanoidDescription) | |
end | |
end | |
local function onPlayerAdded(player) | |
player.CharacterAdded:Connect(function(character) | |
alterPlayer(player) | |
end) | |
end | |
Players.PlayerAdded:Connect(onPlayerAdded) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment