I am trying to create a script that will run when a player enters the game. I have searched for many tutorials but most are not working. Help would be appreciated. This is what I currently have:
player.CharacterAdded:connect(function(character)
script.Parent.BackgroundTransparency = 0.1
wait(0.1)
script.Parent.BackgroundTransparency = 0.2
wait(0.1)
script.Parent.BackgroundTransparency = 0.3
wait(0.1)
script.Parent.BackgroundTransparency = 0.4
wait(0.1)
script.Parent.BackgroundTransparency = 0.5
wait(0.1)
script.Parent.BackgroundTransparency = 0.6
wait(0.1)
script.Parent.BackgroundTransparency = 0.7
wait(0.1)
script.Parent.BackgroundTransparency = 0.8
wait(0.1)
script.Parent.BackgroundTransparency = 0.9
wait(0.1)
script.Parent:Remove()
Also, if you are wondering, this script is to fade out a text box.

6 comments
is it a Normal Script or a LocalScript?
This is a normal script
Try researching your issue before coming here.
I did that. None of the articles/videos helped.
No, you didn't. You can literally paste your query into a search engine and you get what you need as a first result.
Tell me what I need to paste to get a good answer. I have tried searching that. Not much is helpful.