ned995
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 4637 |
|
|
| 24 Sep 2014 07:05 PM |
ive got
function onTouch(Part) local Player = game.Players:GetPlayerFromCharacter(Part.Parent) if Player ~= nil then if Player.TeamColor == BrickColor.new("Bright yellow") then local exp = Instance.new("Explosion") exp.BlastRadius = 500 exp.BlastPressure = 500 exp.Parent = game.Workspace.Player exp.Position = game.Workspace.Player.Position end end end door.Touched:connect(onTouch)
idk what to do for position and parent though |
|
|
| Report Abuse |
|
|
|
| 24 Sep 2014 07:18 PM |
function onTouch(part) local human = part.Parent:FindFirstChild("Humanoid") if not human then return end local player = game.Players:GetPlayerFromCharacter(part.Parent) if not player then return end if player.TeamColor == BrickColor.new("Bright yellow") then local expl = Instance.new("Explosion") expl.BlastRadius = 500 expl.BlastPressure = 500 expl.Parent = human.Parent.Torso expl.Position = human.Parent.Torso.Position end end
script.Parent.Touched:connect(onTouch) |
|
|
| Report Abuse |
|
|
ned995
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 4637 |
|
| |
|