Hello! So Basically I’m trying to make a rhythm game, yes, a rhythm game, I don’t have much scripting nolage I think I’m Novice, anyway, I’m trying to make it so when the player picks TestSong then, the 3, 2, 1, Go! UI Will pop Up, the Issue is, nothing is happening and their are no errors
The Script
local MarioPaintBGM1Music = game.ServerStorage["Mario Paint - BGM 1"]
local MarioPaintTimeRegressionueotanremix = game.ServerStorage["Mario Paint ( Time Regression Mix ) - ueotan"]
local TestSongButton = game.StarterGui.SongsGUI.Frame.TestSongButton
local Three = game.StarterGui.CountdownGui.ThreeImageLabel
local Two = game.StarterGui.CountdownGui.TwoImageLabel
local One = game.StarterGui.CountdownGui.OneImageLabel
local Go = game.StarterGui.CountdownGui.GoImageLabel
TestSongButton.MouseButton1Click:Connect(function()
TestSongButton.Parent.Visible = false
wait(5)
Three.Visible = true
wait(0.5)
Three.Visible = false
Two.Visible = true
wait(0.5)
Two.Visible = false
One.Visible = true
wait(0.5)
One.Visible = false
Go.Visible = true
wait(0.5)
Go.Visible = false
end)
21:32:35.057 ServerScriptService.SongHandler:8: attempt to index nil with 'WaitForChild' - Server - SongHandler:8
21:32:35.061 Stack Begin - Studio
21:32:35.061 Script 'ServerScriptService.SongHandler', Line 8 - Studio - SongHandler:8
21:32:35.061 Stack End - Studio
What I changed,
local MarioPaintBGM1Music = game.ServerStorage["Mario Paint - BGM 1"]
local MarioPaintTimeRegressionueotanremix = game.ServerStorage["Mario Paint ( Time Regression Mix ) - ueotan"]
local TestSongButton = game.StarterGui.SongsGUI.Frame.TestSongButton
local Three = game.StarterGui.CountdownGui.ThreeImageLabel
local Two = game.StarterGui.CountdownGui.TwoImageLabel
local One = game.StarterGui.CountdownGui.OneImageLabel
local Go = game.StarterGui.CountdownGui.GoImageLabel
game.Players.LocalPlayer:WaitForChild("PlayerGui")
TestSongButton.MouseButton1Click:Connect(function()
TestSongButton.Parent.Visible = false
wait(5)
Three.Visible = true
wait(0.5)
Three.Visible = false
Two.Visible = true
wait(0.5)
Two.Visible = false
One.Visible = true
wait(0.5)
One.Visible = false
Go.Visible = true
wait(0.5)
Go.Visible = false
end)