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 5 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 — 5y
0
is player specified? SimplifiedCode 227 — 5y
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 — 5y

1 answer

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

Answer this question