#emote audio wont stop
273 messages · Page 1 of 1 (latest)
show script
theres two sepereate scripts
seperate
local tool = script.Parent
local function Unequip()
-- Find the sound with the name "vjhlcj"
local sound = tool:FindFirstChild("vjhlvj")
-- If the sound exists, stop it
if sound then
sound:Stop()
end
end
tool.Unequipped:Connect(Unequip)
local tool = script.Parent
local soundId = "rbxassetid://27808972"
local sound = Instance.new("Sound", tool)
sound.SoundId = soundId
sound.Looped = true
local isPlaying = false
tool.Activated:Connect(function()
if isPlaying then
sound:Stop()
else
sound:Play()
end
isPlaying = not isPlaying
end)
idk how
local tool = script.Parent
local soundId = "rbxassetid://27808972"
local sound = Instance.new("Sound", tool)
sound.SoundId = soundId
sound.Looped = true
local isPlaying = false
tool.Activated:Connect(function()
if isPlaying then
sound:Stop()
else
sound:Play()
end
isPlaying = not isPlaying
end)
local function Unequip()
sound:Stop()
end
tool.Unequipped:Connect(Unequip)
is that the whole script
yea
i have one more question rq
print("Hi")
ok
is the asistant reliable
no
assistant
no ai is reliable
you can use chatgpt for basic scripts but for complex or intermediate scripts its dog shit
oh yeah
i dont use complex scripts
also
when i reopen the emote
the music doesnt start

wym
let me just show you
nvm i cant
my emote makes it so
you have to click down to start the music
and the emote
so when you close it
they both go off
but when you reopen it and click it doesnt do anything
only the sound doesnt play
emote does
was this script the emote script
?
.
is this script responsible
idk
in the emote?
the emote is
uh
wait what
where is the emote script
im so confused
local tool = script.Parent
local animation = tool:WaitForChild("Animation")
tool.Activated:Connect(function()
local humanoid = tool.Parent:FindFirstChildWhichIsA("Humanoid")
if humanoid then
local anim = humanoid:LoadAnimation(animation)
anim:Play()
tool.Unequipped:Wait()
anim:Stop()
end
end)
local tool = script.Parent
local soundId = "rbxassetid://27808972"
local sound = Instance.new("Sound", tool)
sound.SoundId = soundId
sound.Looped = true
local function Activated()
if sound.IsPlaying then
sound:Stop()
else
sound:Play()
end
end)
local function Unequip()
sound:Stop()
end
tool.Unequipped:Connect(Unequip)
tool.Activated:Connect(Activated)
yeah thats the sound script
the parent is this same right?
both of the scripts are stored in the same tool right?
dumbass < noob
local tool = script.Parent
local soundId = "rbxassetid://27808972"
local sound = Instance.new("Sound", tool)
sound.SoundId = soundId
sound.Looped = true
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Character = Player.Character or Player.CharaterAdded:Wait()
local Humanoid = Character and Character:FindFirstChildOfClass("Humanoid")
local Animator = Humanoid and Humanoid:FindFirstChildOfClass("Animator")
local Animation = Animator:LoadAnimation(script.parent.Animation)
local function Activated()
Animation:Play()
if sound.IsPlaying then
sound:Stop()
else
sound:Play()
end
end)
local function Unequip()
Animation:Stop()
sound:Stop()
end
tool.Unequipped:Connect(Unequip)
tool.Activated:Connect(Activated)
delete the animation script and replace the sound script with this
toolsound toggle?
** You are now Level 5! **
Noob better than dumbass?
yea
no it works
well it doesnt
i mean like
the sccript is fine
no errors
lmao
i think its this
oh
right
local tool = script.Parent
local soundId = "rbxassetid://27808972"
local sound = Instance.new("Sound", tool)
sound.SoundId = soundId
sound.Looped = true
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Character = Player.Character or Player.CharaterAdded:Wait()
local Humanoid = Character and Character:FindFirstChildOfClass("Humanoid")
local Animator = Humanoid and Humanoid:FindFirstChildOfClass("Animator")
local Animation = Animator:LoadAnimation(script.parent.Animation)
local function Activated()
Animation:Play()
if sound.IsPlaying then
sound:Stop()
else
sound:Play()
end
end
local function Unequip()
Animation:Stop()
sound:Stop()
end
tool.Unequipped:Connect(Unequip)
tool.Activated:Connect(Activated)
yeah no
that should fix it
ok so
im a dumbass?
yes
but im a even bigger one
no errors but the sound wont play?
wtf
OH
WAIT
I MISSPELLED CHARACTER
💀
and I made the parent in lower case
I did it on discord if it was on studio it wouldnt have been a problem
;-;
local tool = script.Parent
local soundId = "rbxassetid://27808972"
local sound = Instance.new("Sound", tool)
sound.SoundId = soundId
sound.Looped = true
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character and Character:FindFirstChildOfClass("Humanoid")
local Animator = Humanoid and Humanoid:FindFirstChildOfClass("Animator")
local Animation = Animator:LoadAnimation(script.Parent.Animation)
local function Activated()
Animation:Play()
if sound.IsPlaying then
sound:Stop()
else
sound:Play()
end
end
local function Unequip()
Animation:Stop()
sound:Stop()
end
tool.Unequipped:Connect(Unequip)
tool.Activated:Connect(Activated)
oh
.
i bet it wont work still
cus of my luck
WOWWW
it doesnt work
@gloomy monolith
im calling david soon
ong
Idk man I have to sleep I'll send tomorrow when I'm on pc and I can use studio
u dont have to send it at all but thanks for helping
add prints and debug, also player input works best in a local script, i know this is a tool but i recommend a local script to play player animations and sounds on client side
where did you store this script btw
Idk it's 5 30 am and I'm on my phone
the script is in the tool right
11:11 here ;P
atleast you're getting the 8 horu sleep unlike me ;P
Fr
One time I slept at 3pm and woke up at 11 am
My sleep schedule is horrible
But yeah the script is in the tool
what the fuck
you slept for 20 hours?
💀
your tool has a handle right?
No
Oh I think I undnerstand now
I turned handle off
Cus when I used a handle it would anchor the player in a random place and stick there arm out
is the "RequiresHandke" property off?
It's just my luck
perhaps the animation is R6 and your avatar is R15?
My avatar is set to r6 and so it the games forced
The anim works fine
It's just the music
the sound works fine buddy
yes it does
I just rmembered
yes it does
its working just fine
its the same script
Mine doesn't work
the problem is probably with your studio
the studio has this sound glitch sometimes
try to publish the game
and play in roblo
x
is ur volume full?
ill show a video it works for me
40 KB/s upload speed lmao
;/
I get
piss is like poop there is nothing bad with it
whats wrong with piss?
poop doesnt tag either
But start isnt
a low level profanity
Shart
and probably cuz stuff like shit head too
shart is shitting accidentally
I sharted all over the wall and licked it all away
whats wrong with that
I dont see anything wrong with the sentence
It sound worse 😭
Yeah but I see something wrong with the wall
wdym bro "I LOVE SHARTING, I SHART ALL DAY AND SPEND MY DAY SHARTING ALL OVER MY WALLS"
whats wrong with that
YES
It uploaded
Put in an emote with the script
** You are now Level 6! **
Idc
Cus when u add an emote it messes it up I think
works fine
