Advertisement
SHAD_vm

AFS

Jan 18th, 2022 (edited)
767
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[ Anime Fighting Simulator
  2.     Auto Power/Skill
  3.     made by SHAD_vm#5041
  4.  
  5.  this script may bugged if you run it multiple times
  6.  some powers/skills dont work correctly so its recommended to change them for better efficiency
  7. --]]
  8.  
  9. local ScriptStartKey = Enum.KeyCode.P -- u can change P to anything but without the semicolon
  10. -- just press a key to enable or disable this script
  11.  
  12. local BasicSkillsKeys = {"E","R","T","Y","U","F","G","H","J","K","L","N","M"} --u can remove or add any key with your skills
  13. local SpecialsSkillKey = "C" -- X,Z,C,V
  14. local mouse = game.Players.LocalPlayer:GetMouse()
  15.  
  16.  
  17. _G.on = false -- dont touch it
  18. local function abc2()
  19. local Set2 =
  20. {
  21.     ["MouseCF"] = mouse.hit.p,
  22.     ["Key"] = SpecialsSkillKey,
  23.     ["MousePos"] = mouse.hit.p,
  24.     ["Request"] = "Power",
  25.     ["MouseHit"] = mouse.Target
  26. }
  27. game:GetService("ReplicatedStorage").RSPackage.Events.GeneralEvent:FireServer("SpecialAction", Set2)
  28. end
  29. local function abc()
  30. while _G.on do wait(1)
  31. for index, value in pairs(BasicSkillsKeys) do
  32.     --print(index, value)
  33. local Set =
  34. {
  35.     ["External"] =
  36. {
  37.     ["MouseP"] = mouse.hit.p
  38. },
  39.     ["Key"] = value
  40. }
  41. game:GetService("ReplicatedStorage").RSPackage.Events.GeneralFunction:InvokeServer("UseP", Set)
  42. abc2()
  43. end
  44. end
  45. end
  46.  
  47. game:GetService("UserInputService").InputBegan:connect(function(input, Processed)
  48.     if not Processed then
  49.         if input.KeyCode == ScriptStartKey then
  50.   if  _G.on == true then
  51.      _G.on = false
  52.    else
  53.     _G.on = true
  54.     end
  55.     abc()
  56.         end
  57.     end
  58. end)
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement