I am making a Murder game, but it's not adding the name. Help?
names = {"Nick","Kyle","Loucy","Chris","Harry","Mia"} while true do script.Parent.Text = "Game starting..." wait(10) script.LocalScript.Disabled = false name = Instance.new("BillboardGui") newname = Instance.new("TextLabel") newname.Parent = name name.Parent = Head newname.BackgroundTransparency = 1 newname.FontSize = "Size24" newname.Text = (#names) end
Try
newname.Text = math.random(1,#names)
And there is no variable "Head" try to be more specific like... game.Players.LocalPlayer.Character.Head
IMPORTANT: If you do use LocalPlayer then it might or might not need to be in local script
And unless there is a script inside called "LocalScript" put script.Disabled