Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

New is not part of CFrame, what line of code do i put to fix this?

character = game.Players.LocalPlayer.Character script.Parent.MouseButton1Click:Connect(function() character.HumanoidRootPart.CFrame.new(workspace.Respawn.Position) end)

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.