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

Attempt V [0.5], [RE-POSTED], LocalScript isn't running + no errors, [?]

Asked by 6 years ago

Notes:

  1. This is a local script inside A text label inside guis

  2. No FE, (Filtering Enabled)

local BattleFrame = script.Parent.Parent:WaitForChild('BattleFrame')
local IntroText = script.Parent
local W = 0.07
local BlurEffect = game.Lighting:WaitForChild('Blur')
local AOP = game.ReplicatedStorage:WaitForChild('AmountOfPlayers')



game.Players.PlayerAdded:Connect(function()
    wait()
    if game.Players.NumPlayers == 1 then
        BlurEffect.Size = 24
        IntroText.Visible = true
        wait(2)
        IntroText.Text = 'Need one more player!'
        wait(5)
        IntroText.Text = 'Loading.'
        wait(1)
        IntroText.Text = 'Loading..'
        wait(1)
        IntroText.Text = 'Loading...'
        wait(2)
        IntroText.Text = 'Need one more player!'
        wait(5)
        IntroText.Text = 'Waiting...'
        game.Players.NumPlayers.Changed:Connect(function()
            if AOP.Value == 2 then
                wait(3)
                IntroText.Text = 'Ready?'
                wait(3)
                IntroText.Text = 'Set?'
                wait(3)
                IntroText.Text = 'FIGHT!'
                wait(3)
                IntroText.Visible = false
                BlurEffect.Size = 0
                wait(W)
                BattleFrame.Visible = true
            end
        end)
    end
end)

[PROBLEM]; When joining the game, nothing runs. No blue, no text label, no nothing. So I need to know why this isn't running and how to fix it.

NOTE

When you join, there's suppose to be a blue with a text label in the center saying "Loading". But nothing happens

Link

https://web.roblox.com/games/975537457/Red-V-S-Blue-Tower-Defense-BETA-TESTING

Notes:

King Link told me that the script was executing it self but I don't know why and how to fix it.

Thanks for any support, feedback, help, and assistance.

Answer this question