Im trying to make matches that will light a fire. Ive created a local script in the tool to do that. For some reason when I click on the fire with my matches nothing is happening. The Firepit is a model named "Fire" and there is an invisible part named "FirePart" within that model. When i click on it I want it to light the FirePart within the Fire Model. Can you help me? Anyone?
Here is the code.
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
function onEquipped()
print("Matches")
end
script.Parent.Equipped:connect(onEquipped)
function onActivate()
if mouse.Target == game.Workspace.Fire then
local f = Instance.new("Fire", mouse.Target.Fire.FirePart)
end
end
script.Parent.Activated:connect(onActivate)
