Advertisement
JW2

FNF SourceCode1

JW2
Nov 26th, 2022
1,934
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RBScript 1.00 KB | Source Code | 0 0
  1. --FNF Tuturial
  2.  
  3. local UserInputService = game:GetService("UserInputService")
  4.  
  5. UserInputService.InputBegan:Connect(function(input)
  6.     local player = game.Players.LocalPlayer
  7.     if input.UserInputType == Enum.UserInputType.Keyboard then
  8.  
  9.         if input.KeyCode == Enum.KeyCode.A then
  10.             print("You Pressed A")
  11.             player.Character.Humanoid:LoadAnimation(script.A):Play()
  12.         end
  13.  
  14.     end
  15.    
  16.     if input.UserInputType == Enum.UserInputType.Keyboard then
  17.  
  18.         if input.KeyCode == Enum.KeyCode.D then
  19.             print("You Pressed D")
  20.             player.Character.Humanoid:LoadAnimation(script.D):Play()
  21.         end
  22.  
  23.     end
  24.    
  25.     if input.UserInputType == Enum.UserInputType.Keyboard then
  26.  
  27.         if input.KeyCode == Enum.KeyCode.W then
  28.             print("You Pressed W")
  29.             player.Character.Humanoid:LoadAnimation(script.W):Play()
  30.         end
  31.  
  32.     end
  33.  
  34.     if input.UserInputType == Enum.UserInputType.Keyboard then
  35.  
  36.         if input.KeyCode == Enum.KeyCode.S then
  37.             print("You Pressed S")
  38.             player.Character.Humanoid:LoadAnimation(script.S):Play()
  39.         end
  40.  
  41.     end
  42.    
  43. end)
Tags: Roblox
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement