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

C-Frame a Model down?

Asked by 9 years ago

I was going to C-Frame a Model so that it moves down, but not all the bricks are in the same Y Axis? Basically, I just want a whole Model to move down for about 3 seconds

Sorry I don't have a code, C-Framing with a Script isn't my thing, and I tried the Wiki but it only shows for one part.

1 answer

Log in to vote
0
Answered by
Goulstem 8144 Badge of Merit Moderation Voter Administrator Community Moderator
9 years ago

For this you can use the MoveTo method or the SetPrimaryPartCFrame method.

First you gotta set the primary part, it can be any part you want.. just choose one random. Then you use the SetPrimaryPartCFrame to move the model down in a for loop.

local model = workspace.Model --Model to move
local part = model:GetChildren()[1]
model.PrimaryPart = part

for i = 1,3,.01 do
    wait()
    model:SetPrimaryPartCFrame(model:GetPrimaryPartCFrame() - Vector3.new(0,3,0))
end
0
I need help, I did this: ScriptingHelpersALT 20 — 9y
0
I did this but it says 19:52:39.387 - ClickDetector is not a valid member of Part. This is the script: 19:52:39.387 - ClickDetector is not a valid member of Part ScriptingHelpersALT 20 — 9y
0
@ScriptingHelpersALT Maybe because your ClickDetector is not inside the 'Part.' Redbullusa 1580 — 9y
Ad

Answer this question