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

Script that shows GUI's not working on servers?

Im having problems with Line 11

It works when I do a run on studio but on a regular server it doesnt show the GUI

hp = 50

script.Parent.BillboardGui.Frame.TIMESUP.Text = tostring(hp)

function onTouched(hit)
	if hit.Name == 'RED_Bomb' then
		hp = hp - 1
		script.Parent.BillboardGui.Frame.TIMESUP.Text = tostring(hp)
		script.Parent.Explode:Play()
		if hp == 0 then
			game.StarterGui.ScreenGui.Frame.Visible = true -- Not working?
			script.Parent.Script.Disabled = false
		end
	end
end

script.Parent.Touched:connect(onTouched)

2 comments

0

What you are trying to do is, Setting the visibility of starter ScreenGui, so only newcomers would see it.

0

Ok so I made the frame visible but the background and stuff is just transparent, it still doesnt show up though. Strange thing is when I check the properties of the GUI during a test and it says the frame isnt transparent but I still cant see it

1 answer

✓ Accepted answer

game.StarterGui.ScreenGui.Frame.Visible = true script.Parent.Script.Disabled = false

once the game is played PlayerGui cannot be updated from StarterGui and you would need to get all the players

for i,Players in pairs(game.Players:GetChildren()) do
	Players.PlayerGui.ScreenGui.Frame.Visible = true
end

1 comment

0

thank u!

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