Why is this script malfunctioning?
I've been building a game, and I have a LocalScript, and I have the script.
So I've tried this line of script
01 | local player = script.Parent.Parent.Parent.Parent |
02 | local Background 1 = script.Parent:WaitForChild( "Background1" ) |
03 | local Background 2 = script.Parent:WaitForChild( "Background2" ) |
04 | local Background 3 = script.Parent:WaitForChild( "Background3" ) |
05 | local SBackground = script.Parent:WaitForChild( "ShuttleBackground" ) |
06 | local Shade = SBackground:WaitForChild( "Shade" ) |
07 | local Select = Shade:WaitForChild( "Select" ) |
08 | local Shuttle 1 = Select:WaitForChild( "Shuttle1" ) |
09 | local Shuttle 2 = Select:WaitForChild( "Shuttle2" ) |
10 | local Shuttle 3 = Select:WaitForChild( "Shuttle3" ) |
12 | script.Parent.ShuttleBackground.Shade.Select.Shuttle 1. MouseButton 1 Click:connect( function () |
14 | player.Character:MoveTo(game.Workspace.GCTS) |
But it fails, as the Output says:
20:37:06.008 - Script 'Players.Player.PlayerGui.ScreenGui.LocalScript', Line 38
20:37:06.009 - Stack End
Any solution?