StackEnd
|
  |
| Joined: 20 Oct 2008 |
| Total Posts: 672 |
|
|
| 11 Mar 2014 08:34 PM |
I posted this in Scripting Helpers and obviously got no replies. You guys are a lot smarter, so I'm hoping you'll be able to figure this out.
I'm creating a fake character through a LocalScript and setting the player's Character property to that character. Everything works fine in offline mode - I make an exact copy of the player's character, set the variable 'fakechar' to the new character, then run game.Players.LocalPlayer.Character = fakechar. I can control the new character fine. However, when I test in online mode, everything works except the controls. I can no longer move the character.
I've tried everything from disabling/re-enabling the Animate script to messing with the Humanoid and adding hopeless wait()s at random intervals. Can any of you figure out what's wrong here? |
|
|
| Report Abuse |
|
|
| |
|
|
| 12 Mar 2014 02:25 AM |
I've been in Scripting Helpers before, they're worthless to me.
It's because of the HumanoidController, it was updated not to work with nil characters.
I guess just make your own way of doing a Character Controlling system, as far as I know, there's not much currently to bypass this. |
|
|
| Report Abuse |
|
|
Fubl
|
  |
| Joined: 18 Dec 2009 |
| Total Posts: 4899 |
|
|
| 12 Mar 2014 06:42 AM |
Aye, do way with the humanoids, lad.
Remember you can get key output directly from localscripts (GetMouse), so just do some jurry-rigging and hock up the Key* events to your old script. |
|
|
| Report Abuse |
|
|
|
| 12 Mar 2014 07:54 AM |
Is everyone Scottish in Roblox now?
~Virgil~ |
|
|
| Report Abuse |
|
|
3dsonicdx
|
  |
| Joined: 06 Jul 2010 |
| Total Posts: 654 |
|
|
| 12 Mar 2014 10:36 AM |
Well, I can only tell you this.
I've wanted a similar system, so I coded one myself.
http://www.roblox.com/Oversoul-Alpha-Bug-Fixes-place?id=107062467
But mine uses mouse-movement and keys to activate commands including basic swinging and attacking and stuff like that.
Like the above said, you can't do it that way without it unable to work properly in online mode. But I can give you a few tips on how to get started.
First of all, you need to direct the player's camera to the targetted character... |
|
|
| Report Abuse |
|
|