Hello,
So I had some help with this Cframe script from another post. I am creating a firework and one of the fireworks is on an angle of 25 degrees. This script does not take that into account and just shoots it straight up. How would I make it so that it moves it up still with keep it's angle of 25 degrees?
Thanks.
Anthony
Model = script.Parent.Parent.Parent.Firework1
local StartPos = Model.PrimaryPart.CFrame --- this is where the model started
local EndPos = StartPos + Vector3.new(30,0,0) -- this is where the model started moved up and over
for i = 0,30,0.1 do -- this says repeat between 0 and 1 for 0.1. So it will repeat 10 times. 0, 0.1 ,0.2... ect
Model:SetPrimaryPartCFrame(StartPos:Lerp(EndPos, i)) -- this returns a positiong between StartPos and EndPos. I is the increment between. So if i == 0.5 it will be the middle, i == 1 it will be the end i == 0 its the start
wait()
end
