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
 

Help!

Previous Thread :: Next Thread 
Veltonixc is not online. Veltonixc
Joined: 27 May 2015
Total Posts: 126
19 Jul 2015 06:52 PM

Weapon = script.Parent.Name
local player = game:GetService("Players").LocalPlayer;
local mouse = player:GetMouse();
local tool = player.Backpack:FindFirstChild(""..Weapon.."");
db = 1 -- Debounce
mouse.KeyDown:connect(function(key)
if key == "e" then
if db == 1 then
player.Character.Humanoid:EquipTool(tool);
db = 2
else
player.Character.Humanoid:UnequipTools()
db = 1
end
end
end)



it works but i don't want players to be able to equip the sword the normal way (as in , click 1,2,3,4,5,..ect, and by clicking the tool. i want it so the only way you can use your sword is by clicking e help how do i do this?
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