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

I need a round system script that only choose random 2 players?

I don't know how to script a round system that chooses a random 2 players and spawns them on a stage that I made and gives them a sword each. then they kill each other the winner pops up with a gui saying they won and gives them win count and spawns them back to lobby and it does this over and over again in the server. and I want a intermission in the game. and I I want code for a sword model that ill make my self?

thx for your time

1 answer

✓ Accepted answer

I have made a game that is very similar to what you're saying

I would highly recommend looking at Alvinblox's video on youtube that is titled something along the line of "How to make a game (Part1)" and it has part 1 through 5 becoz that's what i did

here's some tips

for the intermission, code something like

for intermission = 5,0,-1 do
	Status.Value = "Intermission "..intermission
	wait(1)
end
--store in serverscriptservice in a script

in case u dont know what the status im referring to is, its basically a string value stored inside replicated storage. the string will be shown to everybody via a gui. make the gui in starter gui sry for my bad expxlanation. gui should include a text label under the textlabel insert a local script and write something along the lines of

local status = game.ReplicatedStorage:WaitForChild("Status")
script.Parent.Value = status.Value

status:GetPropertyChangedSignal("Status"):Connect(function()
	script.Parent.Value = status.Value
end)

im so sorry i will improve on my answer tomorrow i have to go and sleep now if you're new to scripting I could explain it to you (do keep in mind i'm also fairly new to scripting)

1 comment

1

This isn't a request site, let him finish the rest.

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