#Teleport Forward

1 messages · Page 1 of 1 (latest)

devout gorge
#

Your still typing 😭

velvet talon
#

if its using a trigger handle:

  • Player = Rec Room Object Get Last Holding or Equipping Player(Trigger Handle)
  • Player Position = Get Position(Player)
  • Forward = Get Forward Vector(Trigger Handle)
  • Result = Player Position + Forward
  • Trigger handle primary action pressed
  • Set Position(Player, Result)

Since directions are normalized (radius is 1), this will only teleport a meter infront. To make it however long you want statically, add this to the list:

  • ScaledResult = Vector3 Scale(Result, Parse Float("meters forward")

All of these however teleport you through walls. You could use a raycast. That, or you could just use add velocity which i think is simpler & would look better

Add velocity (replace set position with this);

  • Velocity Add(Player, Forward)

I cant go too indepth or provide screenshots for any questions you have as im omw to work, so cya in ~10 hours

velvet talon
velvet talon
#

if your referencing the object board, you can delete the "rec room object get last holding..." u know, & player head position was never mentioned, so delete that as well

Idk if u saw, but i treat some parts as mathmatical expressions & functions, see Player Position + Forward? Search up the add and connect those

#

ye

worn sluice
#

add the player position and the forward vector

#

with an add chip

velvet talon
#

RRsmileF restating wuts been established go brrrrrr

worn sluice
#

well

#

he didn’t get it the first time

#

might as well say it a second

velvet talon
#

mhm-

worn sluice
#

also couldn’t we just use a raycast for this with a maximum distance?

#

ah

velvet talon
#

yee, well first off, is that a good distance? Dont want it to go farther?

#

alright, then scale the forward and put that where the forward was in the add

#

and ye, follow wut said before

#

here i made alot of it since im home now

worn sluice
velvet talon
#

hmm, testing this, screenmode can just clip the handle through walls while holding lmao, rec is great for having respective hands have no collision upon holding things huh

velvet talon
worn sluice
#

i can still read that

#

it’ll just take a while

velvet talon
worn sluice
#

couldn’t you?

velvet talon
worn sluice
#

i can see a string value, some ifs and an or, or an and

velvet talon
#

alright, goodluck :3

#

sorry rec do us like that 😭

velvet talon
#

np :3

worn sluice
#

doubt i would even have to patience, nobody would RRwah

worn sluice
#

i might do it now

velvet talon
worn sluice
#

gimme a year

#

or how about you just send me the chips RRtroll

velvet talon
#

nah, my A*

worn sluice
#

ass?

velvet talon
worn sluice
#

oh

#

never seen it worded like that

velvet talon
#

staggered, loop states, etc

worn sluice
#

so basically an ai?

velvet talon