Want to create interactive content? It’s easy in Genially!

Get started free

Lesson 27

Product Team

Created on July 11, 2023

Start designing with a free template

Discover more than 1500 professional designs like these:

Smart Quiz

Essential Quiz

Practical Quiz

Akihabara Quiz

PiΓ±ata Challenge

Math Calculations

Pixel Challenge

Transcript

πŸš€

Game Development in Roblox

Lesson 27

Teleport to another game

ΠΠΠ§Π˜ΠΠΠ•Πœ

Let's get started

πŸš€

Let's review the material of the last lesson

  • We learned how to create products for Robux on the website;
  • We created a game pass.

Next

πŸš€

In today's lesson we will...

  • Learn how to set up a teleport that will transfer players to another game

Next

Teleport Model

Let's go

πŸš€

Creating Teleport Model

Go on! Turn the video on!

1/4

Next

πŸš€

Assignment 1/4

Create a teleport model and decorate it with an effect

Everything worked out

back

πŸš€

1/4

COOL

Well done! You did a great job!

Move on

Script

Let's go

πŸš€

Adding Code

Go on! Turn the video on!

2/4

Next

πŸš€

Assignment 2/4

Program the base and teleport

Teleport

Base

Everything worked out

Something went wrong

back

πŸš€

Help

Watch the video again, and if it doesn't help, ask your teacher!

The teacher will guide you on the right track!

Go back to the video

Everything worked out

πŸš€

2/4

GREAT

Well done! You did a great job!

Move on

Bonus Place

Let's go

πŸš€

Creating a second game

Go on! Turn the video on!

3/4

Next

πŸš€

Assignment 3/4

Create a bonus game and add it to the teleport code

Everything worked out

Something went wrong

back

πŸš€

Help

Watch the video again, and if it doesn't help, ask your teacher!

The teacher will guide you on the right track!

Go back to the video

Everything worked out

πŸš€

3/4

AWESOME

Well done! You did a great job!

Move on

πŸš€

Assignment 4/4

Working on the World and Mechanics

Listen

Everything worked out

Something went wrong

back

πŸš€

Help

Watch the video again, and if it doesn't help, ask your teacher!

The teacher will guide you on the right track!

Go back to the video

Everything worked out

πŸš€

A question coming up next!

Move on

What is Asset Manager?

tool that allows users to upload, store and manage various resources in the game

section for creating products on the website

section/ tool

Correct

Great!Moving on!

Next

Incorrect

You were close...

Next

πŸš€

Today we:

  • Learned how to set up a teleport that will transfer players to another game

Next

πŸš€

Homework

  • Develop the bonus place

Next

πŸš€

Here's a little test

It's easy!

Let's get started

Question 1

What is Smoke?

An effect

A teleport property

A part property

Question 2

What is this line responsible for: smoke1.Enabled = true

For the effect activation

For the effect deactivation

For checking whether the object was touched by a character

Question 3

What is output?

A window that displays information about the script or game functioning

A tool that allows you to create products in Roblox

A GamePass setup in Properties

Question 4

What is this line responsible for: humanoid.WalkSpeed = 0?

For disabling the jump power

For disabling the walk speed

For setting hit points to zero

In the next lesson we will learn how to create enemies and a point system for dealing damage

See you at the next lesson!

Next

πŸš€

Tell us whether you liked the lesson or not

Good job!

CLICK ME

Incorrect

Try again

Lesson 27

  • Creating Teleport Model
  • Adding Code
  • Creating a second game
Where are we going?
  • Study of the world and mechanics
  • Homework
  • Test

back

Rocket Coins

Let's do the math

Back

Π‘ΠΊΡ€ΠΈΠΏΡ‚ Ρ‚Π΅Π»Π΅ΠΏΠΎΡ€Ρ‚:

local TeleportService = game:GetService("TeleportService") local place2ID = 0000000000 -- the ID of a bonus place. Fill in your ID here. local function teleportTouch(Part) local player = game.Players:GetPlayerFromCharacter(Part.Parent) if player then TeleportService:Teleport(place2ID, player) end end script.Parent.Touched:Connect(teleportTouch)

Script to the base:

local smoke1 = game.Workspace.PartSmoke1.Smoke -- the path to the Smoke effect of the first Part local smoke2 = game.Workspace.PartSmoke2.Smoke -- the path to the Smoke effect of the second Part local smoke3 = game.Workspace.PartSmoke3.Smoke -- the path to the Smoke effect of the third Part local smoke4 = game.Workspace.PartSmoke4.Smoke -- the path to the Smoke effect of the fourth Part local function BaseTouch(Part) local humanoid = Part.Parent:FindFirstChild("Humanoid") -- writing the information about the character if humanoid then -- checking if it’s the character that touched smoke1.Enabled = true -- turning on the Smoke effect smoke2.Enabled = true smoke3.Enabled = true smoke4.Enabled = true humanoid.WalkSpeed = 0 -- setting walk speed to 0 humanoid.UseJumpPower = true humanoid.JumpPower = 0 -- setting jump power to 0 end end script.Parent.Touched:Connect(BaseTouch) -- function call