Hello, I have made a StarterGui and set it up right. When I go into test mode it works. When I go into the Server, it does not work. Do you know why this is? When I go into the server(In Studio), I found my player and the GUI. Everything is enabled right, but I see all the LocalScripts are blank. NOTE: When viewing the code, it is cut off. To view the full code for each script hit the icon with 2 blue arrows when hovering over the script.

Here is the link to the image showing the 2 LocalScripts:

https://postimg.org/image/6qbaejv6d/

Here is my code to the Intro LocalScript:

function bob()
	game.Players.LocalPlayer.PlayerGui.ScreenGui.HelpMenu.HelpHeader.Visible = false
	game.Players.LocalPlayer.PlayerGui.ScreenGui.HelpMenu.HelpA1.Visible = false
	game.Players.LocalPlayer.PlayerGui.ScreenGui.HelpMenu.HelpQ1.Visible = false
	game.Players.LocalPlayer.PlayerGui.ScreenGui.Starting:TweenPosition(UDim2.new(0,0,0,0), 'Out', 'Quart', 10)
	wait(10)
	game.Players.LocalPlayer.PlayerGui.ScreenGui.Starting.Play:TweenPosition(UDim2.new(0,75,0,250), 'Out', 'Bounce', 3)
	wait(3)
	game.Players.LocalPlayer.PlayerGui.ScreenGui.Starting.Help:TweenPosition(UDim2.new(0,475,0,250), 'Out', 'Bounce', 3)

end

bob()

Here is the code to the other LocalScript:

function clickedHelp()
	game.Players.LocalPlayer.PlayerGui.ScreenGui.Starting.Help.Visible = false
	game.Players.LocalPlayer.PlayerGui.ScreenGui.Starting.Play:Destroy()
	game.Players.LocalPlayer.PlayerGui.ScreenGui.Starting.Welcome:TweenPosition(UDim2.new(0,0,0,-1000), 'In', 'Quart', 5)
	wait(4)
	print("After Tweening Welcome!")
	game.Players.LocalPlayer.PlayerGui.ScreenGui.Starting:TweenPosition(UDim2.new(0,0,0,-1000), 'Out', 'Quart', 1)
	print("After Tweening Starting!")
	game.Players.LocalPlayer.PlayerGui.ScreenGui.HelpMenu.Visible = true
	print("After HM Visible!")
	game.Players.LocalPlayer.PlayerGui.ScreenGui.HelpMenu.HelpHeader.Visible = true
	print("After HH Visible!")
	game.Players.LocalPlayer.PlayerGui.ScreenGui.HelpMenu.HelpA1.Visible = true
	game.Players.LocalPlayer.PlayerGui.ScreenGui.HelpMenu.HelpQ1.Visible = true
	game.Players.LocalPlayer.PlayerGui.ScreenGui.Starting.Help:Destroy()
end

script.Parent.MouseButton1Click:connect(clickedHelp)

Please help. I heard something about using waitforchild, but do not know how to use it. Thanks!

5 comments

2

omg dude, use variables xD

0

Any errors in the output that you could tell us?

0

No errors.

0

It works if I turn on FE. But I do not want to use that.

0

??