Code:
local tycoon = script.Parent.Parent.Parent.Parent.Parent local gate = script.Parent gate.Touched:Connect(function(Hit) local Player = game.Players:GetPlayerFromCharacter(Hit.Parent) if Player then local Humanoid = Hit.Parent:FindFirstChild("Humanoid") if Humanoid then if Hit.Parent.Humanoid.Health >= 1 then if script.Parent.Transparency == 0 then if gate.Transparency == 0 then for i, tycoonModel in pairs(script.Parent.Parent.Parent.Parent.Parent.Parent:GetChildren()) do if tycoonModel:IsA("Model") then if tycoonModel.Owner.Value ~= Player then if tycoonModel.Owner.Value == nil then if script.Parent.Parent.Parent.Parent.Parent.Owner.Value == nil then gate.Transparency = .7 gate.CanCollide = false tycoon.Owner.Value = Player Player.TeamColor = script.Parent.Parent.Parent.Parent.Parent.TeamColor.Value gate.GateGui.TextLabel.Text = Player.Name.."'s Tycoon!" end end end end end end end end end end end)
Closed as Not Constructive by JesseSong
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?