Это видео недоступно.
Сожалеем об этом.
How To Make A Tool Pick Up System Using Proximity Prompts in ROBLOX Studio!
HTML-код
- Опубликовано: 19 сен 2022
- ❗ [PRESS SHOW MORE] ❗
👍 JOIN MY DISCORD SERVER: / discord 👍
🎧 BG MUSIC: Kevin Macleod | Local Forecast Elevator 🎧
✔ Join my Roblox Group - www.roblox.com....
✔ Follow my Roblox Profile - www.roblox.com....
✔ Play Roblox Bedwars 😉
👕 Buy my Roblox Merchandise- www.roblox.com.... 👕
✏️ What Do I Use To Edit?
Adobe Premiere Pro
📹 What Do You Use To Record?
OBS Studio 64bit
╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣
╠╗║╚╝║║╠╗║╚╣║║║║║═╣
╚═╩══╩═╩═╩═╩╝╚╩═╩═╝
Script:
local Prompt = script.Parent.ProximityPrompt
Prompt.Triggered:Connect(function(Player)
game.ReplicatedStorage.Tool.Parent = Player.Backpack
script.Parent:Destroy()
#roblox #bedwars #season5 #yxsquad #yxsynergy
#robloxstudio #proximity #prompt #shorts
THE SCRIPT (1 time and multiple uses)
1 time use:
local Prompt = script.Parent.ProximityPrompt
Prompt.Triggered:Connect(function(Player)
game.ReplicatedStorage.Tool.Parent = Player.Backpack
script.Parent:Destroy()
end)
Multiple uses:
local Prompt = script.Parent.ProximityPrompt
Prompt.Triggered:Connect(function(Player)
local ClonedTool = game.ReplicatedStorage.Tool:Clone()
ClonedTool.Parent = Player.Backpack
end)
nice
yo @Synergy_YX
it works but it does not put it into my inv pls help i have no joke been trying other tuts for 1 hour to pick up a bag of chips
@@Primovrliterally same im going insane do u have a solution 😭
@@DemezaBC you have to make a new project unless it works with a backup there is literally no other way that I know
For anyone trying to use a model instead of a part, turn it into a union instead and if it's a model you found via workshop thingy, i have no idea
Will it work if i put the proximity prompt in a part from the model? 'cause i need it to have the surface material like the studs and welds. but if i union it, those dissapear
how do you turn it into a union??
btw ty for the tip
@@taylorfan365 ctrl + shift + g to union
When i did it E is not pop up?????
You probably will not see this but for me it shows the e to pick up button but when I hold it down it dosent work
if u made changes to the name [tool], in the 4th line of code u can see tht there is a thing which says:
game.ReplicatedStorage.Tool.Parent = Player.Backpack
the 'Tool'there is used to be the thing in the replicatedstorage. hope this helps!
when you are designing a gaem the 'game.ReplicatedStorage.Tool.Parent' is something tht points the script the address. its like this: if u hv a part that's called a 'part', in the workspace, here is the thing [idk cuz idk whats tht thing called]:
game.Workspace.part
Thank you its really helpful
This helped me out so much, thank you for making an amazing tutorial!!
ty
I need help, cause I need a pick up tool. But I want it to stay there so other people can click it to.
I have a multiple uses script in the comments and in the description.
Thank you so much man! I really needed this.
Pls help it don't work for me. When I click I see it is in iventory but when I equipe it teleport me where I placed the part(on floor)
and I can't move too when I equiped it
@@supstrise Go to ReplicatedStorage and unanchor the Handle inside the Tool
@@Synergy_YX I did that and it didnt work, I have the same problem, pls help
I search how to do this for long
Thankyou!!🎉🎉
I'm betting you will never see this as you haven't uploaded in almost a year, but this was really, really helpful for my game I'm making. I had been clicking on all of these big youtubers videos on how to make something like this and none of them had worked before this one. Thank you. :)
He saw :)
@@byStunt7 TY BRO
No offense but he just heart ur comment, meaning he's still alive
@@sahlkhan6723 bro I commented this 10 months ago
the first time the proximity prompt popped up but did not go into my inventory, the second time I did the step by step and it went into my inventory but when I hold the tool it brings me to where the tool was originally placed and it makes it stuck, I need help
You'll need to unanchor the descendants of the Tool in ReplicatedStorage
w tutorial
Why when I collect the tool does it return to the same place and still teleport the player?, he can't leave
A descendent of the Tool in ReplicatedStorage is anchored. Unanchor it
if im using a model will this still work instead of a part ??
For the tool the player will hold, you'll still need to use the tool object, and have all the parts of the model welded to either the handle or some other core part.
@@Synergy_YX so, does that mean we duplicate the tool instead of the handle?
thank you :>
Underrated, finally someone who paste the script for us to use
So i removed the script.Parent:Destroy() at the end of the script so that the other players can pick it up as well. But then the thing is if they die and respawn and try to pick up the part they cant pick it up again... Do you know how I can fix that?
You're going to have to clone it and then put it in their backpack.
local Prompt = script.Parent.ProximityPrompt
Prompt.Triggered:Connect(function(Player)
local ToolClone = game.ReplicatedStorage.Tool:Clone()
ToolClone.Parent = Player.Backpack
end)
@@Synergy_YX but then players could just spam the proximity prompt and get multiple of the same tool can u fix that?
@@smoreblox3485 do a check to see if they have a tool, if they do, dont give one too them
@@Synergy_YX how
whats the problem with this ? local pickup = script.Parent
local handle = script.Parent.Handle
if pickup.Parent == workspace then
local proxprompt = Instance.new("ProximityPrompt")
proxprompt.Parent = handle
proxprompt.KeyboardKeyCode = Enum.KeyCode.F
proxprompt.ActionText = "Pick up"
proxprompt.HoldDuration = .5
proxprompt.Triggered:Connect(function(Plr)
local inventory = Plr:WaitForChild("Inventory")
pickup.Parent = inventory
proxprompt:Destroy()
end)
end
Is "Inventory" a valid child of the player? In the video, we're using the player's backpack
i did the same but i dont know when i should put it in replstorage and when in serverstorage
As both names suggest, the objects stored in ServerStorage can only be accessed by the server, whereas ReplicatedStorage contains objects that both and server and clients can access.
That's the main difference between the two.
Basically, if you don't want things accessible by clients, keep them in ServerStorage, but where clients need to be able to access objects, use ReplicatedStorage. ReplicatedStorage is typically used for shared modules, and RemoteEvents, but have plenty of other uses too.
Here are some sources you can read up on:
create.roblox.com/docs/reference/engine/classes/ReplicatedStorage
create.roblox.com/docs/reference/engine/classes/ServerStorage
devforum.roblox.com/t/serverstorage-vs-replicatedstorage/658370
can i have help when I equip the item it makes me teleport
Make sure the handle inside the tool isn’t anchored
@@Synergy_YX thank you
Hello! thx for your vid , I have a question , I have a model that i made using parts how do I get it to work if its a model?
For some reason if you use teleport pads before grabbing the item it will not work
That should not have any affect on the script
Question
can you make it so if they die it drops the item?
Yeah, that can be done.
@@Synergy_YXcan you show us the tutorial?
It doesn't work, can you help me please?
local Prompt = script.Parent.ProximityPrompt
Prompt.Triggered:Connect(function(Player)
game.ReplicatedStorage.Tool.Parent = Player.Backpack
script.Parent:Destroy()
end
use this one and put the tool in the replicated storage copy the handle then put this (add a proximityprompt inside copyed handle)
remember to replace tool in the 3rd line with your tool in replicated storage
@@NOTJACKDOODS447😅
also if that doesn’t work make sure you not using a model (ik i’m super late)
@@tbonerisme that could be it, thank you
@@minecraftdiaries100bro waited 1 year 💀
How to fix that if i drop item proximity prompt dissapear
it somehow doesnt pop up in my hand, when i grab it it just disappears but when i taske it out it comes back but its in the same spot and not in my hand, and when i do the multiple uses script, it just duplicates it but never comes in my hand, could u please fix this?
That's not a problem with the script, there's a good chance the part is anchored, and will need to be unanchored in order to fix the problem.
@@Synergy_YXit isn't anchored tho, when I push it. It falls down. Also it doesn't say it's anchored.. but I will tell you this, I'm tryna make a toy of my avatar, like I can pick up my avatar in my hand. And I loaded the character from the plugin called "Load Character" by AlreadyPro (I think) It is also animated, I animated it to a pose and then used "Anchore Pose" plugin, (idk the creator's name but it's a red background and a black anchor) to make my avatar a pose
hello. it worked; but there is a bug that, i can't hold it in my character. bruh.
ok, but what if i wanted to do a model instead?
Make it a union
how can i change the items name
Properties Panel -> Find the name property and change it
Epic tutorial.
Btw how do I name the item ingame other than "tool"
@@daxxk100 Open the properties tab, find the "Name" property and change it to whatever you want
@@Synergy_YX I found a different way actually it was cool
Amazing
👌
bro its working but when i pick up it picks up the first tool that is in replicated storage when i am picking up like a gun the picks up a sword how do i fix it?
If they're both called "Tool" it will pick the first one called "Tool", to combat this rename the sword to "Sword", and the gun to "Gun" then change the script to reference the gun/sword
@@Synergy_YX Tysm it worked now, i needed this for my hamburguer game and also i made a cooldown for it tysm
Thanks!
im able to pick my object up but every time i go to hold it, it teleports me back to the location i picked it up at
Unanchor the Handle inside the Tool
@@Synergy_YX yeah i figured that out, i feel a little dumb for commenting this. but im currently working on a proximity script to detect if a player is a certain amount of studs close then it will un anchor
i have a problem,how do i drop item like,Press e to interact the lock
my thing just wont pickup i think i need a bit of help :P
The script works just fine but when I put in the script the part disappeared like it’s invisible pls help
Buddy just hearted it and didn’t help 😳
how do i make it so when you press a button it spawns and you can pick it up?
Yeah I can’t pick it up
It works but when you pick it up the tool doesn't come in the player's hand. It just disappears. YX Synergy please give a solution for this.
that can happen if the tool doesnt have a handle or other properties
Check the tool has a handle, and is named “Handle”.
i love you for this
💀
perfect video but how to make it so that you can pick up a thing and it does not disappear, but if you already have this thing in your inventory, then you will not be able to pick it up?
A simple way is to create a table of players that have picked up the sword, if they aren’t in the table then allow them to pickup the weapon, then add them to the table.
Thanks)@@Synergy_YX
Hello. I got a mesh part not a part will it still work ?
Presumably yes, since MeshParts are BaseParts and Tool Handles must be BaseParts
when I hold it the proximity prompt still stays
edit: nvm I had to delete it from replicatedstorage
thanks 👍👍
when i pick it up its like its anchored i glitch idk why
You'll need to unanchor the descendants of the Tool in ReplicatedStorage
@@Synergy_YX thanks man!
is there any way to make the script not limited to only one tool? i want to add more than one object you can pick up but it only allows me to pick up the same object when i use the script
There's a script for multiple uses in the pinned comment
alright i removed another tween script i had but it still does the same thing
Hey, great tutorial but when I equip the thing, it shows in my inventory but not in my hand, it’s still on the ground
Make sure the handle inside the Tool object isn’t anchored
@@Synergy_YXk thanks man, one more question, can I make it so that when you die with the object, someone can grab it from where they died?
@@Orence8279 Yep, I'll make a video about that in the future!
i did everything perfect but when i try to collect it in game it doesnt go to my inventory
please help
me too, I'm not sure why..
when i pick the tool up it just shows in my backpack but it doesnt show on my hand
it goes to the saame place and i already unanchored it in the storage and in workspcae
It shows up in your backpack and not your character because that’s how I designed the script, you can change it by changing Player.Backpack to Player.Character
@@Synergy_YX i mean like uh it is just like not in my hand when im using/holding it
@@TheCooker57 me tooo
Amazing video! If i used a local script instead of a normal script would it still work and if not then what should I do?
…. If the local script doesn’t work then go back to using normal script?😭
yo can you make a video or repaily to this comment whats the script for muitable uses and where you can only pick it up one time
I plan on remaking this video in the future, which will contain both the single and multiple use scripts, with a proper explanation
@@Synergy_YX okay shounds good
I need help when I was testing it the screengui disappears was it not allowed or something?
ScreenGui? A proximity prompt is used
I tried this and it didnt work. does it work for parts i made from blender? or does that not work
thanks
thx bro, this helped a lot
How do i make it that u can only pick it up again after something like 1000 seconds
You can create a debounce variable, with a cooldown of 10000 seconds
Which would look something like this
local Debounce = false
if Debounce then return end
Debounce = true
... code to give player tool ....
task.delay(10000, function()
Debounce = false
end)
If you have any further questions, you can reach me through my development discord server!
so can you help me add a hibox to grab it?
when i pick up the item it doesn't go into my inventory any help please?
same
OHH i accidentaly put in replicated first
when i pick it up i go into the ground, any way i can fix that?
Unanchor the descendant parts of the tool, that's inside ReplicatedStorage.
@@Synergy_YX thanks
Nor sure if tou will see this but it only lets me interact and nor pick it up. Do you have a fix?
check if the proximity promt hold duration is not negative. i accidentally did that and it didi not work.Edit:Not sure if this helps u lolol
@@snehithreddythumma3076 still did not work
Have you correctly set up the script and Tool in ReplicatedStorage?
@@Synergy_YX so I got it my tools were not even working so that’s why and your tut worked so thank you
i modified the script a tiny bit to make it so if you pick up one then you can pick up another too while when you pick them up it still deletes it here is the modified script i did: local Prompt = script.Parent.ProximityPrompt
Prompt.Triggered:Connect(function(Player)
local ClonedTool = game.ReplicatedStorage.Tool:Clone() -- Where it says Tool:Clone() replace Tool with the name of your tool
ClonedTool.Parent = Player.Backpack
script.Parent:Destroy()
end)
remove the "script.Parent:Destroy()" line
@@Synergy_YX why? i modified the script so when you pick it up it dissapears but it also allows you to pick up another one thats the same as it it works how i like it
Could you please tell me where i need to put all the things for it to work? Do i need to copy it and put one copy to the Replicated Storage or what?
@@Futerr you need to do what the tutorial says but just put in the modified script that i did
when I pick up this key, my character is where this item is and it doesn't want to move
im w the same problem
unanchor it
@@cucabeludo2026 mee too
@@freezergames3839 mine doesntt work idk why
You'll need to unanchor the descendants of the Tool in ReplicatedStorage
It just falls on the ground when you pick it up how can I fix it
If you mean that it teleports to a fixed position somewhere on the map (when equipped), this will be due to the handle being anchored, or a different descendant of the tool.
for some reason the tool just makes you stay in one position and it wont let you move, how can i fix it?
Ensure the tool’s descendants are not anchored
It doesn't work for me when I do this
how to rotate it to facing up the part in the hand?
You can adjust the Tool's Grip properties to position the part properly in the player's hand
When i try to equip it makes me teleport diagonal, please fix this
Make sure the handle inside the Tool object isn’t anchored
@@Synergy_YX Hey umm Mr how do you make it stay anchored??
@@DukQuack The Handle of the tool in the workspace should be anchored, while the Handle of the tool in ReplicatedStorage should not.
@@Synergy_YX Ty I fixed it
Good tutorial but for me it only works if its one block. If I try it on a model it doesnt work sadly. Why does it work on parts but not models?
You just save me hour
oh thats why it isnt working
do you know how to change the tool text in the icon to say something else
yeah just rename the tool
@@dragonkiryu didnt work
does it go back when i press e again?
No
It doesnt work for me, I have re watched the video multiple times and it still doesnt work can someone pls help?
I can help you in AlvinBlox's discord server (discord.gg/alvinblox), otherwise I can't do much.
I don’t have discord
I think it is a problem on my end, but I’m glad it worked for other people. You made the video really well
i have no idea why but when i use your multiple use version it just doesnt work at all how fix bro?
It will work if all steps are followed correctly.
@@Synergy_YX I followed the steps exactly like the video but there's 0 output, and I made sure the tool i was using wasn't using a script that changes its parent
yoo i can pick it up
but i have a question
can i make it like if i die i still have it in my inventory
same with rejoining
You can use the DataStoreService to save data and load the weapon into the player’s inventory when they join the game each time.
@@Synergy_YX i dont know whats that lol but i’ll watch a turorial later, i started roblox studio not too long ago
@@Synergy_YX i didnt find any tutorial can you help me in it somehow?
@@JamalIsMyDad2 If you're able to, you can get help in the AlvinBlox discord server (AlvinBlox is a roblox studio youtuber, who provides tutorials on roblox development, specifically scripting)
it works with bloxy cola?
Yes
Yes
its picking it up but the players hand isnt where i want it to be, how do you fix that?
use tool grip editor
Move where the handle part is to where you want the player's hand to connect.
how can i make this work with a union??
It should work with a union
uhm my part flies away
anchor it
Do guns work with it
Yes
@YXSynergy i did all the stuff but when i "pick it up" it stays on the ground instead of in my hands please help me
send script
is it anchored?
@@Synergy_YX
local Prompt = script.Parent.ProximityPrompt
Prompt.Triggered:Connect(function(Player)
local ClonedTool = game.ReplicatedStorage.Tool:Clone()
ClonedTool.Parent = Player.Backpack
end)
@@Jmq123 yep
@@RASportLive to double check, do you have a tool in ReplicatedStorage called ‘Tool’?
if i try to pick it up, it doesnt got go my inv should i be not holding another item?
Will not make a difference
@@Synergy_YX but it didnt work tho
Make sure you've done eveything correctly.@@SirTomatoe
@@Synergy_YX i got it 🤚
it works but it dont pick up idk why?
I spawn with that object and I dont want that how do i fix it
does it spawn whenever you join the Game?
did you put the tool in starterpack? if yes put it in replicated storage and follow this:
local Prompt = script.Parent.ProximityPrompt
Prompt.Triggered:Connect(function(Player)
game.ReplicatedStorage.Tool.Parent = Player.Backpack
script.Parent:Destroy()
end
use this one and put the tool in the replicated storage copy the handle then put this (add a proximityprompt inside copyed handle)
remember to replace tool in the 3rd line with your tool in replicated storage
it works but it does not go in my hand.
The parent is set to the player’s backpack
@@Synergy_YXoh ok
I bet you wont put a heart on this comment
oh
why is it sideways?
Orientation
it didnt work
how to make it stay still?
If you're talking about the tool in the workspace, you can just anchor it, just make sure the Tool in ReplicatedStorage is not anchored
@@Synergy_YX Hey if you can, may you please make a video about how to place a tool on a specific spot, like a flower in a vase? I really need a tutorial because I have a Roblox Longterm that requires that, but, no matter how much I look, I cant find a tutorial for that.
@@Synergy_YX Also thx
theres a red line
Check capitalisation and spelling
Can help with making it inf?
clone it
@@Synergy_YX just clone ?
@@bouryoku3802 Multiple uses:
local Prompt = script.Parent.ProximityPrompt
Prompt.Triggered:Connect(function(Player)
local ClonedTool = game.ReplicatedStorage.Tool:Clone()
ClonedTool.Parent = Player.Backpack
end)
it does not WORK
It does work if done properly
me:Soo not Halanmo :other me:Sooo Halanmo
it doesn't work :(
also i cant grab it?
local Prompt = script.Parent.ProximityPrompt
Prompt.Triggered:Connect(function(Player)
game.ReplicatedStorage.Tool.Parent = Player.Backpack
script.Parent:Destroy()
end
use this one and put the tool in the replicated storage copy the handle then put this (add a proximityprompt inside copyed handle)
remember to replace tool in the 3rd line with your tool in replicated storage
it doesn't work
It does work if done correctly
🌍
I can`t use it on model(
you cant use it on model because the "thing" needs to be a tool
He said tool, not model.
you have to use it on part or mesh part also if you wanna have it as a model then put the model IN the tool
in replicated storage
Scripts usually dont work on models
@Synergy_YX
Yes?