#help with gravity coil gamepass
1115 messages · Page 2 of 2 (latest)
and with the startergear thing, it worked
but if u bought it multiple times, ti'll just keep duplicating m
yeah its fine
then change it back to starter
it wont duplicate
its just cus its testing
so u can purchase a gamepass like 15 times
they can only buy it once tho thats the thing
so just put it in stater
okay i presume it will okay then
yeah
it duplicates when you die a few times
how do i check it?
let me c rq
1s
right after the until char thing put this- if player.StarterGear:FindFirstChildOfClass("Tool") then end else
see if that does anything
idk
idek if itl work
char:FindFirstChild("Humanoid").Died:Connect(function()
local tooltable = {}
if char:FindFirstChildOfClass("Tool") then
which char
not player
i know
stop pasting stuff
change it to plr then change it to if not
then put the end at the bottom
put that end
all tghe way at the end
after all the ends
not right at the bottom
after all the ends
u have to rearange them
have i indented everything correctly
let me check
sorry but i doubt that lol
ok
you needa change some thing saround
around
so put the end
right after the first end)
not the first end
the first end)
and then put that if not thing right after the died function
and then ur gonna need to change 1 thing around
should i then ident everything into the if not
no
its fine
gimmi 1s
so when it gets to startergear
how can u equip it
cus i cant
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
repeat
wait()
until char:FindFirstChild("Humanoid")
char:FindFirstChild("Humanoid").Died:Connect(function()
if not plr.StarterGear:FindFirstChildOfClass("Tool") then
local tooltable = {}
if char:FindFirstChildOfClass("Tool") then
print("tpool")
table.insert(tooltable,char:FindFirstChildOfClass("Tool"):Clone())
end
for _, v in pairs (plr.Backpack:GetChildren()) do
table.insert(tooltable,v:Clone())
print(tooltable)
end
wait(game.Players.RespawnTime + 1)
if tooltable ~= {} then
for _, v in pairs (tooltable) do
print(v.Name)
v.Parent = plr.StarterGear
end
else
end
end
end)
end)
end)
this btw
yeah
how would i even identify the other ones
thats why i aint doin it
its so complicated
or its not i dont know
you can try to ask other people
tried asking people for ages but they just kept spamming me with docs
i get its helkpful, but its not what i need
whar are the docs
well it was for things about promptgamepass purchaes userownsgamepassasync or something, i understand what they do but i didn't know how to implement them into my code
but it didnt
it did
we used that
for the purchasing stuff
userownsgamepassasync would save it
yeah it works like that, but when i get shown docs with no explanation, it was difficult on what to do