Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Dialogue = workspace.Map.Model.Blacksmith.Blacksmith.Head.Dialog
- local Confirm = Dialogue.DialogueChoice
- Dialogue.DialogueChoiceSelected:Connect(function(player, dialogueInstance)
- print(player, dialogueInstance) --It has default params that gives you whoever triggered it and the dialogue choice,
- if player.leaderstats.Currency.Value >= 15 or player.leaderstats.Currency.Value == 15 and dialogueInstance == Confirm then
- game:GetService("ReplicatedStorage").DeluxeSword:Clone().Parent = player.BackPack
- player.leaderstats.Currency.Value = player.leaderstats.Currency.Value - 15
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement