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

Vector3 not working?

Asked by 8 years ago

I feel stupid for asking this, ONCE AGAIN.... I have not been scripting in a while, but here we go.. When I try to make a brick come to me it does not..

local AddPart = Instance.new("Part", game.Workspace)

AddPart.Position = Vector3.new(game.Workspace.ReturnValue.Torso.Position)
0
The problem is that you cannot change something's position if the position will make the object inside another, use AddPart.CFrame = game.Workspace.ReturnValue.Torso.CFrame TheDeadlyPanther 2460 — 8y

1 answer

Log in to vote
0
Answered by
duckyo01 120
8 years ago
local AddPart = Instance.new("Part", game.Workspace)

AddPart.Position = CFrame.new(game.ReturnValue.TorsoPosition) + Vector3.new(0,10,0)
Ad

Answer this question