|
| 08 Jun 2014 07:03 PM |
| Instead of zooming with "z" what do I type to use the mouse right click and hold? |
|
|
| Report Abuse |
|
|
ComBatPro
|
  |
| Joined: 27 Dec 2010 |
| Total Posts: 205 |
|
|
| 08 Jun 2014 07:04 PM |
| I don't know what you're talking out zoom with z |
|
|
| Report Abuse |
|
|
|
| 08 Jun 2014 07:08 PM |
This is a part of the script, its for a sniper. If I change the "z" to another letter it will use that letter. How can I make it use Hold Right click on the mouse instead of a letter? -Thanks
function onEquipped(mouse) plr=game.Players.LocalPlayer equipped=true if mouse~=nil then mouse.Icon="http://www.roblox.com/asset/?id=18662154"--"rbxasset://textures\\GunCursor.png" mouse.KeyDown:connect(function(key)if key thenkey=string.lower(key)if key=="r" then reload()elseif key=="z" and canzoom~=0 and not reloading and equipped then print(key .. " FOUND ME") local cam=game.Workspace.CurrentCamera if cam then zoomed=math.floor(cam.FieldOfView+.5) zoomgui.Parent=plr.PlayerGui |
|
|
| Report Abuse |
|
|
|
| 08 Jun 2014 07:28 PM |
| MouseButton2Down i believe. |
|
|
| Report Abuse |
|
|
ComBatPro
|
  |
| Joined: 27 Dec 2010 |
| Total Posts: 205 |
|
|
| 08 Jun 2014 07:31 PM |
local player = game.Players.LocalPlayer local mouse = player:GetMouse()
function zoom() --ur code end
mouse.Button2Down:connect(function() zoom() end) |
|
|
| Report Abuse |
|
|
iStarry
|
  |
| Joined: 14 Nov 2012 |
| Total Posts: 245 |
|
| |
|
iStarry
|
  |
| Joined: 14 Nov 2012 |
| Total Posts: 245 |
|
|
| 08 Jun 2014 07:39 PM |
| ; You didn't need all that crap; it's a pretty simple script. |
|
|
| Report Abuse |
|
|