I am writing code for a simple rocket launcher, but, as soon as i click it, it throws "This mouse is no longer active" on the console. Heres my code:
tool.Equipped:Connect(function(m)
tool.Activated:Connect(function()
local targ = m.Hit
local p = script.Parent.Parent.bam
local part = Instance.new("Part")
part.Name = "boom"
part.CFrame = p.CFrame * CFrame.new(-1,0,0)
part.Parent = workspace
local target = Instance.new("Part")
target.Position = targ
target.Parent = workspace
local ropor = Instance.new("RocketPropulsion")
ropor.Parent = part
ropor.Target = target
ropor:Fire()
end)
end)
Help?
