|
| 10 May 2017 04:38 PM |
well this weapon can still kill you with a forcefield, so how do i edit this so it wont
https://www.roblox.com/catalog/127506257/Knights-of-the-Splintered-Sky-Wind-Summoning-Horn
tool = script.Parent handle = tool:WaitForChild("Handle") event = tool:WaitForChild("Event") properties = tool:WaitForChild("Configuration")
readyColor = properties:WaitForChild("ReadyColor") onColor = properties:WaitForChild("ShieldColor") offColor = properties:WaitForChild("ReloadColor") onTime = properties:WaitForChild("ShieldTime") offTime = properties:WaitForChild("ReloadTime")
debounce = false handle.BrickColor = readyColor.Value
event.OnServerEvent:connect(function(player) if debounce then return end debounce = true local FF = Instance.new("ForceField", player.Character) handle.BrickColor = onColor.Value wait(onTime.Value) FF:Destroy() handle.BrickColor = offColor.Value wait(offTime.Value) handle.BrickColor = readyColor.Value debounce = false end) |
|
|
| Report Abuse |
|
|
|
| 10 May 2017 04:39 PM |
http://wiki.roblox.com/index.php?title=API:Class/Humanoid/TakeDamage
|
|
|
| Report Abuse |
|
|
LaeMVP
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 4416 |
|
| |
|
|
| 10 May 2017 04:40 PM |
| come on guys fix it for me? |
|
|
| Report Abuse |
|
|
LaeMVP
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 4416 |
|
| |
|
Vaserity
|
  |
| Joined: 11 Oct 2016 |
| Total Posts: 20 |
|
|
| 10 May 2017 04:44 PM |
When a weapon is damaging you, make sure it uses;
player.Character.Humanoid:TakeDamage(100)
rather than
player.Character.Humanoid.Health = player.Character.Humanoid.Health - 100.
:TakeDamage() takes into account if the user is FFed.
But, if thats not working,
event.OnServerEvent:connect(function(player) prevHealth = 0 if debounce then return end debounce = true
local FF = Instance.new("ForceField", player.Character) handle.BrickColor = onColor.Value prevHealth = player.Character.Humanoid.Health player.Character.Humanoid.MaxHealth = math.huge player.Character.Humanoid.Health = player.Character.Humanoid.MaxHealth wait(onTime.Value)
player.Character.Humanoid.MaxHealth = 100 player.Character.Humanoid.Health = prevHealth
FF:Destroy() handle.BrickColor = offColor.Value wait(offTime.Value) handle.BrickColor = readyColor.Value debounce = false end)
|
|
|
| Report Abuse |
|
|
|
| 10 May 2017 04:51 PM |
| the weapon doesn't damage you it picks you up with a tornado. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
LaeMVP
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 4416 |
|
|
| 10 May 2017 05:44 PM |
| so why would we fix the script for you? |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 10 May 2017 05:45 PM |
"come on guys fix it for me? "
^ Ahem no
|
|
|
| Report Abuse |
|
|
|
| 10 May 2017 05:52 PM |
| ill pay what ever extra you charge, i'm not going over 100 robux for 1 line that needs to be added |
|
|
| Report Abuse |
|
|
|
| 10 May 2017 05:55 PM |
Unsubtleties gave you answer, Vaserity just clearly explained it, even with code.
|
|
|
| Report Abuse |
|
|
|
| 10 May 2017 06:27 PM |
| @phantom you don't understand get out. |
|
|
| Report Abuse |
|
|
|
| 10 May 2017 06:27 PM |
| the wind horn doesn't take your damage. it picks up your limbs and insta kills you. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
| 10 May 2017 07:21 PM |
| don't think i'm clicking a keylog link. |
|
|
| Report Abuse |
|
|
|
| 10 May 2017 07:22 PM |
See what foruming in LMaD does to people?
|
|
|
| Report Abuse |
|
|
|
| 10 May 2017 07:22 PM |
| lol.. do you not know what pastebin is *add ### ### after pastebin |
|
|
| Report Abuse |
|
|
|
| 10 May 2017 07:22 PM |
| add a period and the first 3 letters of come |
|
|
| Report Abuse |
|
|
|
| 10 May 2017 07:26 PM |
| i know what pastebin is, but you might've descised the link as a keylog one, post it here shawty. |
|
|
| Report Abuse |
|
|