How would I be able to make a certain sound id play (Boosting).. When I press a key(shift)?
--Make sure this is a local script. Inside of backpack. --By ChrisCoder. local player = game.Players.LocalPlayer local mouse = player:GetMouse() local db = false -- debounce. wait(2) local sound = Instance.new("Sound", player.Character.Torso) repeat wait() until player and player.Character sound.SoundId = "rbxassetid://" --Your id. mouse.KeyDown:connect(function(key) --47 right shift, 48 left shift. if key:btye() == "47" then if db == false then db = true sound.Volume = 1 sound:Play() wait(2) -- time until you can boost or whatever again c; db = false end end end) --If anything is broken or dosen't work pm me.
Closed as Not Constructive by M39a9am3R
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?