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 » Scripting Helpers
Home Search
 

Re: LocalScripts problem

Previous Thread :: Next Thread 
jobro13 is not online. jobro13
Joined: 05 Aug 2009
Total Posts: 2865
29 Apr 2012 07:20 AM
Hiya guys.

I have a question about local scripts. I have made a semi-starterpack that clones his stuff to player after clicking a button. This all works fine.

There also is a localscript in it. The thing is, if you play on the server with 1 player (yourself) it works fine. When you die, click the button again and you are NOT alone, the stuff suddenly breaks.

Can that be caused by localscripts?
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
29 Apr 2012 07:29 AM
[ Content Deleted ]
Report Abuse
jobro13 is not online. jobro13
Joined: 05 Aug 2009
Total Posts: 2865
29 Apr 2012 07:29 AM
Thats the problem - on Play solo - works (thats logically of course).

Start server --> 2 players --> Works. No output
Online? Nope. Its really frustrating... Offline works, online not. And I have like 20 bugs that I need to fix, they dont work online, yet offline :(
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
29 Apr 2012 07:31 AM
[ Content Deleted ]
Report Abuse
MrNicNac is not online. MrNicNac
Joined: 29 Aug 2008
Total Posts: 26567
29 Apr 2012 07:32 AM
There are actually quite a few factors to consider when dealing with differences between the server and the client. I'll need to see the code for the scripts you are using in order to really understand what might be happening.
Report Abuse
jobro13 is not online. jobro13
Joined: 05 Aug 2009
Total Posts: 2865
29 Apr 2012 07:41 AM
Well, to post the script here would be not a good idea. They are over 10 000 lines (no, it are not noob scripts, they just have a lot of haxor protections in them).

Okay, 1 of the scripts in question is a modified health script. I made a gui with 4 bars: Lungs, Health, Thirst and Hunger.

The health script has 3 "services" in it.

1) If player is dead, then do some stuff.
2) It helds the swim script (if your position < x then you are in water, start swimming, etc, using a coroutine)
3) It modifies your values, like -0.125 thirst every second.

Well, the thing is, it works for the first player that joins (swim works, etc) and then suddenly when a second one joins it stops working. On server mode with 2 players it just works.

I also made a new chat system in my game. It uses a Sender and Reciever. That works.

However, I made a chat function on a pickaxe. If you get a rare ore then it chats " (player name) has got a rare ore! (ore name)". However, this only shows up with to the player...

Again, on Server Mode it just works, other player gets it too.

To understand how reciever works:

A sender puts in a StringValue inside the reciever. The reciever uses childadded to get the value of the stringvalue, and then make a new textlabel that shows the message on the screen.
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
29 Apr 2012 07:43 AM
[ Content Deleted ]
Report Abuse
jobro13 is not online. jobro13
Joined: 05 Aug 2009
Total Posts: 2865
29 Apr 2012 07:47 AM
Haha, no totally not.

I dont like minecraft, and im not making a remake of it. Im making a remake of Survival {101, 202, 303, 404, Finale}

And with a remake i mean:

Started from scratch, no free models, and the only thing thats copied is the basic idea:

Survive.

Nothing more.

Minecraft is mostly about mining, this game will focus on other things as boats, buildings and weapons.

Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
29 Apr 2012 07:51 AM
[ Content Deleted ]
Report Abuse
jobro13 is not online. jobro13
Joined: 05 Aug 2009
Total Posts: 2865
29 Apr 2012 07:53 AM
Im getting headaches of it.

Its so FRUSTRATING when things work on your comp, you wanna show to friends (your health etc. works), they jump in water and they sink.

Shall I tell ya what I think then:

WHAT
THE
.............!

Oh and BTW, mining is used a lot in da game for weapons, but its more about the FOCUS. You can totally focus on weapons etc, I focus a lot on building things, like houses, churches, libraries, ships, and eventually weapons too.

I dont like minecraft :)
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
29 Apr 2012 08:00 AM
[ Content Deleted ]
Report Abuse
jobro13 is not online. jobro13
Joined: 05 Aug 2009
Total Posts: 2865
29 Apr 2012 08:08 AM
xD

Lolz you ask for it. Our idaes on game are; (Our = developer team)

Seasons
Weather
Sickness
Upgrading
Repairing
Tribes
XP
Skills
Perks
Achievements
Profiles (to save some stuff)
Jewelry
Clothing (armor for all body parts, example)
etc.

And yes, machines idk really, but more like trebutchets and chariots and boats and galleons and cannons and stones that can be thrown and gunpowdre and -- well you get the picture :)

If u want to help with it - ur welcome :) (But i dont think you have time for it haha :) -- i also dont have a lot of time to help others :))
Report Abuse
jobro13 is not online. jobro13
Joined: 05 Aug 2009
Total Posts: 2865
29 Apr 2012 08:45 AM
Okay, this gonna be a day with a bad headache then :)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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