The script is:
local part = script.Parent
local model = workspace.YOOHOO
function nicshere(onClick)
workspace.THISNIGZ.CanCollide = false
model:SetPrimaryPartCFrame(-14, -8.5, -129.5)
wait(.1)
model:SetPrimaryPartCFrame(-14, -8, -129.5)
wait(.1)
model:SetPrimaryPartCFrame(-14, -7.5, -129.5)
wait(.1)
model:SetPrimaryPartCFrame(-14, -7, -129.5)
wait(.1)
model:SetPrimaryPartCFrame(-14, -6.5, -129.5)
wait(.1)
model:SetPrimaryPartCFrame(-14, -6, -129.5)
wait(.1)
model:SetPrimaryPartCFrame(-14, -5.5, -129.5)
wait(.1)
model:SetPrimaryPartCFrame(-14, -5, -129.5)
wait(.1)
model:SetPrimaryPartCFrame(-14, -4.5, -129.5)
wait(.1)
model:SetPrimaryPartCFrame(-14, -4, -129.5)
wait(.1)
model:SetPrimaryPartCFrame(-14, -3.5, -129.5)
wait(.1)
model:SetPrimaryPartCFrame(-14, -3, -129.5)
wait(.1)
workspace.THISNIGZ.Transparency = 1
model:SetPrimaryPartCFrame(-14, -2.5, -129.5)
wait(.1)
model:SetPrimaryPartCFrame(-14, -2, -129.5)
wait(.1)
model:SetPrimaryPartCFrame(-14, -1.5, -129.5)
wait(.1)
model:SetPrimaryPartCFrame(-14, -1, -129.5)
wait(.1)
model:SetPrimaryPartCFrame(-14, -.5, -129.5)
wait(.1)
model:SetPrimaryPartCFrame(-14, -0, -129.5)
wait(.1)
model:SetPrimaryPartCFrame(-14, 0.1, -129.5)
end
script.Parent.ClickDetector.MouseClick:connect(nicshere)
Before I set the script to model:Set.. it was model.Set... and I got an output error of "expected model: calling member function" and now I'm getting "Unable to cast double to CoordinateFrame"

2 comments
And How do you break that loop?
As normal? With an appropriately guarded break statement.