generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: How to do unlock like Chapters or make changes

Previous Thread :: Next Thread 
RomDino is not online. RomDino
Joined: 04 Jul 2015
Total Posts: 2795
10 Mar 2017 11:18 PM
How do you like when you join the Main Menu (I made the Guis) and I only unlock Chapter 1 and then it teleports you to Chapter 1 (Place) but after you touched a brick and finished the Chapter and teleports you back into the Main Menu and unlocks Chapter 2?
Or make changes when you finished the game you unlock the "Extra" button
Report Abuse
RomDino is not online. RomDino
Joined: 04 Jul 2015
Total Posts: 2795
10 Mar 2017 11:52 PM
Bump 1
Report Abuse
RomDino is not online. RomDino
Joined: 04 Jul 2015
Total Posts: 2795
11 Mar 2017 05:58 AM
Bump 2
Report Abuse
galio13 is not online. galio13
Joined: 20 Jul 2011
Total Posts: 842
11 Mar 2017 06:22 AM
>TeleportService
>Datastore

Teleport player, when player touches the part, save it like DSS:SetAsync("Chapter1", true)
Then teleport player back to menu, make a script checking if Chapter1 is complete (if DSS:GetAsync("Chapter1") == true then)
Unlock chapter 2.
Etc
Report Abuse
RomDino is not online. RomDino
Joined: 04 Jul 2015
Total Posts: 2795
11 Mar 2017 06:33 AM
As local script?
But what if others people didn't finished chapter 1 but they accidentally got in the server? Do they get the Chapter 2 unlock too?
Report Abuse
RomDino is not online. RomDino
Joined: 04 Jul 2015
Total Posts: 2795
11 Mar 2017 07:38 AM
Bump 3
Report Abuse
LeikaZ is not online. LeikaZ
Joined: 31 Jan 2008
Total Posts: 595
11 Mar 2017 08:42 AM
Make it so BoolValue sets to True when someone passes a chapter


Report Abuse
Oryxide is not online. Oryxide
Joined: 09 Jul 2015
Total Posts: 647
11 Mar 2017 09:19 AM
ScreenGui's are local to the player. So any changes that are made will be for that player only.
Report Abuse
galio13 is not online. galio13
Joined: 20 Jul 2011
Total Posts: 842
11 Mar 2017 10:12 AM
@LeikaZ You are somewhat right, but that won't save if he uses teleport service. But, you are right when it comes to boolvalue. You should save it as a boolvalue. local DSS = ########################################################### local PlaceId = 12345678 script.Parent.Touched:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then local Player = game.Players:GetPlayerFromCharacter(hit.Parent) local DSS:SetAsync("Chapter1", true) game:GetService("TeleportService"):Teleport(PlaceId, Player) end end) When life gives you lemonade. Give the lemonades back to life! What am I supposed to with lemons?
Report Abuse
galio13 is not online. galio13
Joined: 20 Jul 2011
Total Posts: 842
11 Mar 2017 10:12 AM
Why does roblox filter when I do DataStore?


When life gives you lemonade. Give the lemonades back to life! What am I supposed to with lemons?
Report Abuse
the_rottenpotato is not online. the_rottenpotato
Joined: 04 Apr 2016
Total Posts: 11
11 Mar 2017 10:57 AM
Maybe if you make the servers for # player only it will ## easy that way you dont have to script that much
Report Abuse
RomDino is not online. RomDino
Joined: 04 Jul 2015
Total Posts: 2795
11 Mar 2017 10:50 PM
@the_Rottenpotato

The game is 1 player only, bruh...

And you still need to script much.
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
11 Mar 2017 10:53 PM
use a server sided script to store the data like this
local Unlocks = {
true; --stage [ 1 ]
true; --stage [ 2 ]
false; --stage [ 3 ]
false; --stage [ 4 ]
false; --stage [ 5 ]
}
Unlocks[ 3 ] = true --stage 3
and then use a remote function to get the data from the server

BUT..

MAKE SURE that you are not teleporting them WITHOUT checking if they unlocked it

because the client code can be manipulated and make it available so you should tell the server to teleport them but make sure that the data says they unlocked it
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
11 Mar 2017 10:54 PM
OR just check if they have it unlocked after they get teleported, and if they do not, kick them from the game or send them back to the main menu
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image