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: Touched Not Working

Previous Thread :: Next Thread 
drgn42 is not online. 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
ChiefAlpha is not online. ChiefAlpha
Joined: 01 Oct 2015
Total Posts: 2014
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 is not online. 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
ChiefAlpha is not online. ChiefAlpha
Joined: 01 Oct 2015
Total Posts: 2014
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
ChiefAlpha is not online. ChiefAlpha
Joined: 01 Oct 2015
Total Posts: 2014
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 is not online. 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
ChiefAlpha is not online. ChiefAlpha
Joined: 01 Oct 2015
Total Posts: 2014
02 Nov 2015 07:53 PM
Right.
Report Abuse
drgn42 is not online. 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 is not online. 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
ChiefAlpha is not online. ChiefAlpha
Joined: 01 Oct 2015
Total Posts: 2014
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 is not online. 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 is not online. 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
ChiefAlpha is not online. ChiefAlpha
Joined: 01 Oct 2015
Total Posts: 2014
02 Nov 2015 08:01 PM
Where's the script? Is it disabled?
Report Abuse
drgn42 is not online. 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 is not online. 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
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