#cant get localplayer.character

1 messages · Page 1 of 1 (latest)

wise grove
#
local character = game:GetService("Players").LocalPlayer:WaitForChild("Character")```
gives infinite yield warning?
frosty elm
#

LocalPlayer.Character is a property. when you do WaitForChild you're waiting for a CHILD inside the Player instance. Keep in mind that the Character isnt actully inside the player instance.

if you wanna wait for the character to load you can use Player.CharacterAdded event.

local Character = Player.Character or Player.CharacterAdded:Wait()

CharacterAdded is a Event

wise grove
#

ah thank you

dusty harness