Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to change body color of a player ?

Asked by 5 years ago

This question has been solved by the original poster.

So... i'm trying to make a drink , when you drink it your skin turns blue , it's like a ice potion sooo... i don't really know how to select the player's body color.Sorry for the issue Also here is my script

01local hum = nil
02local char = nil
03----------------------------------
04function onActivate()
05    if not enabled then
06        return
07end
08enabled = false
09tool.GripForward = Vector3.new(0,-.759,-.651)
10tool.GripPos = Vector3.new(1.5,-.5,.3)
11tool.GripRight = Vector3.new(1,0,0)
12tool.GripUp = Vector3.new(0,.651,-.759)
13local char = tool.Parent
14local hum = char:FindFirstChild("Humanoid")
15if hum then
View all 39 lines...
1
You can use body colors to change the player's body color; https://developer.roblox.com/en-us/api-reference/class/BodyColors DesignerOfGames -7 — 5y

1 answer

Log in to vote
0
Answered by
Elixcore 1337 Moderation Voter
5 years ago
Edited 5 years ago
1for i,v in next, game.Players:GetPlayers() do
2    local c = v.Character or v.CharacterAdded:Wait()
3    local bc = c:WaitForChild("Body Colors")
4    local og = bc.TorsoColor3
5    bc.TorsoColor3 = Color3.fromRGB(255,0,0)
6 
7    bc.TorsoColor3 = og
8end

Solved in DISCORD

0
accepted Redyblazeyy 31 — 5y
Ad

Answer this question