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

How do I reference a player backpack?

Asked by 2 years ago

So currently, I am making a game where when the round starts a random map gets chosen and they fight with classic swords, but, call me dumb, I don't know how to reference a player backpack. Can anyone help?

What I mean:

plr.Team = game.Teams.Playing script.ClassicSword:Clone() script.ClassicSword.Parent = game.Players.Backpack

2 answers

Log in to vote
0
Answered by 2 years ago

this doesnt work because your referencing all the players in the server pretty sure you want the local player bc backpack only exists in the client do: game.players.localplayer.backpack

but if your in server script then i guess you can use a remote event

Ad
Log in to vote
0
Answered by
MattVSNNL 620 Moderation Voter
2 years ago
Edited 2 years ago

You're not referencing the player!

But I see you are creating a Round system! If you want a proper advanced Round system check out this video, I think you'll be very interested!

https://www.youtube.com/watch?v=Dt4EeKgmSEU&t=31s

It's on my channel! MattVSNNL

Answer this question