script.Parent.Touched:Connect(function(yum) if yum and yum.Parent:FindFirstChild(game.Workspace.Drop.Drop) then print(yum.Parent) print("Hooraw") else print(yum.Parent) end end)
Ok so this is suppose to first trigger all this when a small part is touch then it checks what thing touched the small part and if the part is Drop in the Drop file then it would then print "Hooraw" but it doesnt work i tried to fix it by adding more here (game.Workspace.Drop.Drop) it was ("Drop") and it doesnt work either way can you help?
COMMUNITY QUESTION
Can you help me? i have a problem with events and activating a part of code.
1 answer
What exactly is the "yum" function? You haven't put anything there, so it won't do anything. Also, use a code block next time.
5 comments
0
how do i use a code block
0
Click the blue LUA circle when typing a question, then paste your code in between the squiggly lines
0
and i dunno ill just watch a youtube video
0
Accept my answer. It gives us both points.
0
No thanks
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
'FindFirstChild' part , what does it mean? , what are you trying to do?
Im trying to make it so when a part named Drop in a Drop folder touches a part it prints "Hooraw" but it doesnt work