#Rotating

151 messages · Page 1 of 1 (latest)

shadow harbor
#

local bodyPos = Instance.new("BodyPosition", newpet.Cat)
bodyPos.MaxForce = Vector3.new(math.huge, math.huge, math.huge)

local bodyGyro = Instance.new("BodyGyro", newpet.Cat)
bodyGyro.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)

while wait() do
bodyPos.Position = humanrootpart.Position + Vector3.new(3,-1,3)
bodyGyro.CFrame = humanrootpart.CFrame
end
silent cliff
#

Oh so uh... as I said. I'd love to help with this. but as it's math based and you didnt explain the code or ask a proper question. it's rough. Take time and explain the issue & what you tried. Give it a few paragraphs

kindred quail
#

ask chat gpt

shadow harbor
shadow harbor
kindred quail
#

wait sen can I ask YOU a question?

lusty kraken
shadow harbor
kindred quail
#

how long have you been scripting for?

shadow harbor
#

25 days

#

or 26

kindred quail
#

i just started yesterday

shadow harbor
#

idk

kindred quail
#

FOR REAL

#

YOU LOOK LIKE YOU HAVE BEEN SCRIPTING FOR 2 MONTHS

lusty kraken
#

i started in December 2022

shadow harbor
lusty kraken
#

so like

lusty kraken
#

i've been scripting for 8 months now at this point

kindred quail
kindred quail
shadow harbor
shadow harbor
#

W method

kindred quail
lusty kraken
shadow harbor
kindred quail
#

like what does return do or get service

#

or whatever i need to be answered

lusty kraken
shadow harbor
#

W explanation

kindred quail
lusty kraken
#

it gets a service (obvious part), if the service doesnt exist then it creates it, if it does exist then it will just return the service with all the methods that you can use

shadow harbor
lusty kraken
kindred quail
#

I MADE STAIRS THAT DISAPEAR

lusty kraken
#

its CFrame

#

im stupid

shadow harbor
#

yes

silent cliff
#

Smh...

shadow harbor
silent cliff
#

yall just blowing eachother off? XD

shadow harbor
silent cliff
#

Who cares how long anyone else been scripting- Help the guy or don't use this thread...

lusty kraken
#
Pet.CFrame.LookVector = HumanoidRootPart.CFrame.LookVector
lusty kraken
shadow harbor
kindred quail
shadow harbor
shadow harbor
lusty kraken
#

its cuz

silent cliff
#

That was great lol

lusty kraken
#

ur bodyvelocity

#

cuh

shadow harbor
#

Um what

silent cliff
#

Naw expunged just got punked by sen

kindred quail
lusty kraken
shadow harbor
lusty kraken
#

i only do well with my own code agony

kindred quail
silent cliff
shadow harbor
#

LMAOOO

silent cliff
#

Maybe you don't understand your own code as well as you think

silent cliff
#

That'll be $900 for this session

lusty kraken
shadow harbor
silent cliff
#

^

lusty kraken
shadow harbor
lusty kraken
#

and you cant assign a cframe to a .position vector

shadow harbor
#

wtf am i supposed to do then

silent cliff
lusty kraken
#

BodyVelocity.CFrame

shadow harbor
#

Wat

silent cliff
#

CFrame is position & Rotation

lusty kraken
shadow harbor
#

so its facing the front

silent cliff
#

You can do that by affecting the Cframe of it yes!

lusty kraken
shadow harbor
lusty kraken
#

and btw

#

its math.rad() on CFrame.Angles

shadow harbor
#

yeah so like newpet.Cat.CFrame.Angles = newpet.Cat.CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))

#

or am i trippin

shadow harbor
lusty kraken
#

newpet.Cat.CFrame = CFrame.Angles(math.rad(), math.rad(), math.rad())

shadow harbor
#

OH RIGHT

#

Mb

shadow harbor
#

its now stuck

#

lemme turn off canCollide rq

#

nah still the same

lusty kraken
#

just use a weld and it will stick to the player and offset the position or cframe

lusty kraken
shadow harbor
#

like as if its following me

karmic dune
# shadow harbor

try newpet.Cat.CFrame *= CFrame.Angles(math.rad(), math.rad(90), math.rad()) instead

shadow harbor
#

whats *= ?

winter spear
#

i think this should work

lusty kraken
karmic dune
shadow harbor
#

ahaa

karmic dune
#

cus

#

its in a while loop

shadow harbor
#

oh wait

#

yep mb

lusty kraken
#

he's using bodyvelocity and its in a while loop

karmic dune
#

uh

#

do

#

wait is

bodyPos.CFrame = x.CFrame

possible?

lusty kraken
#

but we already went through that

karmic dune
#

wait

#

yk what you should do

#

create a part that follows the player

#

with correct orientation

#

and position

#

then put the cat

#

on the same part

lusty kraken
#

just use a weld ffs

karmic dune
#

using align orientation

#

and align position

karmic dune
#

like they make the pet look inanimate

lusty kraken
shadow harbor
karmic dune
#

if you use alignorientation and alignposition

#

then itll glide

#

looks nicer

lusty kraken
#

oh alr

shadow harbor
karmic dune
#

your using depreciated thingys

#

i forgot what theyre called

#

the body thingys

#

theyre depreciated