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

How would I fix this?

Asked by 10 years ago

I'm making a really cruddy Murder game, but the name thing doesn't work.

Text

newname.Text = (1,#names)

Someone said this was right but it doesn't work at all, I'd like some help.

Names

names = {"Nick","Kyle","Loucy","Chris","Harry","Mia"}

Full Script


names = {"Nick","Kyle","Loucy","Chris","Harry","Mia"} msc = script.Parent.Music Head = game.Players.LocalPlayer.Character.Head while true do script.Parent.Text = "Game starting..." msc:Play() msc.Volume = 0.5 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 = (1,#names) msc.Volume = 0.4 wait(0.1) msc.Volume = 0.3 wait(0.1) msc.Volume = 0.2 wait(0.1) msc.Volume = 0.1 msc:Stop() end

The script is in a regular script, please tell me if that's wrong.

1 answer

Log in to vote
0
Answered by
Azarth 3141 Moderation Voter Community Moderator
10 years ago

newname.Text = names[math.random(#names)]

0
It works, but I cannot see the billboardgui. Grenaderade 525 — 10y
0
You need to Adornee  the GUI and size the GUI and TextLabel. Azarth 3141 — 10y
Ad

Answer this question