Sithex
|
  |
| Joined: 30 May 2010 |
| Total Posts: 1757 |
|
|
| 23 Jun 2014 08:44 PM |
it only takes damage when you go different speeds.. like say if you held down the same arror key it wouldn't do anything until you let go or moved a different direction any fix?
human = game.Players.LocalPlayer.Character human.Humanoid.Swimming:connect(function(speed) human.Humanoid:TakeDamage(1) end) |
|
|
| Report Abuse |
|
|
Sithex
|
  |
| Joined: 30 May 2010 |
| Total Posts: 1757 |
|
|
| 23 Jun 2014 09:11 PM |
bump
#Tab::Run www.roblox.com/ |
|
|
| Report Abuse |
|
|
Geomaster
|
  |
| Joined: 05 Jul 2008 |
| Total Posts: 1480 |
|
|
| 23 Jun 2014 09:15 PM |
Oh, you're trying to make a drowning function.
local player = game.Players.LocalPlayer repeat wait() until player.Character local char = player.Character local hume = char:WaitForChild("Humanoid") local drown = false
hume.Swimming:connect(function(chk) if chk then drown = true; else drown = false end end)
while wait(1) do if drown then hume:TakeDamage(1) end end |
|
|
| Report Abuse |
|
|
Sithex
|
  |
| Joined: 30 May 2010 |
| Total Posts: 1757 |
|
|
| 23 Jun 2014 09:21 PM |
wow why didnt i think of that qq
Thanks
#Tab::Run www.roblox.com/ |
|
|
| Report Abuse |
|
|