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

Respawn with no GUI?

How to I make it so when a player re-spawns they do not see the start gui. Here is the script:

Start = script.Parent.StartButton
CourseSelect = script.Parent.CourseSelect
target = game.Workspace.Cam
camera = workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable
camera.CameraSubject = target
angle = 0
go = 0
CourseSelect.Visible = false
Num = 0
Course1 = script.Parent.CourseSelect.Course1
Course2 = script.Parent.CourseSelect.Course2
Course3 = script.Parent.CourseSelect.Course3
Start.Visible = true
Course1.Visible = false
Course2.Visible = false
Course3.Visible = false
character = game.Players.LocalPlayer.Character
TwoD = game.Players.LocalPlayer.Character.Head
-- Size X 400, Size Y 300
started = false
print("Started = false")
					
function ClickedStart()
	if started == false	then
	CourseSelect.Visible = true
	Start.Visible = false
    for GuiSize = 1, 45 do 
        if GuiSize <= 45 then
            CourseSelect.Size = CourseSelect.Size +UDim2.new(0.01, 0, 0.015, 0)
			Num = Num +1
			print(Num)
        end
	 wait()
    end
	Course1.Visible = true
	Course2.Visible = true
	Course3.Visible = true
	end
end

function ClickedCourse1()
	started = true
	print("Started = true")
	Course1.Visible = false
	Course2.Visible = false
	Course3.Visible = false
	CourseSelect.Visible = false
	character:MoveTo(workspace.Course1Tele.Position)
end

Start.MouseButton1Down:connect(ClickedStart) -- Here
Course1.MouseButton1Down:connect(ClickedCourse1)

1 answer

Its because its in your startergui,I think you need a local script for it to remove it You need to put it in the PlayerGui when players join they can get a Playergui

3 comments

0

It is a local script but it is in startergui, where should I move it then?

0

Try inserting the GUI into the players.

0

Yeah

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