This works in studio but not in game, how do I fix this? I have the same script in workspace and it works. This script is placed in startergui.
01 | local http = game:GetService( "HttpService" ) |
02 | local Trello = "lI46otVc" |
03 | local Key = "secret" -- I removed the key for safety |
04 | local Token = "secret" -- I removed the token for safety |
05 | local get = http:GetAsync( 'https://api.trello.com/1/lists/5af9b06b147bcf8c3833dd60/cards/?key=' ..Key.. '&token=' ..Token, true ) |
06 | local tab = http:JSONDecode(get) |
07 | local de = false |
08 |
09 | while true do |
10 | for _,h in pairs (tab) do |
11 | if de = = true then |
12 | wait( 1 ) |
13 | elseif de = = false then |
14 | de = true |
15 | wait( 1 ) |
Depends on what you are trying to use it for. If you're trying to make it access a server file use a FireServer() function
1 | -- LocalScript |
2 |
3 | local ReplicatedStorage = game:GetService( "ReplicatedStorage" ) |
4 | local createPartEvent = ReplicatedStorage:WaitForChild( "CreatePartEvent" ) |
5 |
6 | createPartEvent:FireServer() |
Not my script this was taken from the wiki but can be made by anyone