Hey, basically I touch this pad, and when it touches the pad, in the script, the "Team" Value goes in output printing out saying it's nil, when I don't really know why. Please help?
d=true
script.Parent.Parent.Touched:connect(function(hit)
if d and hit.Parent:FindFirstChild("Humanoid") and script.Parent.Parent.BrickColor~=BrickColor.Green() then
d=false
local plr=game.Players:FindFirstChild(hit.Parent.Name)
hit.Parent.Humanoid.WalkSpeed=0
hit.Parent.Torso.CFrame=CFrame.new(script.Parent.Parent.tpspot.Position)
script.Parent.Parent.BrickColor=BrickColor.Green()
plr.Court.Value=script.Parent.Parent.Parent.Parent.Name
plr.Pad.Value="_Pad"..script.Parent.Parent.Values._PadValue.Value
script.Parent.Parent.Values._PadTaken.Value=true script.Parent.Parent.Parent.Parent._Scoreboard.Scoreboard:Clone().Parent=plr.PlayerGui
script.Parent.Parent.Gui.Exit:Clone().Parent=plr.PlayerGui
script.Parent.Parent.SurfaceGui.TextLabel.Text=hit.Parent.Name
plr.Team.Value = "Home"
script.Parent._TeamRing.Disabled=false
wait(2)
script.Parent._TeamRing.Disabled=true
d=true
end
end)
Just read the part during above the plr.Team.Value = "Home" to find out why it makes that value nil.
I think it's cause it's grabbing the players actual Team, not like the value, please help here it dont grab the players actual Team, and get the value?

2 comments
Is that value a NumValue, IntValue, StringValue or BoolValue?
StringValue, but I figured out.