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

C-Frame a Model down?

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

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

3 comments

0

I need help, I did this:

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

0

@ScriptingHelpersALT Maybe because your ClickDetector is not inside the 'Part.'

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