• No Access Area
    1 replies, posted
im loooking for a script that will cause a player to be killed, or have a prop deleted when it comes within a certain radius of a coordinate.
[lua] local position = Vector(0, 0, 0) local radius = 200 hook.Add("Think", "RemoveOrKill", function() for k, v in pairs(ents.FindInSphere(position, radius)) do if v:IsPlayer() then if v:Alive() then v:Kill() end elseif v:GetClass() == "prop_physics" then v:Remove() end end end) [/lua]
Sorry, you need to Log In to post a reply to this thread.