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

I need CFrame Help?

Asked by 9 years ago

Okay, so I got some knowledge from a previous question about Vector3, and I tried to use it on 2 other parts in a model.

The problem was only the first part moved the direction I wanted it to go, and then the second stayed the same and came up with an error saying:

Workspace.ToasterCord.Plug.Script:6: bad argument #1 to '?' (CFrame expected, got table)

The script part with this in is this:

Plugged = script.Parent.Parent:WaitForChild("Plugged").Value
Cord = script.Parent.Parent.Cord

function onClicked()
    script.Parent.CFrame = script.Parent.CFrame * CFrame.new(0, 1, 0)
    Cord.CFrame = CFrame * CFrame.new(0, 1, 0)

And some more after that.

Answer this question