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

Transition to GUI?

Asked by 9 years ago

Hey guys,

I have decided that I want to change the scripts for my game so that rather than Messages and Hints, I want to have GUIs instead.

How would I change this to show GUIs and not Messages?

for i = 1, Delay*1 do
        Message.Text = "The Next Race will begin in " .. Delay*1-i
        wait(1)
        end
    local msg = Instance.new("Message")
    msg.Parent = game.Workspace
    msg.Text = ("Course : Original by Michael007800")
    wait(5)
    msg:remove()
    local New = Instance.new("Message")
    New.Parent = workspace
    New.Text = "THE RACE HAS BEGUN!!!!!"
    game.Lighting.Map1:clone().Parent = game.Workspace
    script.Sound1:play()
    script.RaceStart1:play()
    script.RaceStart2:play()
    script.RaceStart3:play()
    script.RaceStart4:play()
    script.RaceStart5:play()
    script.Parent.CanCollide = false
    script.Parent.Transparency = 1
    wait(3)
    New:remove()
    wait(2)
    script.Parent.CanCollide = true
    script.Parent.Transparency = 0
        for i = 1, ZombieAttackTime*1 do
        Message.Text = "The Next Race will end in " .. ZombieAttackTime*1-i
        wait(1)
    end
    local New = Instance.new("Message")
    New.Parent = workspace
    New.Text = "THE RACE HAS ENDED!!!!!"
    game.Workspace.Map1:remove()
    script.Sound1:stop()
    script.Parent.CanCollide = true
    script.Parent.Transparency = 0
    wait(3)
    New:remove()

Cheers in advanced,

Michael

0
GUIs are much harder than Messages and Hints, because of the PlayerGui/StarterGui stuff. What I do is make a value in workspace that controls the text and other properties of the GUIs, then use Changed events to detect them. Perci1 4988 — 9y
0
Fair enough, I'll stick with hints! Michael007800 144 — 9y
0
Ignore that. http://wiki.roblox.com/index.php?title=RemoteFunction_and_RemoteEvent_Tutorial <- Use these to send Text to a player's GUI epicbreaker 95 — 9y

Answer this question