Dev console command help

Please bear with me I have like 0 clue what I’m doing and barely know code I only try to edit/change code some friends send and try to make an understanding of it. In which I’m usually successful for the most part but this time I wasn’t and I need help figuring out how to write this please.

local players = {“Hazedcrest”}
local tool = game.ServerStorage.FindFIrstChild(“Tools”):GetChildren()
tool:FindFirstChild(“ExclusiveWeapons”).74-KA:Clone().Parent = player.Backpack

Thats the script I tried to make to put a tool from ServerStorage into ONLY my inventory, nobody elses.
image
That’s the location of the tool I’m trying to put into specifically my inventory via the dev console.
I’d greatly appreciate the help!

local player = game.Players.Hazedcrest
local clone = game.ServerStorage.Tools.ExclusiveWeapons[74-KA]:Clone
clone.Parent = player.Backpack
2 Likes

Tysm! but I just tried to use the code you wrote and got this error
image

change local players to local player. I made an error and corrected, but it seems you copied my error before I corrected. Also I’m not in roblox sudio right now so I can’t test it

1 Like

Add quotations like this:

game.ServerStorage.Tools.ExclusiveWeapons["74-KA"]:Clone()

2 Likes

Ah, thanks I did what both of u guys said to fix and now I got this error
image
image

Well first you did players and then you said player

so do

clone.Parent = players.Backpack

1 Like

Oh wait, you said change “local players” to “local player” but it already was local player so I changed it to local players

Oh, thanks! I just noticed that mistake on my part

Tysm for both of your guys’ help!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.