Hi, i'm making a magic type game, and i need help.
local hitS = false
if hitS == false then
local allie1 = game.Players[player.Name].PlayerGui.Allie1
local allie2 = game.Players[player.Name].PlayerGui.Allie2
local allie3 = game.Players[player.Name].PlayerGui.Allie3
hitS = true
local hum = hit.Parent:FindFirstChild("Humanoid")
hum:TakeDamage(45)
This is not the whole script but its the damage portion, i want to make it so i can hit multiple people , but if i remove hitS then i keeps doing 45 damage to everyone in the hitbox area. I want to make it so if there is 3 people in the hitbox area it does just 45 damage to everyone.

2 comments
Can you show us where the "hit" variable comes from?
From a .Touched Function