I have an animation and it plays when the player joins the game. How can I make the screen turn black OR (this is prefered version) how can I keep the npc (the one doing the animation) to stay in place when it ends instead of teleporting back to normal position. Here's my script

local hum = script.Parent:WaitForChild("Humanoid")
local anim = hum:LoadAnimation(script:FindFirstChildOfClass("Animation"))
anim.Looped = true
anim:Play()

wait(1)

game.StarterGui.ScreenGui.Frame.BackgroundTransparency = 0

6 comments

0

u need to access the gui through PlayerGui, not StarterGui

0

How would I do that exactly?

0

Okay now your posting duplicate questions. Your previous question got 5 answers. Most of which were valid.

0

I asked them questions about their answers but they never responded...

0

Then wait for a response. Nobody is obligated to spend every passing minute of their day helping you. When you post a comment on an answer, the writer of that answer get's a notification. They will answer when they are available.

0

Ok sorry, I just wish I knew how to script because I've been stuck on something just as simple as this for many, many hours.