of     1   

AshRPG12
#183112289Saturday, February 06, 2016 9:19 PM GMT

I've been using this technique and I want to know why it doesn't work: variable = game.Players.LocalPlayer (Yes, I'm using a LOCALSCRIPT) variable:waitForChild("Character") -- is this a workable function? -- I found out that roblox updated so that you can't directly get the character because it has to load also how do you find a random player from game.players, get his character, and access his character without any nil value errors. no i dont ask for scripts I ask for the TERMS to use because roblox updates and i cant understand dipppp
Lord_Narwhal
#183112329Saturday, February 06, 2016 9:20 PM GMT

i like to use this: repeat wait() until character~=nil #Code print("Narwhals are our future")
ez_street
#183112475Saturday, February 06, 2016 9:22 PM GMT

local player = game.Players.LocalPlayer repeat wait() until player.Character local character = player.Character
AshRPG12
#183126701Sunday, February 07, 2016 1:26 AM GMT

That's weird I never heard of repeated code that waits until character is nil, well maybe if I had some bright ideas on some easy things I'd knew that already.
SenseiWarrior
#183127025Sunday, February 07, 2016 1:32 AM GMT

You cant use WaitForChild() because 'Character' is not a child, it is a property of Player Instance.new("BodyThrust",SenseiWarrior).position = CFrame.new(SenseiWarrior,YourGirlsDMs)
128Gigabytes
#183127041Sunday, February 07, 2016 1:32 AM GMT

That waits until its not nil actually. And the best way to wait for the character is local character = (player.Character or player.characterAdded:wait()) You can not waitForChild("Character") because player.Character is a property.
AshRPG12
#183129404Sunday, February 07, 2016 2:16 AM GMT

but can I get to know the terms to get a player's character in math.random terms by randomly selecting a player? repeat wait() until game.Players.NumPlayers > 0 local players = game.Players local mathrandom = math.random(1, #players) local playerchosen = players[mathrandom] repeat wait() until playerchosen.Character~=nil playerchosen.Character.Torso.Transparency = 0.5 playerchosen.Character.Head.Transparency = 1 -- crashed when testing this wtf
4ef
#183129414Sunday, February 07, 2016 2:16 AM GMT

:GetPlayerByCharacter()
AshRPG12
#183129519Sunday, February 07, 2016 2:18 AM GMT

player.Character is not loaded instantly due to the new roblox studio updates so ye but ill see about it I just watch a lot of tutorials, use the wiki, but I can't find places where it is explained easily or well or videos that are recently updated to find these matters.
AshRPG12
#183129549Sunday, February 07, 2016 2:19 AM GMT

@4ef player's character, not player from character
4ef
#183129585Sunday, February 07, 2016 2:19 AM GMT

:GetPlayerFromCharacter() mb
AshRPG12
#184234782Wednesday, February 24, 2016 4:30 AM GMT

:GetPlayerFromCharacter gets the player from the character my question is to get the character, not from. xloadinq 2fat4u
TimeTicks
#184235241Wednesday, February 24, 2016 4:41 AM GMT

repeat wait() until game.Players.NumPlayers > 0 local players = game.Players:GetPlayers() local ranPlayer = players[math.random(1, #players)] local char = ranPlayer.Character char.Torso.Transparency = 0.5 char.Head.Transparency = 1
AshRPG12
#184254457Wednesday, February 24, 2016 6:26 PM GMT

i've asked to for the topics to get a player's character not randomly select a player and way long after this forum post i already knew almost everything about players but its okay and heres the corrected script, repeating would just make more lag and is unnecessary: game.Players.Changed:connect(function() if game.Players.NumPlayers > 0 then local players = game.Players:GetPlayers() local ranPlayer = players[math.random(1, #players)] local char = ranPlayer.Character -- char invisibility char.Torso.Transparency = 0.5 char.Head.Transparency = 1 -- etc put here: end end) xloadinq 2fat4u

    of     1