My player isnt getting the tool once they touch the invisible part. I put in a debug, and the if statement is working, its just the player isnt getting the tool
local iPodSensor = workspace:WaitForChild("IPodSensor")
local ServerStorage = game:GetService("ServerStorage")
local iPod = ServerStorage:WaitForChild("iPod")
iPodSensor.Touched:Connect(function(hit)
local hum = hit.Parent:FindFirstChild("Humanoid")
if hum then
print("hum")
local clone = iPod:Clone()
clone.Parent = hum.Parent:WaitForChild("Backpack")
end
end)