1 | local e = Instance.new( "Sound" ,workspace) game.Players.dimondflash 57. Chatted:Connect( function (plr) if plr = = not string then e.Playing = true e.SoundId = "rbxassetid://" .. tonumber (plr) e.TimePosition = 0 e.Looping = true end end ) |
The error says "Unable to compensate string with nil" I don't want this showing because I use it in developer console and I run a lot of scripts there.
try this:
01 | local ME = game.Players:WaitForChild( "dimondflash57" , 30 ) -- Change this to your username |
02 |
03 | local e = Instance.new( "Sound" ,workspace) |
04 | ME.Chatted:Connect( function (mess) |
05 |
06 | if tonumber (mess)~ = nil then |
07 | e.SoundId = "rbxassetid://" .. tonumber (mess) |
08 | e.TimePosition = 0 |
09 | e.Looped = true |
10 | e:Play() |
11 | end |
12 | end ) |