I made a button that moves a model when it is clicked. The script is eternally simple and I can't understand why it isn't working.
I get the error Unable to cast double to CoordinateFrame
Here is the script:
script.Parent.ClickDetector.MouseClick:connect(function()
script.Parent.Parent:SetPrimaryPartCFrame(10,0,10)
end)
Help please.

2 comments
Thanks, totally forgot about the CFrame.new!
No problem, I do mistakes similar to that, here and there.