I'm Trying To Make A Roblox Script That Detects If You Use The Right User And Pass But Its Not Working Here It Is (DONT WORRY IT IS NOT THEIR ROBLOX USER AND PASS JUST ONE FOR MY GAME)

script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Parent.Enabled = false

local User = game.Players.LocalPlayer.PlayerSettings.Username.Value
local Pass = game.Players.LocalPlayer.PlayerSettings.Password.Value
local UserText = script.Parent.Parent.UsernameBox.Text
local PassText = script.Parent.Parent.PasswordBox.Text
if UserText == User and PassText == Pass then
	script.Parent.Visible = true
	end
end)

3 comments

0

Did you try printing out the User and Pass variables?

0

No Idk How To

0

I Might Not Respond Soon I'll Be In Studio Trying To Fix This Script But I'll Let You Know If I Fix It