- What do you want to achieve? Keep it simple and clear!
I wanna be able to use TweenService on my projectile so that it goes at a constant speed instead of speeding up depending on distance
- What is the issue? Include screenshots / videos if possible!
I don’t know how to do this.
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I’ve tried looking it up on google chrome and devforum but I can’t quite find anything that will help.
My Code
local character = Player.Character
local Humrp = character:FindFirstChild("HumanoidRootPart")
local Humanoid = character:WaitForChild("Humanoid")
local Fireball = UnClonedFireball:Clone()
local EffectsFold = Instance.new("Folder", workspace)
EffectsFold.Name = Player.Name.." Effects"
Fireball.Parent = EffectsFold
Fireball.CFrame = CFrame.new(Humrp.Position) + Vector3.new(0,0,2)
local TweenInfo = TweenInfo.new(.5,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
local TweenProperties =
{
CFrame = Fireball.CFrame * CFrame.new(Mouse_Hit.Position)
}
local Tween = TweenService:Create(Fireball,TweenInfo,TweenProperties)
Tween:Play()