Ad
Log in to vote
0

How do I reference a player backpack?

Asked by 1 month 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 1 month 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 378 Moderation Voter
1 month ago
Edited 1 month 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