Attempt to call a table value

I’m trying to make a teleport skill and when I’m trying to send a Cframe to use as Character:SetPrimaryPartCFrame() the output said, attempt to call a table value.

-- Inside of local script
event:FireServer(mouse.hit * CFrame.new(Vector3(0,humanoid.HipHeight,0)))
-- Inside of server script
event.OnServerEvent:Connect(function(player, Pos)
	local Character = player.Character or player.CharacterAdded:wait() 
	Character:SetPrimaryPartCFrame(Pos)
end)

There’s an issue with this line, apparently you typed Vector3, not Vector3.new, which is used to create a new Vector3. I assume it’s considered a table since it’s a datatype which contains multiple functions. anyways, I hope I fixed your issue.

1 Like

Ahhh I didn’t notice that, Thank! it did work.