if you are still having this problem,here is why:
on line 4
, you set the parent to the player
game.ReplicatedStorage.GHat:Clone().Parent = player
what you need to do is set the parent to the player's Character
1 | local cara = game.Workspace:FindFirstChild(player.Name) |
2 | game.ReplicatedStorage.GHat:Clone().Parent = cara |
so the full new code would be:
1 | local dialog = script.Parent |
2 | dialog.DialogChoiceSelected:connect( function (player,choice) |
3 | if choice = = dialog.GreenHat then |
4 | local cara = game.Workspace:FindFirstChild(player.Name) |
5 | game.ReplicatedStorage.GHat:Clone().Parent = cara |
glad this helped,
lukeb50