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
Hi WillBe,
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 = workspace; cloneball.CFrame = player.Character:WaitForChild("Head").CFrame * CFrame.new(0, -5, 0); end end)
Thanks,
Best regards,
~~ KingLoneCat