Hello! I am trying to make a localscript that sends a card to a trello board, I thought I had my code correct but for some reason it doesn't work fully. I have a feeling that it stops at
local TrelloAPI = require(game:GetService('ServerScriptService'):WaitForChild("TrelloAPI"));
I believe this because it gives the following error: https://gyazo.com/dc67137a28174b54c486a6a2426b7dc5
Here is my code..
local name = script.Parent.NameBox; local reason = script.Parent.ReasonBox; script.Parent.send.MouseButton1Click:connect (function() local TrelloAPI = require(game:GetService('ServerScriptService'):WaitForChild("TrelloAPI")); local BoardID = TrelloAPI:GetBoardID("Inactivity"); local ListID = TrelloAPI:GetListID("Notices",BoardID) local NewCard = TrelloAPI:AddCard("Inactivity Notice Incoming...","Notice from:"..name"\n Reason:"..reason"",ListID) wait(5) game.Players.LocalPlayer:kick("Sent!") end)
Is there anyway you can put this module script into replicatedStorage ? You wont be able to access anything Server side from a local script without a remote event, To use a remote Event is quite simple, You can browse the questions asked here if you prefer to use one because people ask about remote events everyday