This LocalScript already knows what "currentversion" is. I've already got the GUI formatted correctly and everything in the GUI is in the correct place. However, my "Update" or "New" screen isn't appearing. It was working fine until yesterday when I got that RBLX Studio update. I don't know if that update caused something to break. I can't find anything wrong with it.

	sp=script.Parent

	local plr=game.Players.LocalPlayer
	local plrgui=plr:WaitForChild("PlayerGui")
	local GUI=sp:WaitForChild("gui_Version")
	local Version=plr:WaitForChild("Version")
	
	local update=GUI.Update
	local new=GUI.New

		if Version.Value~=currentversion and Version.Value~="0" then
			update.Visible=true
			update.Briefer.Text=updatedesc.Value
			update.Exit.VerNum.Text="Ver "..currentversion.Value.." "
		elseif Version.Value~=currentversion and Version.Value=="0" then
			new.Visible=true
			new.Introductory.Text=Introductory
		end

If someone could help me find what's wrong with the script, I'd greatly appreciate it. Thank you!

2 comments

0

Does it work when you're in test mode, but doesn't work when you're in a server?

0

If that's the case, try and add 'repeat wait(.5) until game.Players.LocalPlayer' on line 01.