#resolved

1 messages · Page 1 of 1 (latest)

solar robin
#

I DONT KNOW HOW TO MOVE A MODEL WITH SCRIPT IVE TRIED SO MANY THINGS AND ITS NOT WORKING AAAAAAAAAA

thorn marlin
#

pivot to

marsh vale
#

model:PivotTo(<your cframe>)

solar robin
#

not rotate

#

i mean

#

change position

marsh vale
#

model:PivotTo(<your cframe>)

solar robin
#

alright

solar robin
marsh vale
#

this will move

#

based on your cframe

solar robin
#

uh

marsh vale
#

world space

solar robin
#

yes but like

marsh vale
#

if you make the cframe 5,2,3 it will move the model to 5,2,3

solar robin
#

i need the PrimaryPart to go to the cframe im giving it

#

and the rest of the model to follow with it

#

not the center of the model

marsh vale
#

if the pivot is on the primarypart then yes

#

center of the model is not the pivot

solar robin
#

so i do model.PrimaryPart:PivotTo()?

thick latchBOT
#

studio** You are now Level 12! **studio

marsh vale
#

the circled point is the pivot

solar robin
#

ye

marsh vale
#

model with primarypart

solar robin
#

oh it already does that for me

#

ok let me try it then

#

uh how can i convert a Vector3 to a CFrame

thorn marlin
#

cframe.new(vector3)

#

only has position though

solar robin
#

ah thanks

#

i can figure out the rotation later

marsh vale
#

rX, rY, and rZ should be in radians

#

so if you wanted the rY to be 45 degrees then you'd do 45 in radians

solar robin
#

works, thanks

#

resolved

marsh vale
#

theres a resolved tag

solar robin
#

got it on now

solar robin
marsh vale
#

Random.new():NextNumber(-360, 360)

#

but make sure its in radians

#

you can directly use math.rad(number)

solar robin
marsh vale
#

no

#

it returns decimals too

#

its very useful

solar robin
#

ohhh

#

eh i dont think i need it that fine-point

#

but that might be helpful some other time

marsh vale
#

-360, 360 should be the sweet spot

solar robin
#

thanks

#

alright

marsh vale
#

since 0,360 will only be clockwise