#make sound to a bus door

1 messages · Page 1 of 1 (latest)

honest hazel
#

hi how to make sounds to a busdoor in rbx studio

valid escarp
#

Add sound in the door and make the open door script play the sound

valid escarp
#

What

honest hazel
valid escarp
#

Go into the script and make it play the sound

honest hazel
#

for _,v in pairs(script.Parent:GetChildren()) do
if v:IsA("Model") then
for _,t in pairs(v:GetChildren()) do
if t:IsA("BasePart") then
local W = Instance.new("WeldConstraint")
W.Part0 = t
W.Part1 = v.Rear.Value and script.Parent.Parent.Misc.Model.Hold1 or script.Parent.Parent.DriveSeat
W.Parent = t
t.Anchored = false
elseif t:IsA("Model") then
for _,x in pairs(t:GetChildren()) do
if x:IsA("BasePart") then
if x.Name ~= "B" then
local W = Instance.new("WeldConstraint")
W.Part0 = x
W.Part1 = x.Parent.B
W.Parent = x
x.Anchored = false
else
x.Anchored = false
end
end
end
end
end
end
end

--[[
Made By SPycre
Script under rights protections
]]--

#

thats the script

#

for the door

#

whats now

#

?

valid escarp
#

Find the part that opens the door

#

And make that part play the sound

honest hazel
swift capeBOT
#

studio** You are now Level 2! **studio

valid escarp
#

Do you even have a sound you want it to play

honest hazel
valid escarp
#

Ok

#

Put it in the door

honest hazel
#

i want put it in back door 1

#

thats the script

#

from mind

valid escarp
#

Put it in whichever door you want to open

honest hazel
#

i will the sound

valid escarp
#

Ok

honest hazel
#

then ?

valid escarp
#

Then go into the back door 1 script and in the door open function add code to play the sound

honest hazel
#

is this true ?

valid escarp
#

Read the docs

#

It tells you how to play sounds

honest hazel
#

can you fix it ?

#

and show what is wrong with the model

#

@valid escarp

valid escarp
#

I'm not fixing the entire model just find the part that opens the doors and add the code to play your sound