NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
BladeXE
|
  |
| Joined: 22 Dec 2012 |
| Total Posts: 3857 |
|
|
| 07 Apr 2014 06:12 PM |
script.Parent.Touched:connect(function(c) if c.Parent:FindFirstChild("Humanoid") then f = instance.new("ForceField", c.Parent) wait(math.huge) f:Destroy() end end) |
|
|
| Report Abuse |
|
|
|
| 07 Apr 2014 06:18 PM |
Put this into a brick >.>
function touch(hit) if hit.Parent:FindFirstChild("Humanoid") ~= nil then x=hit.Parent:FindFirstChild("Humanoid") Instance.new("ForceField", x.Parent) end script.Parent.Touched:connect(touch) |
|
|
| Report Abuse |
|
|
BladeXE
|
  |
| Joined: 22 Dec 2012 |
| Total Posts: 3857 |
|
|
| 07 Apr 2014 06:27 PM |
| Pretty sure mine works better |
|
|
| Report Abuse |
|
|
| |
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 07 Apr 2014 06:43 PM |
local db = false
script.Parent.Touched:connect(function(hit) db = true if hit.Parent:FindFirstChild("Humanoid") ~= nil then repeat force = hit.Parent:FindFirstChild("ForceField",true) force:Destroy() until hit.Parent:FindFirstChild("ForceField",false) db = true end end) |
|
|
| Report Abuse |
|
|
|
| 07 Apr 2014 06:51 PM |
AGH! WHY ARE YOU WAITING math.huge?????
local db = false
script.Parent.Touched:connect(function(part) if db then return end if part.Parent:FindFirstChild("Humanoid") then db = true Instance.new("ForceField", part.Parent) wait(3) db = false end end) |
|
|
| Report Abuse |
|
|
Ariophy
|
  |
| Joined: 08 Mar 2014 |
| Total Posts: 81 |
|
|
| 07 Apr 2014 07:40 PM |
local db = false
script.Parent.Touched:connect(function(part) if db then return end if part.Parent:FindFirstChild("Humanoid") then db = true Instance.new("ForceField", part.Parent) wait(3) db = false end end)
Like this, I think. |
|
|
| Report Abuse |
|
|
BladeXE
|
  |
| Joined: 22 Dec 2012 |
| Total Posts: 3857 |
|
|
| 07 Apr 2014 07:58 PM |
so that the forcefield is never removed I can do what I want lol |
|
|
| Report Abuse |
|
|
|
| 07 Apr 2014 08:01 PM |
@Ario
Did you just copy and paste my script? lol |
|
|
| Report Abuse |
|
|