I made a script in a sign with a textlabel and put the script in it containing this:
local name = game.Players.LocalPlayer.Name
script.Parent.Text = ("Thanks to "..name.." for playing the game!")
but I keep getting the error : Workspace.Spawn.Sign.Text.SurfaceGui.TextLabel.Script:1: attempt to index nil with 'Name'

1 comment
I put this in a regular script not a local script if anyone needs to know