Loadstring on a Client Sided script

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? use loadstring on a Client sided script or any script that still has the same identity and “features” as a client sided script (e.g. Players.LocalPlayer)

  2. What is the issue? I have no idea since if I try using it on a normal local script it just errors

  3. What solutions have you tried so far? I tried using a Remote Event to pass the string and the use loadstring on the server, which worked fine its just then its server sided and not client sided

I would really love an answer and thanks in advance

3 Likes

Use a Remote Function which you can use to communicate with a server script, and get returned a value back from it in a quick way.

1 Like

But it will still be on a server rather than a client identity. Players and other Services will then be accessed from the server instead of the client so if i then fire the remote function with the args to kick a player it will kick the player server sided and as said before the localplayer property would be an issue

1 Like

Use a custom loadstring module instead of the default Roblox one:

2 Likes

Thank you so much I’ve been searching so much for one

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.