HERE IS MY SCRIPT!
01 | wait ( 2 ) |
02 | for i = 1 , 10 do |
03 | trans = 1 / 10 |
04 | trans = 1 - trans |
05 | script.Parent.BG.BackgroundTransparency = trans |
06 | wait (. 1 ) |
07 | end |
08 |
09 | script.Parent.BG.Text 1. Text = "Welcome to the town of Rosedale!" |
10 | wait ( 3 ) |
11 | script.Parent.BG.Text 2. Text = "I am your real estate agent, Amy" |
12 | wait ( 3 ) |
13 | script.Parent.BG.Text 3. Text = "I will also show you around town!" |
14 | wait ( 3 ) |
15 | script.Parent.BG.Text 4. Text = "chat ok to begin playing!" |
Once you chat ok, more text is supposed to pop up and its supposed to turn into a cutscene, But it wont work.
Here's the script in a code block.
I'll assume you declared all the variables. All edits are commented on in the script. I hope this helps.
01 | wait ( 2 ) |
02 | --[[for i = 1, 10 do this is the old loop |
03 | trans = 1/10 |
04 | trans = 1 - trans |
05 | script.Parent.BG.BackgroundTransparency = trans |
06 | wait (.1) |
07 | end |
08 | --]] |
09 |
10 | for i = 10 , 0 , -. 1 --My version of the loop |
11 | trans = i/ 10 |
12 | script.Parent.BG.BackgroundTransparency = trans |
13 | wait() |
14 | end |
15 |
This is the script you asked for on ROBLOX from "The Football Coach"....It'll take lots of editing to match your game set but have fun!
001 | ---------------------- |
002 | ---define variables--- |
003 | ---------------------- |
004 | local animating = true ; --is an animation running? |
005 | local playa = game.Players.LocalPlayer; --the player |
006 | local camera = workspace.CurrentCamera; --the players camera |
007 | local stage = game.Lighting.Entrance:clone(); --the place where everything will be acted out |
008 | local nodes = stage.Nodes; --the walking points for AI's |
009 | local cameras = stage.Cameras; --the camera positions to transition through |
010 | local current_camera = 0 ; --the current camera position the player is on |
011 | local AIChat = playa.PlayerGui.AIChat; --the GUI chat for when an AI is talking |
012 | local blackout = playa.PlayerGui.Blackout; --the black screen for fading to a new scene |
013 | local red_spawn = stage.RDoor; --red door to spawn characters out of |
014 | local blue_spawn = stage.BDoor; --blue door to spawn characters out of |
015 | local follow = false ; --keep following target? |