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

Why does my robbable bank not work? Bank GUI not showing up.

Asked by 5 years ago
Edited 5 years ago

I know this code is similar to Alvin_Blox's code on the robbable bank but I need help with it.

01function GenerateRegion3(part)
02    local Region3FromPart = Region3.new(part.Position-(part.Size/2), part.Position+(part.Size/2))
03    return Region3FromPart
04end
05 
06function FindPlayersInRegion3FromPart(PartToCreate)
07    local reg = GenerateRegion3(PartToCreate)
08    local playersFoundInRegion = game.Workspace:FindPartsInRegion3(reg, nil, math.huge)
09    local PlayersInReg = {}
10 
11    for _, part in pairs(playersFoundInRegion) do
12        print("Got in for loop for parts in region3")
13            local player = game.Players:GetPlayerFromCharacter(part.Parent)
14            if player then
15                print("Another One!")
View all 35 lines...

Any help or anything is appreciated!

Answer this question