Advertisement
Blueisim

ArtificialCharacter

Sep 6th, 2016
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. function clean()
  2. local c=game.Players.LocalPlayer.Character:GetChildren()
  3. for i=1,#c do
  4. if c.ClassName=="Part" then
  5. c:Destroy()
  6. end
  7. end
  8. end
  9. local md=game.Players.LocalPlayer:GetMouse()
  10. local b=Instance.new("Model")
  11. local a=Instance.new("Part",b)
  12. local a2=Instance.new("Part",b)
  13. local l=Instance.new("Part",b)
  14. local l2=Instance.new("Part",b)
  15. local h=Instance.new("Part",b)
  16. local t=Instance.new("Part",b)
  17. local f=Instance.new("Decal",h)
  18. f.Texture=158044781
  19. f.Face="Right"
  20. local m=Instance.new("SpecialMesh",h)
  21. b.Name="Player"
  22. game.Workspace.CurrentCamera.CameraSubject=h
  23. --positions and crap next :)
  24. h.Position=Vector3.new(1.5, 7, 0)
  25. h.Size=Vector3.new(1, 1, 2)
  26. m.Scale=m.Scale+Vector3.new(.25, .25, .25)
  27. t.Position=Vector3.new(1.5, 5.5, 0)
  28. t.Size=Vector3.new(1, 2, 2)
  29. a.Position=Vector3.new(1.5, 5.5, -1.5)
  30. a.Size=Vector3.new(1, 2, 1)
  31. a2.Position=Vector3.new(1.5, 5.5, 1.5)
  32. a2.Size=Vector3.new(1, 2, 1)
  33. l.Position=Vector3.new(1.5, 3.5, -0.5)
  34. l.Size=Vector3.new(1, 2, 1)
  35. l2.Position=Vector3.new(1.5, 3.5, 0.5)
  36. l2.Size=Vector3.new(1, 2, 1)
  37. --now movement and setup
  38. local parts=b:GetChildren()
  39. for i=1,#parts do
  40. parts[i].Anchored=true
  41. parts[i].CanCollide=false
  42. end
  43. b.Parent=workspace
  44. function down()
  45. for i=1,#parts do
  46. parts[i].Position=parts[i].Position-Vector3.new(0,.5,0)
  47. end
  48. end
  49. function up()
  50. for i=1,#parts do
  51. parts[i].Position=parts[i].Position+Vector3.new(0,.5,0)
  52. end
  53. end
  54. function w()
  55. for i=1,#parts do
  56. parts[i].Position=parts[i].Position+Vector3.new(1,0,0)
  57. end
  58. end
  59. function a()
  60. for i=1,#parts do
  61. parts[i].Position=parts[i].Position+Vector3.new(0,0,-1)
  62. end
  63. end
  64. function s()
  65. for i=1,#parts do
  66. parts[i].Position=parts[i].Position+Vector3.new(-1,0,0)
  67. end
  68. end
  69. function d()
  70. for i=1,#parts do
  71. parts[i].Position=parts[i].Position+Vector3.new(0,0,1)
  72. end
  73. end
  74. md.KeyDown:connect(function(key)
  75. if key:lower():byte()==119 then
  76. w()
  77. elseif key:lower():byte()==97 then
  78. a()
  79. elseif key:lower():byte()==115 then
  80. s()
  81. elseif key:lower():byte()==100 then
  82. d()
  83. elseif key:lower():byte()==18 then
  84. down()
  85. elseif key:lower():byte()==17 then
  86. up()
  87. end
  88. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement