#Fetch Quest Coding Help?

1 messages · Page 1 of 1 (latest)

worthy holly
#

Currently working on a "Find The Markers" type game and I wanted to code a section where there's a character you can't collect until you give it a certain item you have to find

Note that I have next to no prior coding experience and I was just making the game for fun

Tried making it myself and gave up after a couple hours

sly halo
#

ok so what ur saying is u have a system where players can collect characters and you want a character that requires u to have a specifc item before u can collect it?

worthy holly
#

Yea

sly halo
#

hold on i think ik how u can do this

worthy holly
#

Noice

sly halo
#

so do u already have the character collecting system ready?

worthy holly
#

Sorta

potent marshBOT
#

studio** You are now Level 1! **studio

sly halo
#

so how doesw it work so far

worthy holly
#

Well it just has an open/close function and has all of the characters currently in-game, although a couple slots are still missing

sly halo
#

ok

potent marshBOT
#

studio** You are now Level 2! **studio

sly halo
#

ill hv to make u a system for that first

#

dont worry its simple (ive never done this before but it should work)

worthy holly
#

Okay

sly halo
#

ok create a sceript in server script service and paste in this code:

#

local plrs = game.Players

plrs.PlayerAdded:Connect(function(plr)

local inventory = Instance.new("Folder")
inventory.Name = "inventory"
inventory.Parent = plr

end)

worthy holly
#

Thanks

sly halo
#

np

#

btw that adds a folder for bthe plrs collected items

worthy holly
#

Aight

sly halo
#

ok so imma write sm code rn so just add a proximity prompt to all of ur collectabkle characters

worthy holly
#

Now how would I add the NPC that gives you the badge/character?

sly halo
#

oh so u want to make a badge for each character u collect (this will make saving tghese characters a lot easier)

worthy holly
#

Yeah

sly halo
worthy holly
sly halo
#

ok

#

alr just add a proximity prompt inside of your chsaracters and add a sceript inside of the proximity prompt and put this cdoe in it:

#

(sry this is taking so long)

sly halo
sly halo
#

ok

sly halo
worthy holly
#

Thanks!

potent marshBOT
#

studio** You are now Level 2! **studio

sly halo
sly halo
#

nah bro my typing is so inaccurate xd

sly halo
#

ok so send in the collectscript code from inside the proximity prompt