Can someone tell me the elements/steps to making abilities?

So my goal is to make a cool anime battlegrounds game, however even though I have moderate scripting skill, I don’t know the steps to making abilities AT ALL… so can someone teach me the individual steps such as raycasting (I think?)
like just everything I need to know to do it

Im trying to help you as much as i can, but i dont know how to make certain parts that battlegrounds games include (attack cancel) but i can help you with the rest.

  1. Script the basic client to server remote with server side cooldowns so theyre not exploitable
    server script example for cooldowns:
-- sorry for bad formatting
local remote = game:GetService("ReplicatedStorage").Remote
local playerCooldowns = {}
local AbilityLastUse = 0 -- dont change
local AbilityCooldown = 20 -- change

remote.OnServerEvent:Connect(function(plr)
  if not playerCooldowns[plr] or playerCooldowns[plr] <= time() then
		playerCooldowns[plr] = time() + AbilityCooldown
  --ability code here
  else
		local remainingTime = playerCooldowns[plr] - time()
		print(plr.Name .. " is on cooldown. Remaining time: " .. remainingTime .. " seconds.")
  end
end)
  1. For the hitboxes, one that worked for me in the past is muchacho hitbox
    link: https://create.roblox.com/marketplace/asset/9645263113/MuchachoHitbox%3Fkeyword=&pageNumber=&pagePosition=
    tutorial: https://youtu.be/kXXYEo3cXCY

  2. Animate/Get the animations for your abilities

  3. For the visual/audio effects, you can either use meshes or particle emmiters, you can use modules to make them more organized and run them in the server script for the ability, but you can do this any way you want

  4. Add attack cancel if you want to make it like the rest of the battlegrounds games, but i dont know how to implement it

  5. Put it all together and youre done

Hope this helped, if i missed something let me know

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.