I was experimenting with the tweeningservice to try to make an explosion function, everything was running fine until I tried to work with the CFrame to make the explosion effect move upwards, not too sure what I'm doing wrong, I think I'm missing a variable to define the part's CFrame but I tried that and it didn't work. Any help would be appreciated.
local tweenService = game:GetService("TweenService")
local inputService = game:GetService("UserInputService")
local part = script.Parent
local info = TweenInfo.new(
5, --Length(seconds)
Enum.EasingStyle.Elastic, --EasingStyle
Enum.EasingDirection.Out, --EasingDirection
2, --Number of repeats
false, --reverse
2 --delay
)
local endingInfo =
{
Size = Vector3.new(40,40,40);
Transparency = 1;
part.CFrame = part.CFrame * CFrame.new(0,10,0)
}
local makePartBigger = tweenService:Create(part, info, endingInfo)
makePartBigger:Play()
