I want to get the character but when i do game.Players.LocalPlayers
(in a LocalScript
) and at the pop up for the local players, nothing comes up. Is it a function? I doubt it tho but can you tell me?
Also i want to move a gear to the players' backpack, you know what i mean right? And when i try doing:
game.StarterPack:ClearAllChildren() --There's another gear in the starter pack. game.ServerStorage.AK74m:Clone() game.ServerStorage.AK74m.Parent = game.StarterPack
i did that and in game.ServerStorage.AK74m.Parent = game.StarterPack
and one, Well it went to the starterpack and it looked like it would switch gears in-game, but it didn't. It dis in the explorer while playing, but not in-game. And i thought well maybe i should move it to the players backpack, but apparently there's no way to put it in the players' backpack because i don't know HOW to. And the AK47m model didn't duplicate... e.e
please tell me how thank you!
local player = game.Players.LocalPlayer local Character = player.Character local Backpack = player.Backpack game.StarterPack:ClearAllChildren() --this will remove everything for every player, so I don't recommend doing this, it only makes changes after the player has died --you could use player.Backpack:ClearAllChildren() -- this removes the stuff in the players backpack but only in the current player, if you want to do it so it does it for every player use a for loop --put ak74m in ReplicatedStorage local ak47m = game.ReplicatedStorage.ak47m:Clone() ak47m.Parent = Backpack
hope i helped
If you are trying to reach a player you simply would do what you said "game.Players.LocalPlayer" and when you clone an object to a players backpack you want to access it with .Backpack.
local player = game.Players.Localplayer --This references the localplayer game.StartPack:ClearAllChiildren() game.ServerStorage.Ak74m:Clone() game.ServerStorage.Ak74m.Parent = player.Backpack-- reference to the players backpack