script.Parent.Touched:connect(function()
Instance.new("Explosion", game.Workspace.BlowPart)
local Explosion = game.Workspace.BlowPart.Explosion
game.Workspace.BlowPart:FindFirstChild("Humanoid")
Explosion.Position = script.Parent.Position
end)
I put an explosion instance in a Part named "BlowPart", I gave the explosion a Position too. So.. why when I touch the "BlowPart" it explodes.. BUT the workspace also explodes at (0, 0, 0)? I gave a CLEAR position. But it's exploding in two places at once. How do I fix this stupid glitch? Is it my computer? My studio?
Not to mention, the first time I touch the brick, it explodes I die, any other time after that, I don't die because for some reason, it's acting as if I'm giving the explosion two positions to transition from.
Output says:
12:08:20.179 - script.Parent.Touched:connect(function()
Instance.new("Explosion", game.Workspace.BlowPart)
local Explosion = game.Workspace.BlowPart.Explosion
game.Workspace.BlowPart:FindFirstChild("Humanoid")
Explosion.Position = script.Parent.Position
end):1: attempt to index global 'script' (a nil value)

3 comments
I thought I put it into the part on line 3? Right?
You have to give Instances Parents? I didn't know that.
The second argument of Instance.new is the Parent.