while true do
print("bruhmoment")
wait(1)
local original = game.Lighting.light
local copy = original:Clone()
copy.Parent = game.Workspace
copy:SetPrimaryPartCFrame(game.Workspace.regenspot.Position)
end
Hello. I am pretty sure I am not doing anything wrong because even when I read the wiki for :Clone(), (https://developer.roblox.com/en-us/api-reference/function/Instance/Clone), I have found :SetPrimaryPartCFrame. I have used this in my code but it says its not a valied member of part??

2 comments
This might not be related to your current issue, but make sure to pass a CFrame when using SetPrimaryPartCFrame instead of a Vector3
The error is self-explanatory. You're attempting to call a Model function from a BasePart. For BaseParts you can use their CFrame property directly.