|
| 21 May 2016 01:29 PM |
Say if I make something like a LinkedSword scripted weapon, is there a script function that can cause a shield to nullify damage made by said weapon?
I'm currently thinking of making a game, but I'm not sure whether I'm good enough to create it.
rawr, everybody walk the dinosaur ༼ つ ◕_◕ ༽つ || www.roblox.com/Was-Not-Was-Walk-The-Dinosaur-item?id=345639779 |
|
|
| Report Abuse |
|
|
|
| 21 May 2016 01:49 PM |
Here's an example:
local damage = 1337 local resistance = 0.5 --pretty sure percents don't work
print(math.floor(damage * resistance))
This siggy is copyrighted © |
|
|
| Report Abuse |
|
|
|
| 21 May 2016 01:51 PM |
Aside from percentages being super overrated. I prefer decimal fractions.
|
|
|
| Report Abuse |
|
|
|
| 21 May 2016 05:03 PM |
Thanks!
rawr, everybody walk the dinosaur ༼ つ ◕_◕ ༽つ || |
|
|
| Report Abuse |
|
|