drc3Join Date: 2009-08-14 Post Count: 1284 |
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) |
|
drc3Join Date: 2009-08-14 Post Count: 1284 |
There is no error so I am not sure. |
|
|
Are you using a localscript? |
|
dqxsJoin Date: 2013-12-08 Post Count: 696 |
You need to use a script, not a local script.
|
|
dqxsJoin Date: 2013-12-08 Post Count: 696 |
And if it's still not working, try debugging it.
|
|
drc3Join Date: 2009-08-14 Post Count: 1284 |
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. |
|
|
Make sure your dialog choice is spelt Uppercase, "Badge" and make sure the script is not disabled lol |
|
drc3Join Date: 2009-08-14 Post Count: 1284 |
It isn't disabled and it is named "Badge" |
|
drc3Join Date: 2009-08-14 Post Count: 1284 |
? |
|
drc3Join Date: 2009-08-14 Post Count: 1284 |
Anyone?
|
|
drc3Join Date: 2009-08-14 Post Count: 1284 |
Do I need to define Player or something? |
|
drc3Join Date: 2009-08-14 Post Count: 1284 |
Guys? |
|
|
Isnt it .UserId not userId |
|
|
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. |
|