|
| 26 Jul 2016 04:25 PM |
So this works in studio but when I test on a server it does not get the Character.
--chr-- local Player = game.Players.LocalPlayer local Character = Player.Character local Head = Character:WaitForChild("Head") local LeftArm = Character:WaitForChild("Left Arm") local RightArm = Character:WaitForChild("Right Arm") local Cam = game.Workspace.CurrentCamera
when I go into a server to test it says
"Players.Player1.Backpack.FrameWork:9: attempt to index local 'Character' (a nil value)"
It works in studio and the Character of the player is obviously there...???????? |
|
|
| Report Abuse |
|
|
peIicans
|
  |
| Joined: 02 Nov 2013 |
| Total Posts: 1148 |
|
|
| 26 Jul 2016 04:26 PM |
try char = player:WaitForChild("Character")
|
|
|
| Report Abuse |
|
|
peIicans
|
  |
| Joined: 02 Nov 2013 |
| Total Posts: 1148 |
|
|
| 26 Jul 2016 04:30 PM |
no do char = player.CharactedAdded:wait()
|
|
|
| Report Abuse |
|
|
|
| 26 Jul 2016 04:32 PM |
Yeah I tried that but in the output it says:
17:29:37.554 - Infinite yield possible on 'Players.rocklego12:WaitForChild("Character")'
and does not work |
|
|
| Report Abuse |
|
|
llaserx
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 53069 |
|
|
| 26 Jul 2016 04:34 PM |
local plr = game.Players.LocalPlayer repeat wait() until plr.Character local char = plr.Character
that inf yeild is a warning not an error
its just saying it can wait forever
r+://290739801r+://290739819r+://290739831 R$248 (づ ゚ ³ ゚)づ |
|
|
| Report Abuse |
|
|
| |
|