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

Chatted:connect randomly instancing bricks??? WHAT???

Asked by 10 years ago

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)
0
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. MessorAdmin 598 — 10y

Answer this question