RandomMagics

Critical Legends Gui Class

Jan 17th, 2022
815
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. --// Services \\--
  2. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  3. local Players = game:GetService("Players")
  4.  
  5. --// Variables \\--
  6. local Player = Players.LocalPlayer
  7. local StatsChange = ReplicatedStorage:WaitForChild("Remotes"):WaitForChild("StatsChange")
  8. local Storage = ReplicatedStorage:WaitForChild("CS_Keys"):WaitForChild("CS_Storage_Key")
  9.  
  10. --// Get Styles \\--
  11. local Styles = {}
  12. for _, A_1 in next, Storage:GetChildren() do
  13. table.insert(Styles, A_1.Value)
  14. end
  15. table.sort(Styles)
  16.  
  17. --// UI Library \\--
  18. local Library = loadstring(game:HttpGetAsync('https://raw.githubusercontent.com/Just-Egg-Salad/roblox-scripts/main/uwuware'))()
  19. local Window = Library:CreateWindow("Style Change by [CW]")
  20. Window:AddList({
  21. text = "Style",
  22. values = Styles,
  23. callback = function(A_2)
  24. for _, A_1 in next, Storage:GetChildren() do
  25. if A_1.Value == A_2 then
  26. StatsChange:FireServer("CombatStyle", {
  27. Base = {Position = Player.Character.HumanoidRootPart.Position},
  28. CombatStyle = {Value = A_1.Name}
  29. })
  30. end
  31. end
  32. end
  33. })
  34. Library:Init()
Advertisement
Add Comment
Please, Sign In to add comment