hi im a beginner scripter and i started experimenting with CFrame but my script doesnt work can anyone tell me what am i doing wrong there may be a lot of errors

local onTouch.CFrameParts:GetChildren()

onTouch.Touched:Connect(function() for i,v in pairs (Parts) do v.CFrame = CFrame.new (0, 5, 0) end end)

2 comments

0

is parts defined?

0

It needs work local onTouch.CFrameParts that line has me concerned