menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripters
Moving Part With CFrame?!!
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
Moving Part With CFrame?!!
ClintBlocker
Join Date: 2017-06-27
Post Count: 183
#228388566
Sunday, December 03, 2017 5:56 PM GMT
How do I make it that a part continuously moves left then right in a loop using "CFrames"?mm
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Spectrum555
Join Date: 2010-07-20
Post Count: 171
#228388647
Sunday, December 03, 2017 5:58 PM GMT
while true do part.CFrame = CFrame.new(10,0,0) wait(1) part.CFrame = CFrame.new(-10,0,0) end
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chexyalani
Join Date: 2017-03-26
Post Count: 694
#228388680
Sunday, December 03, 2017 5:58 PM GMT
#### Local Script in StarterPlayerScripts -]] local part=workspace.Part local rs=game:GeyService("RunService") local sin=math.sin rs.RenderStepped:Connect(function() part.CFrame=part.CFrame*CFrame.new(0,0,sin(tick())*1/10) end)
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
ClintBlocker
Join Date: 2017-06-27
Post Count: 183
#228388828
Sunday, December 03, 2017 6:01 PM GMT
Thanks for the help Spectrum, that's exactly what I meant!
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right