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

Get started free

Lesson 29

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 29

Shop Creation

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

Let's get started

πŸš€

Let's review the material of the last lesson

  • We learned how to create enemies;
  • We created a point system for dealing damage to enemies.

Next

πŸš€

In today's lesson we will...

  • Create our Shop;
  • Create in-game products for Robux on the Roblox website.

Next

Opening Shop

Let's go

πŸš€

Shop Creation

Go on! Turn the video on!

1/4

Next

πŸš€

Assignment 1/4

Create a shop button and a shop itself

Everything worked out

Back

πŸš€

1/4

COOL

Well done! You did a great job!

Move on

Script open/close

Let's go

πŸš€

Adding Code

Go on! Turn the video on!

2/4

Next

πŸš€

Assignment 2/4

Program the button and add a Leaderboard

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

In-game Products

Let's go

πŸš€

Developer product

Go on! Turn the video on!

3/4

Next

πŸš€

Assignment 3/4

Create a game product and add it to the game

Website:

Scripts:

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 Scripts

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 Product?

game product that is created in game

section for activating products' sale on the website

section/ product

Correct

Great!Moving on!

Next

Incorrect

You were close...

Next

πŸš€

Today we:

  • Created out Shop;
  • Created in-game products for Robux on the Roblox website.

Next

πŸš€

Homework

  • Analyze the game and write a list of things that have not yet been added and have to be worked on

Next

πŸš€

Here's a little test

It's easy!

Let's get started

Question 1

What is BackgroundColor?

The frame border color in Properties

The button background color in Properties

The border size in Properties

Question 2

What is Frame for?

For adding various GUI elements

For configuring buttons

For adding a shop

Question 3

What is Visible?

The size property of GUI elements

The property which is responsible for the visibility of the GUI element

The main GUI object

Question 4

What section do we create game products in?

Badge

Sales

Developer product

In the next lesson we will finish developping our game and conduct a team testing

See you at the next lesson!

Next

πŸš€

Tell us whether you liked the lesson or not

Good job!

CLICK ME

Incorrect

Try again

Lesson 29

  • Video 1
  • Video 2
  • Video 3
Where are we going?
  • Development of scripts
  • Homework
  • Test

back

Rocket Coins

Let's do the math

Back

Check

local MPS = game:GetService("MarketplaceService") MPS.ProcessReceipt = function(receiptInfo) if receiptInfo.ProductId == 1157423758 then -- the product ID local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId) player.Character.Humanoid.UseJumpPower = true player.Character.Humanoid.JumpPower = 250 -- new jump power return Enum.ProductPurchaseDecision.PurchaseGranted end if receiptInfo.ProductId == 1157423758 then -- the new product ID local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId) player.Character.Humanoid.WalkSpeed = true player.Character.Humanoid.WalkSpeed = 50 -- new speed return Enum.ProductPurchaseDecision.PurchaseGranted end if receiptInfo.ProductId == 01233456789 then -- your product ID local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId) player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + 0 -- how many coins will be credited after the purchase, but the leaderboard should also contain this currency return Enum.ProductPurchaseDecision.PurchaseGranted end end

LocalScript

local Button = script.Parent shop = script.Parent.Parent.Shop -- the path to the main Frame, called Shop function onClick() -- function start if shop.Visible == false then shop.Visible = true Button.Text = "Close" elseif shop.Visible == true then shop.Visible = false Button.Text = "Shop" end end Button.MouseButton1Click:Connect(onClick)

Leaderboard

game.Players.PlayerAdded:Connect(function(plr) local f = Instance.new("Folder", plr) f.Name = "leaderstats" local coins = Instance.new("IntValue", f) coins.Name = "Coins" coins.Value = 0 end)

LocalScript ΠΊ Product1

local MPS = game:GetService("MarketplaceService") local id = 1234567890 -- The product ID local player = game.Players.LocalPlayer script.Parent.MouseButton1Click:Connect(function() MPS:PromptProductPurchase(player, id) end)