Heres the code.
local s = script.Parent
Debounce = false
s.Touched:Connect(function(hit)
local humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid ~= nil and Debounce == false then
Debounce = true
s.Click:Play()
s.CFrame = s.CFrame * CFrame.new(0,-.1,0)
Debounce = false
s.TouchEnded:Connect(function(ended)
if humanoid ~= nil and Debounce == false then
Debounce = true
s.Click:Play()
s.CFrame = s.CFrame * CFrame.new(0,.1,0)
Debounce = false
end
end)
end
end)