Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make a Fireball move toward where the Player's mouse is?

Asked by 5 years ago

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)
0
u gotta give an effort if u want help INOOBE_YT 387 — 5y
0
hint: (use the velocity property of baseparts) theking48989987 2147 — 5y
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. SummerEquinox 643 — 5y
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 hellmatic 1523 — 5y

Answer this question