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

[HTTP Requests not enabled]?

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

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.

2 comments

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.

0

You should put the remotefuncction in replicatedstorage

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