spearman2
|
  |
| Joined: 28 May 2010 |
| Total Posts: 2938 |
|
|
| 28 Aug 2012 03:46 PM |
Group ID = 611536 p = game.Workspace.Part
function let through() if game.Players:FindFirstChild("Humanoid") IsInGroup(611536) then p.Transparency = 0.8 p.CanCollide = false wait(1) p.Transparency = 0 p.CanCollide = true else function onTouched(hit) explosion = Instance.new("Explosion") explosion.Radius = 12 explosion.BlastPressure = 1000 explosion.Position = script.Parent.Position explosion.Parent = game.Workspace script.Parent.Transparency = 0 connect:disconnect() end
script.Parent.Touched:connect(let through) script.Parent.Touched:connect(onTouched)
--This is my 1st script so I hope this works --This is supposed to be a GROUP ONLY wall, if you're not in the group then you'll blow up. -- So is this ok? |
|
|
| Report Abuse |
|
|
| |
|
|
| 28 Aug 2012 03:50 PM |
| I'm telling You now There's Errors.... |
|
|
| Report Abuse |
|
|
spearman2
|
  |
| Joined: 28 May 2010 |
| Total Posts: 2938 |
|
|
| 28 Aug 2012 03:59 PM |
Of course there's errors, it's always been like that for me. Ok what are these errors?
No I did not test them, I just got off my computer a while back. |
|
|
| Report Abuse |
|
|
spearman2
|
  |
| Joined: 28 May 2010 |
| Total Posts: 2938 |
|
| |
|
human
|
  |
| Joined: 06 May 2007 |
| Total Posts: 2765 |
|
|
| 28 Aug 2012 04:17 PM |
I think this will work, put the script in the door
GroupID = 611536 h = script.Parent script.Parent.Touched:connect(function(hit) if hit.Parent == nil then return end local plr = hit.Parent:findFirstChild("Humanoid") local check = game.Players:findFirstChild(hit.Parent.Name) if plr ~= nil then if check:IsInGroup(GroupID) then h.Transparency = 0.8 h.CanCollide = false wait(1) h.Transparency = 0 h.CanCollide = true else explosion = Instance.new("Explosion", h) explosion.Radius = 12 explosion.BlastPressure = 1000 explosion.Position = h.Position script.Parent.Transparency = 0 end end end) |
|
|
| Report Abuse |
|
|
| |
|
human
|
  |
| Joined: 06 May 2007 |
| Total Posts: 2765 |
|
|
| 28 Aug 2012 04:20 PM |
*fix
--------------------- GroupID = 611536 h = script.Parent script.Parent.Touched:connect(function(hit) if hit.Parent == nil then return end local plr = hit.Parent:findFirstChild("Humanoid") local check = game.Players:findFirstChild(hit.Parent.Name) if plr ~= nil then if check:IsInGroup(GroupID) then h.Transparency = 0.8 h.CanCollide = false wait(1) h.Transparency = 0 h.CanCollide = true else explosion = Instance.new("Explosion", plr.Torso) explosion.BlastRadius = 12 explosion.BlastPressure = 1000 explosion.Position = plr.Torso.Position script.Parent.Transparency = 0 end end end) |
|
|
| Report Abuse |
|
|