Hello, What is wrong with my script?
local Name = script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Name
while true do
wait()
if game.Players[Name.Name].PLR_LRC_MDT.CAD_Call.Value == nil then
script.Parent.Status.StatusText.Text = game.Players[Name.Name].PLR_LRC_MDT.Status.Value
script.Parent.Callsign.Text = game.Players[Name.Name].PLR_LRC_MDT.Callsign.Value
script.Parent.Call_Status.StatusText.Text = game.Players[Name.Name].PLR_LRC_MDT.CAD_Call.Value.Name
else
script.Parent.Status.StatusText.Text = game.Players[Name.Name].PLR_LRC_MDT.Status.Value
script.Parent.Callsign.Text = game.Players[Name.Name].PLR_LRC_MDT.Callsign.Value
script.Parent.Call_Status.StatusText.Text = "NO CALL"
end
end
Error:
Players.arestformoney.PlayerGui.LRC_MDT.Main_Frame.Control.Unit_Call_Overview.Control_UNIT_Handler.Unit_Templete.Unit_Info:1: attempt to index nil with 'Parent'
This is a ServerScript BTW