Why will my script not work? Using CFrame and RenderStepped [closed]
My script, is supposed to make one brick move from one place to another smoothly
01 | local RunService = game:GetService( "RunService" ) |
03 | local Part = game.Workspace:WaitForChild( "Part" ) |
04 | local End = game.Workspace:WaitForChild( "End" ) |
06 | local PART_POS = Part.Position |
07 | local END_POS = End.Position |
11 | RunService.RenderStepped:Connect( function () |
12 | local deg = 180 *(tick()% DURATION/DURATION |
13 | Part.CFrame = CFrame.new( 46 , 61.5 , - 20 ) * CFrame.Angles( 0 ,math.rad(deg), 0 ) * CFrame.new( 46 , 61.5 , 70 ) |
If you have any advice please comment.
Closed as Non-Descriptive by hiimgoodpack, Thetacah, lukeb50, and Void_Frost
This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.
Why was this question closed?