--[ Variables ]-- local character = script.Parent local plr = game.Players:GetPlayerFromCharacter(character) local guns = plr:WaitForChild("PlayerScripts") local random = 0 --[ Main Code ]-- if random == 0 then random = math.random(1,2) if random == 1 then guns.Revolver.Disabled = false end if random == 2 then guns.Ak47.Disabled = false end end
Script says that it has an infinite yield on it, confused on what that means, can somebody help me? This is a regular script inside of the StarterCharacterScripts folder inside of the StarterPlayer folder. There are 2 scripts inside of the StarterPlayerScripts called Revolver and Ak47 that make the guns appear on the screen.
Sincerely,
Narwhal
An infinite yield means that "PlayerScripts" never appears inside of the character.