#help with gravity coil gamepass

1115 messages · Page 2 of 2 (latest)

opal olive
#

i dont mind if they leavbe and it goes, its just when they die or reset, iw ant them keep it no matter what

#

and with the startergear thing, it worked

#

but if u bought it multiple times, ti'll just keep duplicating m

summer gale
#

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

opal olive
#

yeah

#

okay yeah its fine in startergear when u buy it once

summer gale
#

yeah

#

u can only buy it once

opal olive
#

okay i presume it will okay then

summer gale
#

yeah

opal olive
#

it duplicates when you die a few times

summer gale
#

then check if its allrdy in there

#

i cant make the script anymore in my game

#

butg

opal olive
#

how do i check it?

summer gale
#

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

opal olive
#

char:FindFirstChild("Humanoid").Died:Connect(function()
local tooltable = {}
if char:FindFirstChildOfClass("Tool") then

#

which char

summer gale
#

no like

#

i told you

#

right after the until char

#

at the top

opal olive
#

ohhhhh

#

i seei tnow

#

oops

#

hold on

summer gale
#

plr

#

mb

opal olive
summer gale
#

not player

#

i know

#

stop pasting stuff

#

change it to plr then change it to if not

#

then put the end at the bottom

opal olive
summer gale
#

put that end

#

all tghe way at the end

#

after all the ends

#

not right at the bottom

#

after all the ends

opal olive
#

i did

#

and its still showing it

summer gale
#

u have to rearange them

opal olive
#

have i indented everything correctly

summer gale
#

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

opal olive
#

should i then ident everything into the if not

summer gale
#

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

opal olive
#

idk it just allows me to

#

oh ty

#

the gravity coil stays but the rest disappear

summer gale
#

huh

#

oh

#

yeah i forgot u had more than 1

opal olive
#

yeah

summer gale
#

thats gonna take way too long

#

idk man

#

ur gonna have to do it urself

opal olive
#

cant i just copy and paste it

#

for each of them

summer gale
#

no you would have to check thru all of them

#

its a processs

#

maybe u can but idk

opal olive
#

how would i even identify the other ones

summer gale
#

thats why i aint doin it

#

its so complicated

#

or its not i dont know

#

you can try to ask other people

opal olive
#

i get its helkpful, but its not what i need

summer gale
#

THEN LOOK AT THEM

#

it is

#

probally

#

alot of these ppl r pretty smart

opal olive
#

i have looked at them, but it doesnt tell me exactly what to do

#

for my case anyway

summer gale
#

whar are the docs

opal olive
#

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

summer gale
#

yeah i mean it wouldve worked

#

for that cause

opal olive
#

but it didnt

summer gale
#

it did

#

we used that

#

for the purchasing stuff

#

userownsgamepassasync would save it

opal olive
#

yeah it works like that, but when i get shown docs with no explanation, it was difficult on what to do