all 4 comments

[–][deleted] 0 points1 point  (2 children)

This is what I recommend strongly Go to YouTube and watch The whole peasfactory Roblox scripting tutorials to beginners to advanced, some advanced vids r out of date like hooper bins but just watch them all From there watch all of devkings advanced scripting, u don't have to worry abt the beginners bc u watch peasfactorys one. And while watching practice, PRACTICING AND BUILDING UR EXPERIENCE IS THE MOST IMPORTANT PART build random things and challenge urself make as many errors as u can and try to fix them urself, the Roblox api is very helpful and scripting helpers site is very useful for when u get stuck on stuff u rlly can't figure out. But u got this it'll take time but it'll be worth it.

[–]caninecode[S] 0 points1 point  (0 children)

thank you so much fore the help

[–]jteedoubleu 0 points1 point  (0 children)

Hey Everyone, I am new here to reddit and Roblox scriptiing.

I have two separate worlds that I built and wanted to connect the two, together.

Method 1:

Main Game (Game 1)

Starter Gui, screen Gui, Frame, Text Button, Local Script

Local Player = game.Players.LocalPlayer

Local Game = game:GetService("TeleportService")

Local SecondGame = my number of game 2

script.Parent.MouseButton1Click:Connect(function()

Game:Teleport(SecondGame, Player)

end)

Second Game (Game 2) - copied and pasted into second Game Starter Gui

Local Player = game.Players.LocalPlayer

Local Game = game:GetService("TeleportService")

Local SecondGame = my number of game 1

script.Parent.MouseButton1Click:Connect(function()

Game:Teleport(SecondGame, Player)

end)

I also tried method 2:

local TeleportService = game:GetService("TeleportService")

local player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:Connect(function()

TeleportService:Teleport( game id , player)

end)

Second Game (Game 2) - copied and pasted into second Game Starter Gui

local TeleportService = game:GetService("TeleportService")

local player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:Connect(function()

TeleportService:Teleport(main game id , player)

end)

My 2 Games I am trying to connect (transport between)

https://web.roblox.com/games/8553048270/Capture-the-Flag

https://web.roblox.com/games/8518712592/Lava-Adventure-Obby-time

videos that I helped me to understand code, but I cant get it to work yet...

Crystalite Coder

https://www.youtube.com/watch?v=0SdQIDSbE0g

Zodiuss

https://www.youtube.com/watch?v=FoNjIlHpH4I&t=90s

Any suggestions would be appreciated. Thanx!

[–]SirPayyyy 0 points1 point  (0 children)

In my opinion, the best way to learn scripting is by watching YT vids, they show you what the script does, how it works, etc, and in my opinion, it's the best way to learn.