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

It doesn't seem to chat and I can't find the error can you help me fix it?

Asked by 10 years ago

Well I am creating my custom methods and it's a script for script builders(a place where you can use scripts) which lets me be an orb and chat even if I am kicked.

mp = game.Players.LocalPlayer
mp.Character = nil
Codes = {}
local Player = {
    Name = "SilenceCore",
    Character = {
        Head,
        Extra
    },
    PlayerGui = {
        Main = {
            pc
        }
    },
    Chat = function(ChatMsg)
        ypcall(function() Player.PlayerGui.Main.pc.Chat.Text = ChatMsg end)
    end,
    LoadCharacter = function()
        ypcall(function()
            orb = Instance.new("Part",workspace)
            orb.Name = tostring(math.random(1,100000))
            orb.BrickColor = BrickColor:Black()
            orb.Shape = "Ball"
            orb.FormFactor = "Custom"
            orb.Size = Vector3.new(0.5,0.5,0.5)
            orb.Anchored = true
            g = Instance.new("BillboardGui",orb)
            g.Name = "pc"
            g.StudsOffset=Vector3.new(0,2,0)
            g.Size=UDim2.new(3,0,2,0)
            text=Instance.new("TextLabel",g)
            text.Name = "Chat"
            text.Size=UDim2.new(2.25,0,0.79)
            text.TextScaled = true
            text.Position=UDim2.new(-0.125,0,-0.25,0)
            text.TextColor3 = Color3.new(1,1,1)
            text.TextScaled = true
            text.BackgroundTransparency = 0.4
            text.BackgroundColor3 = Color3.new(0,0,0)
            text.Text = ""
            Player.Character.Head = orb
            Player.PlayerGui.Main.pc = g
        end)
    end,
    Antiremove = false
}
mp:remove()
script.Parent = nil
function Loop(Name,Code)
    ypcall(function()
        for k,v in pairs(Codes) do
            if not Name == v then
                table.insert(Codes,Name)
                game:GetService("RunService").Stepped:connect(function()
                    for c,n in pairs(Codes) do
                        if not Name == v then
                            return
                        end
                    end
                    ypcall(function()
                        loadstring(Code)
                    end)
                end)
            end
        end
    end)
end
function EndLoop(Name)
    ypcall(function()
        for k,v in pairs(Codes) do
            if Name == v then
                table.remove(Codes,Name)
            end
        end
    end)
end

Loop(AR,[[if Player.Antiremove == true then
    if orb == nil or not orb.Parent == workspace or not orb.Parent == "Orb" or not orb.Archivable == false then
        orb:remove()
        g:remove()
        text:remove()
        orb = Instance.new("Part",workspace)
        orb.Name = tostring(math.random(1,100000))
        orb.BrickColor = BrickColor:Black()
        orb.Shape = "Ball"
        orb.FormFactor = "Custom"
        orb.Anchored = true
        orb.Size = Vector3.new(0.5,0.5,0.5)
        g = Instance.new("BillboardGui",orb)
        g.Name = "pc"
        g.StudsOffset=Vector3.new(0,2,0)
        g.Size=UDim2.new(3,0,2,0)
        text=Instance.new("TextLabel",g)
        text.Name = "Chat"
        text.Size=UDim2.new(2.25,0,0.79)
        text.TextScaled = true
        text.Position=UDim2.new(-0.125,0,-0.25,0)
        text.TextColor3 = Color3.new(1,1,1)
        text.TextScaled = true
        text.BackgroundTransparency = 0.4
        text.BackgroundColor3 = Color3.new(0,0,0)
        text.Text = ""
        Player.Character.Head = orb
        Player.PlayerGui.Main.pc = g
    elseif not orb:FindFirstChild("pc") then
        orb:remove()
        g:remove()
        text:remove()
        orb = Instance.new("Part",workspace)
        orb.Name = tostring(math.random(1,100000))
        orb.BrickColor = BrickColor:Black()
        orb.Shape = "Ball"
        orb.FormFactor = "Custom"
        orb.Anchored = true
        orb.Size = Vector3.new(0.5,0.5,0.5)
        g = Instance.new("BillboardGui",orb)
        g.Name = "pc"
        g.StudsOffset=Vector3.new(0,2,0)
        g.Size=UDim2.new(3,0,2,0)
        text=Instance.new("TextLabel",g)
        text.Name = "Chat"
        text.Size=UDim2.new(2.25,0,0.79)
        text.TextScaled = true
        text.Position=UDim2.new(-0.125,0,-0.25,0)
        text.TextColor3 = Color3.new(1,1,1)
        text.TextScaled = true
        text.BackgroundTransparency = 0.4
        text.BackgroundColor3 = Color3.new(0,0,0)
        text.Text = ""
        Player.Character.Head = orb
        Player.PlayerGui.Main.pc = g
    elseif not orb.pc:FindFirstChild("Chat") then
        orb:remove()
        g:remove()
        text:remove()
        orb = Instance.new("Part",workspace)
        orb.Name = tostring(math.random(1,100000))
        orb.BrickColor = BrickColor:Black()
        orb.Shape = "Ball"
        orb.FormFactor = "Custom"
        orb.Anchored = true
        orb.Size = Vector3.new(0.5,0.5,0.5)
        g = Instance.new("BillboardGui",orb)
        g.Name = "pc"
        g.StudsOffset=Vector3.new(0,2,0)
        g.Size=UDim2.new(3,0,2,0)
        text=Instance.new("TextLabel",g)
        text.Name = "Chat"
        text.Size=UDim2.new(2.25,0,0.79)
        text.TextScaled = true
        text.Position=UDim2.new(-0.125,0,-0.25,0)
        text.TextColor3 = Color3.new(1,1,1)
        text.TextScaled = true
        text.BackgroundTransparency = 0.4
        text.BackgroundColor3 = Color3.new(0,0,0)
        text.Text = ""
        Player.Character.Head = orb
        Player.PlayerGui.Main.pc = g
    end]])

mp.Chatted:connect(function(msg)
    wait()
    Player:Chat(msg)
    if msg:sub(1,2) == "l/" then
        ypcall((loadstring(string.sub(msg,3))))
    end
end)
0
With regret, this seems like a free model, and to be honest I'm not in the business of fixing free models, sorry. Vathriel 510 — 10y
0
This is not a free model you talk much. SilenceCore 25 — 10y
0
I think I have to remove this question, the code is clean and still no one is answering. SilenceCore 25 — 10y

Answer this question