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
|
  |
| 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
|
  |
| Joined: 18 Jun 2015 |
| Total Posts: 767 |
|
| |
|
Gofven
|
  |
| Joined: 18 Jun 2015 |
| Total Posts: 767 |
|
| |
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
| |
|
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
|
  |
| Joined: 29 Mar 2009 |
| Total Posts: 3332 |
|
|
| 06 Dec 2016 07:12 AM |
| where's all the forum masters?!?!? |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 18 Jun 2015 |
| Total Posts: 767 |
|
| |
|
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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
| |
|
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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 12 Dec 2016 08:29 AM |
forum masters are all at work D:
I like cake. |
|
|
| Report Abuse |
|
|