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

[HTTP Requests not enabled]?

Asked by 10 years ago

Hello,

I am scripting a LocalScript, that checks a player's name with HTTPService VS a Database.

The script is a LocalScript in the StarterGui, that clones a rankGUI that goes over the players head.

HTTPService works with a script in workspace, but not the LocalScript in StarterGUI.

Anybody know why?

Thank you

1 answer

Log in to vote
1
Answered by 10 years ago

You cannot use HttpService from a LocalScript. If you need to use it, then you need to make the requests from a Server Script and use RemoteFunctions to cross the data over to the client.

0
Alright, I have the ServerScript and LocalScript in StarterGUI, and a "RemoteFunction" object in the LocalScript, and it errors, "RemoteFunction is not a valid member of LocalScript"? How should I place this? I just need to pass localplayer to the script, and a value from a php request to the localscript. Thank you in advance. codyseveridesso 0 — 10y
0
You should put the remotefuncction in replicatedstorage User#11893 186 — 10y
Ad

Answer this question