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

Backpack is not a member of model?

Asked by 5 years ago

The output would always result to "Backpack is not a member of Model"

Local Ticket = game.ReplicatedStorage.Ticket
Ticket:Clone().Parent = game.Players.LocalPlayer.Character.Backpack

2 answers

Log in to vote
1
Answered by 5 years ago
local Ticket = game.ReplicatedStorage.Ticket --local, not Local
Ticket:Clone().Parent = game.Players.LocalPlayer.Backpack --Backpack is a member of Player, not Character
Ad
Log in to vote
0
Answered by 5 years ago

This should work

The players backpack can only be accessed through players and not the character.

Local Ticket = game.ReplicatedStorage.Ticket
Ticket:Clone().Parent = game.Players.LocalPlayer.Backpack

Answer this question