Advertisement
Guest User

Untitled

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