How to fireclient all player withtin range or magnitude

How to fireclient all player withtin range or magnitude, To be clear i wanted to fireclient on all player with the range or magnitude. :sunglasses:

local position = Vector3.new(0, 4, 16)
local radius = 50

for i, player in ipairs(game.Player:GetPlayers()) do
    -- get the players character
    local character = player.Character
    -- if the player does not have a character skip this player
    if character == nil then continue end
    -- get the magnitude from the characters position to the position we set above
    local magnitude = (character.PrimaryPart.Position - position).Magnitude
    -- if the magnitude is greater then the radius we set above then skip this player
    if magnitude > radius then continue end
    -- send the event to this player as they are within range
    game.ReplicatedStorage.RemoteEvent:FireClient(player, "Hello")
end

Double colon mistake you did there boi

Thanks, you solved my issues! :sunglasses: :sunglasses: :sunglasses: