character = game.Players.LocalPlayer.Character script.Parent.MouseButton1Click:Connect(function() character.HumanoidRootPart.CFrame.new(workspace.Respawn.Position) end)
✓ ANSWER ACCEPTED
New is not part of CFrame, what line of code do i put to fix this?
1 answer
✓ Accepted answer
1: Use code blocks:
~
code
~
2:
You're using dot notation to set a value. Try using the equal sign instead.
character.HumanoidRootPart.CFrame = CFrame.new(workspace.Respawn.Position)
This discussion is preserved as it was. New answers, comments, and votes are closed.
