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

Points Script Help?

Asked by 8 years ago

My points script won't work for my minigames, can anyone repost a fixed one?


minigames = game.Lighting.Minigames:GetChildren() h = Instance.new("Hint", game.Workspace) while true do if game.Players.NumPlayers > 1 then h.Text = "Deciding what game to play" wait (3) ranGame = math.random(1, #minigames) gameChosen = minigames [ranGame] h.Text = "Minigames chosen " .. gameChosen.Name wait (3) gameChosenClone = gameChosen:Clone() gameChosenClone.Parent = game.Workspace wait (3) -- Teleporting people to the map spawns = gameChosenClone.Spawns:GetChildren() for i,v in pairs(game.Players:GetPlayers()) do name = v.Name check = game.Workspace:FindFirstChild(name) if check then checkHumanoid = check:FindFirstChild("Humanoid") if checkHumanoid then v.Character:MoveTo(spawns[i].Position) end end end for i = 3, 1, -1 do h.Text = "Game begins in: " .. i wait(1) end -- Countdown till game ends for i = 10, 1, -1 do h.Text = "Time Left:" .. i wait(1) end h.Text = "Game ended" wait (3) h.Text = "Giving points out to those that won!" for i, v in pairs(game.Players:GetPlayers())do inGame = v:FindFirstChild("InGame") if inGame then if inGame.Value == true then Instance.new ("NumberValue",v.leaderstats).Name = "Points" v.leaderstats.Points.Value = v.leaderstats.Points.Value + 100 end end end wait (3) gameChosenClone:Destroy() else h.Text = "There needs to be 1 more player to start" end wait(1) end
Mod Edit: Added Lua Block Code. ~ CreativeEnergy
1
what is the problem other than it doesnt work we need more to help you ProfessorSev 220 — 8y
0
Well when a player wins the minigame they don't get payed the 100Points EpicMessi 0 — 8y
0
If you are not willing to give the whole script, we cannot help you. If this is the whole script, it will not work unless another script enables this then disables after the winning condition occurs. alphawolvess 1784 — 8y
0
Okay I will post the whole script now EpicMessi 0 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

Their is no Answer to this question.... You need to provide the entire script, and the entire process you plan on using.

0
This is the whole script and I have started a different script right now EpicMessi 0 — 8y
Ad

Answer this question