I tried making a tool that would teleport the player.
LocalScript:
local plr = game.Players.LocalPlayer
script.Parent.Activated:Connect(function()
local mouse = plr:GetMouse()
game.ReplicatedStorage.tpPlr:FireServer(mouse.Hit.p)
end)
server script:
game.ReplicatedStorage.tpPlr.OnServerEvent:Connect(function(client, mouseCFrame)
local humanPart = client.Character.HumanoidRootPart
humanPart.CFrame = mouseCFrame
end)
It said that a CFrame was expected, but got a Vector3. Anyone know the problem?
