generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Is there not a pick-up-on-touch script that exists???

Previous Thread :: Next Thread 
koolslam1 is not online. koolslam1
Joined: 18 Apr 2010
Total Posts: 3071
09 Aug 2017 05:07 PM
All I'm trying to do is have an anchored item sit and be able to be picked up infinite times, so far I haven't found what I'm looking for. Do any of you know where I can find this script?
Report Abuse
Domenious is not online. Domenious
Joined: 21 Mar 2017
Total Posts: 14
09 Aug 2017 05:17 PM
If you're talking about gears, then a gear can be automatically picked up ## ################# ## the gear has a Child that is a brick and is labeled "Handle". Roblox will do the rest. If you're talking about regenerating gears, then there are scripts that will give you a copy of the gear. I think there is also a script made by Roblox where any gear lying on top of it will be automatically copied, and once picked up, a duplicate of the same gear will be put on top of it. If you want a gear to be picked up, it can't be anchored or else something wierd happens that doesn't allow the gear to move along with you, and your arm actually gets teleported to the gear. Hope that helps
Report Abuse
koolslam1 is not online. koolslam1
Joined: 18 Apr 2010
Total Posts: 3071
09 Aug 2017 05:19 PM
odd how every single time I try to use the giver maker, and test it out it literally never works. I feel hopeless in this point in time.

If there was a script for certain players (admins) to be given a specific item when they join, that would be the most useful thing right now
Report Abuse
koolslam1 is not online. koolslam1
Joined: 18 Apr 2010
Total Posts: 3071
09 Aug 2017 05:33 PM
i'm going to be bumping this all day
Report Abuse
Domenious is not online. Domenious
Joined: 21 Mar 2017
Total Posts: 14
09 Aug 2017 05:33 PM
Make sure when you make the giver script, the gear gets put into the player's Backpack. This can be done like this"

--
script.Parent.Touched:connect(function(hit)
humanoid = hit.Parent:FindFirstChild('Humanoid')
if humanoid ~= nil then
local wplayer = hit.Parent
local player = game.Players:FindFirstChild(wplayer.Name)
--

And from there you can make a clone of the gear, preferably from replicated storage, and put it into player.Backpack.

As for the admin thing only, do the same thing, but make list of all the admins, and if the player touching it shares the same name, it will give it to them

ex:
--
local admins = {"Player","MyMom","Cheesecake"}
--

I hope that helped too!
Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
09 Aug 2017 05:40 PM
local admins = {"name1", "name2", "name3"} local tool = directions to the tool ########################################################## ################### = p:WaitForChild("StarterGear") local backpack = p:WaitForChild("BackPack") if not backpack:FindFirstChild(tool.Name) then tool:Clone().Parent = backpack end end) there's your free script
Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
09 Aug 2017 05:41 PM
nvm guess not
Report Abuse
koolslam1 is not online. koolslam1
Joined: 18 Apr 2010
Total Posts: 3071
09 Aug 2017 05:42 PM
ROBLOX has a filter that filters the least possible offensive things
Report Abuse
koolslam1 is not online. koolslam1
Joined: 18 Apr 2010
Total Posts: 3071
09 Aug 2017 05:45 PM
@dome

thank you so much, roblox studio keeps crashing (of course), but I will try that out when I can!
Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
09 Aug 2017 05:46 PM
the tags were a player added event with player argument "p"

and the next line was

tool:Clone().Parent = p:WaitForChild("StarterGear")
Report Abuse
koolslam1 is not online. koolslam1
Joined: 18 Apr 2010
Total Posts: 3071
09 Aug 2017 05:51 PM
a player added event with a "p" i don't know where to start how that might look, but thank you anyway!
Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
09 Aug 2017 05:51 PM
wiki.roblox.com/index.php?title=API:Class/Players/PlayerAdded

the part in the brackets where it looks like (player) mine looks like (p)
Report Abuse
Domenious is not online. Domenious
Joined: 21 Mar 2017
Total Posts: 14
09 Aug 2017 05:53 PM
It looks like this:

game.Players.PlayerAdded:connect(function(p)

blah blah scripting scripting blah

end)
Report Abuse
koolslam1 is not online. koolslam1
Joined: 18 Apr 2010
Total Posts: 3071
09 Aug 2017 05:54 PM
@agg

thank you very much for deciding to help! it means a lot. (i'll learn something aswell) I will be trying out every suggestion on this page soon.
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
09 Aug 2017 06:02 PM
I urge you to not only learn how to make 'a player added event with player argument "p"', but learn why it looks like that and how events work in general which you can apply to numerous other problems you'll undoubtedly come across.
Report Abuse
koolslam1 is not online. koolslam1
Joined: 18 Apr 2010
Total Posts: 3071
09 Aug 2017 06:04 PM
@kodran

this thread is merely a step in the right direction for me, i've only started developing (very recently) so I will try to spend more time (on the coding aspect) in future threads on here. thanks
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image