Hello! I am trying to make a cat that you can throw to deal damage to other players.
I am having issues with this one line of code. The error is invalid argument #3 (Vector3 expected, got CFrame)
Here is the code with the problematic line:
local remote = game.ReplicatedStorage.RemoteEvent
remote.OnServerEvent:Connect(function(player, mouse)
if not player.Character:FindFirstChild("the man") then return end
local cat = game.ReplicatedStorage.cat:Clone()
cat.Parent = workspace
local offset = Vector3.new(0,0,4)
cat.Velocity = player.Character.Head.CFrame*CFrame.new(offset) -- line causing the problem
game:GetService("Debris"):AddItem(cat, 10)
end)