drgn42
|
  |
| Joined: 11 Feb 2010 |
| Total Posts: 3231 |
|
|
| 02 Nov 2015 07:44 PM |
| So all of my Touched scripts work until I clone a map from replicated storage into workspace. After that, they don't even register being touched. How can I fix that? |
|
|
| Report Abuse |
|
|
|
| 02 Nov 2015 07:45 PM |
Maps should be stored in ServerStorage.
Also, you'll need to give the code, relevant output & info. |
|
|
| Report Abuse |
|
|
drgn42
|
  |
| Joined: 11 Feb 2010 |
| Total Posts: 3231 |
|
|
| 02 Nov 2015 07:49 PM |
| There is no output. The script doesn't even begin executing. Why should maps be stored in ServerStorage? How about small models? How do I decide what should go into ServerStorage and ReplicatedStorage? |
|
|
| Report Abuse |
|
|
|
| 02 Nov 2015 07:50 PM |
| ReplicatedStorage is for stuff the client needs access to from LocalScripts. ServerStorage is for everything else basically. |
|
|
| Report Abuse |
|
|
|
| 02 Nov 2015 07:51 PM |
| If the script doesn't begin executing, is it being loaded by something else? Use print statements to find the problem origin. |
|
|
| Report Abuse |
|
|
drgn42
|
  |
| Joined: 11 Feb 2010 |
| Total Posts: 3231 |
|
|
| 02 Nov 2015 07:51 PM |
| I can't touch the ServerStorage directly through a client though right? |
|
|
| Report Abuse |
|
|
| |
|
drgn42
|
  |
| Joined: 11 Feb 2010 |
| Total Posts: 3231 |
|
|
| 02 Nov 2015 07:56 PM |
| So I just moved everything over to ServerStorage, but my scripts I clone in still don't even execute. Any idea why? I've been having this problem for quite a while. I've added waits for everything it touches in the script, so it doesn't run into errors in the script. Some reason it just doesn't execute. if I put a print("asdfasdgasd") before the hit function, it doesn't print. |
|
|
| Report Abuse |
|
|
drgn42
|
  |
| Joined: 11 Feb 2010 |
| Total Posts: 3231 |
|
|
| 02 Nov 2015 07:56 PM |
EDIT:
So I just moved everything over to ServerStorage, but the scripts in the map I clone in still don't even execute. Any idea why? I've been having this problem for quite a while. I've added waits for everything it touches in the script, so it doesn't run into errors in the script. Some reason it just doesn't execute. if I put a print("asdfasdgasd") before the hit function, it doesn't print. |
|
|
| Report Abuse |
|
|
|
| 02 Nov 2015 07:57 PM |
| Maybe the Touched event is hooked up wrong? Put a print at the very top of the script, and if it doesn't print it's a problem with the cloning. |
|
|
| Report Abuse |
|
|
drgn42
|
  |
| Joined: 11 Feb 2010 |
| Total Posts: 3231 |
|
|
| 02 Nov 2015 07:58 PM |
Yeah, it doesn't print. I just use game.ServerStorage:Clone().Parent = workspace |
|
|
| Report Abuse |
|
|
drgn42
|
  |
| Joined: 11 Feb 2010 |
| Total Posts: 3231 |
|
|
| 02 Nov 2015 07:59 PM |
game.ServerStorage.Map1:Clone().Parent = workspace
hah, forgot to put the map in. |
|
|
| Report Abuse |
|
|
|
| 02 Nov 2015 08:01 PM |
| Where's the script? Is it disabled? |
|
|
| Report Abuse |
|
|
drgn42
|
  |
| Joined: 11 Feb 2010 |
| Total Posts: 3231 |
|
|
| 02 Nov 2015 09:14 PM |
| The map clones in, but then none of the scripts that have a Touched function will execute. |
|
|
| Report Abuse |
|
|
Dogejia
|
  |
| Joined: 08 Feb 2012 |
| Total Posts: 1873 |
|
|
| 02 Nov 2015 09:16 PM |
Try using RemoteEvents, or RemoteFunctions if ya need data.
Online Dogeing since 1337 |
|
|
| Report Abuse |
|
|