Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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)

10 comments

0

on which line exactly?

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.

0

it doesnt say

0

send error output

0

if there is no error ur script prop disabled

0

there is an error

0

please show the full error.. and the line on which it occurs

0

it says TextInput X is not a part of Frame and it doesnt say the line which it occurs

0

player is arriving before the gui; script wont work

0

answers below

1 answer

✓ Accepted answer

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)
	

This discussion is preserved as it was. New answers, comments, and votes are closed.