How would I go about making a fireball explosion?

It’s just a normal part I added from model.

Does the fireball change in transparency or even change in size?

No, like my first script I think the tween works since there is no error messages but it doesn’t fire.

Try using print()s throughout the script and see where it stops using print.

It stops before you tween.
“local TweenService = game:GetService(“TweenService”)”

So it stops right before the tweenanim:Play() line?

Yes it does as I have seen so far

Ah, I see my mistake. This script should work.

local ts = game:GetService("TweenService");
local collision = false -- set to true if you want the fireball to be collision-able
local seconds = 1; -- replace with how long should the tween be, such as 2 seconds or 0.5 seconds
local objecttotween = Fireball; -- Make a variable called Fireball which indexes the actual fireball
local tsinfo = TweenInfo.new(seconds, Enum.EasingStyle.Linear, Enum.EasingStyle.In);
local goal = {Size = Vector3.new(2, 2, 2)}; -- replace the numbers in the Vector3.new() with how big should the fireball be in the end
local tweenanim = ts:Create(objecttotween, tsinfo, goal);
Fireball.Touched:Connect(function(h)
if h:IsA("Mesh") or h:IsA("BasePart") or h:IsA("Model") or h:IsA("Part") or h:IsA("Union") then
tweenanim:Play()

spawn(function()
if collision then
Fireball.CanCollide = true
else
Fireball.CanCollide = false
end

for i = 1, 100 do
wait(0.01)
Fireball.Transparency = Fireball.Transparency + 0.01
end

Fireball:Destroy()
end)
end
end)
2 Likes