Hello developers, I am currently working on this script that when you enter something into a text box, it appears on a text label.
I have that part working, however when someone joins the game after its been put in, it doesnt appear on the text lable.
If you need the scripts here they are;
local script:
local SLT = script.Parent.SLT
local Main = script.Parent.Main
local remote7 = game.ReplicatedStorage.TimeTable.Year7TT
local remote8 = game.ReplicatedStorage.TimeTable.Year8TT
local remote9 = game.ReplicatedStorage.TimeTable.Year9TT
local remote10 = game.ReplicatedStorage.TimeTable.Year10TT
local remote11 = game.ReplicatedStorage.TimeTable.Year11TT
local remote12 = game.ReplicatedStorage.TimeTable.Year12TT
-- Year 7 Time Table
SLT.Y7.Rounded.Enter.MouseButton1Click:Connect(function()
local Year7 = "Year7"
local P17 = SLT.Y7.Rounded.P1E.Text
local P27 = SLT.Y7.Rounded.P2E.Text
local P37 = SLT.Y7.Rounded.P3E.Text
local P47 = SLT.Y7.Rounded.P4E.Text
remote7:FireServer(P17,P27,P37,P47)
end)
SLT.Y8.Rounded.Enter.MouseButton1Click:Connect(function()
local Year8 = "Year8"
local P18 = SLT.Y8.Rounded.P1E.Text
local P28 = SLT.Y8.Rounded.P2E.Text
local P38 = SLT.Y8.Rounded.P3E.Text
local P48 = SLT.Y8.Rounded.P4E.Text
remote8:FireServer(P18,P28,P38,P48)
end)
SLT.Y9.Rounded.Enter.MouseButton1Click:Connect(function()
local Year9 = "Year9"
local P19 = SLT.Y9.Rounded.P1E.Text
local P29 = SLT.Y9.Rounded.P2E.Text
local P39 = SLT.Y9.Rounded.P3E.Text
local P49 = SLT.Y9.Rounded.P4E.Text
remote9:FireServer(P19,P29,P39,P49)
end)
SLT.Y10.Rounded.Enter.MouseButton1Click:Connect(function()
local Year10 = "Year10"
local P110 = SLT.Y10.Rounded.P1E.Text
local P210 = SLT.Y10.Rounded.P2E.Text
local P310 = SLT.Y10.Rounded.P3E.Text
local P410 = SLT.Y10.Rounded.P4E.Text
remote10:FireServer(P110,P210,P310,P410)
end)
SLT.Y11.Rounded.Enter.MouseButton1Click:Connect(function()
local Year11 = "Year11"
local P111 = SLT.Y11.Rounded.P1E.Text
local P211 = SLT.Y11.Rounded.P2E.Text
local P311 = SLT.Y11.Rounded.P3E.Text
local P411 = SLT.Y11.Rounded.P4E.Text
remote11:FireServer(P111,P211,P311,P411)
end)
SLT.SF.Rounded.Enter.MouseButton1Click:Connect(function()
local SixthForm = "SixthForm"
local P112 = SLT.SF.Rounded.P1E.Text
local P212 = SLT.SF.Rounded.P2E.Text
local P312 = SLT.SF.Rounded.P3E.Text
local P412 = SLT.SF.Rounded.P4E.Text
remote11:FireServer(P112,P212,P312,P412)
end)
local Y7 = script.Parent.Main.TT7
local Y8 = script.Parent.Main.TT8
local Y9 = script.Parent.Main.TT9
local Y10 = script.Parent.Main.TT10
local Y11 = script.Parent.Main.TT11
local SF = script.Parent.Main.TT7
remote7.OnClientEvent:Connect(function(P17,P27,P37,P47)
Y7.P1.Text = "Period 1: "..P17
Y7.P2.Text = "Period 2: "..P27
Y7.P3.Text = "Period 3: "..P37
Y7.P4.Text = "Period 4: "..P47
end)
remote8.OnClientEvent:Connect(function(P18,P28,P38,P48)
Y8.P1.Text = "Period 1: "..P18
Y8.P2.Text = "Period 2: "..P28
Y8.P3.Text = "Period 3: "..P38
Y8.P4.Text = "Period 4: "..P48
end)
remote9.OnClientEvent:Connect(function(P19,P29,P39,P49)
Y9.P1.Text = "Period 1: "..P19
Y9.P2.Text = "Period 2: "..P29
Y9.P3.Text = "Period 3: "..P39
Y9.P4.Text = "Period 4: "..P49
end)
remote10.OnClientEvent:Connect(function(P110,P210,P310,P410)
Y10.P1.Text = "Period 1: "..P110
Y10.P2.Text = "Period 2: "..P210
Y10.P3.Text = "Period 3: "..P310
Y10.P4.Text = "Period 4: "..P410
end)
remote11.OnClientEvent:Connect(function(P111,P211,P311,P411)
Y11.P1.Text = "Period 1: "..P111
Y11.P2.Text = "Period 2: "..P211
Y11.P3.Text = "Period 3: "..P311
Y11.P4.Text = "Period 4: "..P411
end)
remote12.OnClientEvent:Connect(function(P112,P212,P312,P412)
SF.P1.Text = "Period 1: "..P112
SF.P2.Text = "Period 2: "..P212
SF.P3.Text = "Period 3: "..P312
SF.P4.Text = "Period 4: "..P412
end)
Server Script
local remote7 = game.ReplicatedStorage.TimeTable.Year7TT
local remote8 = game.ReplicatedStorage.TimeTable.Year8TT
local remote9 = game.ReplicatedStorage.TimeTable.Year9TT
local remote10 = game.ReplicatedStorage.TimeTable.Year10TT
local remote11 = game.ReplicatedStorage.TimeTable.Year11TT
local remote12 = game.ReplicatedStorage.TimeTable.Year12TT
local Y7 = script.Parent.Main.TT7
local Y8 = script.Parent.Main.TT8
local Y9 = script.Parent.Main.TT9
local Y10 = script.Parent.Main.TT10
local Y11 = script.Parent.Main.TT11
local SF = script.Parent.Main.TT7
remote7.OnServerEvent:Connect(function(Player,P17,P27,P37,P47)
remote7:FireAllClients(P17,P27,P37,P47)
Y7.P1.Text = "Period 1: "..P17
Y7.P2.Text = "Period 2: "..P27
Y7.P3.Text = "Period 3: "..P37
Y7.P4.Text = "Period 4: "..P47
end)
remote8.OnServerEvent:Connect(function(Player,P18,P28,P38,P48)
remote8:FireAllClients(P18,P28,P38,P48)
Y8.P1.Text = "Period 1: "..P18
Y8.P2.Text = "Period 2: "..P28
Y8.P3.Text = "Period 3: "..P38
Y8.P4.Text = "Period 4: "..P48
end)
remote9.OnServerEvent:Connect(function(Player,P19,P29,P39,P49)
remote9:FireAllClients(P19,P29,P39,P49)
Y9.P1.Text = "Period 1: "..P19
Y9.P2.Text = "Period 2: "..P29
Y9.P3.Text = "Period 3: "..P39
Y9.P4.Text = "Period 4: "..P49
end)
remote10.OnServerEvent:Connect(function(Player,P110,P210,P310,P410)
remote10:FireAllClients(P110,P210,P310,P410)
Y10.P1.Text = "Period 1: "..P110
Y10.P2.Text = "Period 2: "..P210
Y10.P3.Text = "Period 3: "..P310
Y10.P4.Text = "Period 4: "..P410
end)
remote11.OnServerEvent:Connect(function(Player,P111,P211,P311,P411)
remote11:FireAllClients(P111,P211,P311,P411)
Y11.P1.Text = "Period 1: "..P111
Y11.P2.Text = "Period 2: "..P211
Y11.P3.Text = "Period 3: "..P311
Y11.P4.Text = "Period 4: "..P411
end)
remote12.OnServerEvent:Connect(function(Player,P112,P212,P312,P412)
remote12:FireAllClients(P112,P212,P312,P412)
SF.P1.Text = "Period 1: "..P112
SF.P2.Text = "Period 2: "..P212
SF.P3.Text = "Period 3: "..P312
SF.P4.Text = "Period 4: "..P412
end)
local RemoteB = game.ReplicatedStorage.TimeTable.Bell
RemoteB.OnServerEvent:Connect(function()
RemoteB:FireAllClients()
end)