Kiriyato
|
  |
| Joined: 15 Mar 2014 |
| Total Posts: 94 |
|
|
| 01 Dec 2017 09:36 AM |
Does anyone know why this script makes you spawn with health in the studio but in a server the health doesn't function at all, spawning with health 0.
game.Players.PlayerAdded:connect(function(player) local ReplicatedStorage = game:GetService("ReplicatedStorage") local Chad = ReplicatedStorage.Chad:clone() Chad.Name = player.Name player.Character = Chad player.Character.Parent = workspace.Characters local Powers = game.ServerStorage.LocalScript:clone() Powers.Parent = player.PlayerGui local transformation = game.ReplicatedStorage.transformation:clone() transformation.Parent = player.PlayerGui player.Character.Humanoid.JumpPower = 75 player.Character.Humanoid.Health = player.Character.Humanoid.MaxHealth end)
|
|
|
| Report Abuse |
|
|
IDKBlox
|
  |
| Joined: 05 Apr 2013 |
| Total Posts: 1304 |
|
|
| 01 Dec 2017 09:38 AM |
| umm... What in the world are you trying to do? lol |
|
|
| Report Abuse |
|
|
Kiriyato
|
  |
| Joined: 15 Mar 2014 |
| Total Posts: 94 |
|
|
| 01 Dec 2017 09:39 AM |
| Well, this is just a simple test of custom characters (without the 'startercharacter' operation) to later be able to have a gui that allows player to choose many types of custom characters |
|
|
| Report Abuse |
|
|
IDKBlox
|
  |
| Joined: 05 Apr 2013 |
| Total Posts: 1304 |
|
|
| 01 Dec 2017 09:45 AM |
--player.Character = Chad--
oh alright well first off, I am not 100% sure, but i'm almost positive that player.Character cannot be assigned to.
What you're going to want to do is probably welding, and making when playerscharacter loads, make their limbs invisible. I'm pretty sure there is a better way to do this.. But this is a way. |
|
|
| Report Abuse |
|
|
|
| 01 Dec 2017 09:46 AM |
If you evver get the solution, share with me. I'm looking for ages to this thing. |
|
|
| Report Abuse |
|
|
Kiriyato
|
  |
| Joined: 15 Mar 2014 |
| Total Posts: 94 |
|
|
| 01 Dec 2017 09:52 AM |
| I can assing a character like that. It actually works. I did a death script too, and it works in studio. In a server almost everything works fine, animations with a totally customized body, walking, jumping, etc. The only different from an online server to the studio is that while in the studio the character spawns with health and it actually can die, in the server it spawns already dead and the death script doesn't act. |
|
|
| Report Abuse |
|
|
Wrathoxic
|
  |
| Joined: 29 May 2013 |
| Total Posts: 1950 |
|
|
| 01 Dec 2017 09:55 AM |
Chad.Parent = workspace Chad:MakeJoints() player.Character = Chad
|
|
|
| Report Abuse |
|
|
IDKBlox
|
  |
| Joined: 05 Apr 2013 |
| Total Posts: 1304 |
|
|
| 01 Dec 2017 10:10 AM |
Well turns out i have learned something new lol so thank you!
https://www.roblox.com/library/1214241595/Character-select
I have made a model (Works with FE) its pretty self explanatory, but i added instructions if you have any questions feel free to ask. Take it use it, i dont care. Learn from it though! Learning is everything! Good luck! |
|
|
| Report Abuse |
|
|
IDKBlox
|
  |
| Joined: 05 Apr 2013 |
| Total Posts: 1304 |
|
|
| 01 Dec 2017 10:23 AM |
Help you out at all?
I know it wasn't exactly what you were looking for, but it had what you needed within the scripts. So hope it helps you! |
|
|
| Report Abuse |
|
|
Kiriyato
|
  |
| Joined: 15 Mar 2014 |
| Total Posts: 94 |
|
|
| 01 Dec 2017 10:29 AM |
| Not sure yet, just started giving it a look, but it sure is interesting, thanks a lot! |
|
|
| Report Abuse |
|
|
Kiriyato
|
  |
| Joined: 15 Mar 2014 |
| Total Posts: 94 |
|
|
| 01 Dec 2017 10:40 AM |
| I don't see what's the difference in th way we give the character to the player though |
|
|
| Report Abuse |
|
|
Kiriyato
|
  |
| Joined: 15 Mar 2014 |
| Total Posts: 94 |
|
|
| 01 Dec 2017 10:49 AM |
| Uhm ok it's definitely something about my custom character. |
|
|
| Report Abuse |
|
|
IDKBlox
|
  |
| Joined: 05 Apr 2013 |
| Total Posts: 1304 |
|
|
| 01 Dec 2017 10:59 AM |
| yeah it could be something with your model you're using.. Make sure if characters are r15 then model is r15, r6 is r6... also make sure scripts are in there too |
|
|
| Report Abuse |
|
|
Kiriyato
|
  |
| Joined: 15 Mar 2014 |
| Total Posts: 94 |
|
|
| 01 Dec 2017 11:05 AM |
| But the custom characters that i want to make aren't neither r6 nor r15. I make the joints. |
|
|
| Report Abuse |
|
|