Sqix Posted December 18, 2024 Share Posted December 18, 2024 (edited) I'm trying to make an item for wigfrid. To handle the talker:Say(), I used this script : Spoiler function SpeechHandler:Say(player, message) if message == nil or message == "" then return end if player.components.talker ~= nil then if type(message) == "table" then for _, msg in ipairs(message) do player.components.talker:Say(msg, 4, true, true, false, {1, 1, 1}) end else player.components.talker:Say(message, 4, true, true, false, {1, 1, 1}) end end end and this error occured in client_log.txt during test. Spoiler COROUTINE 125783 SCRIPT CRASH: [string "scripts/widgets/text.lua"]:58: bad argument #3 to 'SetColour' (number expected, got no value) LUA ERROR stack traceback: =[C] in function 'SetColour' scripts/widgets/text.lua(58,1) in function 'SetColour' scripts/components/talker.lua(167,1) in function 'sayfn' scripts/components/talker.lua(289,1) The strange thing is that the script worked fine on my laptop and desktop, but only on my friend's desktop, who I was modding with. I checked the client logs and the Build Date, Version, and Steam AppBuildID were all the same. I'm wondering why this is only happening on certain clients. P.S) During the testing process, neither of us installed any server/client mods other than this one. Edited December 18, 2024 by Sqix Link to comment https://forums.kleientertainment.com/forums/topic/162616-error-in-instcomponentstalkersay/ Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now