Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is it possible to input audio with a script?

Asked by 6 years ago

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

0
You can but you need to set id to it Lualaxy 78 — 6y
0
I got cancer from that code. learn lua cabbler 1942 — 6y
0
ur mom User#21406 0 — 6y

2 answers

Log in to vote
0
Answered by 6 years ago

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()
0
thank youu User#21406 0 — 6y
Ad
Log in to vote
0
Answered by
Lualaxy 78
6 years ago
Edited 6 years ago

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 :)

0
It says Sound Workspace.Sound failed to load id but im putting my own id in :U User#21406 0 — 6y
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. User#5423 17 — 6y
0
its supposed to say rbxassetid or something right? if yes do i keep that part User#21406 0 — 6y

Answer this question