Help with badge giving gui

Change this:

To this. You cannot use RemoteEvents by using StarterGui. StarterGui exists to COPY GUIs that you have made. Replace it with this:

local Button = script.Parent:WaitForChild("Frame").TextButton
local TextBox = script.Parent:WaitForChild("Frame").TextBox

Also fix this part:

To this part:

local TextBoxContents = TextBox.Text

Also you can not award badges by simply putting in the Users name. You have to change this:

To this:

local PlayerObject = game.Players:GetPlayerFromCharacter(workspace[TextBoxContents])
game:GetService("BadgeService"):AwardBadge(PlayerObject.UserId, FunnyBadgeID)
2 Likes

yay it finally works!!! thanks to everyone who helped

2 Likes