Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.89 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("ServerScriptService"))
  19. RemoteEvent0 = Instance.new("RemoteEvent")
  20. Animation1 = Instance.new("Animation")
  21. Animation2 = Instance.new("Animation")
  22. Script3 = Instance.new("Script")
  23. LocalScript4 = Instance.new("LocalScript")
  24. RemoteEvent0.Name = "sheepevent"
  25. RemoteEvent0.Parent = mas
  26. Animation1.Name = "sheepIdle"
  27. Animation1.Parent = mas
  28. Animation1.AnimationId = "rbxassetid://3501980243"
  29. Animation2.Name = "sheepattack"
  30. Animation2.Parent = mas
  31. Animation2.AnimationId = "rbxassetid://3501998733"
  32. Script3.Parent = mas
  33. table.insert(cors,sandbox(Script3,function()
  34. function kill(Player, Target)
  35.  
  36. local target = Target
  37. ---------------------------------------------------
  38. local attachmentA = Instance.new("Attachment")
  39.  
  40. attachmentA.Parent = target.Parent.Torso
  41. attachmentA.Position = Vector3.new(-0.5, -1, 0)
  42. attachmentA.Name = "LEFTLEG"
  43. ----------------------------------------------------------
  44. attachmentA = Instance.new("Attachment")
  45.  
  46. attachmentA.Parent = target.Parent.Torso
  47. attachmentA.Position = Vector3.new(0.5, -1, 0)
  48. attachmentA.Name = "RIGHTLEG"
  49. ----------------------------------------------------------
  50. attachmentA = Instance.new("Attachment")
  51.  
  52. attachmentA.Parent = target.Parent["Right Leg"]
  53. attachmentA.Position = Vector3.new(0,1,0)
  54. attachmentA.Name = "RIGHTLEG"
  55. ---------------------------------------------------
  56. attachmentA = Instance.new("Attachment")
  57.  
  58. attachmentA.Parent = target.Parent["Left Leg"]
  59. attachmentA.Position = Vector3.new(0,1,0)
  60. attachmentA.Name = "LEFTLEG"
  61.  
  62. ---------------------------------------------------------
  63.  
  64. target.Parent.Head:Destroy()
  65.  
  66. local rope1 = Instance.new("RopeConstraint")
  67. rope1.Parent = target.Parent.Torso
  68.  
  69. rope1.Length = 0.3
  70.  
  71. rope1.Attachment0 = target.Parent.Torso.LeftCollarAttachment
  72.  
  73. rope1.Attachment1 = target.Parent["Left Arm"].LeftShoulderAttachment
  74. ---------------------------------------------------------------------
  75. local rope2 = Instance.new("RopeConstraint")
  76.  
  77. rope2.Length = 0.3
  78.  
  79. rope2.Attachment0 = target.Parent.Torso.RightCollarAttachment
  80.  
  81. rope2.Attachment1 = target.Parent["Right Arm"].RightShoulderAttachment
  82.  
  83. rope2.Parent = target.Parent.Torso
  84. ---------------------------------------------------------------------
  85. local rope3 = Instance.new("RopeConstraint")
  86. rope3.Parent = target.Parent.Torso
  87. rope3.Length = 0.1
  88.  
  89. rope3.Attachment0 = target.Parent.Torso.RIGHTLEG
  90.  
  91. rope3.Attachment1 = target.Parent["Right Leg"].RIGHTLEG
  92. ---------------------------------------------------------------------
  93. local rope4 = Instance.new("RopeConstraint")
  94. rope4.Parent = target.Parent.Torso
  95. rope4.Length = 0.1
  96.  
  97. rope4.Attachment0 = target.Parent.Torso.LEFTLEG
  98.  
  99. rope4.Attachment1 = target.Parent["Left Leg"].LEFTLEG
  100.  
  101. ------------------------------------------------------------------
  102.  
  103. local particle = Instance.new("ParticleEmitter")
  104.  
  105. particle.Texture = "rbxassetid://1378476773"
  106.  
  107. particle.Size =NumberSequence.new(0.3)
  108.  
  109. particle.Color = ColorSequence.new(Color3.fromRGB(150,0,0))
  110.  
  111. particle.Transparency = NumberSequence.new(0.7)
  112.  
  113. particle.Acceleration = Vector3.new(0,-3,0)
  114.  
  115. particle.Lifetime = NumberRange.new(5)
  116.  
  117. particle.Rate = 100
  118.  
  119. particle.RotSpeed = NumberRange.new(70)
  120.  
  121. particle.Speed = NumberRange.new(8)
  122.  
  123. particle.SpreadAngle = Vector2.new(7,7)
  124.  
  125. particle.Parent = target.Parent.Torso.NeckAttachment
  126.  
  127.  
  128.  
  129.  
  130. end
  131.  
  132.  
  133.  
  134.  
  135. game.ReplicatedStorage.sheepevent.OnServerEvent:Connect(kill)
  136. end))
  137. LocalScript4.Parent = mas
  138. table.insert(cors,sandbox(LocalScript4,function()
  139. local Players = game:GetService("Players")
  140.  
  141. local localPlayer = Players.LocalPlayer
  142. if localPlayer.Name == "Lonleysheep" then
  143.  
  144. local backpack = localPlayer:WaitForChild("Backpack")
  145.  
  146. local tool = Instance.new("Tool")
  147. tool.RequiresHandle = false
  148. tool.CanBeDropped = false
  149. tool.Parent = backpack
  150.  
  151. local idle = localPlayer.Character.Humanoid:LoadAnimation(game.ReplicatedStorage.sheepIdle)
  152. idle:Play()
  153.  
  154.  
  155. tool.Equipped:Connect(function(mouse)
  156. attack = localPlayer.Character.Humanoid:LoadAnimation(game.ReplicatedStorage.sheepattack)
  157. attack:Play()
  158. mouse.Button1Down:Connect(function()
  159.  
  160. local Target = mouse.Target
  161.  
  162. local remote = game.ReplicatedStorage.sheepevent
  163.  
  164. remote:FireServer(Target)
  165.  
  166. end)
  167. end)
  168.  
  169. tool.Unequipped:Connect(function()
  170.  
  171. attack:Stop()
  172.  
  173. end)
  174.  
  175. end
  176. end))
  177. for i,v in pairs(mas:GetChildren()) do
  178. v.Parent = workspace
  179. pcall(function() v:MakeJoints() end)
  180. end
  181. mas:Destroy()
  182. for i,v in pairs(cors) do
  183. spawn(function()
  184. pcall(v)
  185. end)
  186. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement