Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Infinite Yield Possible at ServerScriptService?

Asked by 5 years ago

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)
0
The contents of ServerScriptService and ServerStorage are inaccessible to clients, their contents are not replicated to clients at all. Use RemoteEvents and/or RemoteFunctions. User#19524 175 — 5y
0
Also don't use Trello as a database, that's not what it's for. Additionally, you got a warning, not an error. Errors are printed as red, whilst warnings in yellow/orange. User#19524 175 — 5y
0
I have no idea how to use Remotes :/ Igotthemoney2212 -3 — 5y

1 answer

Log in to vote
0
Answered by
Hizar7 102
5 years ago

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

0
Hey I switched to a server script and it got rid of all the errors but it doesn’t work. I will mark your answer though and ask a new question. Igotthemoney2212 -3 — 5y
Ad

Answer this question