My script was this
1 | function onTouched(part) |
2 | local h = part.Parent:findFirstChild( "Humanoid" ) |
3 | if h~ = nil then |
4 | wait ( 0.001 ) |
5 | h.Health = 0 end end |
6 |
7 | script.Parent.Touched:connect(onTouched) |
And I Forgot to put end But any other ways or ideas?
You didn't put an "end".
1 | a = script.Parent.sb |
2 |
3 | while true do |
4 | wait() |
5 | a.Adornee = script.Parent |
6 | a.Color = script.Parent.BrickColor |
7 | wait( 0.5 ) |
8 | end |
1 | a = script.Parent.sb |
2 |
3 | while true do |
4 | wait() |
5 | a.Adornee = script.Parent |
6 | a.BrickColor = BrickColor.new(script.Parent.BrickColor) |
7 | wait( 0.5 ) |
8 | end |
This should work bud :-)