so I tried scripting this script and put it inside a gun tool since my gun just needs some realistic feels (smoke appears when you shoot).
somehow when I shoot with my gun the smoke doesn't appear.
the script:
local Tool = script.Parent
Tool.Equipped:Connect(function(Mouse)
Mouse.Button1Down:Connect(function()
Instance.new("Smoke", script.Parent.Handle)
wait(2)
script.Parent.Handle.Smoke:Destroy()
end)
end)
I'm pretty new at scripting so I mostly got the script from a roblox wiki tutorial and just edited it.
it is a normal script and is inside the tool.

2 comments
Is it a local script? If so you would need to use a remote event due to most things on ROBLOX being FE or whatever it's called now.
well uhh I'm not sure how to use a remote event since I'm pretty new to scripting.