I’m trying to the Region3’s CFrame to the Torso position. But I get this error:
CFrame cannot be assigned to
I’ve done seem research and other people seem to have similiar problems, I’ve tried their solutions but it hasnt worked. It’s probably something simple I just dont know, heres my script:
local model = bot:Clone()
local torso = model:WaitForChild("Torso")
local humanoid = model:WaitForChild("Humanoid")
local region = Region3.new(Vector3.new(0, 0, 0), Vector3.new(10, 10, 10))
region.CFrame = torso.CFrame -- Error line
local part = Instance.new("Part")
part.Anchored = true
part.Size = region.Size
part.Parent = workspace
model.Parent = workspace