Instance* part = workspace->WaitForChild("Part1"); Color3 newColor = Color3(1, 0, 0); part->SetData("Color", newColor);
Instance* character = workspace->WaitForChild("Character"); Vector3 newPosition = Vector3(10, 0, 0); character->SetData("Position", newPosition);This example changes the position of a character in the game to the coordinates (10, 0, 0). The Vector3 class is used to specify the new position. The SetData method is a part of the Roblox C++ API, which is included in the Roblox Studio Development Kit package.