So far I'm trying to replicate the quirk: Fire Breath. So far, it plays an animation and then creates a new (invisible) part with the Fire effect on it. My plan is to make it move back and forth as to simulate Fire Breath, but is this really the best way of replicating this quirk?
Is there any way to spray fire without having to use parts like the Ye Old Fire Breath Potion? If you would like to see my code, (unfinished), you can see it here.
if QuirkRarityRating == 1 then
Quirk = math.random(1,2)
if Quirk == 1 then
Quirkname.Text = ( "Fire Breath" ) -- Creation
print("Fire Breath")
ser=game:GetService("UserInputService")
ser.InputBegan:connect(function(Key,GME)
if GME then return end
if Key.KeyCode == Enum.KeyCode.Z and Cooldown == 0 then
-- Animation
local Cooldown = 1
firebreath.AnimationId = "rbxassetid://865156625"
local firebreathSpray = Hum:LoadAnimation(firebreath)
firebreathSpray:Play()
-- Firebreath Generation
FireBreathFlames = Instance.new("Part",Workspace)
FireBreathFlames.Name = ("FireBreath")
FireBreathFlames.Transparency = 1
local FireEffect = Instance.new("Fire")
FireEffect.Parent = game.Workspace.FireBreath
wait(1.5)
firebreathSpray:Stop()
wait(0.5)
local Cooldown = 0
workspace.FireBreath.Fire:Destroy()
workspace.FireBreath:Destroy()
end
end)
end
It plays an animation, creates a new part (it doesn't change locations yet) and sets it on fire setting its transparency to 1.

1 comment
Can you check your roblox messages?