(HELP NEEDED) I can't get sound.PlayURL working at all.
0 replies, posted
I have compared this script to the wiki and another script of mine for the last hour or so and just can't understand what's going wrong. I am really new to Lua so any help is greatly appreciated.
Line 12 station:SetPos
CODE:
function playMusic()
sound.PlayURL("https://clyp.it/r2yk0q2e","mono",function(station)
station:SetPos(LocalPlayer():GetPos())
station:Play()
end)
ERROR:
[ERROR] addons/bankrobbery/lua/autorun/client/cl_init.lua:12: attempt to index local 'station' (a nil value)
1. unknown - addons/bankrobbery/lua/autorun/client/cl_init.lua:12
Sorry, you need to Log In to post a reply to this thread.