|
| 27 Jul 2016 02:44 PM |
Any errors or not randomizes number?
local GuessTheNumber = script local player = game:GetService'Players':GetPlayers() ----================================================------ chosenNumber5 = newRound.chosenNumber player.Chatted:connect(function(cht) if cht == "newround/" then newRound(cht) end if cht == chosenNumber5 and newRound() then print(player.. "wins!") end end)
function newRound(msg) wait(0.1) local numbers = {"1", "2", "3", "4", "5", "6", "7", "8", "9", "0"} local chosenNumber1 = math.random(1, #numbers) if chosenNumber1 == nil then error(chosenNumber1) end local chosenNumber = chosenNumber1 end
#code print("R$48 -- TheLuaDoge") |
|
|
| Report Abuse |
|
|
| 27 Jul 2016 03:02 PM |
what is the script for is it for a map changing script
|
|
|
| Report Abuse |
|
|
| 27 Jul 2016 03:03 PM |
no that is not, that is for a game when a player needs to guess the number and he gets points
#code print("R$48 -- TheLuaDoge") |
|
|
| Report Abuse |
|
|
| 27 Jul 2016 03:07 PM |
| idk does it work? find out youself |
|
|
| Report Abuse |
|