Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to refer to the character?

I'm trying to make a variable that will check the color of the tool in the players hand... But it won't work! please help me!

local character = player.Character
local blockColor = character.Block.Handle.BrickColor

3 comments

0

to use player.Character it needs to be on a local script.

0

is player specified?

0

@ForeverBrown, That can also be done on the server side. You are probably mistaking it for the LocalPlayer property from Players Service which is client only.

1 answer

✓ Accepted answer
local character = game.Players.LocalPlayer.Character
local blockColor = character.Block.Handle.BrickColor

This discussion is preserved as it was. New answers, comments, and votes are closed.