Im making a kill script. Sop if this frame is visible it will kill the person who’s seeing it. Like it will just kill that person who sees it. Does that make sense? Well I made the first part but I’m missing a small chunk in the middle.
local player = game.Players.LocalPlayer
script.Parent:GetPropertyChangedSignal('Visible'):Connect(function()
local visible = script.Parent.Visible
if visible then
player.Character.Humanoid.Health = 0
end
end)