This is a basic problem probably, when the p[layer presses E it does spawn the egg, but after pressing it again it seems to use the same egg, I want to have it use a seperate clone for each press. local Egg = game.ReplicatedStorage.Egg:Clone()
local EggSpawn = script.Parent["Egg Spawn"]
local Playerparent = game.Players.LocalPlayer.Character.Parent.Parent.Eggs
local userInputService = game:GetService("UserInputService")
local function onKeyPress(input)
if input.KeyCode == Enum.KeyCode.E then
Egg:SetPrimaryPartCFrame(EggSpawn.CFrame)
Egg.Parent = Playerparent
end
end
userInputService.InputBegan:Connect(onKeyPress)
** You are now Level 1! **