I’ve been trying to make this script to work. I dont know what I’m doing wrong, I am pretty new to coding. There are no errors in the output.
heres the code:
local dialog = script.Parent
local rs = game:GetService("ReplicatedStorage")
dialog.DialogChoiceSelected:Connect(function(player, choice)
if choice == dialog.MedkitChoice then
rs.MedKit:Clone("MedKit").Parent = player.Backpack
end
end)