pinball9
|
  |
| Joined: 29 Apr 2016 |
| Total Posts: 11 |
|
|
| 04 Oct 2017 04:04 PM |
| Hi i'm new to scripting so i need help most of the time... can someone help me create or send me a fall damage script because i looked it up all over the place and i can't find any. so if anyone is willing to help just send me a falling damage script or help me create a fall damage script. Thanks and goodbye :D |
|
|
| Report Abuse |
|
|
Hazania
|
  |
| Joined: 04 Jun 2010 |
| Total Posts: 1344 |
|
|
| 04 Oct 2017 04:10 PM |
| local FallDamageBegin = ## ##### ############### = 1 local Player = game.Players.LocalPlayer local Last_Y = Player.Character.Torso.Position.Y function onFreeFall(active) if (active) then Last_Y = Player.Character.Torso.Position.Y else local y_diff = Last_Y - Player.Character.Torso.Position.Y if (y_diff > FallDamageBegin) then local damage = (y_diff - FallDamageBegin) * FallDamageScale Player.Character.Humanoid:TakeDamage(damage) end end end Player.Character.Humanoid.FreeFalling:connect(onFreeFall) |
|
|
| Report Abuse |
|
|
Hazania
|
  |
| Joined: 04 Jun 2010 |
| Total Posts: 1344 |
|
|
| 04 Oct 2017 04:12 PM |
Fall Damage Begin = TEN Fall Damage Scale = ONE
remove spaces and change TEN and ONE to actual numbers
^^ sorry Roblox filtering is garbage |
|
|
| Report Abuse |
|
|
pinball9
|
  |
| Joined: 29 Apr 2016 |
| Total Posts: 11 |
|
| |
|