Guest User

Not team damager

a guest
Mar 31st, 2019
9
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. DamageValue = 2
  2.  
  3. script.Parent.Touched:Connect(function(hit)
  4.     local plr = game.Players:FindFirstChild(hit.Parent.Name)
  5.     if not (game.Players:FindFirstChild(instanceof hit.Parent.).Team) == game.Teams.RRT then
  6.         function onTouch(hit)
  7.             hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health -DamageValue
  8.         end
  9.     onTouch(hit)
  10.     end
  11. end) --gat
Advertisement
Add Comment
Please, Sign In to add comment