Posted
Hi!
In this thread I'd like to ask about one simple thing. Will this code work? If there are any spell mistakes in the code just ignore it. So basically what am I trying to achieve is a key system on lua, which will ask for code and I would use this script as a "button local script". Anyways, there's the code I tried to achieve.
local button = script.Parent
local textbox = script.Parent.Parent.textbox
local key = loadstring(game:HttpGet("https://www.linkwiththekey"), true)()
button.MouseButton1Click:Connect(function()
if(textbox.Text == key) then
print('its valid')
else
print('its invalid')
end
end)
So yeah, thank you for any help.
Random quote here...
Replied
you don't do "if(something == something)" u do "if something == something"
if you fix this it should work fine
Cancel
Post
Random quote here...
Replied
omg
local key = game:HttpGet("https://www.linkwiththekey")
why are you using loadstring wtf
Cancel
Post
Replied
@VoidableMethod weird, also do local key = game:HttpGet not loadstring(game:HttpGet)
Cancel
Post
Added
@63568 I'm not very good at lua that's why I asked for help.
Cancel
Post
Random quote here...
Replied
local key = game:HttpGet("https://www.linkwiththekey")Cancel
Post
https://cdn.discordapp.com/attachments/909012795851407390/927492917394821140/siggy.png
Random quote here...
Users viewing this thread:
( Members: 0, Guests: 0, Total: 0 )
Cancel
Post