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: Weird issue happening serversided-

Previous Thread :: Next Thread 
C_Sharper is online. C_Sharper
Joined: 03 Oct 2011
Total Posts: 6405
05 May 2017 10:53 AM
Hi guys. So today I propose to you a problem that occurs only in a server, and not in studio.



I clone a statue model to the workspace, and inside it are limbs and a humanoid.


In studio when I do this, the humanoid's health remains the amount in which I implemented it. In servers, however, BOTH the humanoid's health and MAXHEALTH are 0 which make no sense to me..



Could it because the legs are cancollide false? The statue is basically just a hitbox for bots to target and deal damage to. Everything in it is anchored. It has a head, torso, humanoid root part, and legs.
Report Abuse
C_Sharper is online. C_Sharper
Joined: 03 Oct 2011
Total Posts: 6405
05 May 2017 11:03 AM
Yeah it's definitely a server-sided bug.


I don't get this, I set the max health to 2500 and that worked, but the statue has 0 health.
Report Abuse
Intended_Pun is not online. Intended_Pun
Joined: 10 Aug 2016
Total Posts: 4384
05 May 2017 11:08 AM
Please learn what "server-sided" means.

Also use MakeJoints() on the humanoid when you spawn it in.
Report Abuse
Intended_Pun is not online. Intended_Pun
Joined: 10 Aug 2016
Total Posts: 4384
05 May 2017 11:09 AM
*on the humanoid model
Report Abuse
C_Sharper is online. C_Sharper
Joined: 03 Oct 2011
Total Posts: 6405
05 May 2017 11:11 AM
I did, made no difference.


And yes, pun. I'm aware of the irrelevant matter of the definition of "server-sided"


A:


The server section of the game (server and client)


B:

Launched from a server and not from a client in Studio



Thanks though...
Report Abuse
C_Sharper is online. C_Sharper
Joined: 03 Oct 2011
Total Posts: 6405
05 May 2017 11:23 AM
T^T
Report Abuse
xXxXxXXxRapedYourMom is not online. xXxXxXXxRapedYourMom
Joined: 18 Apr 2017
Total Posts: 37
05 May 2017 11:27 AM
[ Content Deleted ]
Report Abuse
C_Sharper is online. C_Sharper
Joined: 03 Oct 2011
Total Posts: 6405
05 May 2017 11:49 AM
Any other ideas? ._.


The whole model is anchored, using it only as a hitbox for this model.. Idk why it works in studio but not in a server.
Report Abuse
xXxXxXXxRapedYourMom is not online. xXxXxXXxRapedYourMom
Joined: 18 Apr 2017
Total Posts: 37
05 May 2017 12:26 PM
[ Content Deleted ]
Report Abuse
xXxXxXXxRapedYourMom is not online. xXxXxXXxRapedYourMom
Joined: 18 Apr 2017
Total Posts: 37
05 May 2017 12:31 PM
[ Content Deleted ]
Report Abuse
C_Sharper is online. C_Sharper
Joined: 03 Oct 2011
Total Posts: 6405
05 May 2017 12:46 PM
Hm. It is.. ;-;

What do I do then?
Report Abuse
C_Sharper is online. C_Sharper
Joined: 03 Oct 2011
Total Posts: 6405
05 May 2017 12:54 PM
Pls
Report Abuse
Intended_Pun is not online. Intended_Pun
Joined: 10 Aug 2016
Total Posts: 4384
05 May 2017 01:04 PM
model.Parent = game.Workspace
--Assuming your model is set up correctly:
model:MakeJoints()
Report Abuse
C_Sharper is online. C_Sharper
Joined: 03 Oct 2011
Total Posts: 6405
05 May 2017 01:05 PM
Well thanks pun, that's exactly what my code already looks like tho :/


I just don't understand this problem. ._.
Report Abuse
C_Sharper is online. C_Sharper
Joined: 03 Oct 2011
Total Posts: 6405
05 May 2017 01:09 PM
local statue = map:WaitForChild("Statue")
local realStatue = map:WaitForChild("StatueModel")
local human = statue:WaitForChild("Humanoid")
statue.Parent = game.Workspace
statue:MakeJoints()
statue.Humanoid.MaxHealth = 2500
wait(.1)
statue.Humanoid.Health = 2500



My code. Runs server sided in a module script.. gonna test it again but it seems like it's a roblox bug with FE.
Report Abuse
xXxXxXXxRapedYourMom is not online. xXxXxXXxRapedYourMom
Joined: 18 Apr 2017
Total Posts: 37
05 May 2017 01:10 PM
[ Content Deleted ]
Report Abuse
Intended_Pun is not online. Intended_Pun
Joined: 10 Aug 2016
Total Posts: 4384
05 May 2017 01:11 PM
Try adding a wait() before MakeJoints()
Report Abuse
hasang1 is not online. hasang1
Joined: 09 Nov 2012
Total Posts: 903
05 May 2017 01:11 PM
General rule is to make sure everything is in place, maybe you missed the HumRootPart or something.
Quite weird.
Report Abuse
DeepBlueNoSpace is online. DeepBlueNoSpace
Joined: 24 Oct 2013
Total Posts: 6279
05 May 2017 01:12 PM
@Intended, fairly sure that'll kill the humanoid, because they'll be no welds.

Have you got a humanoidrootpart?


Not Public Drive - Residents Only
Report Abuse
C_Sharper is online. C_Sharper
Joined: 03 Oct 2011
Total Posts: 6405
05 May 2017 01:13 PM
I actually tried that too Intended.



So basically, I made an invisible figure that has all the limbs anchored, so it acts as a hitbox rather than a moving NPC. For some reason though, in a game's server, I print out the health of the statue and it says 0. In studio test mode, it works fine.



This is driving me nuts, as of now, I blame roblox. I could try to make a custom humanoid using number values.



Got nothing else to really try..
Report Abuse
hasang1 is not online. hasang1
Joined: 09 Nov 2012
Total Posts: 903
05 May 2017 01:14 PM
My best bet is a badly-assembled rig
Try and replace it with a copy o your character from play mode or something
Report Abuse
C_Sharper is online. C_Sharper
Joined: 03 Oct 2011
Total Posts: 6405
05 May 2017 01:16 PM
I used a model resize plugin to modify the size of this properly rigged NPC from free models. But why would it work in studio and not a game server? Makes no sense to me.
Report Abuse
hasang1 is not online. hasang1
Joined: 09 Nov 2012
Total Posts: 903
05 May 2017 01:19 PM
Any small change can trigger a breakjoints on an NPC Try adding ### ###### manually
Report Abuse
Intended_Pun is not online. Intended_Pun
Joined: 10 Aug 2016
Total Posts: 4384
05 May 2017 01:19 PM
It doesn't work in a server because in the server there are plenty of variables studio ignores.

Also that explains why it won't work, your parts are probably strangely offset or something.

Make it from scratch instead of using a plugin for this.
Report Abuse
hasang1 is not online. hasang1
Joined: 09 Nov 2012
Total Posts: 903
05 May 2017 01:24 PM
Adding ZA M0TOR6DS...
ROBLOX please.


This is why I moved to scripters.cf....
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