#Part touches

7 messages · Page 1 of 1 (latest)

balmy yew
#

Making a part touch system is not easy for me.
I like to make a crate, it is a part, its called Crate.
And an other block, that the Crate has to touch, to call a function or print.
Can u make a code??

split roost
#

You're asking like if you were talking to an AI

#

Use Part.touched

fluid dirge
#
local crate = ...
local otherPart = ...

local function OnTouch(hit: BasePart)
  if hit ~= otherPart then return end
  print("Touched")
end

crate.Touched:Connect(OnTouch)
#

Replace crate and other part values by the actual paths

brave wedgeBOT
#

studio** You are now Level 16! **studio