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 » Scripting Helpers
Home Search
 

Re: For a game I am making

Previous Thread :: Next Thread 
Velociraptor2005 is not online. Velociraptor2005
Joined: 14 Aug 2012
Total Posts: 4828
02 Jun 2013 06:31 PM
I need a script that only lets weapons' ammo in, but not players. Can you help me?
Report Abuse
Velociraptor2005 is not online. Velociraptor2005
Joined: 14 Aug 2012
Total Posts: 4828
02 Jun 2013 06:41 PM
Guys, please!
Report Abuse
Velociraptor2005 is not online. Velociraptor2005
Joined: 14 Aug 2012
Total Posts: 4828
02 Jun 2013 06:44 PM
Nobody knows?
Report Abuse
Velociraptor2005 is not online. Velociraptor2005
Joined: 14 Aug 2012
Total Posts: 4828
02 Jun 2013 06:51 PM
I'm not a good scripter, but here's my guess: (LOL is the name of my part)

if humanoid = nil then
game.Workspace.LOL.CanCollide = false
And some other stuff after that.
Report Abuse
Joseph96gr is not online. Joseph96gr
Joined: 28 Aug 2012
Total Posts: 383
02 Jun 2013 06:51 PM
define what you mean by "weapons' ammo... not players
Report Abuse
Velociraptor2005 is not online. Velociraptor2005
Joined: 14 Aug 2012
Total Posts: 4828
02 Jun 2013 06:52 PM
Like, superballs, slingshot pellets and stuff.
Report Abuse
Velociraptor2005 is not online. Velociraptor2005
Joined: 14 Aug 2012
Total Posts: 4828
02 Jun 2013 06:57 PM
if humanoid = nil then
game.Workspace.LOL.CanCollide = false
else
game.Workspace.LOL.CanCollide = true
---Right?
Report Abuse
johnhugh is not online. johnhugh
Joined: 26 Mar 2009
Total Posts: 1971
02 Jun 2013 07:19 PM
script.Parent.Touched:connect(function(hit)
if hit.Parent:findFirstChild("Humanoid") then
game.Workspace.LOL.CanCollide = false
else
game.Workspace.LOL.CanCollide = true
end)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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