Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Tool not cloning in position and is just cloning into player's backpack?

Asked by 3 years ago
local db = true

script.Parent.Touched:Connect(function(hit)
    if hit.Parent.Name == "Picture" and db == true then
        db = false
        local newItem = game.ServerStorage.Picture:Clone()

        newItem.Handle.CFrame = CFrame.new(33.857, 48.692, 36.825)
        newItem.Parent = workspace
    end
end)

Answer this question