Posted
How could i use v as remote argument when it need quotation marks to work?
for i,v in pairs(game:GetService("Players").blablabla.PlayerGui.Inventory.Frame.Container.Pets:GetChildren()) do
if v:IsA("TextButton") then
for k,a in pairs(v:GetChildren()) do
if a:IsA("TextLabel") and a.Name == "PetName" then
if a.Text == "Dog" then --Deletes all pets named as "Dog"
local args = {
[1] = {
[1] = {
[1] = {
[1] = "ida3c138f6e899405597a32b0614e5aa96" ---This should be (v)
}
},
[2] = {
[1] = false
}
}
}
game:GetService("ReplicatedStorage"):WaitForChild("Remotes"):WaitForChild("delete pets"):FireServer(unpack(args))
wait()
end
end
end
end
end
Replied
game:shutdown()for i,v in pairs(game:GetService("Players").blablabla.PlayerGui.Inventory.Frame.Container.Pets:GetChildren()) doif v:IsA("TextButton") thenfor k,a in pairs(v:GetChildren()) doif a:IsA("TextLabel") and a.Name == "PetName" thenif a.Text == "Dog" then --Deletes all pets named as "Dog"local args = {[1] = {[1] = {[1] = {[1] = "ida3c138f6e899405597a32b0614e5aa96" ---This should be (v)}},[2] = {[1] = false}}}game:GetService("ReplicatedStorage"):WaitForChild("Remotes"):WaitForChild("delete pets"):FireServer(unpack(args))wait()endendendendend
now pay me $400
Cancel
Post
please negative rep me
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post