#gear help!

1 messages · Page 1 of 1 (latest)

signal mulch
#

hi!!! im new to this whole scripting thing and im trying to figure out how to use proximity prompt to give gear. i have it down that you put the gear in server storage and the gear mesh + proximity prompt in workplace, but i dont understand how to get it to work.

#

heres the pastebin

#

cola is the mesh in the workplace and bcola is the gear im trying to get to work

#

i tried following a tutorial to the t but it isnt working

final latch
#

bcola is undefined in your code, always watch the Output Window for errors

signal mulch
final latch
#

also highlighting is good, specially for code this short ```lua
local cola = game.ServerStorage.Parts.bcola

script.Parent.Triggered:Connect(function(plr)
if not plr.Backpack:FindFirstChild(bcola.Name) then
bcola:Clone().Parent = plr.Backpack
bcola:Clone().Parent = plr.StarterGear
end
end)```

signal mulch
#

the script DOES work, it just required me to have the mesh and gear to be named the same 😭

#

i feel silly

final latch
#

also i dont think there is a plr.StarterGear

signal mulch
#

me either

#

theres only starterpack

#

which is counted under backpack from what ive seen

final latch
signal mulch
#

thank youu

unreal pendant
#

It’s a child added into the player when they joins the game