detect touch roblox code example
Example: roblox how to detect human touchinhg
--only for roblox obv
script.Parent.Touched:connect(function(hit)
if hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") then
--code
end
end)
--only for roblox obv
script.Parent.Touched:connect(function(hit)
if hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") then
--code
end
end)