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

MoveTo doesn't allow Collisions?

Basically I'm trying to make this model grow from the ground, but it doesn't collide so it just teleports to top.

local Pos = plr.Character.HumanoidRootPart.Position + Vector3.new(0, -40, 0) + plr.Character.HumanoidRootPart.CFrame.lookVector * 10

for i = 1, 20, 0.1 do
	newTycoon:MoveTo(Pos + Vector3.new(0,i,0))
	wait(0.01)
end

1 answer

local Pos = plr.Character.HumanoidRootPart.Position + Vector3.new(0, -40, 0) + plr.Character.HumanoidRootPart.CFrame.lookVector * 10

for i = 1, 20, 0.1 do
    newTycoon:SetPrimaryPartCFrame(Pos + Vector3.new(0,i,0)) --[[make sure primary part is set to the central part]]
    wait(0.01)
end

3 comments

0

Alsom wait(.01) actually waits about .03. Use wait() instead

0

I tried that earlier. The problem is CFrame can't do Vector3 You will always get "Unable to cast Vector3 to CoordinateFrame"

0

just do CFrame.new(Vector3 value)

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