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

What would I use to check if something inside a model was touched?

As the title says, is there a certain function or event I could use to check if a player had touched a certain part of a model?

2 comments

0

Have you ever heard of .Touched?

0

Can you explain in detail please?

1 answer

Okay from what I understood from the problem, here is the solution

--This is a simple code which check whether a player touched a part or not.
local Part = Instance.new("Part", workspace)
Part.Touched:Connect(function(hit) -- .Touched is the answer.
print(hit + "touched the part")
end)

1 comment

0

Ok thank you

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