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

The script skips 1/2 of the scirpt and plays the set sound and skips the rest. What is wrong here?

Asked by
Lualaxy 78
6 years ago

So the script is ment to play like a intro/dialog so the people know whats going on. But in the 1/2 of the script I have the sound set to play. So what it does, is its skips everything but the sound that plays just fine. What's with that? O.o

Code:

local Intro = game.StarterGui.Intro
local Frame = game.StarterGui.Intro.Frame
local One = game.StarterGui.Intro.Frame.One
local Two = game.StarterGui.Intro.Frame.Two
local COne1 = game.StarterGui.Intro.Frame.COne1
local COne2 = game.StarterGui.Intro.Frame.COne2
local COne3 = game.StarterGui.Intro.Frame.COne3
local COne4 = game.StarterGui.Intro.Frame.COne4
local COne5 = game.StarterGui.Intro.Frame.COne5
local COne6 = game.StarterGui.Intro.Frame.COne6
local COne7 = game.StarterGui.Intro.Frame.COne7
local COne8 = game.StarterGui.Intro.Frame.COne8
local COne9 = game.StarterGui.Intro.Frame.COne9
local COne10 = game.StarterGui.Intro.Frame.COne10
local COne11 = game.StarterGui.Intro.Frame.COne11
local COne12 = game.StarterGui.Intro.Frame.COne12
local Sound = game.Workspace.PhoneVibrate

    One.TextTransparency = 0
    wait(2)
    One.TextTransparency = 0
    Two.TextTransparency = 1
    wait(2)
    Two.TextTransparency = 0
    Sound.Playing = true
    Sound.Looped = true
    wait(2)
    Sound.Playing = false
    Sound.Looped = false
    COne1.TextTransparency = 1
    wait(1)
    COne2.TextTransparency = 1
    wait(1)
    COne3.TextTransparency = 1
    wait(1)
    COne4.TextTransparency = 1
    wait(1)
    COne5.TextTransparency = 1
    wait(1)
    COne6.TextTransparency = 1
    wait(1)
    COne7.TextTransparency = 1
    wait(1)
    COne8.TextTransparency = 1
    wait(1)
    COne9.TextTransparency = 1
    wait(1)
    COne10.TextTransparency = 1
    wait(1)
    COne11.TextTransparency = 1
    wait(1)
    COne12.TextTransparency = 1
wait(1)
Intro.Enabled = false -- Intro is enabled at the start thats why I didn't put a Intro.Enabled = true
0
!. what does the script do Theroofypidgeot 21 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

StarterGui is just a folder for Guis. Contents in StarterGui get replicated into the LocalPlayer's PlayerGui. The interactive Guis are in PlayerGui. To reference it, just do something like this:

local player = game:GetService("Players").LocalPlayer
local playerGui = player:WaitForChild"PlayerGui"
-- Now change everything that says StarterGui change to player gui.
0
18:02:11.831 - playerGui is not a valid member of DataModel 18:02:11.832 - Stack Begin 18:02:11.833 - Script 'Players.SkullMasterHD.PlayerGui.Intro.LocalScript', Line 3 18:02:11.834 - Stack End Lualaxy 78 — 6y
Ad

Answer this question