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: I really need help quickly!

Previous Thread :: Next Thread 
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
06 Dec 2016 05:27 AM
I need to change this script so i'm going to be able to make _G.Tc1Broad = true when a guy teleports trough the server, I know that it needs to be a localscript but this is what i dont know:

1: Is it correct?
2: Where should i put it?

The script is at its right place, but not the localscript...

How am i going to make it work and where does the localscript gonna be at, there's like thousands of places to place it :/



-- LocalScript

game:GetService('TeleportService').LocalPlayerArrivedFromTeleport:connect(function(customLoadingScreen, teleportData)
for Key, Value in next, teleportData do
print(Key, Value)
_G[Key] = Value
end
end)




-- Script

while wait(1) do
if _G.Tc1StartedGame == true then
local TS = game:GetService("TeleportService")
local Players = game:GetService("Players")
local spawnName = "StartingInPlace"

local code = TS:ReserveServer(game.PlaceId) -- Returns a code
local players = game.Teams.Tc1Elevator:GetPlayers() -- Get a list of all players

TS:TeleportToPrivateServer(game.PlaceId,code,players,spawnName, {Tc1Broad = true})
_G.Tc1StartedGame = false
end
end
Report Abuse
Wrathsong is online. Wrathsong
Joined: 05 Jul 2012
Total Posts: 22393
06 Dec 2016 05:36 AM
Where's forum-master Soybeen when you need him...


Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow my twitch: twitch.tv/austinrblx
Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
06 Dec 2016 06:26 AM
Wrathsong, get lost.
Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
06 Dec 2016 07:03 AM
bump
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
06 Dec 2016 07:08 AM
Nice reference Wrathsong.
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
06 Dec 2016 07:10 AM
I would just say, wherever you check in the localscript, if a player arrived, you call a remoteevent and change the value? Just where you're assigning values to keys when reading the teleportdata, I'd say.
Report Abuse
HlCOM is not online. HlCOM
Joined: 29 Mar 2009
Total Posts: 3332
06 Dec 2016 07:12 AM
where's all the forum masters?!?!?
Report Abuse
antonio6643 is online. antonio6643
Joined: 30 Aug 2009
Total Posts: 791
06 Dec 2016 07:15 AM
I don't know if this will help or not but, if I recall correctly, you cant call Global variables from one script type into another. For example, if I made a global variable in a serverscript called _G.GlobalMadness, I wouldn't be able to use _G.GlobalMadness in my local script. This also might just be due to FilteringEnabled since I do all my work in Filtering Enabled, but I thought it may be helpful for you to know.


I'm Batman
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
06 Dec 2016 07:42 AM
@antonio6643 Why do you think did I recommend calling a remoteevent :) I'm the same opinion like you.
Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
06 Dec 2016 08:07 AM
HlCOM, get lost.

@Antonio6643 and @Cheater, this is a receiver if the server has teleported players, not any remoteevent thing.

I am trying not to insert the localfolder into a player/clientside, I want it serverside.

The goal is to make _G.Tc1Broad true if the server is a reservedserver.
Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
06 Dec 2016 10:48 AM
Bump

Someone suggested me to insert it inside replicated first folder...

Replicated first replicates the script to player... Not serverside...
Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
06 Dec 2016 11:56 AM
burp
Report Abuse
Wrathsong is online. Wrathsong
Joined: 05 Jul 2012
Total Posts: 22393
06 Dec 2016 08:09 PM
thx


Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow my twitch: twitch.tv/austinrblx
Report Abuse
HlCOM is not online. HlCOM
Joined: 29 Mar 2009
Total Posts: 3332
06 Dec 2016 08:11 PM
Wrath get lost u non-forum-master!!!11!1
Report Abuse
Wrathsong is online. Wrathsong
Joined: 05 Jul 2012
Total Posts: 22393
06 Dec 2016 08:11 PM
hey cmon im getting there

or trying to :(


Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow my twitch: twitch.tv/austinrblx
Report Abuse
HalfPinky456 is not online. HalfPinky456
Joined: 10 Apr 2011
Total Posts: 6236
06 Dec 2016 08:46 PM
sorry, doesn't seem like Soybeen the forum master is here to help

attempt to call girlfriend (a nil value) | nothin' like a good argument ¯\_(ツ)_/¯
Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
07 Dec 2016 03:19 PM
This is what media is all about, making a little mistake gets idiots attention go nuts about it. You guys are stuck up with the mistake i did, can you all just, shut up? Jeez roblox forum is really that hopeless, I'd compare you to a wall,

Oh sorry, the wall dominated you, it didn't argue about my mistake.

From now on, if you post stupid things on my next thread, I'll make sure you'll get a decent penalty.
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
07 Dec 2016 03:24 PM
Learn how to script kid.


Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
07 Dec 2016 03:29 PM
Sorry for being so rude.

This is a pretty simple fix actually,

First, you have to look carefully at the code for mistakes.
Second, look around you and you''ll see a wall.
Third, ask the wall for help.
Report Abuse
HlCOM is not online. HlCOM
Joined: 29 Mar 2009
Total Posts: 3332
07 Dec 2016 08:38 PM
"From now on, if you post stupid things on my next thread, I'll make sure you'll get a decent penalty."

LOL what are you gonna do? Give us a yellow or red card?
Report Abuse
antonio6643 is online. antonio6643
Joined: 30 Aug 2009
Total Posts: 791
07 Dec 2016 10:13 PM
I don't see why you're flaming on us, when we're just trying to help you. If you're just going to be like this, then don't even bother posting.


I'm Batman
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
12 Dec 2016 07:12 AM
Indeed. I can only asure you that it will work with a remoteevent. But for being rude I'll just ignore your threads from now on.
Report Abuse
LilMcManiac is not online. LilMcManiac
Joined: 31 Oct 2011
Total Posts: 2812
12 Dec 2016 08:29 AM
forum masters are all at work D:


I like cake.
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