Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago

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

1 answer

Log in to vote
1
Answered by
Fifkee 2017 Community Moderator Moderation Voter
4 years ago
Edited 4 years ago

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)

Ad

Answer this question