After pressing the prompt, it doesnt clone the pads

hello,
im currently trying to make an auto match for a soccer game
to start i made that the player need to press the prompt on the trophy it will clone 8 pads where the players will stand.
the problem is, it wont clone the pads.
here the script:

local PP = script.Parent
local Pad1 = game.ServerStorage.Pitch1Pads:WaitForChild("PlayerPad1")
local Pad2 = game.ServerStorage.Pitch1Pads:WaitForChild("PlayerPad2")
local Pad3 = game.ServerStorage.Pitch1Pads:WaitForChild("PlayerPad3")
local Pad4 = game.ServerStorage.Pitch1Pads:WaitForChild("PlayerPad4")
local Pad5 = game.ServerStorage.Pitch1Pads:WaitForChild("PlayerPad5")
local Pad6 = game.ServerStorage.Pitch1Pads:WaitForChild("PlayerPad6")
local Pad7 = game.ServerStorage.Pitch1Pads:WaitForChild("PlayerPad7")
local Pad8 = game.ServerStorage.Pitch1Pads:WaitForChild("PlayerPad8")
local TP = game.ServerStorage.Pitch1Pads.PlayerPad1.PlayerPlate
local TP2 = game.ServerStorage.Pitch1Pads.PlayerPad2.PlayerPlate
local TP3 = game.ServerStorage.Pitch1Pads.PlayerPad3.PlayerPlate
local TP4 = game.ServerStorage.Pitch1Pads.PlayerPad4.PlayerPlate
local TP5 = game.ServerStorage.Pitch1Pads.PlayerPad5.PlayerPlate
local TP6 = game.ServerStorage.Pitch1Pads.PlayerPad6.PlayerPlate
local TP7 = game.ServerStorage.Pitch1Pads.PlayerPad7.PlayerPlate
local TP8 = game.ServerStorage.Pitch1Pads.PlayerPad8.PlayerPlate

PP.Triggered:Connect(function(player)
	Pad1:Clone()
	Pad2:Clone()
	Pad3:Clone()
	Pad4:Clone()
	Pad5:Clone()
	Pad6:Clone()
	Pad7:Clone()
	Pad8:Clone()
end)
1 Like

You have to set the parent.

PP.Triggered:Connect(function(player)
	Pad1:Clone().Parent = -- where it should go
	Pad2:Clone().Parent = -- where it should go
	Pad3:Clone().Parent = -- where it should go
	-- etc.
end)
1 Like

thank you so much for the help

1 Like