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

How can i make commands with the "wp" variable outside of the if loop ?

Asked by 4 years ago
Edited 4 years ago
01while script.Disabled == false do
02    local mapstoragechild = game.Workspace.MapStorage:GetChildren()
03    local players = game.Players:GetPlayers()
04    local message = game.Workspace.Message
05 
06    function tpbak()
07        local lp = game.Workspace.MapStorage.Map.PlayerStorage:GetChildren()
08        local wp = ()
09        for i = 1, #lp do
10            if lp[i].GameKills.Value >= 30 then
11                wp = lp[i]         
12            end
13        end
14        if lp then
15            print(lp)
View all 55 lines...

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago
1local kills = 0
Ad

Answer this question