i have been Stupid again. I want to Move the Model (seen in the Picture) to a Certain point with Tweenservice. I know how to do that and it works. Now i want the Model to Rotate a Certain amount so it shows us its Backside.
The Script im Using is a Loop so the Model does not Jump back to its Position when Rotated by the Script. But the Model does Rotate Violently until it Stops after a few Seconds.
How can i go by to actually Control the Speed and the Degrees of how the Model turns. I tried a lot and cant figure it out especially using Tweenservice at the same time. I hope someone can help me as this is getting frustrating
Here is the Script:
local Model = game.Workspace.HarvTest
script.Parent.Parent.ClickDetector.MouseClick:Connect(function()
for i = 1, 360 do
Model:SetPrimaryPartCFrame(Model.PrimaryPart.CFrame * CFrame.Angles(0, math.rad(i), 0))
wait(0.1)
end
end)
I hope this is not a Silly Question but getting help is sometimes quite hard without being laughed at.
Thanks for any Input how to make my Life easier and hope you have a great Weekend
local Model = game.Workspace.HarvTest
local speed = 3
script.Parent.Parent.ClickDetector.MouseClick:Connect(function()
for i = 1, 360/speed do
Model:SetPrimaryPartCFrame(Model.PrimaryPart.CFrame * CFrame.Angles(0, math.rad(i*speed), 0))
wait(0.1)
end
end)
local Model = game.Workspace.HarvTest
local speed = 3
script.Parent.Parent.ClickDetector.MouseClick:Connect(function()
for i = 1, 360/speed do
Model:SetPrimaryPartCFrame(Model.PrimaryPart.CFrame * CFrame.Angles(0, math.rad(speed), 0))
wait(0.1)
end
end)