Advertisement
tyridge77

Untitled

Aug 13th, 2015
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 54.03 KB | None | 0 0
  1. wait()
  2. function GetMesh(Obj)
  3. for i,v in pairs(Obj:GetChildren()) do
  4. if v:IsA("DataModelMesh") then
  5. return v
  6. end
  7. end
  8. end
  9.  
  10. function SaveWelds(Obj,Welds,Scale)
  11. if Welds == nil then
  12. local Welds = {}
  13. for i,v in pairs(Obj:GetChildren()) do
  14. if v:IsA("JointInstance") then
  15. Welds[#Welds+1] = {v,v.Part0,v.Part1,v.C0,v.C1,v.Parent}
  16. end
  17. SaveWelds(v,Welds,Scale)
  18. end
  19. return Welds
  20. else
  21. for i,v in pairs(Obj:GetChildren()) do
  22. if v:IsA("JointInstance") then
  23. Welds[#Welds+1] = {v,v.Part0,v.Part1,v.C0,v.C1,v.Parent}
  24. end
  25. SaveWelds(v,Welds,Scale)
  26. end
  27. end
  28. end
  29.  
  30. function ResizeWelds(Welds,Scale)
  31. for i,v in pairs(Welds) do
  32. v[1].Parent = v[6]
  33. v[1].Part0 = v[2]
  34. v[1].Part1 = v[3]
  35. local Vec = v[4].p
  36. local Vec2 = v[5].p
  37. v[1].C0 = CFrame.new(Vec*Scale)*(v[4]-Vec)
  38. v[1].C1 = CFrame.new(Vec2*Scale)*(v[5]-Vec2)
  39. end
  40. end
  41.  
  42. function ResizeFunc(Obj,Scale,Welds)
  43. for i,v in pairs(Obj:GetChildren()) do
  44. if v:IsA("BasePart") then
  45. local Size = v.Size
  46. for i2,v2 in pairs(v:GetChildren()) do
  47. if v2.Name == "ScaleInserted" then
  48. Size = Size*v2.Scale
  49. v2:Destroy()
  50. elseif v2.Name:sub(1,14) == "ScaleInserted:" then
  51. local X,Y,Z;
  52. for Match in v2.Name:sub(15):gmatch("[^,%s]+") do
  53. if Y ~= nil then
  54. Z = tonumber(Match)
  55. elseif X ~= nil then
  56. Y = tonumber(Match)
  57. else
  58. X = tonumber(Match)
  59. end
  60. end
  61. Size = Vector3.new(X,Y,Z)
  62. v2:Destroy()
  63. end
  64. end
  65. v.FormFactor = "Custom"
  66. local CFr = v.CFrame
  67. local Want = Size*Scale
  68. v.Size = Want
  69. if v.Size ~= Want then
  70. local Name = ""
  71. for Match in v.Name:gmatch("[^%s]+") do
  72. Name = Name..Match
  73. end
  74. local CharMesh = nil
  75. for i,v in pairs(Obj:GetChildren()) do
  76. if v:IsA("CharacterMesh") and tostring(v.BodyPart):sub(15) == Name then
  77. CharMesh = v
  78. end
  79. end
  80. if CharMesh == nil then
  81. local Mesh = GetMesh(v)
  82. if Mesh == nil then
  83. local Mesh;
  84. if v:IsA("WedgePart") then
  85. Mesh = Instance.new("SpecialMesh",v)
  86. Mesh.MeshType = "Wedge"
  87. else
  88. if v.Shape == "Ball" then
  89. Mesh = Instance.new("SpecialMesh",v)
  90. Mesh.MeshType = "Sphere"
  91. elseif v.Shape == "Cylinder" then
  92. Mesh = Instance.new("SpecialMesh",v)
  93. Mesh.MeshType = "Cylinder"
  94. else
  95. Mesh = Instance.new("BlockMesh",v)
  96. end
  97. end
  98. Mesh.Scale = Want/v.Size
  99. Mesh.Name = "ScaleInserted"
  100. else
  101. if (Mesh.ClassName == "SpecialMesh" and Mesh.MeshType ~= Enum.MeshType.FileMesh) or Mesh.ClassName ~= "SpecialMesh" then
  102. Mesh.Scale = Want/v.Size*Mesh.Scale
  103. end
  104. end
  105. else
  106. local Mesh = Instance.new("SpecialMesh",v)
  107. Mesh.Name = "ScaleInserted:"..tostring(Want)
  108. Mesh.MeshType = "FileMesh"
  109. Mesh.MeshId = "rbxassetid://"..CharMesh.MeshId
  110. --Mesh.TextureId = CharMesh.BaseTextureId
  111. Mesh.Scale = Vector3.new(1,1,1)*Want.X/Scale
  112. end
  113. end
  114. v.CFrame = CFrame.new(CFr.p*Scale)*(CFr-CFr.p)
  115. elseif v:IsA("DataModelMesh") then
  116. if v.ClassName == "SpecialMesh" then
  117. if v.MeshType == Enum.MeshType.FileMesh then
  118. v.Scale = v.Scale*Scale
  119. end
  120. else
  121. --v.Scale = v.Scale*Scale
  122. end
  123. end
  124. ResizeFunc(v,Scale,Welds)
  125. end
  126. end
  127.  
  128. function Resize(Obj,Scale)
  129. local Welds = SaveWelds(Obj,nil,Scale)
  130. ResizeFunc(Obj,Scale,Welds)
  131. ResizeWelds(Welds,Scale)
  132. end
  133.  
  134. function GetMass(obj)
  135. local mass = 0;
  136. for _,v in pairs(obj:GetChildren()) do
  137. if v:isA("BasePart") then
  138. mass = mass+v:GetMass();
  139. end
  140. end
  141. return mass;
  142. end
  143.  
  144. function Weld(part0,part1,weldname)
  145. local weld = Instance.new("Motor");
  146. weld.Part0 = part0;
  147. weld.Part1 = part1;
  148. local c=CFrame.new(part0.Position)
  149. local part0cf = part0.CFrame:toObjectSpace(c)
  150.  
  151. weld.Part0=part0
  152. weld.Part1=part1
  153. weld.C0=part0cf
  154. weld.C1=part1.CFrame:toObjectSpace(c)
  155. weld.Parent=part0
  156.  
  157.  
  158. if weldname then
  159. weld.Name = weldname;
  160. end
  161. end
  162. function WeldAll(part0,array,obj,weldname)
  163. local temp = {};
  164. for _,v in pairs(array) do
  165. temp[v]=true;
  166. end
  167. for _,v in pairs(obj:GetChildren()) do
  168. if temp[v.Name] then
  169. Weld(part0,v,weldname);
  170. end
  171. end
  172. end
  173.  
  174.  
  175.  
  176. function SpawnSheep()
  177. -- 1 - Model
  178. obj1 = Instance.new("Model")
  179.  
  180.  
  181.  
  182. -- 2 - Wool
  183. obj2 = Instance.new("Part")
  184.  
  185. obj2.CFrame = CFrame.new(Vector3.new(-21.5211716, 2.34030199, 3.8772161)) * CFrame.Angles(1.3983116149902, -0.025720708072186, 0.070026576519012)
  186. obj2.FormFactor = Enum.FormFactor.Custom
  187. obj2.CanCollide = false
  188. obj2.RotVelocity = Vector3.new(6.46234854e-027, 7.15624321e-024, 4.03896783e-027)
  189. obj2.Material = Enum.Material.Grass
  190. obj2.Size = Vector3.new(3.79999995, 2.5999999, 2.5999999)
  191. obj2.BrickColor = BrickColor.new("Mid gray")
  192. obj2.Velocity = Vector3.new(3.64852922e-020, 0.000537406071, 3.64713884e-020)
  193. obj2.Friction = 0.30000001192093
  194. obj2.Shape = Enum.PartType.Block
  195. obj2.Name = "Wool"
  196. obj2.Parent = obj1
  197.  
  198. -- 3 - Mesh
  199. obj3 = Instance.new("SpecialMesh")
  200. obj3.MeshType = Enum.MeshType.FileMesh
  201. obj3.Scale = Vector3.new(0.25, 0.5, 0.75)
  202. obj3.MeshId = "http://www.roblox.com/asset/?id=1290033"
  203. obj3.Parent = obj2
  204.  
  205. -- 4 - Part-to-Part Strong Joint
  206. obj4 = Instance.new("ManualWeld")
  207. obj4.Part0 = Wool
  208. obj4.Part1 = nil
  209. obj4.Name = "Part-to-Part Strong Joint"
  210. obj4.Parent = obj2
  211.  
  212. -- 5 - Left Hand
  213. obj5 = Instance.new("Part")
  214. obj5.CFrame = CFrame.new(Vector3.new(-23.5181828, 0.28026104, 1.59283853)) * CFrame.Angles(0.0013251260388643, -1.5689693689346, -0.0013612856855616)
  215. obj5.FormFactor = Enum.FormFactor.Symmetric
  216. obj5.CanCollide = false
  217. obj5.TopSurface = Enum.SurfaceType.Smooth
  218. obj5.RotVelocity = Vector3.new(6.46234854e-027, 7.15624321e-024, 4.03896783e-027)
  219. obj5.BottomSurface = Enum.SurfaceType.Smooth
  220. obj5.Size = Vector3.new(1, 1, 1)
  221. obj5.BrickColor = BrickColor.new("Black")
  222. obj5.Velocity = Vector3.new(3.64689521e-020, 0.000537406071, 3.64856702e-020)
  223. obj5.Friction = 0.30000001192093
  224. obj5.Shape = Enum.PartType.Block
  225. obj5.Name = "Left Hand"
  226. obj5.Parent = obj1
  227.  
  228. -- 6 - Mesh
  229. obj6 = Instance.new("CylinderMesh")
  230. obj6.Scale = Vector3.new(0.600000024, 0.5, 100)
  231. obj6.Parent = obj5
  232.  
  233. -- 7 - Nose
  234. obj7 = Instance.new("Part")
  235. obj7.CFrame = CFrame.new(Vector3.new(-22.7385254, 3.73476362, -0.0933920145)) * CFrame.Angles(1.897470831871, -0.77668470144272, 1.7606045007706)
  236. obj7.FormFactor = Enum.FormFactor.Custom
  237. obj7.RotVelocity = Vector3.new(6.46234854e-027, 7.15624321e-024, 4.03896783e-027)
  238. obj7.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  239. obj7.BrickColor = BrickColor.new("Light reddish violet")
  240. obj7.Velocity = Vector3.new(3.64568707e-020, 0.000537406071, 3.64801093e-020)
  241. obj7.Friction = 0.30000001192093
  242. obj7.Shape = Enum.PartType.Block
  243. obj7.Name = "Nose"
  244. obj7.Parent = obj1
  245.  
  246. -- 8 - Mesh
  247. obj8 = Instance.new("SpecialMesh")
  248. obj8.MeshType = Enum.MeshType.FileMesh
  249. obj8.Scale = Vector3.new(0.5, 0.5, 0.5)
  250. obj8.MeshId = "http://www.roblox.com/Asset/?id=9944765"
  251. obj8.Parent = obj7
  252.  
  253. -- 9 - Wool
  254. obj9 = Instance.new("Part")
  255. obj9.CFrame = CFrame.new(Vector3.new(-21.3535728, 2.2403028, 3.80234528)) * CFrame.Angles(0.94749695062637, -0.05369558557868, 0.051817733794451)
  256. obj9.FormFactor = Enum.FormFactor.Custom
  257. obj9.CanCollide = false
  258. obj9.RotVelocity = Vector3.new(6.46234854e-027, 7.15624321e-024, 4.03896783e-027)
  259. obj9.Material = Enum.Material.Grass
  260. obj9.Size = Vector3.new(3.79999995, 2.5999999, 2.5999999)
  261. obj9.BrickColor = BrickColor.new("Mid gray")
  262. obj9.Velocity = Vector3.new(3.64847558e-020, 0.000537406071, 3.64701896e-020)
  263. obj9.Friction = 0.30000001192093
  264. obj9.Shape = Enum.PartType.Block
  265. obj9.Name = "Wool"
  266. obj9.Parent = obj1
  267.  
  268. -- 10 - Mesh
  269. obj10 = Instance.new("SpecialMesh")
  270. obj10.MeshType = Enum.MeshType.FileMesh
  271. obj10.Scale = Vector3.new(0.25, 0.5, 0.75)
  272. obj10.MeshId = "http://www.roblox.com/asset/?id=1290033"
  273. obj10.Parent = obj9
  274.  
  275. -- 11 - Part-to-Part Strong Joint
  276. obj11 = Instance.new("ManualWeld")
  277. obj11.Part0 = Wool
  278. obj11.Part1 = nil
  279. obj11.Name = "Part-to-Part Strong Joint"
  280. obj11.Parent = obj9
  281.  
  282. -- 12 - Eye
  283. obj12 = Instance.new("Part")
  284. obj12.CFrame = CFrame.new(Vector3.new(-23.1459179, 4.25031328, 0.228253245)) * CFrame.Angles(1.5396132369006e-007, 1.5707963705063, 0)
  285. obj12.FormFactor = Enum.FormFactor.Custom
  286. obj12.TopSurface = Enum.SurfaceType.Smooth
  287. obj12.RotVelocity = Vector3.new(6.46234854e-027, 7.15624321e-024, 4.03896783e-027)
  288. obj12.BottomSurface = Enum.SurfaceType.Smooth
  289. obj12.Material = Enum.Material.SmoothPlastic
  290. obj12.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  291. obj12.BrickColor = BrickColor.new("Really black")
  292. obj12.Velocity = Vector3.new(3.64591681e-020, 0.000537406071, 3.64830303e-020)
  293. obj12.Friction = 0.30000001192093
  294. obj12.Shape = Enum.PartType.Block
  295. obj12.Name = "Eye"
  296. obj12.Parent = obj1
  297.  
  298. -- 13 - Mesh
  299. obj13 = Instance.new("SpecialMesh")
  300. obj13.MeshType = Enum.MeshType.Sphere
  301. obj13.Parent = obj12
  302.  
  303. -- 14 - Mouth
  304. obj14 = Instance.new("Part")
  305. obj14.CFrame = CFrame.new(Vector3.new(-22.7589149, 3.85848284, 0.386403322)) * CFrame.Angles(-0.43436309695244, 1.5707963705063, 0)
  306. obj14.FormFactor = Enum.FormFactor.Custom
  307. obj14.TopSurface = Enum.SurfaceType.Smooth
  308. obj14.RotVelocity = Vector3.new(6.46234854e-027, 7.15624321e-024, 4.03896783e-027)
  309. obj14.BottomSurface = Enum.SurfaceType.Smooth
  310. obj14.Size = Vector3.new(1.36999977, 0.949999452, 1.13999987)
  311. obj14.BrickColor = BrickColor.new("Light stone grey")
  312. obj14.Velocity = Vector3.new(3.64603023e-020, 0.000537406071, 3.6480258e-020)
  313. obj14.Friction = 0.30000001192093
  314. obj14.Shape = Enum.PartType.Block
  315. obj14.Name = "Mouth"
  316. obj14.Parent = obj1
  317.  
  318. -- 15 - Mesh
  319. obj15 = Instance.new("SpecialMesh")
  320. obj15.MeshType = Enum.MeshType.Sphere
  321. obj15.Parent = obj14
  322.  
  323. -- 16 - Ear
  324. obj16 = Instance.new("Part")
  325. obj16.CFrame = CFrame.new(Vector3.new(-22.4086475, 4.0303092, 0.703919291)) * CFrame.Angles(2.0017046928406, 0.085929930210114, -0.85446131229401)
  326. obj16.FormFactor = Enum.FormFactor.Custom
  327. obj16.RotVelocity = Vector3.new(6.46234854e-027, 7.15624321e-024, 4.03896783e-027)
  328. obj16.Size = Vector3.new(1.67999959, 1.77999973, 1.05999994)
  329. obj16.BrickColor = BrickColor.new("Light stone grey")
  330. obj16.Velocity = Vector3.new(3.64625738e-020, 0.000537406071, 3.64777506e-020)
  331. obj16.Friction = 0.30000001192093
  332. obj16.Shape = Enum.PartType.Block
  333. obj16.Name = "Ear"
  334. obj16.Parent = obj1
  335.  
  336. -- 17 - Mesh
  337. obj17 = Instance.new("SpecialMesh")
  338. obj17.MeshType = Enum.MeshType.FileMesh
  339. obj17.Scale = Vector3.new(2, 1.10000002, 1.20000005)
  340. obj17.MeshId = "http://www.roblox.com/Asset/?id=9944765"
  341. obj17.Parent = obj16
  342.  
  343. -- 18 - Eye
  344. obj18 = Instance.new("Part")
  345. obj18.CFrame = CFrame.new(Vector3.new(-22.3959484, 4.28031015, 0.198211849)) * CFrame.Angles(1.5396132369006e-007, 1.5707963705063, 0)
  346. obj18.FormFactor = Enum.FormFactor.Custom
  347. obj18.TopSurface = Enum.SurfaceType.Smooth
  348. obj18.RotVelocity = Vector3.new(6.46234854e-027, 7.15624321e-024, 4.03896783e-027)
  349. obj18.BottomSurface = Enum.SurfaceType.Smooth
  350. obj18.Material = Enum.Material.SmoothPlastic
  351. obj18.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  352. obj18.BrickColor = BrickColor.new("Really black")
  353. obj18.Velocity = Vector3.new(3.64589549e-020, 0.000537406071, 3.64776633e-020)
  354. obj18.Friction = 0.30000001192093
  355. obj18.Shape = Enum.PartType.Block
  356. obj18.Name = "Eye"
  357. obj18.Parent = obj1
  358.  
  359. -- 19 - Mesh
  360. obj19 = Instance.new("SpecialMesh")
  361. obj19.MeshType = Enum.MeshType.Sphere
  362. obj19.Parent = obj18
  363.  
  364. -- 20 - Ear
  365. obj20 = Instance.new("Part")
  366. obj20.CFrame = CFrame.new(Vector3.new(-23.0586109, 4.14030838, 0.70395565)) * CFrame.Angles(2.0017237663269, 0.085924081504345, 0.84997481107712)
  367. obj20.FormFactor = Enum.FormFactor.Custom
  368. obj20.RotVelocity = Vector3.new(6.46234854e-027, 7.15624321e-024, 4.03896783e-027)
  369. obj20.Size = Vector3.new(1.67999959, 1.77999973, 1.05999994)
  370. obj20.BrickColor = BrickColor.new("Light stone grey")
  371. obj20.Velocity = Vector3.new(3.64625738e-020, 0.000537406071, 3.64824035e-020)
  372. obj20.Friction = 0.30000001192093
  373. obj20.Shape = Enum.PartType.Block
  374. obj20.Name = "Ear"
  375. obj20.Parent = obj1
  376.  
  377. -- 21 - Mesh
  378. obj21 = Instance.new("SpecialMesh")
  379. obj21.MeshType = Enum.MeshType.FileMesh
  380. obj21.Scale = Vector3.new(2, 1.10000002, 1.20000005)
  381. obj21.MeshId = "http://www.roblox.com/Asset/?id=9944765"
  382. obj21.Parent = obj20
  383.  
  384. -- 22 - Wool
  385. obj22 = Instance.new("Part")
  386. obj22.CFrame = CFrame.new(Vector3.new(-24.0636253, 2.42030311, 3.84500933)) * CFrame.Angles(1.3966999053955, -0.0098684839904308, -0.020485334098339)
  387. obj22.FormFactor = Enum.FormFactor.Custom
  388. obj22.CanCollide = false
  389. obj22.RotVelocity = Vector3.new(6.46234854e-027, 7.15624321e-024, 4.03896783e-027)
  390. obj22.Material = Enum.Material.Grass
  391. obj22.Size = Vector3.new(3.79999995, 2.5999999, 2.5999999)
  392. obj22.BrickColor = BrickColor.new("Mid gray")
  393. obj22.Velocity = Vector3.new(3.64850595e-020, 0.000537406071, 3.64895832e-020)
  394. obj22.Friction = 0.30000001192093
  395. obj22.Shape = Enum.PartType.Block
  396. obj22.Name = "Wool"
  397. obj22.Parent = obj1
  398.  
  399. -- 23 - Mesh
  400. obj23 = Instance.new("SpecialMesh")
  401. obj23.MeshType = Enum.MeshType.FileMesh
  402. obj23.Scale = Vector3.new(0.25, 0.5, 0.75)
  403. obj23.MeshId = "http://www.roblox.com/asset/?id=1290033"
  404. obj23.Parent = obj22
  405.  
  406. -- 24 - Part-to-Part Strong Joint
  407. obj24 = Instance.new("ManualWeld")
  408. obj24.Part0 = Wool
  409. obj24.Part1 = nil
  410. obj24.Name = "Part-to-Part Strong Joint"
  411. obj24.Parent = obj22
  412.  
  413. -- 25 - Wool
  414. obj25 = Instance.new("Part")
  415. obj25.CFrame = CFrame.new(Vector3.new(-22.7488766, 4.21689987, 1.43453217)) * CFrame.Angles(-2.9331393241882, 1.5698198080063, 3.1230912208557)
  416. obj25.FormFactor = Enum.FormFactor.Custom
  417. obj25.CanCollide = false
  418. obj25.TopSurface = Enum.SurfaceType.Smooth
  419. obj25.RotVelocity = Vector3.new(6.46234854e-027, 7.15624321e-024, 4.03896783e-027)
  420. obj25.BottomSurface = Enum.SurfaceType.Smooth
  421. obj25.Size = Vector3.new(1.40999973, 0.949999452, 1.41999984)
  422. obj25.BrickColor = BrickColor.new("Light stone grey")
  423. obj25.Velocity = Vector3.new(3.6467805e-020, 0.000537406071, 3.64801869e-020)
  424. obj25.Friction = 0.30000001192093
  425. obj25.Shape = Enum.PartType.Block
  426. obj25.Name = "Wool"
  427. obj25.Parent = obj1
  428.  
  429. -- 26 - Mesh
  430. obj26 = Instance.new("SpecialMesh")
  431. obj26.MeshType = Enum.MeshType.Sphere
  432. obj26.Parent = obj25
  433.  
  434. -- 27 - Head
  435. obj27 = Instance.new("Part")
  436. obj27.CFrame = CFrame.new(Vector3.new(-22.7538452, 4.10531425, 0.942708254)) * CFrame.Angles(-8.2731833117577e-007, 0.73805975914001, 1.4846486351416e-007)
  437. obj27.FormFactor = Enum.FormFactor.Custom
  438. obj27.TopSurface = Enum.SurfaceType.Smooth
  439. obj27.RotVelocity = Vector3.new(6.46234854e-027, 7.15624321e-024, 4.03896783e-027)
  440. obj27.BottomSurface = Enum.SurfaceType.Smooth
  441. obj27.Size = Vector3.new(1.8299998, 1.60999942, 1.76999986)
  442. obj27.BrickColor = BrickColor.new("Light stone grey")
  443. obj27.Velocity = Vector3.new(3.64642831e-020, 0.000537406071, 3.64802224e-020)
  444. obj27.Friction = 0.30000001192093
  445. obj27.Shape = Enum.PartType.Block
  446. obj27.Name = "Head"
  447. obj27.Transparency = 1;
  448. obj27.Parent = obj1
  449.  
  450.  
  451. local bbg = Instance.new("BillboardGui");
  452. bbg.Name = "Note";
  453. bbg.Size = UDim2.new(3,0,0.3,0)
  454. bbg.StudsOffset = Vector3.new(0,2,0)
  455. bbg.Parent = obj27;
  456. local frame = Instance.new("Frame",bbg)
  457. frame.BackgroundTransparency = 1;
  458. frame.BackgroundColor3 = Color3.new();
  459. frame.Size = UDim2.new(1,0,1,0);
  460. frame.Parent = bbg;
  461. local label = Instance.new("TextLabel",frame);
  462. label.BackgroundTransparency = 1;
  463. label.TextColor3 = Color3.new(1,1,1);
  464. label.Size = UDim2.new(1,0,1,0);
  465. label.Font = "SourceSans"
  466. label.Text = "";
  467. label.FontSize = "Size18";
  468. label.TextWrapped = true;
  469. label.TextScaled = true;
  470. label.Parent = frame;
  471.  
  472. local ParticleEmitter = Instance.new("ParticleEmitter");
  473. ParticleEmitter.Name = "Hearts";
  474. ParticleEmitter.Color = ColorSequence.new(Color3.new(1,0,0));
  475. ParticleEmitter.LightEmission = 1;
  476. ParticleEmitter.Size = NumberSequence.new(.5);
  477. ParticleEmitter.Texture = "http://www.roblox.com/asset/?id=249529864";
  478. ParticleEmitter.Transparency = NumberSequence.new(0);
  479. ParticleEmitter.Acceleration = Vector3.new(0,5,0);
  480. ParticleEmitter.Lifetime = NumberRange.new(2.5);
  481. ParticleEmitter.Rate = 5;
  482. ParticleEmitter.Rotation = NumberRange.new(0,5)
  483. ParticleEmitter.Speed = NumberRange.new(0.5,1)
  484. ParticleEmitter.VelocitySpread = 15;
  485. ParticleEmitter.Enabled = false;
  486. ParticleEmitter.Parent = obj27;
  487.  
  488.  
  489.  
  490. -- 28 - Mesh
  491. obj28 = Instance.new("SpecialMesh")
  492. obj28.MeshType = Enum.MeshType.Sphere
  493. obj28.Parent = obj27
  494.  
  495.  
  496. objfake = obj27:Clone();
  497. objfake.Transparency = 0
  498. objfake.Name = "fakehead"
  499. objfake.CFrame = obj27.CFrame;
  500. objfake.Parent = obj1;
  501.  
  502. WeldAll(obj27,{"fakehead"},obj1,nil);
  503.  
  504.  
  505. -- 29 - Wool
  506. obj29 = Instance.new("Part")
  507. obj29.CFrame = CFrame.new(Vector3.new(-24.0636272, 2.32030511, 3.75501251)) * CFrame.Angles(0.94549494981766, 3.266921339673e-005, -0.02274458296597)
  508. obj29.FormFactor = Enum.FormFactor.Custom
  509. obj29.CanCollide = false
  510. obj29.RotVelocity = Vector3.new(6.46234854e-027, 7.15624321e-024, 4.03896783e-027)
  511. obj29.Material = Enum.Material.Grass
  512. obj29.Size = Vector3.new(3.79999995, 2.5999999, 2.5999999)
  513. obj29.BrickColor = BrickColor.new("Mid gray")
  514. obj29.Velocity = Vector3.new(3.64844165e-020, 0.000537406071, 3.64895832e-020)
  515. obj29.Friction = 0.30000001192093
  516. obj29.Shape = Enum.PartType.Block
  517. obj29.Name = "Wool"
  518. obj29.Parent = obj1
  519.  
  520. -- 30 - Mesh
  521. obj30 = Instance.new("SpecialMesh")
  522. obj30.MeshType = Enum.MeshType.FileMesh
  523. obj30.Scale = Vector3.new(0.25, 0.5, 0.75)
  524. obj30.MeshId = "http://www.roblox.com/asset/?id=1290033"
  525. obj30.Parent = obj29
  526.  
  527. -- 31 - Part-to-Part Strong Joint
  528. obj31 = Instance.new("ManualWeld")
  529. obj31.Part0 = Wool
  530. obj31.Part1 = nil
  531. obj31.Name = "Part-to-Part Strong Joint"
  532. obj31.Parent = obj29
  533.  
  534. -- 32 - Left Arm
  535. obj32 = Instance.new("Part")
  536. obj32.CFrame = CFrame.new(Vector3.new(-23.5181828, 1.95030797, 1.59283662)) * CFrame.Angles(3.0617175639236e-007, 5.5478125432273e-005, -1.8398770862404e-007)
  537. obj32.FormFactor = Enum.FormFactor.Symmetric
  538. obj32.CanCollide = false
  539. obj32.TopSurface = Enum.SurfaceType.Smooth
  540. obj32.RotVelocity = Vector3.new(6.46234854e-027, 7.15624321e-024, 4.03896783e-027)
  541. obj32.BottomSurface = Enum.SurfaceType.Smooth
  542. obj32.Size = Vector3.new(1, 1, 1)
  543. obj32.BrickColor = BrickColor.new("Light stone grey")
  544. obj32.Velocity = Vector3.new(3.64689456e-020, 0.000537406071, 3.64856799e-020)
  545. obj32.Friction = 0.30000001192093
  546. obj32.Shape = Enum.PartType.Block
  547. obj32.Name = "Left Arm"
  548. obj32.Parent = obj1
  549.  
  550. -- 33 - Mesh
  551. obj33 = Instance.new("CylinderMesh")
  552. obj33.Scale = Vector3.new(0.600000024, 2.79999995, 100)
  553. obj33.Parent = obj32
  554.  
  555. -- 34 - Torso
  556. obj34 = Instance.new("Part")
  557. obj34.CFrame = CFrame.new(Vector3.new(-22.7136688, 3.08031273, 2.30507421)) * CFrame.Angles(1.6391257418036e-007, 5.576035255217e-005, -1.4892002297984e-008)
  558. obj34.FormFactor = Enum.FormFactor.Custom
  559. obj34.RotVelocity = Vector3.new(6.46234854e-027, 7.15624321e-024, 4.03896783e-027)
  560. obj34.Material = Enum.Material.Grass
  561. obj34.Size = Vector3.new(3.79999995, 2.5999999, 2.5999999)
  562. obj34.BrickColor = BrickColor.new("Mid gray")
  563. obj34.Velocity = Vector3.new(3.6474038e-020, 0.000537406071, 3.64799284e-020)
  564. obj34.Friction = 0.30000001192093
  565. obj34.Shape = Enum.PartType.Block
  566. obj34.Name = "Torso"
  567. obj34.Parent = obj1
  568.  
  569. Seat = Instance.new("Seat")
  570. Seat.Name = "Seat";
  571. Seat.Transparency = 1
  572. Seat.FormFactor = "Custom";
  573. Seat.Size = Vector3.new(.5,.5,.5);
  574. Seat.CFrame = obj34.CFrame*CFrame.new(0,.55,0.7)
  575. Seat.Anchored = false;
  576. Seat.CanCollide = false;
  577. Seat.Parent = obj1;
  578. WeldAll(obj34,{"Seat"},obj1,nil);
  579.  
  580. -- 35 - Mesh
  581. obj35 = Instance.new("SpecialMesh")
  582. obj35.MeshType = Enum.MeshType.FileMesh
  583. obj35.Scale = Vector3.new(1.79999995, 1.79999995, 1.79999995)
  584. obj35.MeshId = "http://www.roblox.com/asset/?id=1290033"
  585. obj35.Parent = obj34
  586.  
  587. -- 36 - BodyPosition
  588. --obj36 = Instance.new("BodyPosition")
  589. --obj36.maxForce = Vector3.new(0, 400000, 0)
  590. --obj36.position = Vector3.new(0, 3.0999999, 0)
  591. --obj36.Parent = obj34
  592.  
  593. -- 37 - Right Hand
  594. obj37 = Instance.new("Part")
  595. obj37.CFrame = CFrame.new(Vector3.new(-22.0181255, 0.26022625, 1.59275365)) * CFrame.Angles(0.0013169611338526, -1.5689693689346, -0.0013528965646401)
  596. obj37.FormFactor = Enum.FormFactor.Symmetric
  597. obj37.CanCollide = false
  598. obj37.TopSurface = Enum.SurfaceType.Smooth
  599. obj37.RotVelocity = Vector3.new(6.46234854e-027, 7.15624321e-024, 4.03896783e-027)
  600. obj37.BottomSurface = Enum.SurfaceType.Smooth
  601. obj37.Size = Vector3.new(1, 1, 1)
  602. obj37.BrickColor = BrickColor.new("Black")
  603. obj37.Velocity = Vector3.new(3.64689521e-020, 0.000537406071, 3.6474933e-020)
  604. obj37.Friction = 0.30000001192093
  605. obj37.Shape = Enum.PartType.Block
  606. obj37.Name = "Right Hand"
  607. obj37.Parent = obj1
  608.  
  609. -- 38 - Mesh
  610. obj38 = Instance.new("CylinderMesh")
  611. obj38.Scale = Vector3.new(0.600000024, 0.5, 100)
  612. obj38.Parent = obj37
  613.  
  614. -- 39 - Right Arm
  615. obj39 = Instance.new("Part")
  616. obj39.CFrame = CFrame.new(Vector3.new(-22.0181255, 1.93030298, 1.59275174)) * CFrame.Angles(2.5774309619919e-007, 5.5477928981418e-005, -3.2834276453286e-007)
  617. obj39.FormFactor = Enum.FormFactor.Symmetric
  618. obj39.CanCollide = false
  619. obj39.TopSurface = Enum.SurfaceType.Smooth
  620. obj39.RotVelocity = Vector3.new(6.46234854e-027, 7.15624321e-024, 4.03896783e-027)
  621. obj39.BottomSurface = Enum.SurfaceType.Smooth
  622. obj39.Size = Vector3.new(1, 1, 1)
  623. obj39.BrickColor = BrickColor.new("Light stone grey")
  624. obj39.Velocity = Vector3.new(3.64689456e-020, 0.000537406071, 3.64749427e-020)
  625. obj39.Friction = 0.30000001192093
  626. obj39.Shape = Enum.PartType.Block
  627. obj39.Name = "Right Arm"
  628. obj39.Parent = obj1
  629.  
  630. -- 40 - Mesh
  631. obj40 = Instance.new("CylinderMesh")
  632. obj40.Scale = Vector3.new(0.600000024, 2.79999995, 100)
  633. obj40.Parent = obj39
  634.  
  635. -- 41 - Wool
  636. obj41 = Instance.new("Part")
  637. obj41.CFrame = CFrame.new(Vector3.new(-22.6429119, 3.08031559, 3.23439121)) * CFrame.Angles(-7.0686290598587e-008, 0.78545361757278, 4.831555884266e-007)
  638. obj41.FormFactor = Enum.FormFactor.Custom
  639. obj41.CanCollide = false
  640. obj41.RotVelocity = Vector3.new(6.46234854e-027, 7.15624321e-024, 4.03896783e-027)
  641. obj41.Material = Enum.Material.SmoothPlastic
  642. obj41.Size = Vector3.new(2.79999971, 2.5999999, 2.5999999)
  643. obj41.BrickColor = BrickColor.new("Mid gray")
  644. obj41.Velocity = Vector3.new(3.64806877e-020, 0.000537406071, 3.64794211e-020)
  645. obj41.Friction = 0.30000001192093
  646. obj41.Shape = Enum.PartType.Block
  647. obj41.Name = "Wool"
  648. obj41.Parent = obj1
  649.  
  650. -- 42 - Mesh
  651. obj42 = Instance.new("SpecialMesh")
  652. obj42.MeshType = Enum.MeshType.FileMesh
  653. obj42.Scale = Vector3.new(1.5, 1.5, 1.5)
  654. obj42.MeshId = "http://www.roblox.com/asset/?id=1290033"
  655. obj42.Parent = obj41
  656.  
  657. -- 43 - Part-to-Part Strong Joint
  658. obj43 = Instance.new("ManualWeld")
  659. obj43.Part0 = Wool
  660. obj43.Part1 = nil
  661. obj43.Name = "Part-to-Part Strong Joint"
  662. obj43.Parent = obj41
  663.  
  664. -- 44 - Wool
  665. obj44 = Instance.new("Part")
  666. obj44.CFrame = CFrame.new(Vector3.new(-22.6428947, 3.02031517, 3.54429626)) * CFrame.Angles(-2.683812379837, 0.40881261229515, 2.9481966495514)
  667. obj44.FormFactor = Enum.FormFactor.Custom
  668. obj44.CanCollide = false
  669. obj44.RotVelocity = Vector3.new(6.46234854e-027, 7.15624321e-024, 4.03896783e-027)
  670. obj44.Material = Enum.Material.SmoothPlastic
  671. obj44.Size = Vector3.new(2.79999971, 2.5999999, 2.5999999)
  672. obj44.BrickColor = BrickColor.new("Mid gray")
  673. obj44.Velocity = Vector3.new(3.64829075e-020, 0.000537406071, 3.64794211e-020)
  674. obj44.Friction = 0.30000001192093
  675. obj44.Shape = Enum.PartType.Block
  676. obj44.Name = "Wool"
  677. obj44.Parent = obj1
  678.  
  679. -- 45 - Mesh
  680. obj45 = Instance.new("SpecialMesh")
  681. obj45.MeshType = Enum.MeshType.FileMesh
  682. obj45.Scale = Vector3.new(1.5, 1.5, 1.5)
  683. obj45.MeshId = "http://www.roblox.com/asset/?id=1290033"
  684. obj45.Parent = obj44
  685.  
  686. -- 46 - Part-to-Part Strong Joint
  687. obj46 = Instance.new("ManualWeld")
  688. obj46.Part0 = Wool
  689. obj46.Part1 = nil
  690. obj46.Name = "Part-to-Part Strong Joint"
  691. obj46.Parent = obj44
  692.  
  693. -- 47 - AnimSaves
  694. obj47 = Instance.new("Model")
  695. obj47.Name = "AnimSaves"
  696. obj47.Parent = obj1
  697.  
  698. -- 48 - HumanoidRootPart
  699. obj48 = Instance.new("Part")
  700. obj48.CFrame = CFrame.new(Vector3.new(-22.7136688, 3.08031273, 2.30507421)) * CFrame.Angles(3.5482423935982e-023, 5.5907901696628e-005, 3.0141195052581e-023)
  701. obj48.FormFactor = Enum.FormFactor.Custom
  702. obj48.Transparency = 1
  703. obj48.RotVelocity = Vector3.new(6.46234854e-027, 7.15624321e-024, 4.03896783e-027)
  704. obj48.Material = Enum.Material.Grass
  705. obj48.Size = Vector3.new(3.79999995, 2.5999999, 2.5999999)
  706. obj48.BrickColor = BrickColor.new("Mid gray")
  707. obj48.Velocity = Vector3.new(3.6474038e-020, 0.000537406071, 3.64799284e-020)
  708. obj48.Friction = 0.30000001192093
  709. obj48.Shape = Enum.PartType.Block
  710. obj48.Name = "HumanoidRootPart"
  711. obj48.Parent = obj1
  712.  
  713. -- 49 - Mesh
  714. obj49 = Instance.new("SpecialMesh")
  715. obj49.MeshType = Enum.MeshType.FileMesh
  716. obj49.Scale = Vector3.new(1.79999995, 1.79999995, 1.79999995)
  717. obj49.MeshId = "http://www.roblox.com/asset/?id=1290033"
  718. obj49.Parent = obj48
  719.  
  720. -- 50 - Right Leg
  721. obj50 = Instance.new("Part")
  722. obj50.CFrame = CFrame.new(Vector3.new(-22.0181427, 1.93215156, 3.99282026)) * CFrame.Angles(2.8800006930396e-006, 5.3021671192255e-005, -5.6583127161502e-007)
  723. obj50.FormFactor = Enum.FormFactor.Symmetric
  724. obj50.CanCollide = false
  725. obj50.TopSurface = Enum.SurfaceType.Smooth
  726. obj50.RotVelocity = Vector3.new(6.46234854e-027, 7.15624321e-024, 4.03896783e-027)
  727. obj50.BottomSurface = Enum.SurfaceType.Smooth
  728. obj50.Size = Vector3.new(1, 1, 1)
  729. obj50.BrickColor = BrickColor.new("Light stone grey")
  730. obj50.Velocity = Vector3.new(3.64861193e-020, 0.000537406071, 3.64749427e-020)
  731. obj50.Friction = 0.30000001192093
  732. obj50.Shape = Enum.PartType.Block
  733. obj50.Name = "Right Leg"
  734. obj50.Parent = obj1
  735.  
  736. -- 51 - Mesh
  737. obj51 = Instance.new("CylinderMesh")
  738. obj51.Scale = Vector3.new(0.600000024, 2.79999995, 100)
  739. obj51.Parent = obj50
  740.  
  741. -- 52 - Left Leg
  742. obj52 = Instance.new("Part")
  743. obj52.CFrame = CFrame.new(Vector3.new(-23.5181828, 1.95215654, 3.99291348)) * CFrame.Angles(2.9282539344422e-006, 5.3022111387691e-005, -4.2287240376027e-007)
  744. obj52.FormFactor = Enum.FormFactor.Symmetric
  745. obj52.CanCollide = false
  746. obj52.TopSurface = Enum.SurfaceType.Smooth
  747. obj52.RotVelocity = Vector3.new(6.46234854e-027, 7.15624321e-024, 4.03896783e-027)
  748. obj52.BottomSurface = Enum.SurfaceType.Smooth
  749. obj52.Size = Vector3.new(1, 1, 1)
  750. obj52.BrickColor = BrickColor.new("Light stone grey")
  751. obj52.Velocity = Vector3.new(3.64861226e-020, 0.000537406071, 3.64856799e-020)
  752. obj52.Friction = 0.30000001192093
  753. obj52.Shape = Enum.PartType.Block
  754. obj52.Name = "Left Leg"
  755. obj52.Parent = obj1
  756.  
  757. -- 53 - Mesh
  758. obj53 = Instance.new("CylinderMesh")
  759. obj53.Scale = Vector3.new(0.600000024, 2.79999995, 100)
  760. obj53.Parent = obj52
  761.  
  762. -- 54 - Right Foot
  763. obj54 = Instance.new("Part")
  764. obj54.CFrame = CFrame.new(Vector3.new(-22.0181427, 0.262020946, 3.99283218)) * CFrame.Angles(0.0076152086257935, -1.5662813186646, -0.0090188346803188)
  765. obj54.FormFactor = Enum.FormFactor.Symmetric
  766. obj54.CanCollide = false
  767. obj54.TopSurface = Enum.SurfaceType.Smooth
  768. obj54.RotVelocity = Vector3.new(6.46234854e-027, 7.15624321e-024, 4.03896783e-027)
  769. obj54.BottomSurface = Enum.SurfaceType.Smooth
  770. obj54.Size = Vector3.new(1, 1, 1)
  771. obj54.BrickColor = BrickColor.new("Black")
  772. obj54.Velocity = Vector3.new(3.64861258e-020, 0.000537406071, 3.6474933e-020)
  773. obj54.Friction = 0.30000001192093
  774. obj54.Shape = Enum.PartType.Block
  775. obj54.Name = "Right Foot"
  776. obj54.Parent = obj1
  777.  
  778. -- 55 - Mesh
  779. obj55 = Instance.new("CylinderMesh")
  780. obj55.Scale = Vector3.new(0.600000024, 0.5, 100)
  781. obj55.Parent = obj54
  782.  
  783. -- 56 - Left Foot
  784. obj56 = Instance.new("Part")
  785. obj56.CFrame = CFrame.new(Vector3.new(-23.5181828, 0.282055736, 3.99292517)) * CFrame.Angles(0.0076612294651568, -1.5662813186646, -0.0090732770040631)
  786. obj56.FormFactor = Enum.FormFactor.Symmetric
  787. obj56.CanCollide = false
  788. obj56.TopSurface = Enum.SurfaceType.Smooth
  789. obj56.RotVelocity = Vector3.new(6.46234854e-027, 7.15624321e-024, 4.03896783e-027)
  790. obj56.BottomSurface = Enum.SurfaceType.Smooth
  791. obj56.Size = Vector3.new(1, 1, 1)
  792. obj56.BrickColor = BrickColor.new("Black")
  793. obj56.Velocity = Vector3.new(3.6486129e-020, 0.000537406071, 3.64856702e-020)
  794. obj56.Friction = 0.30000001192093
  795. obj56.Shape = Enum.PartType.Block
  796. obj56.Name = "Left Foot"
  797. obj56.Parent = obj1
  798.  
  799. -- 57 - Mesh
  800. obj57 = Instance.new("CylinderMesh")
  801. obj57.Scale = Vector3.new(0.600000024, 0.5, 100)
  802. obj57.Parent = obj56
  803.  
  804.  
  805.  
  806. -- Finalization
  807.  
  808. --obj27 head
  809. --obj34 torso
  810. --obj50 right leg
  811. --obj52 left leg
  812. --obj39 right arm
  813. --obj32 left arm
  814. --obj48 humanoidrootpart
  815.  
  816. local Laser = Instance.new("Sound",obj27);
  817. Laser.Name = "Laser";
  818. Laser.Volume = 0.25;
  819.  
  820. local Baa = Instance.new("Sound",obj27);
  821. Baa.Name = "Baa";
  822. Baa.Volume = 1;
  823.  
  824. local Step = Instance.new("Sound",obj34);
  825. Step.Name = "Step";
  826. Step.Volume = 0.5;
  827.  
  828. local BodyPosition = Instance.new("BodyPosition",obj34);
  829. BodyPosition.maxForce = Vector3.new(0,400000000,0);
  830. BodyPosition.position = Vector3.new(0,4,0);
  831.  
  832. local BodyVelocity = Instance.new("BodyVelocity",obj34);
  833. BodyVelocity.maxForce = Vector3.new();
  834.  
  835. WeldAll(obj27,{"Ear","Eye","Mouth","Nose"},obj1,nil);
  836. WeldAll(obj34,{"Wool"},obj1,nil);
  837. WeldAll(obj50,{"Right Foot"},obj1,nil);
  838. WeldAll(obj52,{"Left Foot"},obj1,nil);
  839. WeldAll(obj39,{"Right Hand"},obj1,nil);
  840. WeldAll(obj32,{"Left Hand"},obj1,nil);
  841. WeldAll(obj48,{"Torso"},obj1,"RootJoint")
  842.  
  843.  
  844. -- Essential joints
  845.  
  846. WeldAll(obj34,{"Left Leg"},obj1,"Left Hip");
  847. WeldAll(obj34,{"Right Leg"},obj1,"Right Hip");
  848. WeldAll(obj34,{"Left Arm"},obj1,"Left Shoulder");
  849. WeldAll(obj34,{"Right Arm"},obj1,"Right Shoulder");
  850. WeldAll(obj34,{"Head"},obj1,"Neck");
  851.  
  852.  
  853. -- Creating Humanoid
  854.  
  855.  
  856. local Humanoid = Instance.new("Humanoid");
  857. Humanoid.Name = "Human";
  858. Humanoid.Parent = obj1;
  859.  
  860.  
  861.  
  862.  
  863. obj1.Name = "Sheep";
  864. obj1.Parent = Workspace
  865. obj1:MakeJoints()
  866. return obj1;
  867.  
  868. end
  869.  
  870.  
  871.  
  872.  
  873.  
  874.  
  875.  
  876.  
  877.  
  878. SheepClient = [===[
  879. wait();
  880.  
  881. local sheep = script.Parent;
  882. local Seat = sheep:WaitForChild("Seat");
  883.  
  884. local torso = sheep:WaitForChild("Torso");
  885.  
  886. sheep.DescendantAdded:connect(function(o)
  887. if o:isA("Weld") or o:isA("Motor6D") or o:isA("Weld") then o:Destroy() end
  888. end)
  889.  
  890. local rootpart = sheep:WaitForChild("HumanoidRootPart");
  891.  
  892. local hrp = rootpart:WaitForChild("RootJoint");
  893. local head = sheep:WaitForChild("Head");
  894.  
  895. local bp = torso.BodyPosition;
  896. local bv = torso.BodyVelocity;
  897.  
  898.  
  899. neckc1 = CFrame.new(-0.886953354, -1.02500272, 1.03487682, 0.739775419, -4.0819944e-007, -0.672853827, -1.09830658e-007, 1, -7.27423185e-007, 0.672853827, 6.12029737e-007, 0.739775419);
  900.  
  901.  
  902.  
  903. function mult(m,c)
  904. m.C0=m.C0*c;
  905. end
  906. mult(torso["Right Shoulder"],CFrame.Angles(0,math.rad(90),0) * CFrame.new(0,0,1.5));
  907. mult(torso["Left Shoulder"],CFrame.Angles(0,math.rad(90),0) * CFrame.new(1.5,0,0));
  908.  
  909.  
  910. mult(torso["Right Hip"],CFrame.Angles(0,math.rad(90),0)*CFrame.new(-1.6,0,-1))
  911. mult(torso["Left Hip"],CFrame.Angles(0,math.rad(90),0)*CFrame.new(0,0,-2.4))
  912.  
  913.  
  914. SheepSounds = {
  915. "http://roblox.com/asset?id=153802574",
  916. "http://roblox.com/asset?id=153802557",
  917. "http://roblox.com/asset?id=153802585"
  918. }
  919.  
  920. FootSteps = {
  921. [1] = {"185700502","185700484","185700458","185700448","185700432"},
  922. [2] = {"187263007","187263016","187263022","187263000","187262992"},
  923. [4] = {"187263007","187263016","187263022","187263000","187262992"},
  924.  
  925. }
  926. LaserSounds = {
  927. "http://roblox.com/asset?id=75494297",
  928. "http://roblox.com/asset?id=265581381"
  929. }
  930.  
  931.  
  932.  
  933.  
  934.  
  935. LaserBeam = Instance.new("Part")
  936. LaserBeam.FormFactor = Enum.FormFactor.Custom
  937. LaserBeam.TopSurface = Enum.SurfaceType.Smooth
  938. LaserBeam.BottomSurface = Enum.SurfaceType.Smooth
  939. LaserBeam.Material = Enum.Material.Neon
  940. LaserBeam.Size = Vector3.new(0.200000003, 157.199997, 0.200000003)
  941. LaserBeam.Anchored = true
  942. LaserBeam.CanCollide = false;
  943. LaserBeam.BrickColor = BrickColor.new("Really red")
  944. LaserBeam.Friction = 0.30000001192093
  945. LaserBeam.Shape = Enum.PartType.Block
  946. LaserBeam.Name = "LaserBeam"
  947.  
  948.  
  949. Fur = {}
  950. for _,v in pairs(sheep:GetChildren()) do
  951. if v:isA("BasePart") and (v.BrickColor.name:match("grey") or v.BrickColor.name:match("gray") ) then
  952. Fur[#Fur+1]={v,v.BrickColor.name};
  953. end
  954. end
  955.  
  956. local Hearts = head:WaitForChild("Hearts");
  957. local Note = head:WaitForChild("Note").Frame.TextLabel;
  958. local NoteFrame = Note.Parent;
  959. NoteFrame.BackgroundTransparency = 1;
  960.  
  961.  
  962.  
  963.  
  964.  
  965. Feces = Instance.new("Part")
  966. Feces.FormFactor = Enum.FormFactor.Custom
  967. Feces.TopSurface = Enum.SurfaceType.Smooth
  968. Feces.BottomSurface = Enum.SurfaceType.Smooth
  969. Feces.Material = Enum.Material.Granite
  970. Feces.Size = Vector3.new(0.200000003, 0.200000003,math.random(40,60)/100)
  971. Feces.BrickColor = BrickColor.new("Brown")
  972. Feces.Friction = 0.30000001192093
  973. Feces.Shape = Enum.PartType.Block
  974. Feces.Name = "Feces";
  975.  
  976. mesh = Instance.new("SpecialMesh")
  977. mesh.MeshType = Enum.MeshType.Sphere
  978. mesh.Parent = Feces
  979.  
  980.  
  981.  
  982. local Sound = sheep.Head.Baa;
  983. local Terror = Sound:clone();
  984. Terror.Name = "Terror";
  985. Terror.Volume = .5;
  986. Terror.Parent = sheep.Head;
  987. Terror.SoundId = "http://roblox.com/asset?id=171412824";
  988.  
  989. local FlySound = Sound:clone();
  990. FlySound.Parent = sheep.Head;
  991. FlySound.Name = "Fly";
  992. FlySound.SoundId = "rbxasset://sounds/action_falling.mp3";
  993. FlySound.Volume = .5;
  994. FlySound.Looped = true;
  995.  
  996. local Kick = Terror:clone();
  997. Kick.Parent = sheep.Torso;
  998. Kick.Name = "Kick";
  999. Kick.Volume = 1;
  1000. Kick.SoundId = "http://roblox.com/asset?id=169380525";
  1001.  
  1002. local Step = sheep.Torso.Step;
  1003. local LaserSound = sheep.Head.Laser;
  1004.  
  1005. function Weld(w)
  1006. w.MaxVelocity = .1
  1007. local part0 = w.Part0;
  1008. local part1 = w.Part1;
  1009. local c=CFrame.new(part0.Position)
  1010. local part0cf = part0.CFrame:toObjectSpace(c)
  1011. w.C0=part0cf
  1012. w.C1=part1.CFrame:toObjectSpace(c)
  1013. end
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019. local rs = torso["Right Shoulder"];
  1020. local ls = torso["Left Shoulder"];
  1021. local rh = torso["Right Hip"];
  1022. local lh = torso["Left Hip"];
  1023. local neck = torso["Neck"];
  1024. freq = 12;
  1025. rsc0 = rs.C0;
  1026. lsc0 = ls.C0;
  1027. rhc0 = rh.C0;
  1028. lhc0 = lh.C0;
  1029. neckc0 = neck.C0;
  1030.  
  1031. local Eyes = {};
  1032. for _,v in pairs(sheep:GetChildren()) do
  1033. if v.Name == "Eye" then
  1034. Eyes[#Eyes+1]=v;
  1035. end
  1036. end
  1037.  
  1038. humanoid = sheep:WaitForChild("Human")
  1039. Workspace.ChildRemoved:connect(function(o)
  1040. if o == sheep then
  1041. Terror.Volume = 0;
  1042. Terror:Stop();
  1043. end
  1044. end)
  1045. humanoid.Died:connect(function()
  1046. Terror.Volume = 0;
  1047. Terror:Stop();
  1048. end)
  1049. game.Players.LocalPlayer.Chatted:connect(function(msg)
  1050. if msg:lower() == "g/r" then
  1051. Terror.Volume = 0;
  1052. Terror:Stop();
  1053. end
  1054. end)
  1055. local rst = game:GetService("RunService").RenderStepped;
  1056.  
  1057. local player = game:GetService("Players").LocalPlayer;
  1058. local mouse = player:GetMouse();
  1059.  
  1060.  
  1061. local neckangle = 0;
  1062. local walkspeed = 1;
  1063. function clamp(v,mi,ma)
  1064. if v<mi then return mi elseif v>ma then return ma else return v; end
  1065. end
  1066. function stationary()
  1067. rh:SetDesiredAngle(lockedrh or 0);
  1068. rs:SetDesiredAngle(lockedrs or 0);
  1069. lh:SetDesiredAngle(lockedlh or 0);
  1070. ls:SetDesiredAngle(lockedls or 0);
  1071. end
  1072. local Ignore = {[1]=sheep}
  1073.  
  1074. function ChangeState(h,state)
  1075. if Workspace:FindFirstChild("ComH") then
  1076. Workspace.ComH:FireServer(h,state)
  1077. end
  1078. end
  1079. head.Touched:connect(function(o)
  1080. if o.Parent:FindFirstChild("Humanoid") then
  1081. if not Evil or headdeb or walkspeed ~= 4 then return end
  1082. Kick:Play()
  1083. headdeb = true;
  1084. local char = o.Parent;
  1085. ChangeState(char.Humanoid,"Flying")
  1086. char.Humanoid.Health = o.Parent.Humanoid.Health - 10;
  1087. char.Humanoid.Sit = true;
  1088. char.Torso.Velocity = torso.CFrame.lookVector * (walkspeed==64 and 120*2 or 120);
  1089. coroutine.wrap(function()
  1090. wait(4)
  1091. ChangeState(char.Humanoid,"GettingUp");
  1092. end)()
  1093. wait(1)
  1094. headdeb = false;
  1095. end
  1096. end)
  1097.  
  1098. Mountable = false;
  1099. Flying = false;
  1100.  
  1101. KickAnim = function()
  1102. for i = 0,-0.5,-0.1 do
  1103. LockNeck = CFrame.Angles(i,0,0);
  1104. LockHrp = CFrame.Angles(i/2,0,0);
  1105. wait();
  1106. end
  1107. LockNeck = CFrame.Angles(-0.5,0,0)
  1108. LockHrp = CFrame.Angles(-0.25,0,0)
  1109. Kick:Play();
  1110. wait()
  1111.  
  1112. for i = -0.5,0,0.1 do
  1113. LockNeck = CFrame.Angles(i,0,0);
  1114. LockHrp = CFrame.Angles(i/2,0,0);
  1115. wait();
  1116. end
  1117. LockNeck = nil;
  1118. LockHrp = nil;
  1119. end
  1120.  
  1121. Seat.Changed:connect(function(property)
  1122. if property ~= 'Occupant' then return end
  1123. local occupant = Seat.Occupant
  1124. if occupant then
  1125. local ch = occupant.Parent;
  1126. local torso = ch.Torso;
  1127. if not Mountable or Evil then
  1128. KickAnim()
  1129. occupant:TakeDamage(30);
  1130. occupant.Jump = true;
  1131. wait(.1);
  1132. occupant.Sit = true;
  1133. torso.Velocity = -torso.CFrame.lookVector*120;
  1134. end
  1135. end
  1136. end)
  1137.  
  1138.  
  1139.  
  1140. print(" R: Baah, T: Toggle Mountable, Y: Kick, U: Relieve Waste, K: Follow Camera");
  1141.  
  1142. FollowCamera = false;
  1143.  
  1144.  
  1145. function brace()
  1146. for i = 0,-0.5,-0.1 do
  1147. LockNeck = CFrame.Angles(i,0,0);
  1148. LockHrp = CFrame.Angles(i/2,0,0);
  1149. wait();
  1150. end
  1151. LockNeck = CFrame.Angles(-0.5,0,0)
  1152. LockHrp = CFrame.Angles(-0.25,0,0)
  1153. end
  1154.  
  1155. function endbrace()
  1156.  
  1157. for i = -0.5,0,0.1 do
  1158. LockNeck = CFrame.Angles(i,0,0);
  1159. LockHrp = CFrame.Angles(i/2,0,0);
  1160. wait();
  1161. end
  1162. LockNeck = nil;
  1163. LockHrp = nil;
  1164.  
  1165. end
  1166. invisible = false;
  1167. revealing = false;
  1168. mouse.KeyDown:connect(function(k)
  1169. if k == "m" then
  1170. revealing = not revealing;
  1171. end
  1172. if k == "f" and not Evil then
  1173. print("G: Fire Lasers, V: Fly/Land, K: Follow Camera");
  1174.  
  1175. print'EvilSheepMode';
  1176. edown = false;
  1177. qdown = false;
  1178. TurningEvil = true;
  1179. neckangle = 6.2
  1180. neck.MaxVelocity = 0.02
  1181. wait(3);
  1182.  
  1183. for _,v in pairs(Fur) do
  1184. local part,brickcolor = unpack(v);
  1185. part.BrickColor = BrickColor.new("Really black");
  1186. end
  1187. for _,v in pairs(Eyes) do
  1188. v.BrickColor = BrickColor.new("Really red");
  1189. v.Material = "Neon"
  1190. end
  1191. Sound.Pitch = .5;
  1192. neck.MaxVelocity = 1;
  1193. neckangle = 0;
  1194. wait(.5)
  1195. neck.MaxVelocity = 0.01
  1196. TurningEvil = false;
  1197. Evil = true; wait()
  1198. Terror:Play();
  1199. Terror.Looped = false;
  1200. elseif k == "f" and Evil and not Flying then
  1201. print(" R: Baah, T: Toggle Mountable, Y: Kick, U: Relieve Waste, K: Follow Camera");
  1202. Terror:Stop();
  1203. for _,v in pairs(Fur) do
  1204. local part,brickcolor = unpack(v);
  1205. part.BrickColor = BrickColor.new(brickcolor)
  1206. end
  1207. for _,v in pairs(Eyes) do
  1208. v.BrickColor = BrickColor.new("Really black");
  1209. v.Material = "SmoothPlastic"
  1210. end
  1211. Evil = false;
  1212. end
  1213. if k == "r" and not randeb then
  1214. randeb = true;
  1215. ran = 0;
  1216. wait(.5);
  1217. randeb = false;
  1218. end
  1219. if TurningEvil then return end
  1220.  
  1221. if k == "c" and not freezedeb and Evil then
  1222.  
  1223.  
  1224.  
  1225. freezedeb = true;
  1226. spherepart = Instance.new("Part",Workspace)
  1227. spherepart.FormFactor = Enum.FormFactor.Symmetric
  1228. spherepart.CanCollide = false
  1229. spherepart.Transparency = 0
  1230. spherepart.TopSurface = Enum.SurfaceType.Smooth
  1231. spherepart.BottomSurface = Enum.SurfaceType.Smooth
  1232. spherepart.Material = Enum.Material.Granite
  1233. spherepart.Size = Vector3.new(6.39999866, 1, 6.99999905)
  1234. spherepart.Anchored = true
  1235. spherepart.BrickColor = BrickColor.new("Bright violet")
  1236. spherepart.Friction = 0.30000001192093
  1237. spherepart.Shape = Enum.PartType.Block
  1238.  
  1239. sphere = Instance.new("SpecialMesh")
  1240. sphere.MeshType = Enum.MeshType.Sphere
  1241. sphere.Parent = spherepart
  1242. spherepart.Transparency = 1;
  1243. local freeze = Instance.new("Sound",spherepart);
  1244. freeze.SoundId = "http://roblox.com/asset?id=248572927";
  1245. freeze.Pitch = .75;
  1246. freeze.Volume = 1;
  1247.  
  1248. local ws = humanoid.WalkSpeed;
  1249. humanoid.WalkSpeed = 0;
  1250. brace()
  1251. wait(2)
  1252.  
  1253. endbrace();
  1254. local cf = torso.CFrame * CFrame.new(0,-3,0);
  1255.  
  1256. spherepart.CFrame = cf;
  1257. local original = spherepart.Size;
  1258. -- 20
  1259. local anchored = {};
  1260. local touched = spherepart.Touched:connect(function(o)
  1261. if o:isA("BasePart") and not o:IsDescendantOf(sheep) then
  1262. local last = o.Anchored;
  1263. o.Anchored = true; anchored[#anchored+1]={o,last};
  1264. if o.Parent ~= Workspace then
  1265.  
  1266. for _,v in pairs(o.Parent:GetChildren()) do
  1267. if v:isA("BasePart") and not v:IsDescendantOf(sheep) then
  1268. local last = v.Anchored;
  1269. v.Anchored = true; anchored[#anchored+1] = {v,last};
  1270. end
  1271. end
  1272. end
  1273. end
  1274. end)
  1275. freeze:Play();
  1276. torso.Anchored = false;
  1277. spherepart.Transparency = 0.1;
  1278. for i = 1,60,10 do
  1279. spherepart.Size = Vector3.new(original.X+i,original.Y,original.Z+i);
  1280. sphere.Scale = Vector3.new(1,1,1)*(i/30);
  1281. spherepart.CFrame = cf;
  1282. wait();
  1283. end
  1284. humanoid.WalkSpeed = ws;
  1285. wait(10);
  1286. original = spherepart.Size;
  1287. for i = 60,1,-10 do
  1288. spherepart.Size = Vector3.new(original.X-i,original.Y,original.Z-i);
  1289. sphere.Scale = Vector3.new(2,2,2)*(i/30);
  1290. spherepart.CFrame = cf;
  1291. wait();
  1292. end
  1293. for _,v in pairs(anchored) do
  1294. local part,lastanchored = unpack(v);
  1295. if lastanchored == false then
  1296. part.Anchored = false;
  1297. end
  1298. end
  1299. spherepart:Destroy();
  1300. freezedeb = false;
  1301. end
  1302. if k == "n" and Evil then
  1303. shielded = not shielded
  1304. if shielded == true then
  1305. brace();
  1306. rootpart.Anchored = true;
  1307. shield = Instance.new("Part",Workspace);
  1308. ff = Instance.new("ForceField",sheep);
  1309. shield.BrickColor = BrickColor.new("Really black");
  1310. shield.Anchored = true;
  1311. shield.Name = "shield";
  1312. shield.Transparency = .5;
  1313. shield.Size = Vector3.new(30,30,30);
  1314. mesh = Instance.new("SpecialMesh",shield);
  1315. mesh.MeshType = "Sphere";
  1316. shield.Material = "Ice";
  1317. shield.CFrame = torso.CFrame;
  1318. shield2 = shield:clone(); shield2.Parent = Workspace;
  1319. shield2.Size = Vector3.new(15,15,15);
  1320. shield2.CFrame = shield.CFrame;
  1321. shield3 = shield:clone(); shield3.Parent = Workspace;
  1322. shield3.Size = Vector3.new(5,5,5);
  1323. shield3.CFrame = shield.CFrame;
  1324. removed = Workspace.ChildRemoved:connect(function(o)
  1325. if o.Name == "shield" then
  1326. shield = o:Clone(); shield.Parent = Workspace;
  1327. shield.CFrame = o.CFrame;
  1328. end
  1329. end)
  1330. else
  1331. endbrace(); if removed then removed:disconnect() end
  1332. shield:Destroy();
  1333. shield2:Destroy(); shield3:Destroy();
  1334. ff:Destroy();
  1335. rootpart.Anchored = false;
  1336. end
  1337. end
  1338. if k == "z" and Evil and not poofdeb then poofdeb = true;
  1339. local smokepart = Instance.new("Part",Workspace); smokepart.Transparency = 1;
  1340. smokepart.Anchored = true; smokepart.CanCollide = false;
  1341. smokepart.CFrame = torso.CFrame;
  1342. local smoke = Instance.new("Smoke",smokepart); smoke.Color = Color3.new();
  1343. smoke.Opacity = 1;
  1344. smoke.Enabled = true;
  1345. local rx = ({-25,-50,25,50,-75,-100,75,100})[math.random(1,8)];
  1346. local rz = ({-25,-50,25,50,-75,-100,75,100})[math.random(1,8)];
  1347. torso.CFrame =
  1348. CFrame.new(torso.Position+Vector3.new(rx,0,rz));
  1349. wait(2); smoke.Enabled = false; poofdeb = false; smokepart:Destroy();
  1350. end
  1351. if k == "x" and Evil then
  1352. if not invisible then invisible = true;
  1353. for _,v in pairs(sheep:GetChildren()) do
  1354. if v:isA("BasePart") then v.Transparency = 1; end
  1355. end
  1356. else invisible = false;
  1357. for _,v in pairs(sheep:GetChildren()) do
  1358. if v:isA("BasePart") then v.Transparency = 0; end
  1359. end
  1360. end
  1361. end
  1362.  
  1363. if k == "v" and Evil then
  1364. if not Flying then
  1365. Flying = true;
  1366. bp.maxForce = Vector3.new();
  1367. bv.maxForce = Vector3.new(400000000,400000000,400000000);
  1368. lockedls = 1.6; lockedrs = 1.6 lockedlh = -1.6; lockedrh = -1.6;
  1369. ls:SetDesiredAngle(lockedls); rs:SetDesiredAngle(lockedrs); lh:SetDesiredAngle(lockedlh);
  1370. rh:SetDesiredAngle(lockedrh);
  1371. ls.C0 = lsc0 * CFrame.new(-1.7,0,0);
  1372. rs.C0 = rsc0 * CFrame.new(0,-1.5,0);
  1373. lh.C0 = lhc0 * CFrame.new(-0.5,-1.6,0);
  1374. rh.C0 = rhc0 * CFrame.new(1.1,0,0);
  1375. FlySound:Play();
  1376. else
  1377. local ray = Ray.new(rootpart.Position,Vector3.new(0,-5,0));
  1378. local hit,pos = Workspace:FindPartOnRayWithIgnoreList(ray,{sheep},false,false);
  1379. if hit then
  1380. Flying = false;
  1381. bp.maxForce = Vector3.new(0,400000,0);
  1382. bv.maxForce = Vector3.new();
  1383. FlySound:Stop();
  1384. lockedls = nil; lockedrs = nil; lockedlh = nil; lockedrh = nil;
  1385. ls.C0 = lsc0;
  1386. rs.C0 = rsc0;
  1387. lh.C0 = lhc0;
  1388. rh.C0 = rhc0;
  1389. end
  1390. end
  1391. end
  1392. if k == "t" and not Evil and not HeartDeb then
  1393. HeartDeb = true;
  1394. Mountable = not Mountable;
  1395. if Mountable then
  1396. Note.Text = "*Mountable*";
  1397. NoteFrame.BackgroundTransparency = .8
  1398. Hearts.Enabled = true;
  1399. wait(1)
  1400. Hearts.Enabled = false;
  1401. wait(5)
  1402. Note.Text = "";
  1403. NoteFrame.BackgroundTransparency = 1;
  1404. else
  1405. if Seat.Occupant then
  1406. Seat.Occupant.Jump = true;
  1407. end
  1408. end
  1409. wait(1)
  1410. HeartDeb = false;
  1411. end
  1412. if k == "g" and Evil and not deb then
  1413. deb = true;
  1414. stationary();
  1415. local Beams = {};
  1416. LaserSound.SoundId = LaserSounds[math.random(1,2)];
  1417. wait();
  1418. LaserSound:Play();
  1419. for _,v in pairs(Eyes) do
  1420. local Beam = LaserBeam:clone();
  1421. Beam.Parent = Workspace;
  1422. Ignore[#Ignore+1]=Beam;
  1423. local cf = v.CFrame*CFrame.Angles(0,0,math.rad(-90))*CFrame.new(0,78,0);
  1424. Beam.CFrame = cf;
  1425. Beams[#Beams+1]=Beam;
  1426. local dir = sheep.Head.CFrame* CFrame.Angles(0,math.rad(-45),0);
  1427. ray = Ray.new(v.Position,dir.lookVector*158);
  1428. local hit,pos = Workspace:FindPartOnRayWithIgnoreList(ray,Ignore,false,false);
  1429. if hit then
  1430. local expl = Instance.new("Explosion",Workspace);
  1431. expl.Position = pos;
  1432. if not hit.Name:lower():match("base") then
  1433. hit:Destroy();
  1434. end
  1435. end
  1436.  
  1437. end
  1438. wait()
  1439. for _,v in pairs(Beams) do
  1440. v:Destroy();
  1441. end
  1442. wait(.5)
  1443. deb = false;
  1444. end
  1445. if k == "y" and not kickdeb then
  1446. local ray = Ray.new(sheep.Torso.Position,-sheep.Torso.CFrame.lookVector*4);
  1447. local hit,pos = Workspace:FindPartOnRayWithIgnoreList(ray,{sheep},false,false);
  1448. if hit and hit.Parent:FindFirstChild("Humanoid") then
  1449. kickdeb = true;
  1450. local ch = hit.Parent;
  1451. local torso = ch.Torso;
  1452. local human = ch.Humanoid;
  1453. KickAnim();
  1454. human:TakeDamage(30);
  1455. human.Jump = true;
  1456. wait(.1);
  1457. human.Sit = true;
  1458. torso.Velocity = -torso.CFrame.lookVector*(Evil and 120*2 or 120);
  1459. wait(1)
  1460. kickdeb = false;
  1461. end
  1462. end
  1463. if k == "k" then
  1464. FollowCamera = not FollowCamera;
  1465. end
  1466. if k == "u" and not excrementdeb then
  1467. excrementdeb = true;
  1468. for i = 1,math.random(10,70) do
  1469. local feces = Feces:clone();
  1470. feces.BrickColor = not Evil and Feces.BrickColor or BrickColor.new("Really red");
  1471. local sound = Instance.new("Sound",feces); sound.Name = "Sound";
  1472. sound.Volume = 1;
  1473. sound.Pitch = .5;
  1474. sound.SoundId = "http://roblox.com/asset?id="..({"203396574","203396561","203396588"})[math.random(1,3)];
  1475. feces.Size = Vector3.new(0.200000003, 0.200000003,math.random(40,60)/100)
  1476. feces.CFrame = torso.CFrame*CFrame.new(math.random(-20,20)/100,0,2)
  1477. feces.Anchored = false;
  1478. feces.Parent = Workspace;
  1479. game.Debris:AddItem(feces,120);
  1480. feces.Touched:connect(function(obj)
  1481. if obj.Name == "feces" or obj.Parent == sheep then return end
  1482. if feces:FindFirstChild("Sound") then
  1483. wait()
  1484. feces.Sound:Play();
  1485. wait(1);
  1486. feces.Sound:Destroy();
  1487. end
  1488. end);
  1489. wait(math.random(1,10)/10);
  1490. end
  1491. wait(60)
  1492. excrementdeb = false;
  1493. end
  1494. if k == "b" and Workspace:FindFirstChild("Base") then
  1495. sheep.Torso.Anchored = true;
  1496. wait()
  1497. sheep.Torso.CFrame = Workspace.Base.CFrame * CFrame.new(0,10,0);
  1498. wait()
  1499. sheep.Torso.Anchored = false;
  1500. end
  1501. if k == "e" then
  1502. repeat wait() until not qdown
  1503. edown = true;
  1504. end
  1505. if k == "q" then
  1506. repeat wait() until not edown
  1507. qdown = true;
  1508. end
  1509. if k == "\48" then
  1510. walkspeed = Evil and 4 or 2;
  1511. freq = Evil and 24 or 18;
  1512. humanoid.WalkSpeed = Evil and 64 or 32;
  1513. end
  1514. end)
  1515. mouse.KeyUp:connect(function(k)
  1516. if k == "e" then
  1517. edown = false;
  1518. end
  1519. if k == "q" then
  1520. qdown = false;
  1521. end
  1522. if k == "\48" then
  1523. freq = 12;
  1524. walkspeed = 1;
  1525. humanoid.WalkSpeed = 12;
  1526. end
  1527. end)
  1528.  
  1529.  
  1530.  
  1531. function walk()
  1532. if torso.Velocity.magnitude >= 2 then
  1533.  
  1534. rh:SetDesiredAngle(lockedrh or -.4)
  1535. rs:SetDesiredAngle(lockedrs or .4)
  1536.  
  1537. lh:SetDesiredAngle(lockedlh or .4)
  1538. ls:SetDesiredAngle(lockedls or -.4)
  1539. wait(.5/walkspeed)
  1540. else
  1541. stationary();
  1542. end
  1543.  
  1544. if torso.Velocity.magnitude >= 2 then
  1545. rh:SetDesiredAngle(lockedrh or .4)
  1546. rs:SetDesiredAngle(lockedrs or -0.4)
  1547.  
  1548.  
  1549. lh:SetDesiredAngle(lockedlh or -.4)
  1550. ls:SetDesiredAngle(lockedls or .4)
  1551. wait(.5/walkspeed)
  1552. else
  1553. stationary();
  1554. end
  1555. end
  1556.  
  1557. ran = 5;
  1558. ranblink = 5;
  1559. LastCheck = 0;
  1560. LastBlinkCheck = 0;
  1561. LastRunCheck = 0;
  1562.  
  1563. local asin = math.asin;
  1564. local abs = math.abs;
  1565. local headoriginal = neck.C0;
  1566. local hrporiginal = hrp.C0;
  1567.  
  1568.  
  1569.  
  1570.  
  1571.  
  1572. camera = Workspace.CurrentCamera;
  1573.  
  1574. function scanreveal(p)
  1575. for _,v in pairs(p:GetChildren()) do
  1576. if v:isA("BasePart") and not v:isDescendantOf(script.Parent) and v.Transparency > 0.9 and not v.Name:match("Root") then
  1577. v.Transparency = 0;
  1578. else
  1579. scanreveal(v);
  1580. end
  1581. end
  1582. end
  1583.  
  1584. revealtime = 0;
  1585. while true do
  1586. rst:wait();
  1587. humanoid.Health = humanoid.MaxHealth;
  1588.  
  1589.  
  1590. local time = Workspace.DistributedGameTime;
  1591.  
  1592. if revealing and time-revealtime >= 1 then
  1593. revealtime = time;
  1594. scanreveal(Workspace);
  1595. end
  1596. if FollowCamera or Flying then
  1597. rootpart.CFrame=CFrame.new(rootpart.Position,rootpart.Position+camera.CoordinateFrame.lookVector*Vector3.new(10,Flying and 10 or 0,10))
  1598. end
  1599.  
  1600. if Flying then
  1601. neck.C0=CFrame.Angles(-.5,0,0)
  1602. neck.C1 = neckc1;
  1603. humanoid.PlatformStand = true
  1604. torso.RotVelocity = Vector3.new();
  1605. rootpart.RotVelocity = Vector3.new();
  1606. bv.velocity = (rootpart.CFrame.lookVector*50)--+Vector3.new(0,30,0)
  1607. else
  1608. humanoid.PlatformStand = false;
  1609. end
  1610.  
  1611. local MouseX = mouse.X;
  1612. local MouseY = mouse.Y;
  1613. local d = torso.CFrame:pointToObjectSpace(mouse.UnitRay.Origin+mouse.UnitRay.Direction.unit*100);
  1614. local mouseX = Evil and math.atan2(d.X,-d.Z) or asin(((MouseX/mouse.ViewSizeX)-1));
  1615. local mouseY = asin(-d.unit.Y);
  1616. local mouseYP = asin(((MouseY/mouse.ViewSizeY)-0.5)*2);
  1617. local angleY = -mouseY -- clamp(-mouseY,-1.3,2.05);
  1618. local angleYP = -mouseYP
  1619. local angleX = -mouseX -- clamp(-mouseX,-1.5,1.5);
  1620. local HeadY = clamp(angleY,-0.2,0.8);
  1621. local HeadYPassive = clamp(angleYP,-0.2,0.8);
  1622. if not Flying and(not (mouse.Y <= 3 or mouse.X >= mouse.ViewSizeX - 5 or mouse.X <= 3 or mouse.Y >= mouse.ViewSizeY - 5)) then
  1623.  
  1624. if torso.Velocity.magnitude >= 2 then Walking = true
  1625.  
  1626. local sin = math.sin(time*freq);
  1627. local desangle = 1.1 * sin;
  1628. rh.DesiredAngle = lockedrh or -desangle
  1629. rs.DesiredAngle = lockedrs or -desangle
  1630.  
  1631. lh.DesiredAngle = lockedlh or desangle;
  1632. ls.DesiredAngle = lockedls or desangle;
  1633.  
  1634. else
  1635. Walking = false;
  1636. rh:SetDesiredAngle(lockedrh or 0);
  1637. rs:SetDesiredAngle(lockedrs or 0);
  1638. lh:SetDesiredAngle(lockedlh or 0);
  1639. ls:SetDesiredAngle(lockedls or 0);
  1640. end
  1641.  
  1642.  
  1643.  
  1644.  
  1645. neck.C1 = LockNeck and neckc1 or CFrame.new();
  1646. neck.C0= LockNeck or (Evil and CFrame.new(0,1,-1)*CFrame.Angles(angleY,angleX,0)*CFrame.Angles(-.025,.7,0) or
  1647.  
  1648. CFrame.new(0,1,-1)*CFrame.Angles(HeadYPassive,angleX,0)
  1649.  
  1650. )
  1651.  
  1652. -- hrp.C0 = LockHrp or hrporiginal;
  1653.  
  1654. ls.MaxVelocity = 0.04*walkspeed;
  1655. rs.MaxVelocity = 0.04*walkspeed;
  1656. lh.MaxVelocity = 0.04*walkspeed;
  1657. rh.MaxVelocity = 0.04*walkspeed;
  1658. if qdown then
  1659. neckangle = clamp(neckangle+0.01,-0.5,0.5)
  1660. elseif edown then
  1661. neckangle = clamp(neckangle-0.01,-0.5,0.5);
  1662. end
  1663. if Workspace.DistributedGameTime-LastBlinkCheck >= ranblink then
  1664. LastBlinkCheck = Workspace.DistributedGameTime
  1665. ranblink = math.random(3,8);
  1666. for _,v in pairs(Eyes) do
  1667. v.Mesh.Scale = Vector3.new(1,.1,1);
  1668. end
  1669. wait(.1)
  1670. for _,v in pairs(Eyes) do
  1671. v.Mesh.Scale = Vector3.new(1,1,1);
  1672. end
  1673. end
  1674. if Workspace.DistributedGameTime-LastRunCheck >= .5/walkspeed and Walking then
  1675. LastRunCheck = Workspace.DistributedGameTime;
  1676. Step.SoundId = "http://roblox.com/asset?id="..FootSteps[walkspeed][math.random(1,5)];
  1677. Step:Play();
  1678. end
  1679. if Workspace.DistributedGameTime-LastCheck >= ran then
  1680. Sound.SoundId = SheepSounds[math.random(1,#SheepSounds)];
  1681. Sound.Pitch = Evil and .5 or math.random(80,120)/100;
  1682. wait();
  1683. Sound:Play();
  1684. LastCheck = Workspace.DistributedGameTime;
  1685. ran = math.random(5,15);
  1686. end
  1687. if not LockNeck then neck:SetDesiredAngle(neckangle); end
  1688. end
  1689. end
  1690. ]===]
  1691.  
  1692.  
  1693.  
  1694. function MakePlayerSheep(player)
  1695. if Workspace:FindFirstChild("Com") or NLS then
  1696. local sheep = SpawnSheep();
  1697. sheep:MakeJoints();
  1698. sheep:TranslateBy(Vector3.new(150/3,5,150/3)-sheep:GetModelCFrame().p)
  1699. Workspace.CurrentCamera.CameraSubject = sheep.Human;
  1700.  
  1701. local ch = player.Character;
  1702. ch.Humanoid:Destroy();
  1703. wait(.5);
  1704. for _,v in pairs(ch:GetChildren()) do
  1705. v:Destroy();
  1706. end
  1707. for _,v in pairs(sheep:GetChildren()) do
  1708. v.Parent = ch;
  1709. end
  1710. if not NLS then Workspace.Com:FireServer(SheepClient,ch,"NLS"); else NLS(SheepClient,ch) end
  1711. end
  1712. end
  1713.  
  1714. MakePlayerSheep(game.Players.LocalPlayer);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement