Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i make my kamehameha destroy stuff?

Asked by 8 years ago

i want my Kamehameha to create an explosion when it touches things but it wont do that i cant find the problem in my script


function onTouched(hit) e = Instance.new("Explosion") e.Position=script.Parent.Position e.Parent=workspace e.BlastRadius = 2 end script.Parent.Touched:connect(onTouched)

https://gyazo.com/80e8950ae34345684d4a23a6310ee294

0
What object is `script.Parent`? BlackJPI 2658 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

You need your script to detect if the kamehameha even touched something, or the script may error.

Ad

Answer this question