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

Delete if false?

Asked by
NotSoNorm 777 Moderation Voter
9 years ago

I'm trying to make so if the person changes the text inside the script the board will disable its self (to prevent copier's)

if 
    local msg = "Made by NotSoNorm"
    then script.Parent.Parent.Enabled = true
elseif
    local msg = "???" --Help??
    then script.Parent.Parent:Remove()
end

I need it so if it is anything but "Made by NotSoNorm" it will remove the board. Help?

0
This doesn't really prevent copiers. Someone can easily go into the script and remove that. Just saying to let you know, it's not a bad idea to do this though. dyler3 1510 — 9y
0
its going to be hidden :) NotSoNorm 777 — 9y

1 answer

Log in to vote
-3
Answered by 9 years ago

+1 me. -_-

if 
    local msg = "Made by NotSoNorm"
    then script.Parent.Parent.Enabled = true
elseif
    local msg ~= "Made by NotSoNorm" 
    then script.Parent.Parent:Remove()
end

0
-_- TochiWasHere 10 — 9y
Ad

Answer this question