#Render script but only for avatars

1 messages · Page 1 of 1 (latest)

upper walrus
#

Okay so I've been trying to code a script with a render distance system to load the avatars in certain radius, i saw some games having this feature but i'm trying to make my own, but i don't know where to start, does anyone have an idea on how i can manage to script that ?

copper ore
#

local script, determine distance between humanoid root part of the plr character, change transparency of baseparts of characters that are further than max distance

#

formula for distance is

local distance = (plrHrp - displayHrp).Magnitude
#

or the other way around i forgot

#

Activate the check everytime the character moves

supple fern
copper ore
supple fern
#

displays?

copper ore
#

display characters

supple fern
#

wha?

copper ore
#

There are games that have preset outfits and they display them and you can buy them with a proxprompt

supple fern
#

you mean it's a blank r6 until it gets close enough or something?

copper ore
#

no just plain invisible

supple fern
#

yeah imo just let it do that

#

there's a tonne of problems you'll be facing if you try to do this

copper ore
#

this typa thing where they spawn when youre very close

supple fern
#

yeah pop-in

#

you can hide it easy, but you can't make it visible outside replication range very easy

copper ore
#

i mean you have few options, some of which are

  • change transparency
  • move it under ground or anywhere outside player view
  • move them between workspace and repstorage
#

all are shit, i dont know better practice yet

#

or

#

mess with the roblox's streaming

#

but idk if that doesnt affect all the parts tho

#

i just began my research on this

supple fern
copper ore
#

yeah

supple fern
#

i thought this was about making characters show up at large distances.

#

that would be very hard. short distances super easy, barely an inconvenience

copper ore
#

they said certain

#

so neither could be applied here

#

though by the aesthetic of the workspace in the screenshot, i could tell its one of those games where its a very close radius

copper ore
#

first few messages

upper walrus
#

Okay sorry i was in fact checking what you just said and i managed to remove the humanoid part the only thing is the accessories are still showing up sadly and i don't know how to really remove them since it's made differently from other items

#

i just know that accessories are made out of mesh but idk if should extract those mesh in the avatar model idk which thing would be more efficient in fact

fickle scarabBOT
#

studio** You are now Level 2! **studio

upper walrus
copper ore
#

the accesories

#

thats a basepart

#

set its transparency to 0

#

i mean 1

#

1

upper walrus
#

in fact yeah it has like an handle filled with settings and proprieties so i'll try to set it hopefully it doesn't mess up

copper ore
#

yeah its just properties for the accesory position

#

n shit

#

like for the new roblox udpate where u can change size and position of the acesories i guess

#

ure going for the meshpart