#idk how to make a teleport button

117 messages · Page 1 of 1 (latest)

regal flame
#

yep

halcyon vigil
#

There's probably YouTube videos that tell you how to do it

regal flame
#

i tried and they didnt work

red junco
#

@halcyon vigil PLEASE HELP ME

#

#1270824074687414473

#

pls I am CRASHING OUT

regal flame
#

@red junco bru

surreal mistBOT
#

studio** You are now Level 1! **studio

red junco
#

#1270824074687414473

halcyon vigil
regal flame
#

can yall help my problem first ;-;

#

oh thx

halcyon vigil
#

yeah np-- it was a pretty simple issue

regal flame
#

i js started tho so idk what any of those words mean

halcyon vigil
#

now off the the weilding world I go...

#

probably should start by learning some of the basics first then-- makes it easier to code stuff

regal flame
#

i mean t like teleporting to like a diff map in the game

#

not servers

halcyon vigil
#

ohhh lol sorry

regal flame
#

;-;

#

do yk how to do that also?

halcyon vigil
#

TPing people is pretty easy

#

But gimme a sec because I can’t type this on phone

regal flame
#

its alr i got time

#

ive been making my game for the past 4hrs

#

if you wanna test it, its called, (BETA) FAL FPS but idk if it

#

will show up when u search for some reason

#

its for a fps game btw

#

imma brb in like 30 mins

regal flame
#

yo @halcyon vigil

surreal mistBOT
#

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

red junco
#

dude

#

u should learn the basics first, if you cant make a teleport idk how you expect to make a fps game

low river
red junco
surreal mistBOT
#

studio** You are now Level 1! **studio

red junco
#

its like the difference between knowing and memorizing

#

if you learn the basics when you see them applied you know how they work but otherwise youre just writing down stuff and praying it works

low river
halcyon vigil
# regal flame yo <@717072776514633769>

Sorry-- had to walk home to reach my computer. Anyways:

In case you don't know, every player has an invisible part inside of them called the "HumanRootPart". The HumanRootPart (HRP for short) is the core of the body and basically acts as an umbrella for every other part in the game. Kinda hard to explain, so take this lovely drawing made by our AI overlords as an example:

red junco
halcyon vigil
#

As the umbrella holding everything together, the main feature of the humanrootpart is that whatever happens to the humanrootpart also happens to all the other parts of an object. That means if you move the HRP, everything inside of the character also gets moved. With that in mind, we can simply move our character like so:

local character = game.Players.LocalPlayer.Character
local destinationCoords = CFrame.new(x, y, z) -- CFrames are the data type roblox uses to track locations, as they are basically a 3 dimensional coordinate plane with the ability to also track the rotation of stuff. A data type called Vector3 is kind of like CFrames, but they don't track rotation

character.HumanRootPart.CFrame = destinationCoords
-- The position property on anything that can be displayed in a game is stored in the CFrame data type, so the place we want to teleport also has to be formatted as a CFrame

easy peasy lol

low river
# red junco we are arguing but are on the same side

Yes and no. Just copy and pasting will waste your time but at the moment when you start bringing your own ideas in the game you try to play with the stuff you already got and this is the biggest learning effect in my opinion. You cant create your game with only tutorials, you always have to implement your own ideas

regal flame
#

i mean yall can try my game if you want

#

js go to my roblox and creations: fan1_ALT

#

fran1_ALT*

#

@red junco

#

lmk what i should add to it

low river
#

Its pretty nice, ive tested it on mobile and the ui scale was a little bit big and the wepon buttons wont do anything, but I think it can get pretty good with some updates. I like the gun animation when you walk and stop

regal flame
#

my game?

low river
#

Yes

regal flame
#

oh nice

#

i built it better for pc

#

i have another map, beach, but want to make a button to teleport to each map

low river
#

I just was too lazy to stand up xd

regal flame
#

ha idrk the controls on mobile

low river
regal flame
#

i tried them, but when i finished and tried to test in game, they didnt work

#

nothing happened

low river
#

Idk maybe make a new post with the problem

regal flame
#

what shoud it be named

red junco
#

basically u just wanna have tp parts

#

and set the hrp cframe to those parts

regal flame
#

js tp buttons

red junco
#

thats what i would do at least

regal flame
#

idk what that means'

red junco
#

how dont you know what that means but u made that whole game

#

did u use toolbox?

regal flame
#

for the trees

#

and rocks yeah

red junco
#

bro wth

#

okay so

regal flame
#

what

red junco
#

you must know what cframe si right

red junco
# regal flame what

like i dont understand hwo you made something so complex and yet you dont know basic cframe

#

do you know what cframe is?

regal flame
#

wait coordinate frame?

red junco
#

yes

#

coordinate frame

regal flame
#

ohhhh

#

ye

red junco
#

are u lying 😭

regal flame
#

i have opera open rn

red junco
#

cframe is basically a position

#

so make a tp part

#

then you have your characters humanoidrootpart

#

and just do

#

humanoidrootpart.CFrame = tppart.CFrame

regal flame
#

in a script?

red junco
#

yes in a csript

#

script

regal flame
#

do you have roblox studio

red junco
#

yes

#

dude

#

ur whole game is toolbox

regal flame
#

nuhuh

#

aw u left?

#

btw i still dont know how to make teleport button ;-;

#

@red junco

red junco
#

it wawsnt me

#

that was my friend

regal flame
#

oh

surreal mistBOT
#

studio** You are now Level 3! **studio

regal flame
#

alr

red junco
#

but like bro u gota lock in

#

without tool box

#

or u wont ever learn

regal flame
#

i told him it wasnt toolbox

#

i only used toolbox for the trees, rocks and bushes

#

cus i alr spent 2 hrs with only animating one gun

red junco
#

how did u script the shooting

surreal mistBOT
#

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

regal flame
#

local mouse = game/Players.LocalPlayer:GetMouse()

#

and sound came from yt

#

but can you js tell me how to get teleport button cus theres 114 comments and i still dont know

low river