If the player clicks the tool then i'm cloning it to the serverstorage and destoying the tool that the player clicked on. And then it will look like you picked it up. but it dosen't work, Help would be appreciated.
Inside Local script:
local Clone = game.ReplicatedStorage:FindFirstChild("BlueBerry1"):Clone()
local Playerbackpack = game.Players.LocalPlayer.Backpack
local Click = workspace.BlueBerry1.Part.ClickDetector
local Bill = workspace.BlueBerry1.Part.BillboardGui
-----------------------------------------------------------
Click.MouseClick:Connect(function()
game.ReplicatedStorage.BlueBerry1:Clone()
wait()
Clone.Parent = Playerbackpack
wait(0,5)
end)

5 comments
Babyseal : you can't use "Workspace" that won't work, that is deprecated.
Oh did I get it backwards? I just use game.Workspace.
You use workspace becuase it's faster and better
No. It is not. game.Workspace or game:GetService("Workspace") is consistent since there is no built in
playersvariable for example to get PlayersYou have to say game.Workspace because Workspace is a child of the game, just like ReplicatedStorage is a child of them game. You can't just say workspace otherwise the script won't know where to look.