#Look at player

70 messages · Page 1 of 1 (latest)

rare slate
rocky ember
#

saved

twin void
#

condensed a bit

#

i also have 0 idea what atan2 does

rocky ember
#

puts things inside of a R im assumeiny

hasty zodiac
#

I think

rocky ember
#

oh

rare slate
deft mirage
#

h

finite geyser
#

Ok, now how do you make it follow you by the y rot?

#

I know it follows you left and right, but how can you make it to where it follows you up and down too?

twin void
hidden stone
#

to be honest, all you had to do was copy this #1449216250222743642 message code and set the other block to player with selid to localid and selpart to constant 0-4

narrow crow
#

Nevermind I made a silly mistake it’s working now 😫

kindred bough
#

SET Player.SelId Player.LocalId
LABEL Loop
SUB R0 Player.Pos.X grp1.Pos.X
SUB R1 Player.Pos.Y grp1.Pos.Y
SUB R2 Player.Pos.Z grp1.Pos.Z
ATAN2 R3 R0 R2
SET grp1.Rot.Y R3
MUL R4 R0 R0
MUL R5 R2 R2
ADD R4 R4 R5
SQRT R4 R4
ATAN2 R6 R1 R4
SUB R6 0 R6
SET grp1.Rot.X R6
SLEEP 0
GOTO Loop

#

i made it work 3d

gritty spoke
#

Canmod give me weeping angel code

gentle abyssBOT
gritty spoke
#

Bruh gf zfixluzrullxf@( guy of dozing

#

Canmod. H of of footy pj Lou duo duo do pricey

gentle abyssBOT
gritty spoke
#

Canmod ok

gentle abyssBOT
idle robin
#

wow

whole crest
#

just triggers and code

#

i only used 7 lines of code and 1 trigger for my code

marble basin
kindred bough
modern sage
#

a

turbid wyvern
#

YEAHH

turbid wyvern
#

it actually has a problem when you go ontop or on the bottom of it
which is that it freaks out

finite geyser
#

@marble basin If you dont Mind me asking, how do you making it so it also looks at you up and down not just left and right.

hollow dirge
#

i've got code for that but my headsets charging

marble basin
# finite geyser <@1247189932976373858> If you dont Mind me asking, how do you making it so it al...
LABEL Loop
SUB R0 Player.Pos.X grp1.Pos.X
SUB R1 Player.Pos.Y grp1.Pos.Y
SUB R2 Player.Pos.Z grp1.Pos.Z
ATAN2 R3 R0 R2
SET grp1.Rot.Y R3
MUL R4 R0 R0
MUL R5 R2 R2
ADD R4 R4 R5
SQRT R4 R4
ATAN2 R6 R1 R4
SUB R6 0 R6
SET grp1.Rot.X R6
SLEEP 0
GOTO Loop ```


This is the same code that I use, it works by using the pythagorean theorm calculate angle that the second rotation should move your player at
Btw I found that ashrabbit made this code earlier in the thread but it will work
meager otter
#

nice

kindred bough
marble basin
kindred bough
#

Prolly

#

I learned that from a poster in my school aga

idle robin
#

Wo

plush harness
#

do u have a smooth version?

fallow charm
hazy walrus
#

Col

steep basin
#

i need this!

gentle ember
#

Ima use this for my owner tag above me

gentle ember
#

help

hollow dirge
whole crest
#

hi

nocturne prairie
shut lion
#

This ones better:
LABEL Label1
SET Player.SelId Player.LocalId
SUB R0 grp1.Pos.X Player.Pos.X
SUB R1 grp1.Pos.Z Player.Pos.Z
SUB R3 grp1.Pos.Y Player.Pos.Y
MUL R4 R0 R0
MUL R5 R1 R1
ADD R5 R5 R4
SQRT R5 R5
ATAN2 R5 R3 R5
ATAN2 R2 R0 R1
SUB R5 0 R5
SET grp1.Rot.Y R2
SET grp1.Rot.X R5
SLEEP 0
GOTO Label1

shut lion
fallen meadow
#
LABEL Loop
SUB R0 Player.Pos.X sign.Pos.X
SUB R1 Player.Pos.Z sign.Pos.Z
ATAN2 R2 R0 R1
SET sign.Rot.Y R2
GOTO Loop```
ornate turret
idle robin
shut lion