The problem is that I want my attack to be able to deal damage to multiple targets but if I don't use a debounce then it will deal that damage like 50 times to each player, and if I use a debounce it will only damage one player. How would I make it so it can hit multiple targets while it also has a debounce?
I tried using a table so when a player gets hit their name gets puts inside the table, but I don't know what to do next
This is what the hit detection looks like right now:
ShockWave2.Touched:Connect(function(hit)
local humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid then
local Table = {}
table.insert(Table,game.Players:GetPlayerFromCharacter(hit.Parent))

3 comments
I fixed it up for you, finally got access to studio lol.
To answer your question on how to learn stuff like that on your own, I personally watched a lot of tutorials on youtube and read up on the roblox developer wiki a lot. Also, a good practice in scripting is to have a clear plan of how you will accomplish something before you start writing. You knew you wanted a table, but you didn't know how to check for a player. Next step is research and learn.
Also if my answer did end up helping, it would be greatly appreciated if you accepted it :)