Advertisement
SjorsApenWorst

cuteware lua documentation

May 31st, 2020
6,895
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.14 KB | None | 0 0
  1. local cuteware = game:GetService("Cuteware")
  2. --[[
  3. --events
  4. KillEvent
  5. HitEvent
  6. --functions
  7. Chat(string) -- string: text to chat
  8. SetYaw(int) -- int: yaw from camera 0-360
  9. GetNearest(bool) -- bool: visible check
  10. GetSetting(string) --string: name of setting, returns value of setting (example, true, 180, "Pink Daylight")
  11. ChangeSetting(string,int/bool/string) -- string: name of setting, int/bool/string: what to change the setting's setting to (example: true, 100, "Cool")
  12. --other
  13. getgenv().customyaw -- should be set to true if you want to use ur own yaw using setyaw, should be set to false to disable.
  14. getgenv().custompitch -- should be set to true if you change pitch via script if you dont have anti-aim enabled, if you want to use customyaw and custompitch for example.
  15. ]]
  16. local tabs = cuteware:GetTabs() -- return a table of all tabs
  17. --[[
  18. LegitTab
  19. RageTab
  20. VisualsTab
  21. MiscTab
  22. ConfigTab
  23. ScriptTab
  24. ]]
  25. local groupboxes= cuteware:GetGroupboxes() -- return a table of all groupboxes (that are already in the cheat itself, groupboxes made by scripts wont show up in this table.)
  26. --[[
  27. LegitGroupbox
  28. RageGroupbox
  29. AntiAimGroupbox
  30. VisualsGroupbox
  31. VisualsGroupbox2
  32. VisualsGroupbox3
  33. MiscGroupbox
  34. ConfigGroupbox
  35. ScriptGroupbox
  36. ]]
  37.  
  38. cuteware.HitEvent.Event:connect(function(hp,plr,part)
  39.     print("Hit enemy",hp)
  40. end)
  41. cuteware.KillEvent.Event:connect(function(killedplr)
  42.     print("Kill enemy",killedplr)
  43. end)
  44.  
  45. local tab = tabs.MiscTab:CreateGroupbox("LUA EPIC",false) -- true means its on the second row
  46.  
  47. local checkbox = tab:CreateCheckbox("checkbox",function(toggle)
  48.     print(toggle)
  49. end)
  50. local slider = tab:CreateSlider("slider",100,function(amount)
  51.     print(amount)
  52. end)
  53. local keybind = tab:CreateKeybind("keybind",Enum.KeyCode.LeftAlt,function(key) -- keybinds are strings, so do like if tostring(key.KeyCode) == THEkeybind then
  54.     print(key)
  55. end)
  56. local colorpicker = tab:CreateColorpicker("colorpicker gaming",function(color)
  57.     print(color)
  58. end)
  59. local button = tab:CreateButton("pressed",function()
  60.     print("button pressed")
  61. end)
  62. local textbox = tab:CreateTextbox("textbox") --returns the textbox itself, so use textbox.text
  63. local slidetoggle = tab:CreateSliderToggle("slidetoggle",100,function(toggle,value)
  64.     print(value)
  65. end)
  66. local colorpickertoggle = tab:CreateColorpickerToggle("colorpickertoggle",function(toggle,color)
  67.     print(toggle,color)
  68. end)
  69. local dropdown = tab:CreateDropdown("dropdown",{"1","2","3","4"},function(choice) -- returns a refresh function example: dropdown:Refresh(table,bool), (bool is to clear the text)
  70.     print(choice)
  71. end)
  72. local dropdowntoggle tab:CreateDropdownToggle("dropdowntoggle",{"aaaaaaaaa"},function(choice,toggle) -- returns a refresh function example: dropdown:Refresh(table,bool), (bool is to clear the text)
  73.     print(choice,toggle)
  74. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement