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

Why part position doesn't change?

Asked by 1 year ago
game.Players.PlayerAdded:Connect(function(player)
    wait(3)
    local part = Instance.new("Part")
    part.Parent = game.Workspace
    part.Anchored = true
    part.Size = Vector3.new(50, 50, 2)

    part.Position = Vector3.new(player.Character.HumanoidRootPart.Position)
end)

Part's position remains 0, 0, 0 after I tried to change it

1 answer

Log in to vote
0
Answered by
boredlake 256 Moderation Voter
1 year ago

player.Character.HumanoidRootPart.Position is already a Vector3, you don't have to make a new Vector3 outside of it (meaning remove the Vector3.new part)

0
oh right, thanks! NoReal229 21 — 1y
Ad

Answer this question