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

Is my Script impacting other players?

Asked by
Games_DBZ -15
4 years ago

Hello again I'm doing a block as if it were a training area doubles my stats after entering, although I'm using Region3, when I enter my stats multiply, but those of other players multiply as well. How do I fix this?

The Script:

01local Players = game:GetService("Players")
02local Region = Region3.new(script.Parent.Position - (script.Parent.Size / 2), script.Parent.Position + (script.Parent.Size / 2))
03 
04local function scanForPlayerInRegion(Player)
05 
06    local Parts = workspace:FindPartsInRegion3WithWhiteList(Region, Player.Character:GetDescendants())
07 
08    if(#Parts >= 1)then
09 
10        return true
11    else
12        return false
13    end
14 
15end
View all 40 lines...

1 answer

Log in to vote
0
Answered by
xxaxxaz 42
4 years ago

try using a local script. I think the problem is if you are using a normal script. a local script only works for one person.

0
Okay, but how can I do this in practice? Games_DBZ -15 — 4y
0
just think before you insert a script. do you want it to only apear for one person. xxaxxaz 42 — 4y
Ad

Answer this question