Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Property not changing properly?

trying to change visible from false to true then true back to false with a 6 second delay but, the property remains as false no matter what

	print 'Playing Sound 1'
	game.Players.LocalPlayer.PlayerGui.Song.SongName.Text = 'Current Song: Desiigner- Panda' 
	game.StarterGui.Song.SongName.Visible = true
	wait(6)
	game.StarterGui.Song.SongName.Visible = false
music.SoundId = song1 
music:play()
wait(114.137)

2 answers

✓ Accepted answer

Your problem is that in lines 3 and 5, you're using game.StarterGui, when you should be calling on the individual's PlayerGui

Improved Code:

	local player = game.Players.LocalPlayer
    print 'Playing Sound 1'
    player.PlayerGui.Song.SongName.Text = 'Current Song: Desiigner- Panda' 
    player.PlayerGui.Song.SongName.Visible = true
    wait(6)
    player.PlayerGui.Song.SongName.Visible = false
	music.SoundId = song1 
	music:play()
	wait(114.137)

Your problem lies in lines 3 and 5. Currently you have it set to the StaterGui instead of PlayerGui. To make it visible and not visible on the player you would have to change game.StarterGui to game.Players.LocalPlayer.PlayerGui.

This discussion is preserved as it was. New answers, comments, and votes are closed.