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

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

Asked by 5 years ago
Edited 5 years ago

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?

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 Azuc 112 — 5y
0
There's nothing concerning what I asked when I looked at that link. At least I don't see it. Anything else? Arithmeticity 167 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

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

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? Arithmeticity 167 — 5y
0
It doesn't. maumaumaumaumaumau 98 — 5y
0
I know that. But it seems like bad practice. How can I make this work directly w/ROBLOX's official chat api.? Arithmeticity 167 — 5y
0
you cant maumaumaumaumaumau 98 — 5y
Ad

Answer this question