#My game won't even open :(

1 messages · Page 1 of 1 (latest)

long flicker
#

So I made this cutscene script, but it just... doesn't work in game? Works in studio but in game it does nothing. I thought maybe the camera just hadn't loaded in, so I added a wait, and even tried making a whole loading screen, but nope, in fact the wait CONSISTENTLY makes it NOT work. Please, scriptures of the studio, give me your strength.

LUA!
wait(4)
local cam = game.Workspace.CurrentCamera
cam.CameraType = Enum.CameraType.Scriptable
cam:GetPropertyChangedSignal("CameraType"):Wait()
cam.FieldOfView = 30
local noise = game.SoundService
local intro = game.Workspace.workwork.Humanoid.Animator:LoadAnimation(game.ReplicatedStorage:WaitForChild("Animations"):WaitForChild("Intro")) :: AnimationTrack
print('loaded')
wait(5)
game.ReplicatedStorage.starteranim:FireServer()
intro:Play()
v = script.MoonAnimator2Saves.a
cam.CFrame = v.Value
wait(5.167)
v = script.MoonAnimator2Saves.c
cam.CFrame = v.Value
wait(2.333)
v = script.MoonAnimator2Saves.e
cam.CFrame = v.Value
wait(1.2)
v = script.MoonAnimator2Saves.g
cam.CFrame = v.Value
wait(1)
game.Players.LocalPlayer.PlayerGui.Outfitgui.Enabled = true
game.Workspace.workwork:Destroy()
local e = game.Workspace.workaswell
e.Head.Transparency = 0
e['Left Arm'].Transparency = 0
e['Left Leg'].Transparency = 0
e['Right Arm'].Transparency = 0
e['Right Leg'].Transparency = 0
e.Torso.Transparency = 0
e.Head.Face.Transparency = 0
!LUA

thin jetty
long flicker
#

I'm not going back into 500 scripts

#

to change wait

#

into task.wait

#

I will for this one if I have to ofc

thin jetty
#

no, but im just recommending

long flicker
#

o

#

ok

lunar belfry
rugged plume
long flicker
#

Starterplayerscripts

lunar belfry
#

And you made a loading screen?

#

Using asset service and preloading everything?

#

Because you can make it so that the cutscene starts after everything is preloded

long flicker
#

Uhh the loading screen just

#

Waited 10 seconds

#

And assumed you camera MUST be loaded by then

#

Like how slow your PC gotta be?

#

Please tell me more about this "asset service" you speak of.

#

Basically

#

My loading screen waited 10 seconds, then enabled the cutscenes script and disabled itself.

long flicker
#

alright guys

#

I fixed it myself

#

no loading screen needed.

#

uh