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

Locating a script?

Asked by 8 years ago

If you look close to the bottom, I'm trying to get the Cutscene Script to play. I can't seem to get it to work. Since this script is inside a part in the Workspace, I can't locate it.

debounce = false

script.Parent.Touched:connect(function(hit)
    if debounce == true then return end
    debounce = true
    if  hit.Parent:findFirstChild("Humanoid") then
        for i = 1,20 do
            script.Parent.CFrame = script.Parent.CFrame + Vector3.new(.5,0,0)
            wait()
            script.Parent.Parent.Parent.Wall1.CanCollide = false
            script.Parent.Parent.Parent["Welcome!"]:Play()
    end
    wait(2)
    for i = 1,20 do
        script.Parent.CFrame = script.Parent.CFrame + Vector3.new(-.5,0,0)
        wait()
        script.Parent.Parent.Parent.Wall1.CanCollide = true
        local cutscene = game.StarterGui.CutsceneScript
        cutscene.Disabled = false
    end
    end
    debounce = false
    end)
0
local script? TheTermaninator 45 — 8y
0
No regular script. BennyBoiOriginal 293 — 8y
0
The Cutscene Script is a local script BennyBoiOriginal 293 — 8y
0
that's the problem, you need to access the player first then do, player.PlayerGui.CutsceneScript TheTermaninator 45 — 8y

Answer this question