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
local TextBox = script.Parent
local Frame = TextBox.Parent
local ScreenGui = Frame.Parent

game.Players.PlayerAdded:Connect(function(player)
    TextBox.BackgroundTransparency = 0
    TextBox.Visible = true
    Frame.BackgroundTransparency = 0
    Frame.Visible = true

    wait(3)

    TextBox.BackgroundTransparency = 1
    TextBox.Visible = false
    Frame.BackgroundTransparency = 1
    Frame.Visible = false
end)

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

local replicatedstorage = game:GetService("ReplicatedStorage")
local event = replicatedstorage:WaitForChild("event")
game.Players.PlayerAdded:Connect(function(player)
    event:FireClient(player)
end)
  1. insert a localscript into the textbox 6.paste this code into there
local TextBox = script.Parent
local Frame = TextBox.Parent
local ScreenGui = Frame.Parent
local replicatedstorage = game:GetService("ReplicatedStorage")
local event = replicatedstorage:WaitForChild("event")
event.OnClientEvent:Connect(function()
    Frame.Visible = true
    Frame.BackgroundTransparency = 0
    TextBox.Visible = true
    TextBox.BackgroundTransparency = 0
end)

Ad

Answer this question