Why is my head not getting removed when i click the tool? (SOLVED)
Asked by
6 years ago Edited 6 years ago
If the part "Ifred" is = red then it should be removing my head but it dosen't work, what did i do wrong?
(Inside a tool, localscript, the brick is called "Ifred")
script:
1 | script.Parent.Activated:Connect( function () |
2 | if workspace.IfRed = = BrickColor.new( "Really red" ) then |
3 | game.Players.LocalPlayer.Character.Head:Remove() |
5 | print ( "Nope it's not red, puh" ) |
i tried if workspace.IfRed == BrickColor = BrickColor.new("Really red") but that wont
work.
Help would be appreciated!