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

Cframe is not a valid member of Part?

Asked by
ScoDev 0
5 years ago

plr.CharacterAdded:connect(function(char)

    local humanoid,hrp = char:WaitForChild("Humanoid"),char:WaitForChild("HumanoidRootPart")

    wait()

    if humanoid and hrp then
        if stage.Value ~= 0 then

            local part = workspace.ObbyStages:FindFirstChild(stage.Value)
            hrp.Cframe = part.Cframe + Vector3.new(0,1,0)

I've put in the code above and it gives me the following Error:

"Cframe is not a valid member of Part"

Any clues of what it might be?

1
caps CFrame Elixcore 1337 — 5y
1
As the comment above says: its CFrame, not Cframe Le_Teapots 913 — 5y
0
As the comment above above says: it's CFrame, not Cframe. Fifkee 2017 — 5y
0
As the comment above above above says: it's CFrame, not Cframe. pwx 1581 — 5y
0
It really do be like that sometimes smh my head... Le_Teapots 913 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

Notice that you need to cap the "f" in CFrame.

Ad

Answer this question