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

How to find touched position and create a part?

I want to create a part at the position where 2 brick is touched.

1 comment

0

Interesting question. I'd like to see an answer to this as well.

1 answer

Assuming you want to do this when a player touches a part, then you'll a script, inside of what you are touching.

script.Parent.Touched:connect(function(hit)
	if hit.Parent.Humanoid then
		local p = Instance.new("Part", game.Workspace)
		p.CFrame = hit.Parent.Torso.CFrame
	end
end)

Hope this helps. Also don't forget to upvote my answer if I helped you.

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