Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

I have A LOT of scripting questions..please help?

Hello, I am in need of some scripts for a game in the style of Jeopardy.I need a lot of different scripts and I have 0 knowledge of anything script-related.

**-How would I make a script where it will make a round and choose 3 people as contestants and 1 host?

-How would I make a script where when the round starts it teleports the contestants and host on stage?

-How would I make a buzzer script where when a person presses their buzzer only one of the contestants can speak?

-How would I make the questions appear on a part? Changing decals on click? Every time I try this it’s not working and yes I am using the rbx-asset thing.

Side Questions

-For each script where would I place them? ( in the part, in the workspace, server script service, etc)

-For each script would they be local or regular scripts?**

That’s all Thanks :)

2 comments

0

You should probably take each thing at a time at time and ask more specific questions when you have a specific technical issue with one of these tasks, instead of just asking how to script.

0

In other words you're asking how to script. Nobody will answer such question here, go read the cookbook and if you're a real starter watch the now-outdated Hour of Coding YouTube tutorials ROBLOX made.

1 answer

✓ Accepted answer

Scripting Helpers is for when you have a script and it doesn't work, or you want it to do something else. not for requests, like this. If you want to learn to script, there are many ways. What you are describing there is a game function. I learned how to make those by looking at minigame kits, and learning using the Wiki, and watching youtube videos.

That being said, here are a few questions answered.

For choosing 3 people, you would simply do

local players = game.Players:GetPlayers() -- This is a list of all the players
local randoms = {} -- empty list

for i = 1,3 do -- The script goes through numbers 1 to 3. Essentially, it does the following 3 times.
	local randomnumber = math.random(1,#players) -- picks a random number
	local randomplayer = players[randomnumber] -- picks a random player from that number
	table.insert(randoms,randomplayer) -- puts the player into the list of random people
	table.remove(players,randomnumber) -- then it removes that player from the list, so it doesn't get chosen twice.
end -- that ends the loop on line 4.

Use SurfaceGuis if you want to put text on a brick.

And for teleporting, the wiki says it all.

But seriously. Scripting may look difficult. It's actually very easy. Everyone, even the greatest scripter, started off somewhere, and if you learn it for some time, it will become very simple.

This discussion is preserved as it was. New answers, comments, and votes are closed.