Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do i make my kamehameha destroy stuff?

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

1 comment

0

What object is script.Parent?

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.