Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make a part go to the players back pack?

Im new and im trying to make a bowling ball that when you click the button the ball will spawn, and u click on the ball and it goes to the players back pack.

1 answer

``local button = script.Parent local ball = Instance.new("Part") local clicked = Instance.new("ClickDetector") clicked.Parent = ball local function click(player)

ball.Shape = "Ball"
ball.BrickColor = BrickColor.Blue()
ball.Parent = game.Workspace
ball.Position = Vector3.new(-40.204, 3.07, 8.481)

end button.ClickDetector.MouseClick:Connect(click) local function clickman(epik) local player = game.Players.LocalPlayer ball.Parent = player.Backpack end ball.ClickDetector.MouseClick:Connect(clickman)

This discussion is preserved as it was. New answers, comments, and votes are closed.