So im trying to make a team choose script and its putting attempt to index upvalue 'player' (a nil value) in output, here is my script. please correct it.
local team = script.Parent.Team
local frame = script.Parent.Parent
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function()
script.Parent.Parent:TweenPosition(UDim2.new(0, 381.0, 1500), 'Out', 'Quint',1,true)
player.Team = team.Value
end)

1 comment
nvm fixed it :D