My code is
local part = script.Parent
local detector = part.ClickDetector
local cup = Player.Character:FindFirstChild("Decaf") or player.Character:FindFirstChild("Mocha") or player.Character:FindFirstChild("Regular") or player.Character:FindFirstChild("Frappe") or player.Character:FindFirstChild("HotCococa") or player.Character:FindFirstChild("Latte")
local debounce = false
local function onPartTouched(otherPart)
local partParent = otherPart.Parent
local humanoid = partParent:FindFirstChildWhichIsA("Humanoid")
if humanoid then
if cup then
humanoid.Health = 0
end
end
end
part.Touched:Connect(onPartTouched)
Shouldnt this kill me if I have on of those cups in my hand?

1 comment
Is this all your code? You're not leaving anything out? Because Player is a variable, what is it?