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

I want a global event to happen through a local script, how?

Asked by 6 years ago
local launch = script.Parent:WaitForChild("launch")

local Player = game.Players.LocalPlayer
local CountDown = 11
--local User = game.CreatorId

if Player.UserId == 51944675 then
    launch.Visible = true
end
script.Parent.launch.MouseButton1Click:connect(function()

    while CountDown > 0 do
        CountDown = CountDown - 1
        script.Parent.ImageLabel.COUNT.Text = CountDown
        wait(2)
    end

    script.Parent.ImageLabel.COUNT.Text = "WE HAVE LIFT-OFF"

    game.ReplicatedStorage:WaitForChild("workspaceEvents").rockets.launch:FireServer()
end)

I want the countdown to be globally visible once the button is pressed.

    while CountDown > 0 do
        CountDown = CountDown - 1
        script.Parent.ImageLabel.COUNT.Text = CountDown
        wait(2)
    end

    script.Parent.ImageLabel.COUNT.Text = "WE HAVE LIFT-OFF"

How may I do this?

1 answer

Log in to vote
0
Answered by 6 years ago

If you're dealing with open servers or local scripts. Try enabling filterEnabled. Workspace>FilterEnabled>True

Ad

Answer this question