![]() ![]() ![]() Note that this script only works for the local player’s sound object. You can also add this script to a GUI button object in the game to make it functional. If it is found, we modify the Playing property of the sound object to mute or unmute it. Here, we use the FindFirstChildOfClass method to locate the sound object inside the player’s starter character script. Local music = :FindFirstChildOfClass("Sound") Here’s an example of how you can modify the mute button script: local mutebutton = script.Parent To make a mute button for sound regions, you can modify the script to reference the sound object inside the starter character script for each player. Robloxian’s guide of how to make mute buttons which I used and edited a bit:Īlso the video of mute button functions in my game, I did something bit right but I’m not there yet. Howtoroblox’s guide of how to make sound regions which I used: Sound.SoundId = Īlso I used some roblox studio tutorials on youtube for see how to make mute button and sound regions, but there was no video about how peoples can make mute button that mutes sound region musics despite some popular games like “bee swarm simulator” and “find the markers” have that functions. If part and part.Parent = areasGroup then Local part = workspace:FindPartOnRayWithWhitelist(raycast, ) Local raycast = Ray.new(hrp.Position, * -1000) Game:GetService("RunService").Heartbeat:Connect(function() Local areasGroup = workspace:WaitForChild("Areas") Local hrp = char:WaitForChild("HumanoidRootPart") Local sound = Instance.new("Sound", script) Mutebutton.MouseButton1Click:Connect(function() I tried to change the scripts with multiple ideas and changes, but never got luck at this.Īlso I might go show you guys about two codes I used for mute button and sound region script, (mute button by robloxian on yt) and it would be awesome to get helped so I can make free sound region with mute button asset in roblox model marketplace for everyone >} I do not know how to edit the script so it changes the “playing value” of sound object that is inside “local startercharacter script” that gets implemented in every player models. I want to make “GUI button” that changes the “playing value” of the sound object that gets implemented inside every model of players in “workspace” upon clicking the GUI button, I was kinda able to make GUI button changes it’s text by “Mute musics”(when musics isn’t muted) and “Unmute musics”(when musics are muted by GUI button) I’ll say the what I should say here below. Hello, it’s mari here, I have been very struggling with making mute button for sound regions since months ago, and I want to end the trouble and help many peoples by releasing sound region with mute button model.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |