of     1   

GladiolusAmicitia
#155412347Friday, February 06, 2015 4:41 AM GMT

I got a script for running. I want the key to activate running to be, Wx2 (pressing W, two times) Right now the script activates running by pressing the Left Shift key. How should I edit this, and where? (New to scripting) Here's the script. local mouse = game.Players.LocalPlayer:GetMouse() local running = false function getTool() for _, kid in ipairs(script.Parent:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end mouse.KeyDown:connect(function (key) -- Run function key = string.lower(key) if string.byte(key) == 48 then running = true local keyConnection = mouse.KeyUp:connect(function (key) if string.byte(key) == 48 then running = false end end) for i = 1,5 do game.Workspace.CurrentCamera.FieldOfView = (70+(i*2)) wait() end game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 24 repeat wait () until running == false keyConnection:disconnect() game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16 for i = 1,5 do game.Workspace.CurrentCamera.FieldOfView = (80-(i*2)) wait() end end end)
Goulstem
#155412393Friday, February 06, 2015 4:42 AM GMT

InputBegan Enum.KeyCode.LeftShift ggnoreplskthx
GladiolusAmicitia
#155544498Sunday, February 08, 2015 4:23 AM GMT

..what? I'm not sure if you read correctly, but I want the keys to be "WW" (W x2) I think you misunderstood me.
maxomega3
#155545708Sunday, February 08, 2015 4:40 AM GMT

I didn't know keycodes were Enums local db = false mouse.KeyDown:connect (function (key) if key:lower () == "w" then if not db then print ("once") db = true else print ("twice") --change walkspeed db = false end end

    of     1