|
| 13 Nov 2016 09:40 AM |
local ExplodingBall = script.Parent local function steppedOn(part) local parent = part.Parent if game.Players:GetPlayerFromCharacter(parent)then Instance.new(Explosion) end end It does not work. :C
I Will Be The Next Donald Trump |
|
|
| Report Abuse |
|
|
|
| 13 Nov 2016 09:43 AM |
That's not how to create an explosion this is how:
local expl = Instance.new("Explosion") expl.Position = part.Position expl.BlastRadius = RadiusOfExplosion expl.BlastPressure = TheStrenghtOfExplposion expl.Parent = workspace |
|
|
| Report Abuse |
|
|
|
| 13 Nov 2016 09:44 AM |
You've got the event that triggers the function right? x'D
if game.Players:GetPlayerFromCharacter(part.Parent) then Instance.new("Explosion") end
Pretty sure that's not how you initiate an explosion but I can't be bothered to look it up.
228,680 slices of pizza and counting |
|
|
| Report Abuse |
|
|
|
| 13 Nov 2016 10:52 AM |
local function script.Parent.Touched:connect(function() local expl = Instance.new("Explosion",script.Parent) expl.Position = part.Position expl.BlastRadius = 10 expl.BlastPressure = 10 end) |
|
|
| Report Abuse |
|
|
caca50
|
  |
| Joined: 10 Jul 2011 |
| Total Posts: 2037 |
|
|
| 13 Nov 2016 10:58 AM |
script.Parent.Touched:connect(function(part) local player = game.Players:GetPlayerFromCharacter(part.Parent) if player then Instance.new('Explosion',script.Parent) end end |
|
|
| Report Abuse |
|
|