xeeno90Join Date: 2010-06-23 Post Count: 1538 |
here it is:
function onTouch(hit)
x = hit.Parent.Name
if game.Players:findFirstChild(x).TeamColor == BrickColor.new("Really Red")
then hit.Parent:BreakJoints()
end
end
script.Parent.touched:connect(onTouch) |
|
xeeno90Join Date: 2010-06-23 Post Count: 1538 |
Wait, I think i know... I gotta see if its my problem... |
|
xeeno90Join Date: 2010-06-23 Post Count: 1538 |
Okay, NVM about this post, its because the "red" in "Really red" was capitalized... |
|
myrco919Join Date: 2009-06-12 Post Count: 13241 |
[ Content Deleted ] |
|
|
@mycro: Comapring a BrickColor to a String? fail.
@Poster: You didnt misspelt 'Touched' in the connection line |
|
myrco919Join Date: 2009-06-12 Post Count: 13241 |
[ Content Deleted ] |
|
|
He still spelt 'Touched' 'touched' |
|
bloob827Join Date: 2010-08-01 Post Count: 6867 |
function onTouch(hit)
x = hit.Parent:findFirstChild("Humanoid")
if game.Players:findFirstChild(x).TeamColor == BrickColor.new("Really Red") then
x:BreakJoints()
end
end
script.Parent.Touched:connect(onTouch) |
|
|
@bloob: Fail
function onTouch(hit)
x = hit.Parent:findFirstChild("Humanoid")
p = hit.Parent.Name
if x
and game.Players:findFirstChild(p)
and game.Players:findFirstChild(p).TeamColor == BrickColor.new("Really Red") then
hit.Parent:BreakJoints()
end
end
script.Parent.Touched:connect(onTouch) |
|
|
function onTouch(hit)
x = hit.Parent:findFirstChild("Humanoid")
p = hit.Parent.Name
if x
and game.Players:findFirstChild(p)
and game.Players:findFirstChild(p).TeamColor == BrickColor.new("Really red") then
hit.Parent:BreakJoints()
end
end
script.Parent.Touched:connect(onTouch)
--[[ red fail D= ]]-- |
|
bloob827Join Date: 2010-08-01 Post Count: 6867 |
LOL! |
|
|
bloob827Join Date: 2010-08-01 Post Count: 6867 |
We both failed :-0 |
|
|
bloob827Join Date: 2010-08-01 Post Count: 6867 |
NO!!!!!!!111
!!!! 11111
End of emo moment.
No jk. :3 |
|
myrco919Join Date: 2009-06-12 Post Count: 13241 |
[ Content Deleted ] |
|
bloob827Join Date: 2010-08-01 Post Count: 6867 |
function onTouch(hit)
x = hit.Parent:findFirstChild("Humanoid")
p = hit.Parent.Name
if x
and game.Players:findFirstChild("p")
and game.Players:findFirstChild("p").TeamColor == BrickColor.new("Really red") then
hit.Parent:BreakJoints()
end
end
script.Parent.Touched:connect(onTouch)
|
|
|
bloob827Join Date: 2010-08-01 Post Count: 6867 |
>_< |
|
myrco919Join Date: 2009-06-12 Post Count: 13241 |
[ Content Deleted ] |
|
xeeno90Join Date: 2010-06-23 Post Count: 1538 |
"Touched" works capitalized, and lowercased.. Anyhow, I found out the problem.. |
|