Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Respawn with no GUI?

Asked by
Bman8765 270 Moderation Voter
9 years ago

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

Log in to vote
0
Answered by 9 years ago

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

0
It is a local script but it is in startergui, where should I move it then? Bman8765 270 — 9y
0
Try inserting the GUI into the players. Adryin 120 — 9y
0
Yeah Ex_plore 62 — 9y
Ad

Answer this question