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
 

Take/give weapons

Previous Thread :: Next Thread 
nfsmartie is not online. nfsmartie
Joined: 03 Sep 2011
Total Posts: 11
27 Mar 2016 12:40 PM
I am making a game where there is a teleport to and from a pvp arena. I need a script so when you go through 1 teleporter, it gives you the weapons, but when you go through the other portal, it takes away the weapons. I have the 2 weapons in Lighting, and the 2 weapon's names are "Sword" and "Gun" (without quotes). Can anyone help???
Report Abuse
iJacobness is not online. iJacobness
Joined: 20 Jan 2014
Total Posts: 4944
27 Mar 2016 12:56 PM
gs = Game:GetService("GiveService")
rs = Game:GetService("RemoveService")
function Function(player)
if player.teleporter1 = true then
player.gs(game.Lighting.Sword)
else
player.rs(gmae.Lighting.Sword)
end
if player.teleporter2 = true then
player.gs(game.Lighting.Gun)
else
player.rs(gmae.Lighting.Gun)
end
end
end
end)
end
end



y-you monster
Report Abuse
iJacobness is not online. iJacobness
Joined: 20 Jan 2014
Total Posts: 4944
27 Mar 2016 12:57 PM
oops i forgot a end, add another 1 at the bottom



y-you monster
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