#idk how to make a teleport button
117 messages · Page 1 of 1 (latest)
There's probably YouTube videos that tell you how to do it
i tried and they didnt work
@red junco bru
** You are now Level 1! **
#1270824074687414473
The button goes on the client, when clicked fires a remote event to the server (teleport code can't be on the clinent for security reasons), then make the teleport stuff. If YT doesn't work, then Roblox's documentation will: https://create.roblox.com/docs/projects/teleporting
yeah np-- it was a pretty simple issue
i js started tho so idk what any of those words mean
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
ohhh lol sorry
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
yo @halcyon vigil
** You are now Level 2! **
dude
u should learn the basics first, if you cant make a teleport idk how you expect to make a fps game
But from those projects you learn the most
debatable
** You are now Level 1! **
most of the time you dont even understand whats going on, just copy paste from tutorials
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
Thats why you shouldnt copy and paste, yes, instead of copying try to play with the knowledge you got from a tutorial
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:
we are arguing but are on the same side
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
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
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
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
my game?
Yes
oh nice
i built it better for pc
i have another map, beach, but want to make a button to teleport to each map
I just was too lazy to stand up xd
ha idrk the controls on mobile
Watch some tutorials ans try to change the things in the Video a bit and play with them
i tried them, but when i finished and tried to test in game, they didnt work
nothing happened
Idk maybe make a new post with the problem
what shoud it be named
js tp buttons
thats what i would do at least
idk what that means'
what
you must know what cframe si right
like i dont understand hwo you made something so complex and yet you dont know basic cframe
do you know what cframe is?
wait coordinate frame?
are u lying 😭
i have opera open rn
cframe is basically a position
so make a tp part
then you have your characters humanoidrootpart
and just do
humanoidrootpart.CFrame = tppart.CFrame
in a script?
do you have roblox studio
nuhuh
aw u left?
btw i still dont know how to make teleport button ;-;
@red junco
oh
** You are now Level 3! **
alr
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
how did u script the shooting
** You are now Level 2! **
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
Teleport to another place or somewhere in the map