local part = script.Parent --Paste this in a script and put that script inside a part
local damage = 100 --Damage the part will do (100 = Instakill)
part.Touched:Connect(function(hit) --The function below will fire when the part is touched
--hit = the thing that touched the part
local hum = hit.Parent:FindFirstChildWhichIsA("Humanoid") --checks if the thing that touched the part is a part of a player or anything that has a "Humanoid"
if hum then --if it was then the player will take 100 damage
hum:TakeDamage(100)
end
end)