Advertisement
Guest User

asdfeweasdwq

a guest
Mar 20th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1.  
  2.  
  3. script.Parent.Touched:Connect(function(hit)
  4. if hit.Parent:FindFirstChild("Humanoid") then
  5. local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
  6. game.ReplicatedStorage.Vote:FireClient(plr)
  7.  
  8.  
  9. local TrelloAPI = require(game.ServerScriptService:WaitForChild("TrelloAPI"))
  10. local BoardID = TrelloAPI:GetBoardID("HES")
  11. local ListID = TrelloAPI:GetListID("Placed Elections",BoardID)
  12.  
  13. local Cards = TrelloAPI:GetCardsInList('5c92b1c60fc13d2d5db10b83')
  14.  
  15. if Cards.Title == ""..plr.username then
  16.  
  17. print("Denied Access, already voted")
  18.  
  19. else
  20.  
  21. local NewCard = TrelloAPI:AddCard(""..plr,"Election System",ListID)
  22.  
  23.  
  24. end
  25.  
  26.  
  27.  
  28.  
  29. end
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement