I have tried everything, but my mind is not enough to defeat my script skills. Heres SOME of the script.
1 | PlayersInGame = game.Players:GetChildren() |
2 | for i = 1 , #PlayersInGame do |
3 | PlayersInGame [ i ] .Character:MoveTo(TeleportLocation + Position) |
4 | h.Text = "Game in progress [2 Minutes]" |
5 | playerPicked = players [ math.random( 1 ,#players) ] |
(Tool giving script here for playerPicked?) (Tool will be in Lightning)
01 | local Players = game.Players:GetPlayers() |
02 | local Object = 'Weapon' --Change it to ur Weapon |
03 |
04 | PickedPlayer = Players [ math.random( 1 , #Players) ] |
05 |
06 | for i, v in pairs (game.Lighting:GetChildren()) do |
07 | if v.Name = = Object then |
08 | v:clone().Parent = PickedPlayer.Backpack |
09 | end |
10 | end |
11 |
12 | PickedPlayer.Character:MoveTo(Position/Part Position) |
13 | h = Instance.new( 'Message' ) |
14 | h.Text = 'Game in Progress [2 Minutes]' |
Am just giving Advice on wat the Script would better look like...
This shall help c;
1 | local PlayerGet = game.Players:GetPlayers() |
2 | local ObjectName = "Speed Coil" --change to object in lighting |
3 |
4 | for i,v in pairs (PlayerGet) do |
5 | v.Character:MoveTo(TeleportLocation + Position) |
6 | end |
7 |
8 | h.Text = "Game in progress [2 Minutes]" |
9 | game.Lighting [ ObjectName ] :Clone().Parent = game.Players [ tostring (PlayerGet [ math.random( 1 ,#PlayerGet) ] ) ] .Backpack |