#how can i make a safezone?
10 messages · Page 1 of 1 (latest)
if youre ok with the safesone being circular you can check for the distance from a point and a player, and when the player is hit, check if the distance is less than the radius of the safezone (use (Vector - Vector).Magnitude to get distance ). or if u want the safezone to be a cuboid u can use region3 or something similar
local distance = ( player.Character.PrimaryPart.Position - Safezone.Position ).Magnitude
and then while damaging, check if its less than a set radius.
use region3
thank you!