wille430
|
  |
| Joined: 24 Sep 2012 |
| Total Posts: 189 |
|
|
| 04 Aug 2015 06:02 AM |
| Hello, I'm trying to make a script that makes noises when you walk with remote event but is it the right way? Or should I use something else O.o'? |
|
|
| Report Abuse |
|
|
wille430
|
  |
| Joined: 24 Sep 2012 |
| Total Posts: 189 |
|
|
| 04 Aug 2015 06:04 AM |
| lol, I don't mean "walk with remote event" xp |
|
|
| Report Abuse |
|
|
wille430
|
  |
| Joined: 24 Sep 2012 |
| Total Posts: 189 |
|
| |
|
wille430
|
  |
| Joined: 24 Sep 2012 |
| Total Posts: 189 |
|
| |
|
wille430
|
  |
| Joined: 24 Sep 2012 |
| Total Posts: 189 |
|
| |
|
wille430
|
  |
| Joined: 24 Sep 2012 |
| Total Posts: 189 |
|
| |
|
|
| 04 Aug 2015 06:30 AM |
| To my knowledge this would be hard, I'm trying to think up something and I have a basis. One second. |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2015 06:35 AM |
Alright, so I'm pretty dumb. I looked through sounds in my Player.Character, and I found this:
function onRunning(speed) sClimbing:Stop() sSwimming:Stop() if (prevState == "FreeFall" and fallSpeed > 0.1) then local vol = math.min(1.0, math.max(0.0, (fallSpeed - 50) / 110)) sLanding.Volume = vol sLanding:Play() fallSpeed = 0 end if speed>0.5 then sRunning:Play() sRunning.Pitch = 1.6 else sRunning:Stop() end prevState = "Run" end
You could:
A. Make a script that changes the running sound placed in Character.Head or B. Make a script along those lines that plays a looped footstep sound when speed > .5 |
|
|
| Report Abuse |
|
|
wille430
|
  |
| Joined: 24 Sep 2012 |
| Total Posts: 189 |
|
|
| 04 Aug 2015 06:40 AM |
| Thank you :D I'll try A or B. |
|
|
| Report Abuse |
|
|
wille430
|
  |
| Joined: 24 Sep 2012 |
| Total Posts: 189 |
|
|
| 04 Aug 2015 07:00 AM |
O.O This doesn't work...
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(char) local head = char:WaitForChild("Head") local sounds = head:GetChildren() for i = 1, #sounds do if sounds[i].SoundId == "rbxasset://sounds/action_footsteps_plastic.mp3" then sounds[i].SoundId = "rbxassetid://198360408" end end end) end)
Should work right? |
|
|
| Report Abuse |
|
|
wille430
|
  |
| Joined: 24 Sep 2012 |
| Total Posts: 189 |
|
| |
|
wille430
|
  |
| Joined: 24 Sep 2012 |
| Total Posts: 189 |
|
|
| 04 Aug 2015 07:07 AM |
| LoL, I was about to make a RPG game I fixed a leaderboard and then I started to make small "details" like when U walk it sounds a different sound and things... |
|
|
| Report Abuse |
|
|
wille430
|
  |
| Joined: 24 Sep 2012 |
| Total Posts: 189 |
|
| |
|
| |
|