Feedback System Badge Help

What method are you using to confirm text entry in your TextBox?

It’s not the problem, if there’s should to be any problems with it, script should to say that there’s problem in 6th line, but it isn’t say anything

Clicking on the button, that called FeedbackButton

Then that explains 100% why the scripts aren’t working. I’ll need to see the gui in your explorer to know where the textbox and feedbackbutton are though

You want to say that I’m need to change this two lines to onClicked function?

It’s best to show me the location of your feedbackbutton and textbox in your explorer if possible, please

I’ll send you remaked script, when I test if it’s working, because I just do it

Essentially this is how you’ll need to change the LocalScript:

--!strict
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local feedbackButton = -- Where the FeedbackButton you click is located
local textBox = -- Where the TextBox you use to enter text is located

local remoteEvent = ReplicatedStorage:WaitForChild("Remotes"):WaitForChild("FreshCutGiveawayBadge")

local function onActivated()
	if string.find(textBox.Text, "#freshcutgiveaway") then remoteEvent:FireServer() end
end

feedbackButton.Activated:Connect(onActivated)

It’s my script, and it’s finally working:

local ReplicatedStorage = game:GetService(ā€œReplicatedStorageā€)

local textBox = script.Parent

local remoteEvent = ReplicatedStorage.Remotes:WaitForChild(ā€œFreshCutGiveawayBadgeā€)

script.Parent.Parent.FeedbackButton.MouseButton1Click:Connect(function()
if string.find(textBox.Text, ā€œ#freshcutgiveawayā€) then
remoteEvent:FireServer()
end
end)

1 Like

I’d recommended to type .MouseButton1Click:Connect(function() when you want to make something when you press on the button, because it takes only two lines.

And also, it’s too fast and easy to do

Do you know how to change my devforum’s avatar?

In your case you can simply write this if you prefer:

textBox.Parent.FeedbackButton.MouseButton1Click:Connect(function()

Also, when you send me the server script I noticed that you used :WaitForChild inside of it, and :WaitForChild isn’t necessary to use within server Scripts and can sometimes even cause issues in rare circumstances when doing so. The only situations where an Instance can’t exist on the server is if it was created locally, or hasn’t been created yet by another server Script, or there’s the possibility of it having been destroyed

It’s up to personal preference really, I used to do that (and I still sometimes do) but now I find myself somehow following Roblox’s code style guide the more I continue to script :slight_smile::+1:

I never did so myself, so no unfortunately. It’s probably somewhere in your DevForum preferences though

Edit: @GamesVitaliy I checked and for your forum pic to match your current Roblox avatar you’ll need to log out of the forum on all devices where you’re logged in, wait a small bit then log back in

I tried it, and it’s working, I just reloginned in my devforum.

1 Like