Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Mar 28th, 2020 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Player = game.Players.LocalPlayer
  2.  
  3. local rp = game:GetService("ReplicatedStorage")
  4. local Stand = rp:WaitForChild("Stand")
  5.  
  6. local UIS = game:GetService("UserInputService")
  7.  
  8. local debounce = false
  9. local active = false
  10.  
  11. UIS.InputBegan:Connect(function(input,isTyping)
  12.     if isTyping then
  13.         return
  14.     elseif input.UserInputType == Enum.UserInputType.standbutton then
  15.         if debounce == false and active == false then
  16.             debounce = true
  17.            
  18.             Stand:FireServer(active)
  19.         end
  20.     end
  21. end)
  22.  
  23. UIS.InputBegan:Connect(function(input,isTyping)
  24.     if isTyping then
  25.         return
  26.     elseif input.UserInputType == Enum.UserInputType.standbutton then
  27.         if debounce == true and active == false then
  28.             active = true
  29.            
  30.             Stand:FireServer(active)
  31.         end
  32.     end
  33. end)
  34.  
  35. Stand.OnClientEvent:Connect(function()
  36.     wait(1)
  37.     debounce = false
  38.     active = false
  39. end)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top