so when you click this gui it should spawn this Part/Ball on a players head
game.ReplicatedStorage.CloneBall.OnServerEvent:Connect(function(player)
if game:FindFirstChild("ServerStorage") and game.ServerStorage:FindFirstChild("Ball") and player and player.Character:FindFirstChild("Head") then
local cloneball = game.ServerStorage.Ball:Clone()
cloneball.Parent = cloneball.CFrame == CFrame.new(player.Character.Head.Position)
end
end)
tried this but it didnt work

2 comments
thanks bro
Glad to help.