✓ Accepted answer
I've never seen :clone() used that way, with the parent as a parameter, and I can't find any documentation on the wiki that says it can work with that. But if that has worked for you before, sure.
Assuming that clone can work that way, I think I might see your problem. In line 2, you're setting a to a thing called "First" in Lighting. Great. Then, line 3, you clone it and put the copy into Workspace. Then you set the owner value in a. The issue that a is a thing in Lighting, and that never changed. You changed the owner variable of the backup model in lighting, not the new one that you copied into workspace. You actually just copied it into workspace and forgot about it. You probably instead want a to be a reference to your new thing, rather than the original backup model in Lighting. I would suggest:
script.Parent.MouseButton1Click:connect(function()
a = game.Lighting:FindFirstChild("First"):clone()
a.Parent = game.Workspace
a.VehicleSeat.Vars.Owner.Value = game.Players.LocalPlayer.Name
end)
2 comments
Grenaderade's proposed solution also has the issue of changing the variable in the model in Lighting, rather than the newly made model in Workspace.
Thanks a lot!! Want some credit in my game?