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

My game works in test mode but not play mode.. help? please?

Asked by 8 years ago

--Calling INTRO GUI Script--

game.Players.PlayerAdded:connect(function(player)
    repeat wait() until player:FindFirstChild("PlayerGui")
    gui = script.Gui:clone()
    gui.Parent = player.PlayerGui
end)

Anything wrong?

--INTRO GUI Functions Script

wait (2)

for i = 1, 10 do
    trans = i/10
    trans = 1 - trans
    script.Parent.BG.BackgroundTransparency = trans
    wait (.1)
end

script.Parent.BG.Text1.Text = "Welcome to Trillin' Out Battles: Underground Rap!"
wait (3)
script.Parent.BG.Text2.Text = "After every battle chat 'Next' or 'Next Match'"
wait (3)
script.Parent.BG.Text3.Text = "Chat 'Start' to begin playing."

script.Parent.Parent.Parent.Chatted:connect(function(msg)
    if script ~= nil then
    message = msg:lower()
    if message == "start" then
    script.Parent.BG.Text1.Text = ""
    wait (.2)
    script.Parent.BG.Text2.Text = ""
    wait (.2)
    script.Parent.BG.Text3.Text = ""
    wait (.2)
    for i = 1, 10 do
    trans = i/10
    script.Parent.BG.BackgroundTransparency = trans
    wait (.1)
    end
    x = Instance.new("IntValue" , script.Parent.Parent.Parent)
    x.Name = "WentThroughCutscene"
    script.Parent:remove()
    end
end
end)

--End of INTRO GUI Functions script--

Anything wrong?

0
Please format your code by hitting the 'LUA' button. Hit Edit under your question's points, next to the title. JamesLWalker 297 — 8y
0
I formatted your code. Shawnyg 4330 — 8y

Answer this question