Skip to content

Instantly share code, notes, and snippets.

@topherPedersen
Last active September 10, 2023 00:52
Show Gist options
  • Save topherPedersen/fa837b9ba26c3b83d51ccdad6050f04d to your computer and use it in GitHub Desktop.
Save topherPedersen/fa837b9ba26c3b83d51ccdad6050f04d to your computer and use it in GitHub Desktop.
Changing a Roblox Humanoid's Appearance
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