Script that only I can use

This work yes in your game at least … cause they can just remove theOck unless you hide in using weird namings and smart ways n stuff

1/100 darkdex users actually know how to script, and will probably be scared of editing it in any way.

Do something like this

local player = game.Players.LocalPlayer

if player.UserId == 'Your User ID HERE' then
--Your code here
--Code only runs if its you the owner
else
script:Destroy()--Destroy this if its not owner or just dont do anything at all
end

No no I mean anybody will see the effect, just nobody will be able to use it in their games. This script prevents anybody but me from seeing it, I want people to be unable to USE it, not see it.

yeah, soo all of the suggestions we’ve listed would work

So you want the script to work for only your game? If so then I can change it if you want to match what I just said

Not really. Because if I delete it, nothing will happen, and if I use that suggestion, only I will see it.

Yeah I am too lazy to open studio login and open the game, so that would be great :smiley:

If the script is a local script, deleting it wouldn’t affect anything.

Here is this what you want

local player = game.Players.LocalPlayer

if game.PlaceId == ‘Your place ID HERE’ then
–Your code here
–Code only runs if its your place
else
script:Destroy()–Destroy this if its not owner or just dont do anything at all
end

1 Like

It would after the first block was hit, I just tested it in studio 10 mins ago

So I would have to edit it a bit more depending on the game itself, but that would still work, right?

Yes what it does is checks the games place id, if it matches your games place id then it can run, if not then it destroys the script itself

1 Like

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