• Index Bad String Value With Bad Key
    3 replies, posted
First of all, I'm quiet new to LUA and GLUA, so I have sorta an idea of what I'm doing. ERROR: [ERROR] muteondeath.lua:2: attempt to index a string value with bad key ('Alive' is not part of the string library)   1. error - [C]:-1    2. __index - lua/includes/extensions/string.lua:297     3. unknown - muteondeath.lua:2 Source: local plr = ( "LocalPlayer" ) if plr:Alive ( false ) then  LocalPlayer:SetMuted ( true )  else   plr:SetMuted ( false )  end Any idea?
local ply = LocalPlayer()
Thanks for the reply, but it still doesn't work.
There are multiple errors in your code. The first one being your syntax is a bit off, the second being the code will only be ran once so it never updates. Use gameevents or serverside hooks & networking. Read this as they are helpful towards new people like yourself: Section Rules and Guidelines This is also a nice place to start: https://www.lua.org/pil/1.html
Sorry, you need to Log In to post a reply to this thread.