Advertisement
Guest User

Untitled

a guest
Jul 5th, 2020
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.05 KB | None | 0 0
  1. -- blue Teams intvalue
  2.  
  3. local part = script.Parent.Parent
  4.  
  5. part.Touched:Connect(function(part)
  6.     if part.Name == "Handle" then
  7.         local player = game.Players:GetPlayerFromCharacter(part.Parent.Parent)
  8.         if player then
  9.             local RedTeam = player:FindFirstChild("RedTeam")
  10.             if RedTeam then
  11.                 script.Parent.Value = script.Parent.Value + 1
  12.                 wait(3)
  13.             else
  14.                 print("hey idot this is your own statue")
  15.             end
  16.         end
  17.     end
  18. end)
  19.  
  20. -- red teams int value
  21.  
  22. local part = script.Parent.Parent
  23.  
  24. part.Touched:Connect(function(part)
  25.     if part.Name == "Handle" then
  26.         local player = game.Players:GetPlayerFromCharacter(part.Parent.Parent)
  27.         if player then
  28.             local RedTeam = player:FindFirstChild("RedTeam")
  29.             if RedTeam then
  30.                 script.Parent.Value = script.Parent.Value + 1
  31.                 wait(3)
  32.             else
  33.                 print("hey idot this is your own statue")
  34.             end
  35.         end
  36.     end
  37. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement