kapeczun
(kapeczun)
February 10, 2024, 10:11pm
#1
Hello, I have problem with my script
What do you want to achieve? I want to make function that returns true when TouchPart is touching part/parts called “Wire”.
What is the issue? The problem is that, even if parts called “Wire” are in table (TouchPart is touching them), function still returns false .
What solutions have you tried so far? Tried to look for something related to my problem, but couldn’t find any solution.
I am able to provide any necessary information if needed, thanks
aron01224
(Arotje)
February 10, 2024, 10:16pm
#2
You loop through all the parts and will always return false. Thats because you return even when the name is not equal to “Wire”. You can solve this by getting rid of the return false
or adding if Part.Name ~= "Wire" then continue end
.
1 Like
kapeczun
(kapeczun)
February 10, 2024, 10:23pm
#3
That worked, thank you very much
system
(system)
Closed
February 24, 2024, 10:23pm
#4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.