Advertisement
Dsaqwed123

Dancer style

Apr 18th, 2024
1,351
2
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
LScript 5.55 KB | Gaming | 2 0
  1. -- dancer script
  2.  
  3.  
  4. local plr = game.Players.LocalPlayer
  5. local pgui = plr.PlayerGui
  6. local interf = pgui.Interface
  7. local bt = interf.Battle
  8. local main = bt.Main
  9.  
  10. local function update_action(v, data)
  11.     local move = game.ReplicatedStorage.Moves[v.Value]
  12.  
  13.     for i,v in pairs(data) do
  14.         local value, name = v.Value, v.Name
  15.  
  16.         local str = move:FindFirstChild(name)
  17.  
  18.         if str.ClassName == "Animation" then
  19.             str.AnimationId = value
  20.         else
  21.             if not str then
  22.                 str = Instance.new("StringValue")
  23.                 str.Value = value
  24.                 str.Name = name
  25.                 str.Parent = move
  26.             else
  27.                 str.Value = value
  28.             end
  29.         end
  30.     end
  31. end
  32.  
  33. local rushstyle = game.ReplicatedStorage.Styles.Rush
  34. local brawlerstyle = game.ReplicatedStorage.Styles.Brawler
  35. local beaststyle = game.ReplicatedStorage.Styles.Beast
  36.  
  37. --rushstyle["H_Stunning"]:Clone().Parent = brawlerstyle
  38.  
  39. -- all of em
  40.  
  41. local styles = {
  42.     [brawlerstyle] = {
  43.         actions = {
  44.             "StanceStrike",
  45.             "H_BlockingEnemy"
  46.         },
  47.         to = rushstyle
  48.     },
  49. }--combined styles
  50.  
  51. -- custom styles
  52.  
  53. local custom_actions = {
  54.     [rushstyle] = {
  55.         {
  56.             Name = "H_Distanced",
  57.             Value = "H_Escape"
  58.         },
  59.  
  60.         {
  61.             Name = "H_AirFallen",
  62.             Value = "H_Knockout"
  63.         },
  64.  
  65.         {
  66.             Name = "H_FallenDown",
  67.             Value = "H_FallenFinisher"
  68.         },
  69.  
  70.         {
  71.             Name = "Strike1",
  72.             Value = "FGetup"
  73.         },
  74.  
  75.         {
  76.             Name = "VisualName",
  77.             Value = "Dancer"
  78.         },
  79.  
  80.         {
  81.             Name = "Color",
  82.             Value = Color3.new(1,0,1)
  83.         },
  84.  
  85.         {
  86.             Name = "Speed",
  87.             Value = 1.5
  88.         }
  89.     },
  90. }
  91.  
  92. -- style complier
  93.  
  94. local function create_value(value, parent)
  95.     local type = typeof(value)
  96.  
  97.     if type == "number" then
  98.         if math.floor(value) == value then
  99.             local z = Instance.new("IntValue")
  100.             z.Parent = parent
  101.             return z
  102.         end
  103.  
  104.         local z = Instance.new("NumberValue")
  105.         z.Parent = parent
  106.         return z
  107.     end
  108.  
  109.     local lookup = {
  110.         string = "StringValue",
  111.         Boolean = "BoolValue",
  112.         Color3 = "Color3Value"
  113.     }
  114.  
  115.     local z = Instance.new(lookup[type] or lookup.string)
  116.     z.Parent = parent
  117.     return z
  118. end
  119.  
  120. for style, actions in pairs(custom_actions) do
  121.     for i,v in pairs(actions) do
  122.         if not style:FindFirstChild(v.Name) then
  123.             local stringval = create_value(v.Value, style)
  124.             for i,v in pairs(v) do
  125.                 stringval[i] = v
  126.             end
  127.         else
  128.             local t = style:FindFirstChild(v.Name)
  129.             for i,v in pairs(v) do
  130.                 t[i] = v
  131.             end
  132.         end
  133.     end
  134. end
  135.  
  136. for style, actions in pairs(styles) do
  137.     for i,actionname in pairs(actions.actions) do
  138.         local action = style:FindFirstChild(actionname)
  139.  
  140.         if not action then
  141.             continue
  142.         end
  143.  
  144.         if actions.to:FindFirstChild(actionname) then
  145.             actions.to[actionname]:Destroy()
  146.         end
  147.  
  148.         action:Clone().Parent = actions.to
  149.     end
  150. end
  151.  
  152. rushstyle.Rush1.Value = "RPunch1"
  153. rushstyle.Rush2.Value = "RPunch2"
  154. rushstyle.Rush3.Value = "RPunch5"
  155.  
  156. rushstyle.Rush4.Value = "RPunch2"
  157. rushstyle.Rush5.Value = "RPunch1"
  158. rushstyle.Rush6.Value = "RPunch5"
  159.  
  160. rushstyle.Strike1.Value = "RPunch1"
  161. rushstyle.Strike2.Value = "RPunch2"
  162. rushstyle.Strike3.Value = "RPunch5"
  163. rushstyle.Strike4.Value = "RPunch3"
  164. rushstyle.Strike5.Value = "RPunch4"
  165. rushstyle.Strike6.Value = "B2Strike3"
  166.  
  167. local plr = game.Players.LocalPlayer
  168. local pgui = plr.PlayerGui
  169. local interf = pgui.Interface
  170. local bt = interf.Battle
  171. local main = bt.Main
  172.  
  173. local function sendNotification(text, color)
  174.     if not color then color = Color3.new(1, 1, 1) end
  175.     pgui.Notify.Awards.ChildAdded:Once(function(c)
  176.         if c.Text == text then
  177.             c.TextColor3 = color
  178.             coroutine.wrap(function()
  179.                 local con;
  180.                 con = game:GetService("RunService").RenderStepped:Connect(function()
  181.                     if not c then
  182.                         con:Disconnect()
  183.                         return
  184.                     end
  185.                     c.TextColor3 = color
  186.                 end)()
  187.             end)()
  188.         end
  189.     end)
  190.     pgui["เคจเฅ‹เคŸเคฟเคซ"]:Fire(text)
  191. end
  192.  
  193. function playticksound()
  194.     local sfx = Instance.new("Sound", workspace)
  195.     sfx.SoundId = "rbxassetid://12222183"
  196.     sfx.Volume = 2
  197.  
  198.     game:GetService("SoundService"):PlayLocalSound(sfx)
  199.  
  200.     spawn(function()
  201.         wait(2)
  202.         sfx:Destroy()
  203.     end)
  204. end
  205.  
  206. local uis = game:GetService("UserInputService")
  207. local speed = 2.5
  208.  
  209. for i=1,8 do
  210.     update_action(rushstyle:FindFirstChild("Rush"..i), {
  211.         {
  212.             Name = "AniSpeed",
  213.             Value = speed
  214.         },
  215.  
  216.         {
  217.             Name = "ComboAt",
  218.             Value = 0.35 / speed
  219.         }
  220.     })
  221. end
  222.  
  223. local color = Color3.new(1, 1, 1)
  224.  
  225. local grabstrike = rushstyle:WaitForChild("GrabStrike")
  226. local guruparry = brawlerstyle:WaitForChild("GrabStrike"):Clone()
  227.  
  228. sendNotification("Press X to swap counter step and parry on Dancer", color)
  229.  
  230. uis.InputBegan:Connect(function(key)
  231.     if game.UserInputService:GetFocusedTextBox() == nil then
  232.         if key.KeyCode == Enum.KeyCode.X then
  233.             playticksound()
  234.             if grabstrike.Parent ~= nil then
  235.                 grabstrike.Parent = nil
  236.                 guruparry.Parent = rushstyle
  237.                 sendNotification("Parry enabled", color)
  238.             else
  239.             grabstrike.Parent = rushstyle
  240.                 guruparry.Parent = nil
  241.                 sendNotification("Quick step enabled", color)
  242.             end
  243.         end
  244.     end
  245. end)
  246.  
  247. local status = plr.Status
  248.  
  249. local function update()
  250.     if status.Heat.Value <= 75 then
  251.         rushstyle.H_Distanced.Value = "H_Escape"
  252.         rushstyle.H_AirFallen.Value = "H_Whirl"
  253.     else
  254.         rushstyle.H_Distanced.Value = "H_FaceTwist"
  255.         rushstyle.H_AirFallen.Value = "H_Knockout"
  256.     end
  257. end
  258.  
  259. for i,v in pairs(game.ReplicatedStorage.Styles.Rush:GetChildren()) do
  260.     if v:IsA("Animation") and v.Name:find("Evade") then
  261.         v.AnimationId = "rbxassetid://8223592585"
  262.     end
  263. end
  264.  
  265. interf.Client.Disabled = true
  266. task.wait(1)
  267. interf.Client.Disabled = false
  268. task.wait(0.1)
  269.  
  270. while task.wait() and not interf.Client.Disabled do
  271.     update()
  272. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement