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

How would you get a Character with using ObjectValue?

Trying to get a character from a ObjectValue. I'm working on a mission system.

local test = game.Workspace:FindFirstChild(Squad1.Player1.Value)  --Player1 being the objectvalue. 

However this doesn't work, any ideas?

1 comment

0

local test = Squad1.Player1.Value.Character

1 answer

local ObjectValue = instance.new("ObjectValue",workspace);

ObjectValue.Value = game.Players.clashzone_fc

local Character = ObjectValue.Value.Character or ObjectValue.Value.CharacterAdded:Wait();

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