So basically the problem im having is that my serverscript wont detect/use the text inside the text box…
heres the script:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local remoteEvent = ReplicatedStorage:WaitForChild("Login")
local password = script.Parent.Parent.box.password
local main = script.Parent.Parent.Parent.Background
local login = script.Parent.Parent
local player = script.Parent.Parent.Parent.Parent.Parent
script.Parent.MouseButton1Click:Connect(function()
print("Clicked")
if password.Text == "Test1" or
password.Text == "Test2" then
print(player.name .."Has Entered The Password Correctly!")
remoteEvent:FireServer(player)
login.Visible = false
main.Visible = true
end
end)