Forum > Scripts >

[Help] Script login

Posts: 4

Threads: 1

Joined: Jun, 2022

Reputation: 0

Posted

Hello everyone, so im trying to make an login for my script that uses the roblox account name to login but i cant get it working as the way i wanted to.

 

im trying to make it work by adding multiple player names in "local UserNames = { }" instead of repeating "if player.Name == " " then" but it wont work idk why

 

video exemple : https://youtu.be/cUscEa6k3eE

 

code im using >

 

-- Local Functions:
local player = game.Players.LocalPlayer
local UserNames = { PLAYER NAME }  

-- Script

local PlayerNameCheck = player.Name
if UserNames[PlayerNameCheck] then
--script code 
else
--script code kick player idk
end
  • 0

Posts: 1372

Threads: 87

Joined: May, 2018

Reputation: 24

Replied

this is very bad and can get easily bypassed with 1 line of code

 

but anyway

 

-- variables
local player = game.Players.LocalPlayer
local UserNames = {"lolman69", "nonepiclol"}

-- check

if table.find(UserNames, tostring(player.Name)) then
print("lol")
else
print("no")
end
  • 1

Hello there

#StayHome

 

Posts: 4

Threads: 1

Joined: Jun, 2022

Reputation: 0

Replied

thanks dud, i need it just to share the script with some friends.

  • 0

Added

yea its a really BAD way of creating an login, all it does is loading an simple gui that has fly/hitbox extender and a very simple ESP.

  • 0

Added

i think you can also bypass it by changing names like this

https://youtu.be/2s58HcWUn1o

  • 0

Posts: 1209

Threads: 68

Joined: May, 2022

Reputation: 17

Replied

I wouldnt recomend this, heres a better version tho

local player = game:GetService('Players')LocalPlayer
local UserNames = {"Joe_Mama"} 

local PlayerNameCheck = player.Name
if not UserNames[PlayerNameCheck] then 
  plr:Kick("Nah")
  return
end

  • 0

Did I mention I use arch btw?

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )