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

How do I make a Moving Brick Using CFrame? [closed]

Asked by 5 years ago

Hello, How would I make a script that uses Cframe to move a brick to one position then another?

0
part:CFrame.new(0,0,0) wait(5) part:CFrame.new(1,1,1) VitroxVox 884 — 5y
0
You can use tween service to tween a parts position oroperty royaltoe 5144 — 5y
0
tweenservice us better EmbeddedHorror 299 — 5y
0
is* EmbeddedHorror 299 — 5y

Closed as Too Broad by royaltoe, GGRBXLuaGG, Vathriel, SimplifiedCode, and Azarth

This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.

Why was this question closed?

2 answers

Log in to vote
0
Answered by
TopBagon 109
5 years ago

just adjust the part path

local part = workspace:WaitForChild("Part")
local xPos = 0 -- change to your X
local yPos = 0 -- change to your Y
local zPos = 0 -- change to your Z

part.CFrame = CFrame.new(xPos,yPos,zPos)
Ad
Log in to vote
0
Answered by
Kblow1 53
5 years ago
local part = part path

part.CFrame.new(0.0.0)
wait(1)
part.CFrame.new(10,10,10)