Touch Function Roblox
Touch Function Roblox. value = true scriptParentTouchedConnect(function(hit) if hitParent == nil then print(“nil”) return end local humanoid = hitParentFindFirstChild(“Humanoid”) if (humanoid ~= nil) then Checks if the part has a humanoid (basically checking if only a player touches the part) if value == true then value = false makes your variable false print(“a”) humanoidHealth =…