For some reason my script breaks, nothing in it works, and the new bool value i added to the player stops working, when there is a table with a value that is = to the instance.new that inserted the boolvalue into the player.
Here is what i did
game.Players.PlayerAdded:Connect(function(players) local save_values = { ["haschar"] = players:WaitForChild("Has_Char") } song:Play() song.Looped = true local has_char = Instance.new("BoolValue", players) has_char.Name = "Has_Char" players.CharacterAdded:Connect(function(character) end) end)
I dont understand why this wont work? it looks like it should to me. Any help would be appreciated. Thanks
Check if it is in a local script, as the code looks fine. But parenting something in the instance.new line is deprecated, so define it as a boolvalue then parent it on a seperate line.