Advertisement
icy-desudesu

horsey

Aug 3rd, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.48 KB | None | 0 0
  1. Me = game.Players.LocalPlayer
  2. char = Me.Character
  3. pcall(function() char["Horse"]:remove() end)
  4. horse = Instance.new("Model")
  5. horse.Name = "Horse"
  6. horse.Parent = char
  7.  
  8. for i,v in pairs(char:children()) do
  9. if v.className == "Hat" then
  10. v:remove()
  11. end
  12. end --lego
  13.  
  14. char.Torso.CanCollide = false
  15. char["Right Arm"].CanCollide = false
  16. char["Right Leg"].CanCollide = false
  17. char["Left Arm"].CanCollide = false
  18. char["Left Leg"].CanCollide = false
  19. char.Head.Transparency = 1
  20. char.Torso.Transparency = 1
  21. char["Right Arm"].Transparency = 1
  22. char["Right Leg"].Transparency = 1
  23. char["Left Arm"].Transparency = 1
  24. char["Left Leg"].Transparency = 1
  25. char.Head.BrickColor = BrickColor.new("Reddish brown")
  26. pcall(function() char.Head["face"]:remove() end)
  27.  
  28. function prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form)
  29. part.Parent = parent
  30. part.formFactor = form
  31. part.CanCollide = collide
  32. part.Transparency = tran
  33. part.Reflectance = ref
  34. part.Size = Vector3.new(x,y,z)
  35. part.BrickColor = BrickColor.new(color)
  36. part.TopSurface = 0
  37. part.BottomSurface = 0
  38. part.Anchored = anchor
  39. part.Locked = true
  40. part:BreakJoints()
  41. end
  42. function mesh(mesh, parent, x, y, z, type)
  43. mesh.Parent = parent
  44. mesh.Scale = Vector3.new(x, y, z)
  45. mesh.MeshType = type
  46. end
  47. function wel(weld, x, y, z, parent, part, parta, xx, yy, zz)
  48. local wel = weld
  49. wel.Parent = parent
  50. wel.Part0 = part
  51. wel.Part1 = parta
  52. wel.C1 = CFrame.new(x, y, z) * CFrame.Angles(xx, yy, zz)
  53. end
  54.  
  55. wide = 3
  56. high = 3
  57. long = 6
  58.  
  59. torso = Instance.new("Part")
  60. prop(torso, horse, true, 0, 0, wide, high, long, "Reddish brown", false, "Custom")
  61. spec = Instance.new("SpecialMesh")
  62. mesh(spec, torso, 1, 1, 1, "Brick")
  63. Head = Instance.new("Part")
  64. prop(Head, horse, true, 0, 0, 2, 1.5, 1, "Reddish brown", false, "Custom")
  65. spec = Instance.new("SpecialMesh")
  66. mesh(spec, Head, 1, 1, 1, "Head")
  67. ra = Instance.new("Part")
  68. prop(ra, horse, false, 0, 0, 1, 4, 1, "Reddish brown", false, "Custom")
  69. spec = Instance.new("SpecialMesh")
  70. mesh(spec, ra, 1, 1, 1, "Brick")
  71. la = Instance.new("Part")
  72. prop(la, horse, false, 0, 0, 1, 4, 1, "Reddish brown", false, "Custom")
  73. spec = Instance.new("SpecialMesh")
  74. mesh(spec, la, 1, 1, 1, "Brick")
  75. ll = Instance.new("Part")
  76. prop(ll, horse, false, 0, 0, 1, 4, 1, "Reddish brown", false, "Custom")
  77. spec = Instance.new("SpecialMesh")
  78. mesh(spec, ll, 1, 1, 1, "Brick")
  79. rl = Instance.new("Part")
  80. prop(rl, horse, false, 0, 0, 1, 4, 1, "Reddish brown", false, "Custom")
  81. spec = Instance.new("SpecialMesh")
  82. mesh(spec, rl, 1, 1, 1, "Brick")
  83. t = Instance.new("Part")
  84. prop(t, horse, false, 0, 0, 1, 4, 1, "Reddish brown", false, "Custom")
  85. spec = Instance.new("SpecialMesh")
  86. mesh(spec, t, 1, 1.5, 0.75, "Sphere")
  87. tors = Instance.new("Seat")
  88. prop(tors, horse, true, 0, 0, 3.05, 0.15, 3, "Bright red", false, "Custom")
  89. spec = Instance.new("SpecialMesh")
  90. mesh(spec, tors, 1, 1, 1, "Brick")
  91. tors2 = Instance.new("Seat")
  92. prop(tors2, horse, false, 0, 0, 3.05, 0.15, 0.5, "Bright red", false, "Custom")
  93. spec = Instance.new("SpecialMesh")
  94. mesh(spec, tors2, 1, 1, 1, "Brick")
  95. tor = Instance.new("Part")
  96. prop(tor, horse, false, 0, 0, 0.5, 1, 0.5, "Bright red", false, "Custom")
  97. spec = Instance.new("SpecialMesh")
  98. mesh(spec, tor, 1, 1, 1, "Head")
  99. torsy = Instance.new("Part")
  100. prop(torsy, horse, true, 0, 0, 0.15, 3.145, 1, "Bright red", false, "Custom")
  101. spec = Instance.new("SpecialMesh")
  102. mesh(spec, torsy, 1, 1, 1, "Brick")
  103. torsys = Instance.new("Part")
  104. prop(torsys, horse, true, 0, 0, 0.15, 3.145, 1, "Bright red", false, "Custom")
  105. spec = Instance.new("SpecialMesh")
  106. mesh(spec, torsys, 1, 1, 1, "Brick")
  107. bg = Instance.new("BodyGyro")
  108. bg.Parent = torso
  109. torsyse = Instance.new("Part")
  110. prop(torsyse, horse, true, 0, 0, 3.05, 0.15, 1, "Bright red", false, "Custom")
  111. spec = Instance.new("SpecialMesh")
  112. mesh(spec, torsyse, 1, 1, 1, "Brick")
  113. headw = Instance.new("Weld")
  114. wel(headw, 0, 1.75, -3, char, Head, torso, 0, 0, 0)
  115. headw = Instance.new("Weld")
  116. wel(headw, 0, 0.5, -3, char, torso, char.Torso, 0, 0, 0)
  117. headw = Instance.new("Weld")
  118. wel(headw, 0.35, 0, -1, char, ra, char["Right Leg"], 0, 0, 0)
  119. headw = Instance.new("Weld")
  120. wel(headw, -0.35, 0, -1, char, la, char["Left Leg"], 0, 0, 0)
  121. headw = Instance.new("Weld")
  122. wel(headw, 0.35, 0, -5, char, rl, char["Right Leg"], 0, 0, 0)
  123. headw = Instance.new("Weld")
  124. wel(headw, -0.35, 0, -5, char, ll, char["Left Leg"], 0, 0, 0)
  125. headw = Instance.new("Weld")
  126. wel(headw, 0, -1.5, 3, char, t, torso, 0, 0, 0)
  127. headw = Instance.new("Weld")
  128. wel(headw, 0, 1.55, 0, char, tors, torso, 0, 0, 0)
  129. headw = Instance.new("Weld")
  130. wel(headw, 0, 1.6, 1.75, char, tors2, torso, -6.5, 0, 0)
  131. headw = Instance.new("Weld")
  132. wel(headw, 0, 0.5, -1.45, char, tor, tors, -3, 0, 0)
  133. headw = Instance.new("Weld")
  134. wel(headw, 1.55, 0, 0, char, torsy, torso, 0, 0, 0)
  135. headw = Instance.new("Weld")
  136. wel(headw, -1.55, 0, 0, char, torsys, torso, 0, 0, 0)
  137. headw = Instance.new("Weld")
  138. wel(headw, 0, -1.55, 0, char, torsyse, torso, 0, 0, 0)
  139.  
  140. rarm = nil
  141. larm = nil
  142.  
  143. local RAB = Instance.new("Part") -- Right Arm Brick
  144. RAB.formFactor = "Custom"
  145. RAB.Size = Vector3.new(0.2, 0.2, 0.2)
  146. RAB.Transparency = 1
  147.  
  148. local RABW = Instance.new("Weld", RAB) -- Right Arm Brick Weld
  149. RABW.Part0 = nil
  150. RABW.Part1 = nil
  151. RABW.C1 = CFrame.new(-1.5, -0.5, 0)
  152.  
  153. local LAB = Instance.new("Part") -- Right Arm Brick
  154. LAB.formFactor = "Custom"
  155. LAB.Size = Vector3.new(0.2, 0.2, 0.2)
  156. LAB.Transparency = 1
  157.  
  158. local LABW = Instance.new("Weld",LAB) -- Left Arm Brick Weld
  159. LABW.Part0 = nil
  160. LABW.Part1 = nil
  161. LABW.C1 = CFrame.new(1.5, -0.5, 0)
  162.  
  163. local RAW = Instance.new("Weld",RAB) -- Right Arm Weld
  164. RAW.Part0 = nil
  165. RAW.Part1 = nil
  166. RAW.C1 = CFrame.new(0, 0.5, 0)
  167.  
  168. local LAW = Instance.new("Weld",LAB) -- Left Arm Weld
  169. LAW.Part0 = nil
  170. LAW.Part1 = nil
  171. LAW.C1 = CFrame.new(0, 0.5, 0)
  172.  
  173. function arms(hit)
  174. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  175. if hit.Parent.Humanoid.Sit == true then
  176. he = hit.Parent
  177. larm = hit.Parent["LeftArm"]
  178. LAW.Part1 = larm
  179. LABW.Part0 = he.Torso
  180. LAW.Part0 = LAB
  181. LABW.Part1 = LAB
  182. LAB.Parent = he
  183. LABW.Parent = he
  184. rarm = hit.Parent["RigtArm"]
  185. RAW.Part1 = rarm
  186. RABW.Part0 = he.Torso
  187. RAW.Part0 = RAB
  188. RABW.Part1 = RAB
  189. RAB.Parent = he
  190. RABW.Parent = he
  191. end
  192. end
  193. end
  194.  
  195. function actions(msg)
  196. if msg == "trot" then
  197. char.Humanoid.WalkSpeed = 20
  198. elseif msg == "walk" then
  199. char.Humanoid.WalkSpeed = 16
  200. elseif msg == "gallop" then
  201. char.Humanoid.WalkSpeed = 35
  202. end
  203. end
  204.  
  205. Me.Chatted:connect(actions)
  206.  
  207. tors2.Touched:connect(arms)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement