I’ve been trying to make a 2007 roblox safe chat but I’m unsure how I would do this type of popup effect.
My code looks like this (only has the chat function)
for i, v in script.Parent.chatsList:GetDescendants() do
if v:IsA("TextButton") then
local canDisable = false
v.MouseButton1Click:Connect(function()
local text = v.Text
sendmessage:FireServer(text)
end)
end
end
(canDisable does nothing)
How would I add that effect?
Script examples will be appreciated!
The 2007 script or example is using MouseEnter and MouseLeave to give you that “effect”
Additionally, I’d recommend using Activated, for interacting with buttons so all platforms can interact with it. Ensure the button property “Active” & “Interactable” is checked and/or true. You can find the property at the very tops.
-- You'll most likely have to use a for loop or a iterator to get all of the buttons
-- for the MouseEnter/MouseLeave/Activated event.
TextButton.MouseEnter:Connect(function()
Frame.Visible = true
end)
TextButton.MouseLeave:Connect(function()
Frame.Visible = false
end)
TextButton.Activated:Connect(function()
local text = v.Text
sendmessage:FireServer(text)
end)