Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

is it possible to resize Region3, or change its cframe?

ARegionCoords= Vector3.new(torsoP.X-(AreaWidth/2),torsoP.Y-(AreaHeight/2),torsoP.Z-(AreaWidth/2))

BRegionCoords=Vector3.new(torsoP.X+(AreaWidth/2),torsoP.Y+(AreaHeight/2),torsoP.Z+(AreaWidth/2))

PlayersVisionArea= Region3.new(ARegionCoords,BRegionCoords)

i have this code the creates an area around the player, but as the player moves the region3 should update and move along with the player. i realize looping this would just create more region3´s. ive considered destroying it and re-creating the region, is this the most effcient method?

3 comments

0

Look at the Roblox API... Region3.CFrame and Region3.Size.

0

They are read only properties though.

1

ur stuck once its already created bRo

1 answer

I don't think it's possible to move region3s. Your best bet would to create an invisible part that represents the region3's position and set the region3 to the part's position.

(not a master on region3s tho so don't quote this)

This discussion is preserved as it was. New answers, comments, and votes are closed.