PLEASE HELP ME! player.character
Posted: Tue Apr 25, 2017 3:50 am
Heelo!
After update to 0.15.x i cant use command player.character
Attemp to index field "character" (a nil value)
please help me!
After update to 0.15.x i cant use command player.character
Attemp to index field "character" (a nil value)
Code: Select all
character
Type: Lua/Character
The character controlled by this player.
game.player.character.health = 50
local character = game.player.character -- store the pointer to the character
game.player.character = nil -- disconnect the character, player will gain ghost view
game.player.character = character -- connect player to the character again