--[ 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

2 comments
Is the character line a comment in your actual script like it is here? Also ServerScripts cannot access this folder, you will have to use a local script.
so, no it isn't. It's just messed up on here.