local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
-- Get the local player
local player = Players.LocalPlayer
-- Define the source and destination
local buildingPartsFolder = ReplicatedStorage:FindFirstChild("BuildingParts")
local paintingTool = buildingPartsFolder and buildingPartsFolder:FindFirstChild("PaintingTool")
if paintingTool then
-- Check if the tool already exists in the player's Backpack
if not player.Backpack:FindFirstChild("PaintingTool") then
-- Clone the tool to avoid removing it from ReplicatedStorage
local toolClone = paintingTool:Clone()
-- Move the cloned tool to the player's Backpack
toolClone.Parent = player.Backpack
else
print("PaintingTool already in Backpack.")
end
else
warn("PaintingTool not found in BuildingParts.")
end
To embed this project on your website, copy the following code and paste it into your website's HTML: