How would you go with making a fireball

So right now I’m using bodyforce to move the fireball, i’m wondering if its a good idea to use cframes and tweening to move the fireball instead?

Also would using contextactionservice be better against userinputservice

thanks

1 Like

bodyforce and contextactionservice :ok_hand:

1 Like

This is a really good video on creating a fireball.
It’s not 100% what you wanted but it can serve as a base.

1 Like

I’ve made a fireball using CFrame, but I’m not sure if it’s the best.

local part = part_object
local from = Vector3.new(0,0,-6) -- where to launch it from
local position = Vector3.new()
local tweenService=game:GetService("TweenService")
local speed = 100
part.Position = from
local tweenInfo = TweenInfo.new((position-from).Magnitude/speed)
local tween = tweenService:Create(part,tweenInfo,{Position = position})

tween:Play()
1 Like

The best way is to allow physics to handle a moving projectile. Manually positioning an object can cause the physics system to miss a collision with the projectile.

Since the physics system only calculates objects that are moving and not stationary. (It’s how performance is optimized). Re-positioning an object does not count as moving it. But applying a force does.