rockout47Join Date: 2010-03-22 Post Count: 7395 |
Heres my script:
function onTouch()
Workspace.Building.BombPart:Instance.New(Explosion)
Explosion.BlastRadius= 25
end
Workspace.Building.BombPart.Explosion:connect(onTouch)
Heres what output says:
Workspace.Building.BombPart.Script:2: function arguments expected near '.'
Can somebody help me with this? I want to know how I can fix this. |
|
rockout47Join Date: 2010-03-22 Post Count: 7395 |
Bawmp. |
|
TranheadJoin Date: 2008-04-02 Post Count: 4217 |
Tehre is just so much wrong with that. |
|
rockout47Join Date: 2010-03-22 Post Count: 7395 |
Well then help meh. |
|
TranheadJoin Date: 2008-04-02 Post Count: 4217 |
I will, I am just a slow script typer xD |
|
rockout47Join Date: 2010-03-22 Post Count: 7395 |
So many usless posts. Scripting helpers is always so SLOWWW |
|
TranheadJoin Date: 2008-04-02 Post Count: 4217 |
Useless post? Screw it. |
|
rockout47Join Date: 2010-03-22 Post Count: 7395 |
Ugh. This forum is absolutely useless. |
|
|
function onTouch()
Explosion = Instance.new("Explosion", workspace.Building.BombPart)
Explosion.BlastRadius = 25
end
workspace.Building.BombPart.Touched:connect(onTouch) |
|
zeke505Join Date: 2008-05-26 Post Count: 15765 |
function onTouch()
Instance.new("Explosion", workspace.Building.BombPart).BlastRadius = 25
end
Workspace.Building.BombPart.Touched:connect(onTouch)
You're lucky. |
|
|
you both forgot to Position the Explosion. That is the one characteristic of Explosions that stuff like fire and sparkles don't have, I don't think that they move to their parent automatically. |
|
|
Thats what you were intending.
But this makes more sense.
------
bp = workspace.Building.BombPart
function onTouch()
Explosion = Instance.new("Explosion", workspace)
Explosion.Position = bp.Position
Explosion.BlastRadius = 25
end
bp.Touched:connect(onTouch)
------
Don't mind the people trolling you.
They think that somehow people who are bad at scripting don't deserve to be helped.
I don't get it.
Scripting is a passion, and fixing broken scripts is fun. |
|
bloob827Join Date: 2010-08-01 Post Count: 6867 |
function onTouch(hit)
x = game.Worksapce.Building.BombPart:Instance.new("Explosion")
x.BlastRadius = 25
end
script.Parent.Touched:connect(onTouched) |
|
zeke505Join Date: 2008-05-26 Post Count: 15765 |
@blockbuilder
Nobody trolled him.
He insulted us and called our posts useless, while we were trying to help. |
|
|
bloob, I promise that if I direct anyone in the scripting helping group to this thread, you would probably get demoted to basic scripter. |
|
|
@zeke
Two things wrong with that.
One, you can't do this "Instance.new("Object", parent).Property = something"
Two, the position will be set to 0,0,0 |
|
zeke505Join Date: 2008-05-26 Post Count: 15765 |
@blockbuilder
Instance.new("Object", parent).Property = something
Is completely valid as long as it isn't set as a variable. |
|
|
BlockBuilder, you never positioned it either. |
|
|
@zeke on him insulting us
Give him a break.
He probably isn't used to scripting helpers and doesn't know how to act.
I just want to make sure he doesn't leave scripting helpers forever and decides not to become a scripter just because of us. |
|
hidude43Join Date: 2009-07-10 Post Count: 2763 |
@zeke505. Phail. You were trying to copy the person above you's script but you didn't even include 2 important things. Blast radious and position. :3 |
|
|
@crazypotato
I did position it.
In my first post I didn't, but if you saw my second post, I fixed it. |
|
zeke505Join Date: 2008-05-26 Post Count: 15765 |
@hidude
Hey, look! Theres this new thing called a "late post"! I think you should try it.
Stop flaming. |
|
hidude43Join Date: 2009-07-10 Post Count: 2763 |
@Blockbuilder.
Man you don't know how much is true. People dislike scripters for some reason. Just because it doesn't take 5 seconds for an answer doesn't mean you have to leave the scripting sections. Just wait a little longer because eventually people will respond and your script will be fixed. :3 Then you'll be happy! |
|
|
Hey now.
Lets not have a flame war in front of the thread poster.
It gets really embarassing, trust me, its happened to my thread. |
|