SweegzJoin Date: 2013-04-08 Post Count: 519 |
is it possible to get the players from the game and removing me from it
|
|
InductiveJoin Date: 2012-05-28 Post Count: 6480 |
local players = game.Players:GetChildren()
for i = 1, #players do
if players[i].Name == "Sweegz" then
player:Kick() --Or Destroy() or whatever.
end |
|
SweegzJoin Date: 2013-04-08 Post Count: 519 |
no i mean it gets all the other players and removes me from the list
|
|
|
local function getPlayers(...)
local ignoreList = {...}
local players = {}
local function find(name)
for i, v in pairs(ignoreList) do
if v == name then
return true
end
end
end
for i, v in pairs(game.Players:GetPlayers()) do
if not find(v.Name) then
table.insert(players,v)
end
end
return v
end
getPlayers("Player1","Sweegz") --etc
send trades ⭐️ 🌟 ✨ ⚡️ 🔥 💥 ☄️ |
|
SweegzJoin Date: 2013-04-08 Post Count: 519 |
for _,player in pairs(game.Players:GetPlayers()) do
AnimationId = "33796059"
local Anim = Instance.new("Animation")
Anim.AnimationId = "rbxassetid://"..AnimationId
local k = player.Character.Humanoid:LoadAnimation(Anim) -- script will error if Humanoid doesnt exist in character
k:Play() --Play the animation
k:AdjustSpeed(math.huge) --Set '1' to any value you want to adjust the animation speed.
end
Sorry i dont get what you are writing as im a bad scripter but how would i remove me from this
|
|
|
This is an interesting evening. The only people posting anything don't know how to script and want us to do it for them.
|
|
|
Most evenings are an interesting evening then
|
|
SweegzJoin Date: 2013-04-08 Post Count: 519 |
well i do know but i still cant get rid of my player from the list and i dont want to make it complicated
|
|
|
You'll need to be making your own playerlist then buddy. |
|
SweegzJoin Date: 2013-04-08 Post Count: 519 |
stupid language glad i dont know it
|
|
|
Its a strange thing to be apposed to any knowledge. It makes sense to decide you don't want to learn it, because it isn't free (It cost time in this case.) but to say you are glad you don't know it implies that if it was an on off switch you would choose to not know it, and that is stupid. |
|
SweegzJoin Date: 2013-04-08 Post Count: 519 |
yes i need to add 15 lines to remove a stupid string from an list
|
|
SweegzJoin Date: 2013-04-08 Post Count: 519 |
500 robux if u fix this
doesnt work even if players == "sweegz" cause i dont exist appareantly
|
|
SweegzJoin Date: 2013-04-08 Post Count: 519 |
nvm fixed it
|
|
|
|
|
for _,player in pairs(game.Players:GetPlayers()) do
AnimationId = "33796059"
local Anim = Instance.new("Animation")
Anim.AnimationId = "rbxassetid://"..AnimationId
local k = player.Character.Humanoid:LoadAnimation(Anim) -- script will error if Humanoid doesnt exist in character
k:Play() --Play the animation
k:AdjustSpeed(99) --Set '1' to any value you want to adjust the animation speed.
end
|
|
nullfeelsJoin Date: 2017-03-31 Post Count: 1215 |
JarodOfOrbiter:
"This is an interesting evening. The only people posting anything don't know how to script and want us to do it for them."
Disillusions:
"Most evenings are an interesting evening then"
I lol'd so hard at this. xD |
|
|
It's super simple:
local players = game:GetService('Players'):GetPlayers()
for i = 1, #players do
if players[i].Name == 'TheeDeathCaster' then
table.remove(players, i)
end
end
for i = 1, #players do
print(players[i].Name) -- Should not have you in it.
end
Super simple. :P |
|
|
players = {}
ignore = "Sweegz"
for _,v in pairs (game.Players:GetPlayers()) do
if v.Name ~= ignore then table.insert(players, v) end
end
whyy everybody gotta complicate it |
|