Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script.Parent.Touched:Connect(function(hit)
- if hit.Parent:FindFirstChild("Humanoid") then
- local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
- game.ReplicatedStorage.Vote:FireClient(plr)
- local TrelloAPI = require(game.ServerScriptService:WaitForChild("TrelloAPI"))
- local BoardID = TrelloAPI:GetBoardID("HES")
- local ListID = TrelloAPI:GetListID("Placed Elections",BoardID)
- local Cards = TrelloAPI:GetCardsInList('5c92b1c60fc13d2d5db10b83')
- if Cards.Title == ""..plr.username then
- print("Denied Access, already voted")
- else
- local NewCard = TrelloAPI:AddCard(""..plr,"Election System",ListID)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement