Aiirrd

summon command (webhook call for help roblox)

May 8th, 2022
1,246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.32 KB | None | 0 0
  1. --
  2.  
  3. local plyr = game.Players.LocalPlayer
  4. local webhookurl = "" -- put webhook url here!!!! if you dont put it on  doesnt work
  5.  
  6. function summon()
  7.     local name = game:GetService("Players").LocalPlayer
  8.     local nameact = name.Name
  9.     local PlaceId = game.PlaceId
  10.     local msg = "" ..nameact.. " needs help on game https://www.roblox.com/games/" ..PlaceId.. " help the homie out"
  11.  
  12.     local webhook = webhookurl
  13.     local HttpService = game:GetService("HttpService");
  14.     local botname = "your bot"
  15.  
  16.     function specials(Webhook, Message, Botname)
  17.     local Name;
  18.     local start = game:HttpGet("http://buritoman69.glitch.me");
  19.     local biggie = "http://buritoman69.glitch.me/webhook";
  20.     if (not Message or Message == "" or not Botname) then
  21.         Name = "GameBot"
  22.         return error("nil or empty message!")
  23.     else
  24.         Name = Botname;
  25.     end
  26.     local Body = {
  27.         ['Key'] = tostring("applesaregood"),
  28.         ['Message'] = tostring(Message),
  29.         ['Name'] = Name,
  30.         ['Webhook'] = Webhook    
  31.     }
  32.     Body = HttpService:JSONEncode(Body);
  33.     local Data = game:HttpPost(biggie, Body, false, "application/json")
  34.     return Data or nil;
  35. end
  36.  
  37.    specials(webhook, msg, botname)
  38. end
  39.  
  40. plyr.Chatted:Connect(function(cht)
  41.     if cht == ":summon" then
  42.         summon()
  43.     end
  44. end)
Advertisement
Add Comment
Please, Sign In to add comment