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

How to refer to the character?

Asked by 4 years ago

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
0
to use player.Character it needs to be on a local script. ForeverBrown 356 — 4y
0
is player specified? SimplifiedCode 227 — 4y
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. xPolarium 1388 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago
local character = game.Players.LocalPlayer.Character
local blockColor = character.Block.Handle.BrickColor
Ad

Answer this question