Advertisement
CyMC888

Untitled

May 5th, 2024
710
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.62 KB | None | 0 0
  1. if not host:isHost() then return end
  2.  
  3. local panels = require('panels.main')
  4.  
  5.  
  6.  
  7. local main = panels.newPage('main')
  8.  
  9.  
  10.  
  11. --                                                              Functions
  12.  
  13. function pings.toggleGlitch(t, self)
  14.  
  15.     animations.model.glitch:setPlaying(t)
  16.  
  17.     print(t)
  18.  
  19.     if t then
  20.  
  21.         host:setActionbar('Glitch Animation : True')
  22.  
  23.     else
  24.  
  25.         host:setActionbar('Glitch Animation : False')
  26.  
  27.     end
  28. end
  29.  
  30.  
  31.  
  32. panels.setPage(main)
  33.  
  34. main:newText():setText('Avatar Settings'):setSize(1.5, 1.5):setMargin(4)
  35. main:newToggle():setText('Glitch Effect'):onToggle(pings.toggleGlitch)  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement