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

How to name a player in status bar?

Asked by 5 years ago
Edited 5 years ago

I'm making a dancing game where everyone gets a turn to go on stage and dance, then people vote for the best. I've figured out how to teleport one random player to the stage, I was wondering how to put their name on the status bar, and people won't go on stage twice. Here's the script so far...

wait(2)

target = CFrame.new(99, 3.5, 62) for i, player in ipairs(game.Players:GetChildren()) do if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then player.Character.HumanoidRootPart.CFrame = target + Vector3.new(0, i * 5, 0) -- teleports all players to the audiance seats

end

end

status.Value = "First up is..." -- need to add player name here.

wait(2)

players = game.Players:GetChildren()

players[math.random(1, #players)]:MoveTo(Vector3.new(126.423, 3.2, 107.585)) -- does not work

please help I am a scripting beginner :)

0
Well, the text has to be relayed to a GUI. You can use RemoteEvents to fire the string to the client where the client shows the string in a TextLabel. DeceptiveCaster 3761 — 5y
0
I'm so sorry I'm an idiot I have no clue what you just said, The text is related to a GUI called status, the GUI works, I just want to know how to add the random players username to the text in the GUI annaolivia98 0 — 5y
0
GUI.Text == plr.Name DeceptiveCaster 3761 — 5y
0
=* DeceptiveCaster 3761 — 5y

Answer this question