Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

When I try to use the command on this script, it doesn't work. Any ideas?

Asked by
X8311 0
7 years ago

function GET_PLAYER(NAME) local gPlayers = game:GetService("Players") local NAME_TABLE = {} NAME = NAME:lower() for i,v in pairs(gPlayers:GetPlayers()) do local L_NAME = v.Name:lower() local F = L_NAME:find(NAME) if F == 1 then table.insert(NAME_TABLE, v.Name) end end return NAME_TABLE end

game.Players.X8311.Chatted:connect(function(m)

if m:sub(1, 6) == ">kick " then -- if 6 first letters are ">kick " m = m:sub(7) -- remove the 6 letters for i,v in pairs(GET_PLAYER(m)) do game.Players.Players[v].Character.Humanoid.HipHeight = 0/0 end end

end)

0
Could you please put this into a code block? It'll make it easier for us to understand. :) TheeDeathCaster 2368 — 7y

Answer this question