For my Jailbreak game, the script is only meant to make Prisoners criminals, but it's changing both. Here's my script:
script.Parent.Touched:Connect(function(hit)
local humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid then
if game.Players[humanoid.Parent.Name].Team == game.Teams.Prisoner then
game.Players[humanoid.Parent.Name].Team = game.Teams.Criminal
end
end
end)
what is wrong with it? Bit of help plz - this is going towards the How to make Jailbreak series on YouTube! Thanks!
