How do you make the "Fireball" in the script below move toward where the player's mouse is?

local tool = script.Parent

tool.Activated:Connect(function()
	local fireball = Instance.new("Part")
		fireball.Parent = workspace
		fireball.Position = tool.Part.Position
		fireball.Shape = "Ball"
		fireball.Size = Vector3.new(1.5, 1.5, 1.5)
		fireball.Material = Enum.Material.Pebble
	local fire = Instance.new("Fire")
		fire.Parent = fireball
end)

4 comments

0

u gotta give an effort if u want help

0

hint: (use the velocity property of baseparts)

0

Do you want it to be more like a projectile, or a homing missile? I would take a look at velocity of BaseParts as well as BodyMovers as you seek to solve your problem.

0

You can use velocity or maybe raycasting. I found a way how to make a trail travel with raycasting and tweening but haven't tested it with a touched event yet