Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Infinite Yield Possible at ServerScriptService?

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)

3 comments

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.

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.

0

I have no idea how to use Remotes :/

1 answer

✓ Accepted answer

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

1 comment

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.