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 a tool shoot a ball that, when the ball hits an object, creates brick then disappears?

Dont make the whole code btw that does not help me fix bugs if they are made

I want to make a shooter game where you can also paint the floor(if that makes sense) but i want to make it so a ball is shot out of the gun. How do i do that?

Also before you people ask, i have tried looking at stuff, and experimenting and i cant figure it out

3 comments

0

Please make an scripting attempt, send the script, and we shall fix if there is anything wrong.

0

The whole point of the site is to help people, not to go tell them to figure it out themselfs. He is probably here because he couldent figure it out in the first place

0

If you can't figure it out then I suggest you don't do it at all. What's the point of scripting a game if you can't script at all.

1 answer

basically your ball needs a touch event

ball.Touched:connect(function(object)
	-- you can do something about the object here

	local part = Instance.new("Part", workspace)
	part.Position = ball.Position
	ball:Destroy()
end)

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