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

Is it possible to input audio with a script?

Yeah i was just wondering if it was possible to input audio into workspace with a script as i tried doing this like im dumb

game.workspace:New.Sound

yeah if anyone can answer this thankz

3 comments

0

You can but you need to set id to it

0

I got cancer from that code. learn lua

0

ur mom

2 answers

✓ Accepted answer

Referencing kingdom5:

s = Instance.new("Sound")
s.Parent = game.Workspace
s.SoundId = "rbxassetid://000000000" -- ID goes here
s.Looped = false -- Or true if you want server music
s.Volume = 1
s:Play()

1 comment

0

thank youu

If I understand this right you need something like this :)

local ID = 000000000 -- ID HERE :D
local Sound = Instance.new("Sound")

Sound.Parent = game.Workspace
Sound.SoundId = ID

Any questions or if you want to correct me feel free to do so :)

3 comments

0

It says Sound Workspace.Sound failed to load id but im putting my own id in :U

0

This is not the correct ID format. If you crate a sound object in studio and input the id it will format it correctly for you.

0

its supposed to say rbxassetid or something right? if yes do i keep that part

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