Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- blue Teams intvalue
- local part = script.Parent.Parent
- part.Touched:Connect(function(part)
- if part.Name == "Handle" then
- local player = game.Players:GetPlayerFromCharacter(part.Parent.Parent)
- if player then
- local RedTeam = player:FindFirstChild("RedTeam")
- if RedTeam then
- script.Parent.Value = script.Parent.Value + 1
- wait(3)
- else
- print("hey idot this is your own statue")
- end
- end
- end
- end)
- -- red teams int value
- local part = script.Parent.Parent
- part.Touched:Connect(function(part)
- if part.Name == "Handle" then
- local player = game.Players:GetPlayerFromCharacter(part.Parent.Parent)
- if player then
- local RedTeam = player:FindFirstChild("RedTeam")
- if RedTeam then
- script.Parent.Value = script.Parent.Value + 1
- wait(3)
- else
- print("hey idot this is your own statue")
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement