I am making a script to drop an item when i click a button gui, i want it to clone a model from lighting and put it under the player but i cant make it work!
this is the part that have a problem
local drop = game.Lighting:FindFirstChild(itemC.Value):FindFirstChild(item.Value):clone()
drop.Parent = game.Workspace.Drops
drop.Position = player.Character.Torso.PositionXYZ

2 comments
You can also use the SetPrimaryPartCFrame()
thanks, but i still have a problem with the first line saying : attempt to index a nil value