I haven’t used :GetPartsInPart yet so I’m not sure if I can use it for this (if not what’s an alternative?), but it seems like I can so how can I get all characters using :GetPartsInPart Instead of getting every part? I can’t seem to figure out how to use overlap params. I’m trying to experiment with a push the payload type of game and wanna get all the characters near the payload and be able to do stuff so yeah.
Here’s the code I currently have I basically tried to make it so whenever the table from GetPartsInPart changes do something.
local CharactersInRadius = ServerStorage:WaitForChild("CharactersInRadius") RunService.Heartbeat:Connect(function() if CharactersInRadius.Value ~= #workspace:GetPartsInPart(PAYLOAD.Radius.RealRadius) then warn("Stuff In Radius Changed") CharactersInRadius.Value = #workspace:GetPartsInPart(PAYLOAD.Radius.RealRadius) end end) CharactersInRadius:GetPropertyChangedSignal("Value"):Connect(function() --> Do stuff end)