Item spawning twice?

Right where you do the if humanoid check, move the debounce check there as well.

Alright wish I could fix this rn, but I have to to bc of school. I will come back and try to fix the issue later, maybe put one of your answers as solution.

local part = script.Parent
local touched = false
part.Touched:Connect(function(h)
    local hum = h.Parent:FindFirstChild("HumanoidRootPart")
    if hum and not touched then
        touched = true
        local segway = game.ServerStorage:FindFirstChild("SegwayKit")
        local clone = segway:Clone()
        clone.Name = "Segway2"
        clone.Parent = game.Workspace
        wait(1)
        touched = false
    end
end)
part.TouchEnded:Connect(function()
     touched = false
end)

@Derpee_Kirbee, wrong ping.

1 Like