local function q()local q=MyPlayer.Character if Tool.Enabled and(q and(q:FindFirstChild("\072\117\109\097\110\111\105\100")and q.Humanoid.Health>0))then Tool.Enabled=false local U=Rocket:Clone()DebrisService:AddItem(U,30)U.BrickColor=MyPlayer.TeamColor local j=(ToolHandle.CFrame*CFrame.new(2,0,0)).p U.CFrame=CFrame.new(j,q.Humanoid.TargetPoint)U.Velocity=U.CFrame.lookVector*ROCKET_SPEED U.Parent=Workspace wait(RELOAD_TIME)Tool.Enabled=true end end
-----------------
--| Functions |--
-----------------

local function OnActivated()
	local myModel = MyPlayer.Character
	if Tool.Enabled and myModel and myModel:FindFirstChild("Humanoid") and myModel.Humanoid.Health > 0 then
		Tool.Enabled = false

		-- Create a clone of Rocket and set its color
		local rocketClone = Rocket:Clone()
		DebrisService:AddItem(rocketClone, 30)
		rocketClone.BrickColor = MyPlayer.TeamColor

		-- Position the rocket clone and launch!
		local spawnPosition = (ToolHandle.CFrame * CFrame.new(2, 0, 0)).p
		rocketClone.CFrame = CFrame.new(spawnPosition, myModel.Humanoid.TargetPoint) --NOTE: This must be done before assigning Parent
		rocketClone.Velocity = rocketClone.CFrame.lookVector * ROCKET_SPEED --NOTE: This should be done before assigning Parent
		rocketClone.Parent = Workspace

		wait(RELOAD_TIME)

		Tool.Enabled = true
	end
end
