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

CFrame is not a valid member of part?

tool = script.Parent.Parent


tool.Activated:connect(function()
	print(2)
	paw = game.Lighting.MiniPaw:Clone()
	paw.Parent = game.Workspace
	paw.CFrame = tool.Parent["Right Arm"].CFrame
end)


1 comment

0

Include the actual error in your question.

2 answers

If paw is a model this will not work. You can however set the primaryPart of the model to a brick inside and using the

:SetPrimaryPartCFrame()

method, set the model's CFrame to whatever you would like it to be

workspace.MiniPaw:SetPrimaryPartCFrame(CFrame.new(tool.Parent["Right Arm"].CFrame.P))

In this case "Middle" is the part that is the same shape and size of the arm so you can position the rest of the parts based off of that. If you have any questions or this didn't answer your question feel free to message me and ask me more, or ask me what I meant. Hope this helps!

2 comments

0

You call :SetPrimaryPartCFrame() on the model, not the part like you did.

0

Sorry, I'm very tired. xD

Use a weld instead, CFraming it once will only temporarily make it look like its on the right arm but as soon as you move or turn it will not move in sync with your character.

This discussion is preserved as it was. New answers, comments, and votes are closed.