firetouchinterest
Simulate a physical Touched or TouchEnded event between two BaseParts.
function firetouchinterest(part1part1BasePartThe initiating BasePart.: BasePart, part2part2BasePartThe BasePart that should be touched.: BasePart, toggletoggleboolean | numbertrue or 0 = simulate touch start. false or 1 = simulate touch end.: boolean | number): ()Usage
Trigger a kill brick touch event
local killBrick = workspace:FindFirstChild("KillBrick")
local char = game.Players.LocalPlayer.Character
if killBrick and char then
local hrp = char:FindFirstChild("HumanoidRootPart")
firetouchinterest(hrp, killBrick, true) -- start touch
task.wait(0.1)
firetouchinterest(hrp, killBrick, false) -- end touch
end