Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why does the output say that some of the properties in my script don't exist?

Asked by
Zottic 19
6 years ago
01local TextBox = script.Parent
02local Frame = TextBox.Parent
03local ScreenGui = Frame.Parent
04 
05game.Players.PlayerAdded:Connect(function(player)
06    TextBox.BackgroundTransparency = 0
07    TextBox.Visible = true
08    Frame.BackgroundTransparency = 0
09    Frame.Visible = true
10 
11    wait(3)
12 
13    TextBox.BackgroundTransparency = 1
14    TextBox.Visible = false
15    Frame.BackgroundTransparency = 1
16    Frame.Visible = false
17end)
0
on which line exactly? GoldAngelInDisguise 297 — 6y
0
Try adding "WaitForChild" or "FindFirstChild" to find the GUI's. My guess is that they are not there yet and the script is alreqdy tries to find them. HeyItzDanniee 252 — 6y
0
it doesnt say Zottic 19 — 6y
0
send error output TheluaBanana 946 — 6y
View all comments (6 more)
0
if there is no error ur script prop disabled TheluaBanana 946 — 6y
0
there is an error Zottic 19 — 6y
0
please show the full error.. and the line on which it occurs GoldAngelInDisguise 297 — 6y
0
it says TextInput X is not a part of Frame and it doesnt say the line which it occurs Zottic 19 — 6y
0
player is arriving before the gui; script wont work Imperialy 149 — 6y
0
answers below Imperialy 149 — 6y

1 answer

Log in to vote
0
Answered by
Imperialy 149
6 years ago

make sure this is your serverscript below 1.insert a remotevent into replicatedstorage 2.name it "event" 3.insert a serverscript into serverscriptservice 4.paste this code into there

1local replicatedstorage = game:GetService("ReplicatedStorage")
2local event = replicatedstorage:WaitForChild("event")
3game.Players.PlayerAdded:Connect(function(player)
4    event:FireClient(player)
5end)
  1. insert a localscript into the textbox 6.paste this code into there
01local TextBox = script.Parent
02local Frame = TextBox.Parent
03local ScreenGui = Frame.Parent
04local replicatedstorage = game:GetService("ReplicatedStorage")
05local event = replicatedstorage:WaitForChild("event")
06event.OnClientEvent:Connect(function()
07    Frame.Visible = true
08    Frame.BackgroundTransparency = 0
09    TextBox.Visible = true
10    TextBox.BackgroundTransparency = 0
11end)
Ad

Answer this question