These two events would be, onLooked, and LookedEnded.
You put these in a part, and whenever a player looks directly at the part, it does something to them.
EXAMPLE:
function onLooked(look)
if look.Parent:findFirstChild("Humanoid") then
if look.Parent.Humanoid ~= nil then
look.Parent.Humanoid.Health = 0
end
end
end
script.Parent.onLooked:connect(look)
-Sentinel 12packkid of The Lycan Empire
-www.roblox.wikia.com/Wiki/User:12packkid |