Advertisement
4zx16

Headless and Korblox Command

Oct 22nd, 2021 (edited)
1,149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.37 KB | None | 0 0
  1. game.Players.PlayerAdded:Connect(function(player)
  2.     player.Chatted:Connect(function(msg)
  3.  
  4.         local Headless = {"@headless", "/headless", ":headless"}
  5.         local Unheadless = {"@unheadless", "/unheadless", ":unheadless"}
  6.  
  7.         for i, HeadlessCommand in pairs(Headless) do
  8.             if msg:sub(1, HeadlessCommand:len()):lower() == HeadlessCommand:lower() then
  9.                 player.Character.Head.Transparency = 1
  10.                 player.Character.Head.face.Transparency = 1
  11.             else
  12.                 if player.Character.Head.Transparency == 1 then
  13.                     for i, UnheadlessCommand in pairs(Unheadless) do
  14.                         if msg:sub(1, UnheadlessCommand:len()):lower() == UnheadlessCommand:lower() then
  15.                             player.Character.Head.Transparency = 0
  16.                             player.Character.Head.face.Transparency = 0
  17.                         end
  18.                     end
  19.                 end
  20.             end
  21.         end
  22.     end)
  23. end)
  24. -- [ ^^ HEADLESS COMMAND ^^ ] --
  25.  
  26. game.Players.PlayerAdded:Connect(function(player)
  27.     player.CharacterAdded:Connect(function(chr)
  28.         player.Chatted:Connect(function(msg)
  29.  
  30.             local Korblox = {"@korblox", "/korblox", ":korblox"}
  31.             local Humanoid = chr:WaitForChild("Humanoid")
  32.             local Desc = Humanoid:GetAppliedDescription()
  33.  
  34.             Desc.RightLeg = 139607718
  35.             for i, KorbloxCommand in pairs(Korblox) do
  36.                 if msg:sub(1, KorbloxCommand:len()):lower() == KorbloxCommand:lower() then
  37.                     Humanoid:ApplyDescription(Desc)
  38.                 end
  39.             end
  40.         end)
  41.     end)
  42. end)
  43.  
  44. -- [ ^^ KORBLOX COMMAND ^^ ] --
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement