drc3
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 1284 |
|
|
| 19 Jun 2017 03:13 PM |
For some reason this script no longer works with Filtering Enabled. Does anyone know why that is?
function check(Player, Choice) if Choice.Name == "Badge" then game:GetService("BadgeService"):AwardBadge(Player.userId, script.Parent.BadgeID.Value) end end
script.Parent.DialogChoiceSelected:connect(check) |
|
|
| Report Abuse |
|
|
drc3
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 1284 |
|
|
| 19 Jun 2017 03:22 PM |
| There is no error so I am not sure. |
|
|
| Report Abuse |
|
|
|
| 19 Jun 2017 03:26 PM |
| Are you using a localscript? |
|
|
| Report Abuse |
|
|
|
| 19 Jun 2017 03:29 PM |
You need to use a script, not a local script.
|
|
|
| Report Abuse |
|
|
|
| 19 Jun 2017 03:29 PM |
And if it's still not working, try debugging it.
|
|
|
| Report Abuse |
|
|
drc3
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 1284 |
|
|
| 19 Jun 2017 03:37 PM |
| I am using a normal script in a dialogue option. Sorry, I should have said that before. It has something to do with the script not awarding the badge, but I don't know why it won't. |
|
|
| Report Abuse |
|
|
|
| 19 Jun 2017 03:39 PM |
| Make sure your dialog choice is spelt Uppercase, "Badge" and make sure the script is not disabled lol |
|
|
| Report Abuse |
|
|
drc3
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 1284 |
|
|
| 19 Jun 2017 03:42 PM |
| It isn't disabled and it is named "Badge" |
|
|
| Report Abuse |
|
|
drc3
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 1284 |
|
| |
|
drc3
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 1284 |
|
| |
|
drc3
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 1284 |
|
|
| 17 Jul 2017 07:02 PM |
| Do I need to define Player or something? |
|
|
| Report Abuse |
|
|
drc3
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 1284 |
|
| |
|
|
| 18 Jul 2017 05:09 AM |
| Isnt it .UserId not userId |
|
|
| Report Abuse |
|
|
|
| 18 Jul 2017 06:06 AM |
I'm new to FE,
But don't you need a local script in playergui or starterplayer, anything local normal script in the dialog and a remote event, then you should make it so when the correct dialog choice is chosen, fire that remote event and in the localscript you wait till the event is fired and then you award the badge. |
|
|
| Report Abuse |
|
|