Aellai
|
  |
| Joined: 24 Dec 2008 |
| Total Posts: 6946 |
|
|
| 14 Oct 2015 07:25 PM |
this audio plays 1 time (25-30 health points) when you have 25-30 healthpoints left
http://www.roblox.com/OoT-Low-Health-item?id=183044355 |
|
|
| Report Abuse |
|
|
Aellai
|
  |
| Joined: 24 Dec 2008 |
| Total Posts: 6946 |
|
|
| 14 Oct 2015 07:27 PM |
,
adding a lot of small things to my fort |
|
|
| Report Abuse |
|
|
|
| 14 Oct 2015 07:28 PM |
| wouldn't it just be a while loop? |
|
|
| Report Abuse |
|
|
|
| 14 Oct 2015 07:29 PM |
mah ears!11111111111111111
The rock of the forums.™ |
|
|
| Report Abuse |
|
|
Zach1102
|
  |
| Joined: 20 Aug 2010 |
| Total Posts: 48576 |
|
|
| 14 Oct 2015 07:31 PM |
if health < 30: play music code that i dont know |
|
|
| Report Abuse |
|
|
Aellai
|
  |
| Joined: 24 Dec 2008 |
| Total Posts: 6946 |
|
| |
|
Matthais5
|
  |
| Joined: 19 Apr 2012 |
| Total Posts: 6520 |
|
|
| 14 Oct 2015 07:41 PM |
You'd have to do something like
playSound = false
if player's health && playSound = false < 30 playSound = true Play audio end
if player's health >= 30 playsound = false end |
|
|
| Report Abuse |
|
|
|
| 14 Oct 2015 07:41 PM |
humanoid.Changed:connect(function(prop) if prop is health if health <= 30 audio:play() end) |
|
|
| Report Abuse |
|
|
Aellai
|
  |
| Joined: 24 Dec 2008 |
| Total Posts: 6946 |
|
| |
|
Aellai
|
  |
| Joined: 24 Dec 2008 |
| Total Posts: 6946 |
|
| |
|
Aellai
|
  |
| Joined: 24 Dec 2008 |
| Total Posts: 6946 |
|
| |
|
Aellai
|
  |
| Joined: 24 Dec 2008 |
| Total Posts: 6946 |
|
| |
|
Aellai
|
  |
| Joined: 24 Dec 2008 |
| Total Posts: 6946 |
|
| |
|
|
| 14 Oct 2015 07:56 PM |
Handle this locally. . . (In other words place in starterGui in a local script)
repeat wait() until game.Players.LocalPlayer.Character local Character = game.Players.LocalPlayer.Character local Create = LoadLibrary("RbxUtility").Create local Indicator = Create("Sound"){ Name = "Indicator", Parent = Character, SoundId = "rbxassetid://"..183044355 } local Played = false Character:WaitForChild("Humanoid").Changed:connect(function(Property) if Property == "Health" then if Played then return end if Character.Humanoid.Health <= 30 then Indicator:Play() Played = true end end end)
|
|
|
| Report Abuse |
|
|
Aellai
|
  |
| Joined: 24 Dec 2008 |
| Total Posts: 6946 |
|
| |
|