Answered by
4 years ago Edited 4 years ago
The frame was created, but since you didn't supply enough properties; the frame was not seen.
It's there, but you just need to be able to see it. Therefore; we apply more properties to it.
10 | local ServiceProvider = game:GetService( "ServiceProvider" ) |
12 | local MainMenu = script.Parent |
13 | local Buttons = MainMenu:WaitForChild( "Buttons" ) |
14 | local PlayButton = Buttons:WaitForChild( "PlayButton" ) |
15 | local SettingsButton = Buttons:WaitForChild( "SettingsButton" ) |
16 | local UpdateButton = Buttons:WaitForChild( "UpdateButton" ) |
18 | local Player = game:GetService( "Players" ).LocalPlayer |
24 | PlayButton.MouseEnter:Connect( function () |
25 | PlayButton.TextColor 3 = Color 3. fromRGB( 34 , 34 , 34 ) |
28 | PlayButton.MouseLeave:Connect( function () |
29 | PlayButton.TextColor 3 = Color 3. fromRGB( 0 , 0 , 0 ) |
34 | SettingsButton.MouseEnter:Connect( function () |
35 | SettingsButton.TextColor 3 = Color 3. fromRGB( 34 , 34 , 34 ) |
38 | SettingsButton.MouseLeave:Connect( function () |
39 | SettingsButton.TextColor 3 = Color 3. fromRGB( 0 , 0 , 0 ) |
44 | UpdateButton.MouseEnter:Connect( function () |
45 | UpdateButton.TextColor 3 = Color 3. fromRGB( 34 , 34 , 34 ) |
48 | UpdateButton.MouseLeave:Connect( function () |
49 | UpdateButton.TextColor 3 = Color 3. fromRGB( 0 , 0 , 0 ) |
54 | PlayButton.MouseButton 1 Click:Connect( function () |
55 | local FadeInEffect = Instance.new( "Frame" ) |
56 | FadeInEffect.Name = "FadeInEffect" |
57 | FadeInEffect.BackgroundColor 3 = Color 3. fromRGB( 64 , 64 , 64 ) |
58 | FadeInEffect.BorderMode = Enum.BorderMode.Outline |
59 | FadeInEffect.BorderSizePixel = 0 |
60 | FadeInEffect.Size = UDim 2. new( 1.5 , 0 , 1.5 , 0 ) |
61 | FadeInEffect.Position = UDim 2. new( 0 , 0 , 0 , 0 ) |
62 | FadeInEffect.AnchorPoint = Vector 2. new( 0.5 , 0.5 ) |
63 | FadeInEffect.Visible = true |
64 | FadeInEffect.Parent = MainMenu |