I used a video guide to do this but it's giving me no error but I typed

	for i,v in pairs(game.Players:GetPlayers()) do
		v.PlayerGui.ScreenGui.TextBox.visible = true
		wait(10)
		v.PlayerGui.ScreenGui.TextBox.visible = false
	end

i did the same thing for an image lable this code is in the text box

function textchange(text)
	script.Parent.Text = (text)
	wait (1)
end

while script.Parent.Visible == true do
	textchange("loading.")
	textchange("loading..")
	textchange("loading...")
	textchange("loading....")
	textchange("loading.....")
end
if script.Parent.Visible == false
then
	textchange("loading")
end

8 comments

0

try using GetChildren() instead of GetPlayers()

0

ok ill try now

0

Um, GetChildren is much worse.

0

it dose not work still lol

0

You can do this: for r = 1,5 do textchange("loading"..('.'):rep(r)) end

0

Could you give us the error?

0

14:53:06.499 - Workspace.Script:1: attempt to index nil with 'ScreenGui'

0

for r = 1,5 do textchange("loading"..('.'):rep(r) .PlayerGui.ScreenGui.TextBox.visible == true )wait(10) .PlayerGui.ScreenGui.TextBox.visible = false end