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

Question to long read desc?

Asked by 6 years ago

i couldn't fit my qustion to long)

Why does the part change color when another part touches it i specified Humanoid can someone explain why it dosn't work?

script.Parent.Touched:Connect(function() script.Parent:FindFirstChild("Humanoid") script.Parent.BrickColor = BrickColor.new("Baby blue") end)

0
can you put it into code format tonyv537 95 — 6y
0
dont fred I solved it i hope sure TheluaBanana 946 — 6y
0
Oh thanks Freddan2006YT 88 — 6y
0
were u trying to put the entire question in the title :thonk: INOOBE_YT 387 — 6y

2 answers

Log in to vote
-1
Answered by 6 years ago
Edited 6 years ago

ur code wrong is wrong code Freddan I will use the limited information u give me to construct try and build code Freddan:

script.Parent.Touched:Connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") then
        script.Parent.BrickColor = BrickColor.new("Baby blue")
    end
end)
0
thats why i asked for formatting tonyv537 95 — 6y
0
You didn't need to make this answer, tony already answered his question in a comment, plus while his code now works, but you have not explained what he did wrong or give any other useful information. SteamG00B 1633 — 6y
0
yee TheluaBanana 946 — 6y
0
dont feel offended sometimes u just want cheap rep TheluaBanana 946 — 6y
Ad
Log in to vote
0
Answered by 6 years ago

Thnk you so much!

Answer this question