this code is not working, line 2 is script.Password(TextBox).Text i cant get the text
local player = game.Players.LocalPlayer
local pass = script.Parent.password.Text
local db = false
script.Parent.go.MouseButton1Click:Connect(function()
if db == false then
db = true
game.ReplicatedStorage.RemoteEvents.Join:FireServer(pass)
wait(1)
db = false
end
end)
As he said, this should solve the issue. Here is the full script
--// Services
local Players = game:GetService("Players");
local ReplicatedStorage = game:GetService("ReplicatedStorage");
--// Variables
local Player = Players.LocalPlayer
local Password = script.Parent.password.Text
local db = false
script.Parent.go.MouseButton1Click:Connect(function()
if db == false then
db = true
ReplicatedStorage.RemoteEvents.Join:FireServer(script.Parent.password.Text)
wait(1)
db = false
end
end)