Search
 
SCRIPT & CODE EXAMPLE
 

LUA

roblox part touched

local model = script.Parent
 
local function onModelTouched(part)
	-- Filter any instances of the model coming in contact with itself
	if part:IsDescendantOf(model) then return end
	print(model:GetFullName() .. " was touched by " .. part:GetFullName())
end
 
for _, child in pairs(model:GetChildren()) do
	if child:IsA("BasePart") then
		child.Touched:Connect(onModelTouched)
	end
end
Comment

PREVIOUS NEXT
Code Example
Lua :: lua table of all characters 
Lua :: How to use Humanoids in Roblox Lua 
Lua :: Lua how to comment 
Matlab :: matlab how to set figure size so you can see plot 
Matlab :: matlab parameter in title 
Matlab :: octave disable warning 
Matlab :: check if dict key contains specific key and value 
Matlab :: matlab label size 
Matlab :: scilab plot 2d function 
Matlab :: how to set for with 2 increases in matlab 
Basic :: vb string to int32 
Basic :: watch starward ascii command 
Basic :: using amazon s3 to store your django sites static and media files 
Elixir :: elixir debug 
Elixir :: elixir write base64 to file 
Elixir :: phoenix ecto query expression 
Scala :: scala get file from url as string 
Scala :: scala match 
Scala :: scala linters 
Excel :: Google Sheets How to Count business Days Between Two Dates 
Excel :: or logic excel 
Perl :: split perl 
Pascal :: pascal pause 
Powershell :: CMD & Powershell History 
Gdscript :: godot 
Lisp :: list contains lisp 
Assembly :: how to check if chat is nsfw discord.py 
Assembly :: how to check assembly compatibility X64 and x86 
Javascript :: jquery vslidation remove spaces from input 
Javascript :: jquery unselect option 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =