I'm trying to add a command to a admin script i am working on but it isn't working. Not really sure what i am missing in the code.
if msg:lower():sub(1,4) == "f3x " then
local plrz = GetPlr(plr, msg:lower():sub(5))
for i, v in pairs(plrz) do
coroutine.resume(coroutine.create(function()
if v and v:findFirstChild("Backpack") then
game.Lighting["F3X Tools"]:Clone().Parent = player.Backpack
end
end))
end
end

6 comments
Yes, coroutines are correct. Check this out https://scriptinghelpers.org/questions/8992/why-is-my-script-not-working I broke the coroutine down a little bit, and left a wiki article, a coroutine is how they say a script that runs along side where it was created from.
Wait, remove the line for starter gear I think that's the problem (along with the sub stuff).
I thought StarterGear would be fine, but you could be right.
What do i remove besides the starter gear stuff?
Why the heck was this downvoted?
Oh, I see.Center edited his post so everyone thought I was an idiot. Of course no one can look at the times they were posted...