#Teleporter

1 messages · Page 1 of 1 (latest)

wise kayak
#

Im trying to make a teleporting door but i dont know how to script one

raven crystal
#

watch tutorials

paper gateBOT
#

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

spark cove
#
Door.Touched
Character:PivotTo(CFrame.new())
#

you can use Door.Touched to figure out when someone touches the door

spark cove
#

and Model:PivotTo() to tp them somewhere ingame

#

if you mean teleport them to another game, ive got no clue

wise kayak
#

or "another door"

spark cove
#

yea

#

use :PivotTo()

wise kayak
#

this

spark cove
#

that will move a model (in this case your character) to another place

#

yes

wise kayak
#

ok how do i pick the place it moves

spark cove
#

and you can just put in the .Position of a point inside the TP door

#

or another object entirely, but id use a point inside the door itself

little rapids
#

yea

paper gateBOT
#

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

wise kayak
#

if im being entirely honest im confused

paper gateBOT
#

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

spark cove
#

im not gonna make a script for you

#

thats not learning

little rapids
#

Lol

spark cove
#

but i can help you out with this

wise kayak
#

i know i just dont know where

#

to put the location in this code

#

do i make it a new line

#

or

spark cove
#

post your current script

wise kayak
#

k

#

local teleportTrigger = script.Parent
local teleportDestination = workspace.TeleportDestination

local function onTouch(otherPart)

local character = otherPart.Parent
local humanoid = character:FindFirstChildOfClass("Humanoid")


if humanoid then
    
    local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")

    if humanoidRootPart then
        
        humanoidRootPart.CFrame = teleportDestination.CFrame + Vector3.new(0, 3, 0)
    end
end

end

teleportTrigger.Touched:Connect(onTouch)

#

this is what its currently

little rapids
#

ai

wise kayak
#

bingo

#

im just learning

#

i got a class

spark cove
#

yea so please kill that AI script

#

its evil

wise kayak
#

haha

spark cove
#

you wont learn like that

wise kayak
#

yeah

#

i got a class in school but it doesnt teach me about this much

spark cove
#

and you shouldnt be trying to make real games yet

wise kayak
#

just about how to make websites and stuff

little rapids
#

yeah they wont teach u lua most classes

wise kayak
#

well

#

they teach java

little rapids
#

thats normal its a big branch

spark cove
#

like java not js?

wise kayak
#

js

spark cove
#

yea

#

isnt java pretty obsolete atp

little rapids
#

yup

wise kayak
#

yeah

#

but right now

#

its teaching me how to add text into a website

#

so not very useful for this

little rapids
#

Lol

fluid saddle
paper gateBOT
#

studio** You are now Level 7! **studio

wise kayak
#

like

spark cove
wise kayak
#

<li> words</li>

#

its not that useful for coding a game

little rapids
#

😭

spark cove
#

ima be fr i learned html styling in less than a day for a mod for pavlov

#

idk why you need a whole unit

wise kayak
#

one unit?

#

NAH

#

THIS IS 6 UNITS

#

😭

spark cove
#

how

#

by spu7nix

little rapids
#

am i trippen whats pavlov

spark cove
#

vr shooter game

little rapids
#

is it a game?

spark cove
#

i make mods for it

little rapids
#

is it ON ps

spark cove
#

kinda

little rapids
spark cove
#

depends on what you mean

little rapids
#

steam

spark cove
#

with "on ps"

wise kayak
#

so

#

should i just learn by looking at other scripts

#

cause a whole lesson for it seems overtime

little rapids
#

well dev forms is where i kinda learnt

spark cove
#

you need to learn .Touched event and :PivotTo() method

#

so look those up in the documentation

little rapids
#

yup

wise kayak
#

ong making a gui is so much easier to learn

paper gateBOT
#

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

wise kayak
#

i learned it in 10 minutes

little rapids
#

well yeah ofc 😭

wise kayak
#

yeah

wise kayak
spark cove
#

you should

wise kayak
#

or im just absolutely stupid

#

i dont really

little rapids
spark cove
spark cove
wise kayak
#

ohh

spark cove
#

thats the devforum

little rapids
#

theres doc?!

spark cove
#

yes bro wth

wise kayak
little rapids
#

5 years not once have i ever even noticed it LOL

little rapids
wise kayak
#

we must learn way different then

#

cause i learn by example

little rapids
#

everyone has there styles

wise kayak
little rapids
#

jst click the big blue search docs

#

PivotTo()

spark cove
wise kayak
#

ok

little rapids
#

it has the character telaportation

paper gateBOT
#

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

wise kayak
#

so far this looks like its showing me how to rotate a block

quiet coral
spark cove
wise kayak
spark cove
#

we're showing him what he needs to learn it

little rapids
#

yup

spark cove
#

get outta here you filthy s1

little rapids
#

LOL

quiet coral
#

I answered the message up here

#

Roleless tecca

wise kayak
#

oo wait can pivot edit the blocks structure

spark cove
#

theres no reason to answer something thats already being solved

wise kayak
#

so say turn a square to acircle square thing

spark cove
#

you added nothing

little rapids
#

😭

quiet coral
#

Keep crying lil tecca

wise kayak
#

either im seeing stuff or im dumbb lol

spark cove
wise kayak
#

oh ok

#

so i cant like

#

shave a blocks structer

spark cove
wise kayak
#

ohh ok

#

cause i got trees that look horrible

#

their just squares

little rapids
#

lol

wise kayak
#

im serious its horrible

#

it hurts to look at

#

im honestly considering whoever put it there just used the toolbox

little rapids
#

maybe

#

who knows

wise kayak
#

yeah

wise kayak
spark cove
#

you can do easier stuff to make trees look better

wise kayak
#

alr

#

oh wait

#

i might know a way

#

to make the root look better

#

but not the leaves

little rapids
#

man i need level 5 to sell assests

quiet coral
little rapids
quiet coral
#

Thank you for showing me where i can chat

spark cove
little rapids
#

Your very much welcome gng

wise kayak
#

anti ragebait

paper gateBOT
#

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

little rapids
#

LOL

wise kayak