You can write your topic however you want, but you need to answer these questions:
I want this to drop the item on the right position
DropNonStackableItem.OnServerInvoke = function(player, getItem)
if getItem == nil then
return
end
local getItemName = getItem.Name
local InvGuiDataFolder = player.PlayerGui:WaitForChild("Inventory"):WaitForChild("InvFrame"):FindFirstChild("SlotsItemName")
print(getItem)
if getItem:FindFirstChild(getItemName) then
local ItemClone = getItem:FindFirstChild(getItemName):Clone()
if getItem.Parent.HowMany.Value == 1 then
ItemClone:FindFirstChild(getItemName).CFrame = player.Character.HumanoidRootPart.CFrame + player.Character.HumanoidRootPart.CFrame.LookVector * 6 -- this is where it positions it !
ItemClone.Parent = game.Workspace
InvGuiDataFolder:FindFirstChild(getItem.Parent.Name).Value = ""
getItem:Destroy()
end
end
end
It doesnt put it on the right position on models with more than 2 parts but it does it with only 1 part models like this one
İt seems like the issue is happening because of the Unions I fixed the solution with this but i will also try yours!
i just added a part and welded it with the Refined Pick now it works. But im curious why does this happen ? Im still not sure if its something with Motor6D or the Unions
Also your solution works and its easier so i will go with that. Thank you soo much. what is the difference with PivotTo and MoveTo because move to didnt work when i tried to.