Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Backpack is not part of player added?

Asked by 3 years ago

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

Log in to vote
0
Answered by 3 years ago

I fixed it now

Ad

Answer this question