Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I change basic things of the ROBLOX chat like the default chatbar text using its api.?

I want to change this:

Click here to see the image.

However, I can't figure out how. I want to change the text from "Tap here to chat" to "Press here or press "/" to chat."

I can't seem to do that. I went into the chat's main script and directly modified the text but the changes get overwritten.

I'm not sure how to change this aspect.

Also, one more thing. I want to change the chat window and chatbar's default transparency when the mouse is hovering over it or "/" was pressed to 0.8. How can I do that? Is that even possible? I've been trying to change through main script but its not applying the changes.

Could you offer direction or help, anyone?

2 comments

0

Hmm, I havent read much into messing around with the default chat environment but it might be worth looking here: http://wiki.roblox.com/index.php?title=API:Class/StarterGui/SetCore

0

There's nothing concerning what I asked when I looked at that link. At least I don't see it. Anything else?

1 answer

I think this could work:

function onPlayerAdded(plr)
ypcall(function()
repeat wait() until plr.Character
end)
local pepsi = script.LocalScript:Clone()
pepsi.Parent = plr.Backpack
pepsi.Disabled = false
end
game.Players.PlayerAdded:Connect(onPlayerAdded)

Put a localscript into the script, and make it disabled

local txt = "TEXTHERE"--// change TEXTHERE to the text
local p = game.Players.LocalPlayer
p.PlayerGui.Chat.Frame.ChatBarParentFrame.Frame.BoxFrame.Frame.TextLabel.Text = txt

Give it a try, It'll stay even if you reset, Hope it helps!! , Ah it will only change text , it will not do the press \ to open it

4 comments

0

I would think hat this would work. However, it doesn't work directly w/the chat api. which is bad since the chat api. can always overwrite what you changed. Is there a way to make this work directly w/chat api. so that it can't overwrite the changes?

0

It doesn't.

0

I know that. But it seems like bad practice. How can I make this work directly w/ROBLOX's official chat api.?

0

you cant

This discussion is preserved as it was. New answers, comments, and votes are closed.