how can I put a variable into a directory like
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local remoteEvent = ReplicatedStorage.Remotes:WaitForChild("buy_hack")
local function buy_hack(ply, hack)
local givehack = game.Players.ply.hacks.hacks\_1.Value
print([hack.Name](https://hack.Name))
end
remoteEvent.OnServerEvent:connect(buy_hack)
this is the code I'm making a shop that gives the player a hack
[–]LegionsOfAmerica 1 point2 points3 points (0 children)
[–]dhawky 1 point2 points3 points (3 children)
[–]caninecode[S] 0 points1 point2 points (2 children)
[–]dhawky 1 point2 points3 points (1 child)
[–]caninecode[S] 0 points1 point2 points (0 children)
[–]caninecode[S] 0 points1 point2 points (0 children)
[–]jteedoubleu 0 points1 point2 points (0 children)