I cant even begin to find the error....
Idk I mean a couple days ago when someone chatted it would connect and Instance a brick WITHOUT INSTANCE.NEW()?!?!?!? HOW?!!?!?
Anyways...
I cant seem to get the chatted to work It just doesnt want to work..
Bet=";"
Commands={},
Cmd=function(Rank,Name,Command,Desc,Args,Func)
table.insert(Commands,{Rank=Rank,Name=Name,Command=Command,Desc=Desc,Args=Args,Func=Func})
end
-- ERROR HERE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Chatted=function(Plr,Msg)
if Plr:IsInGroup(1199497) then
for _,v in pairs(Commands) do
local Ms=Msg:sub(#v.COMMAND:lower()+#Bet+1)
v.FUNC(Plr,Ms)
end
end
end
game.Players.PlayerAdded:connect(function(Plr)
Plr.Chatted:connect(function(Msg)
Chatted(Plr,Msg)
PChat(Plr,Msg)
end)
end)

1 comment
I sound Crazy for asking this question.. lol. I mean I'm using http to load my script so If you join the server without me unlocking my script it wont work.