local enabled = true
Player = script.Parent.Parent
character = Player.CharacterAdded:wait();
mouse = Player:GetMouse()
run = game:GetService("RunService")
Torso = Player.Character.Torso
function onKeyDown(key)
key = key:lower()
if key == "e" then
f = Instance.new("Fire")
f.Color = Color3.new(0, 85, 255)
f.SecondaryColor = Color3.new(0, 170, 255)
f.Size = 15
f.Heat = 25
f.Parent = Torso
weld = Instance.new("Weld")
weld.Part0 = f
--weld.C0 = f.CFrame:inverse()
weld.Part1 = Torso
weld.Parent = Torso
y = Instance.new("BodyVelocity")
y.maxForce = Vector3.new(5, 5, 5)
y.velocity = Player.Character.Torso.CFrame.lookVector*80
y.Parent = Torso
game.Debris:AddItem(f,weld,4)
end
end
mouse.KeyDown:connect(onKeyDown)
21:23:49.410 - bad cast 21:23:49.410 - Script 'Players.kingalpha1.Backpack.Test', Line 18 21:23:49.411 - Stack End 21:23:49.411 - Disconnected event because of exception 21:25:06.524 - Auto-Saving...
this is a localscript btw.

1 comment
You can't set a weld's Part to a fire. Weld's Part0 and Part1 properties have to be, well, parts. Hence their names. If you want a fire to be in a part, just parent it to the part you want it to be in.