in this script I clone a seat from server storage when I equip a tool and when I have the tool unequipped it destroys it but the one thing I can't figure out is how to set its position to the player when I clone it also when giving an answer if you can explain how it works so I know what to do in the future that would be great!
here's the code:~~~~~~~~~~~~~~~~~ local tool = script.Parent local car = game.ServerStorage.Car
tool.Equipped:Connect(function(plr) local copy = car:Clone() copy.Parent = game.Workspace copy:MoveTo() tool.Unequipped:Connect(function() copy:Destroy() end) end)

10 comments
Didn't saw the post above, but ok, you can use his answer as a result if his is working.
hey it didn't work I tried it and it gave me an error message attempt to index nil with "Character"
Is it on a local script? If not, then this is the problem.
Also, "Character" is only accessable on a local script.
OH OK THANK YOU!
No problem :D
for some reason it has stopped my other touch detector script from working?
Put it on another script, should solve this.
no I mean when I set the position of the touch detector (witch is what I'm cloning) it stops it from detecting anything
if I put this code into a local script it stops the touch detector from detecting anything I tested it with a server script and the touch detector started working again