For some reason when imy egg is in replicatedstorage and i clone it to make it's parent workspace. It wont work.
But when its already in workspace it does work?
Script to spawn the egg:
Kitkat.Parent = game.Workspace
Kitkat.PrimaryPart.Position = game.Workspace.EggSpawn.Position
task.wait(1)
Kitkat.PrimaryPart.Anchored = true
Kitkat.KitKatEgg.Script.Enabled = true
```
Script inside the egg:
```local BadgeService = game:GetService("BadgeService")
local badgeId = 1150138684271351
local click = script.Parent.ClickDetector
click.MouseClick:Connect(function(player)
local hasBadge = BadgeService:UserHasBadgeAsync(player.UserId, badgeId)
if not hasBadge then
BadgeService:AwardBadgeAsync(player.UserId, badgeId)
end
script.Parent:Destroy()
end)
Sorry for the bad quality on the videos✌