I want to create a part at the position where 2 brick is touched.
COMMUNITY QUESTION
How to find touched position and create a part?
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.

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