Im trying to make a computer game and my custom chat is not working....My Code:
local textbox = script.Parent.Parent:WaitForChild("TextBox")
local slot1 = script.Parent.Parent.slot1
local slot2 = script.Parent.Parent.slot2
local slot3 = script.Parent.Parent.slot3
local slot4 = script.Parent.Parent.slot4
local slot5 = script.Parent.Parent.slot5
local slot6 = script.Parent.Parent.slot6
local Players = game:GetService("Players")
local PLR = Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function()
if slot1.Used.Value == false then
slot1.Text = PLR.Name..": "..textbox.Text
slot1.Used.Value = true
elseif slot1.Used.Value == false then
slot2.Text = PLR.Name..": "..textbox.Text
slot2.Used.Value = true
elseif slot2.Used.Value == false then
slot3.Text = PLR.Name..": "..textbox.Text
slot3.Used.Value = true
elseif slot3.Used.Value == false then
slot4.Text = PLR.Name..": "..textbox.Text
slot4.Used.Value = true
elseif slot4.Used.Value == false then
slot5.Text = PLR.Name..": "..textbox.Text
slot5.Used.Value = true
elseif slot5.Used.Value == false then
slot6.Text = PLR.Name..": "..textbox.Text
slot6.Used.Value = true
elseif slot6.Used.Value == false then
slot1.Used.Value = false
slot2.Used.Value = false
slot3.Used.Value = false
slot4.Used.Value = false
slot5.Used.Value = false
slot6.Used.Value = false
end
end)

3 comments
Edit: Put code block
Could you provide maybe some labeled visuals so I could see what slot1 would be per say? Trying to visualize and it's a little confusing
also get a list of all the players in the server