Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Help? attempt to index upvalue 'player' (a nil value)

Asked by 5 years ago
Edited by Azarth 5 years ago

This question has been solved by the original poster.

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)
0
nvm fixed it :D mukarnukar2 0 — 5y

Answer this question