Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can you help me? i have a problem with events and activating a part of code.

Asked by 5 years ago

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?

0
'FindFirstChild' part , what does it mean? , what are you trying to do? User#17685 0 — 5y
0
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 Tacodragon777 -1 — 5y

1 answer

Log in to vote
0
Answered by
ZenTGE 4
5 years ago

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.

0
how do i use a code block Tacodragon777 -1 — 5y
0
Click the blue LUA circle when typing a question, then paste your code in between the squiggly lines ZenTGE 4 — 5y
0
and i dunno ill just watch a youtube video Tacodragon777 -1 — 5y
0
Accept my answer. It gives us both points. ZenTGE 4 — 5y
0
No thanks Tacodragon777 -1 — 5y
Ad

Answer this question