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

Backpack is not part of player added?

I've been trying to replicate an object from replicated storage using remote functions because of filtering enabled, which is new to me since I haven't really been used to filtering enabled while coding. Here is the code local tools = game.ReplicatedStorage.KITtools.Cleaver

local RE = game:GetService("ReplicatedStorage") local SE = RE:FindFirstChild("CleaverEvent")

function Cleaver(player) local tool = game.Players.PlayerAdded.backpack:FindFirstChildOfClass("Tool") if tool then tool:Destroy() end

tools:Clone()
tools:Clone().Parent = game.Players.PlayerAdded.backpack

end

SE.OnServerEvent:Connect(Cleaver())

But I always get an error of

backpack is not a valid member of RBXScriptSignal

1 answer

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