So I'm trying to give the player a sword when saying a specific thing, heres my code: workspace:WaitForChild("Sand Person Noob Carl"):WaitForChild("Head"):WaitForChild("Dialog").DialogChoiceSelected:connect(function(Player,Choice) if (Choice.UserDialog == "Well, I'm here to help!") then local player = game.Players:GetPlayerFromCharacter(workspace) wait(2) game:GetService("Chat"):Chat(workspace["Sand Warrior Noob Mart"].Head, "Yeah?", Enum.ChatColor.Green) wait(2) game:GetService("Chat"):Chat(workspace["Sand Person Noob Carl"].Head, "Can you give him a weapon?", Enum.ChatColor.Green) wait(2) game:GetService("Chat"):Chat(workspace["Sand Warrior Noob Mart"].Head, "Sure, I have TONS of swords, take this and go slay those stupid bandits!", Enum.ChatColor.Green) game.ServerStorage:FindFirstChild("Sword"):Clone().Parent = player:WaitForChild("Backpack") wait(2) game:GetService("Chat"):Chat(workspace["Sand Person Noob Carl"].Head, "You heard Mart! Go get'em!", Enum.ChatColor.Green) end end)
COMMUNITY QUESTION
My TalkEvent won't work and won't give any item like its supposed to, any fixes?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Your code is too messy to read. Please indent and space it out.