Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("ServerScriptService"))
- RemoteEvent0 = Instance.new("RemoteEvent")
- Animation1 = Instance.new("Animation")
- Animation2 = Instance.new("Animation")
- Script3 = Instance.new("Script")
- LocalScript4 = Instance.new("LocalScript")
- RemoteEvent0.Name = "sheepevent"
- RemoteEvent0.Parent = mas
- Animation1.Name = "sheepIdle"
- Animation1.Parent = mas
- Animation1.AnimationId = "rbxassetid://3501980243"
- Animation2.Name = "sheepattack"
- Animation2.Parent = mas
- Animation2.AnimationId = "rbxassetid://3501998733"
- Script3.Parent = mas
- table.insert(cors,sandbox(Script3,function()
- function kill(Player, Target)
- local target = Target
- ---------------------------------------------------
- local attachmentA = Instance.new("Attachment")
- attachmentA.Parent = target.Parent.Torso
- attachmentA.Position = Vector3.new(-0.5, -1, 0)
- attachmentA.Name = "LEFTLEG"
- ----------------------------------------------------------
- attachmentA = Instance.new("Attachment")
- attachmentA.Parent = target.Parent.Torso
- attachmentA.Position = Vector3.new(0.5, -1, 0)
- attachmentA.Name = "RIGHTLEG"
- ----------------------------------------------------------
- attachmentA = Instance.new("Attachment")
- attachmentA.Parent = target.Parent["Right Leg"]
- attachmentA.Position = Vector3.new(0,1,0)
- attachmentA.Name = "RIGHTLEG"
- ---------------------------------------------------
- attachmentA = Instance.new("Attachment")
- attachmentA.Parent = target.Parent["Left Leg"]
- attachmentA.Position = Vector3.new(0,1,0)
- attachmentA.Name = "LEFTLEG"
- ---------------------------------------------------------
- target.Parent.Head:Destroy()
- local rope1 = Instance.new("RopeConstraint")
- rope1.Parent = target.Parent.Torso
- rope1.Length = 0.3
- rope1.Attachment0 = target.Parent.Torso.LeftCollarAttachment
- rope1.Attachment1 = target.Parent["Left Arm"].LeftShoulderAttachment
- ---------------------------------------------------------------------
- local rope2 = Instance.new("RopeConstraint")
- rope2.Length = 0.3
- rope2.Attachment0 = target.Parent.Torso.RightCollarAttachment
- rope2.Attachment1 = target.Parent["Right Arm"].RightShoulderAttachment
- rope2.Parent = target.Parent.Torso
- ---------------------------------------------------------------------
- local rope3 = Instance.new("RopeConstraint")
- rope3.Parent = target.Parent.Torso
- rope3.Length = 0.1
- rope3.Attachment0 = target.Parent.Torso.RIGHTLEG
- rope3.Attachment1 = target.Parent["Right Leg"].RIGHTLEG
- ---------------------------------------------------------------------
- local rope4 = Instance.new("RopeConstraint")
- rope4.Parent = target.Parent.Torso
- rope4.Length = 0.1
- rope4.Attachment0 = target.Parent.Torso.LEFTLEG
- rope4.Attachment1 = target.Parent["Left Leg"].LEFTLEG
- ------------------------------------------------------------------
- local particle = Instance.new("ParticleEmitter")
- particle.Texture = "rbxassetid://1378476773"
- particle.Size =NumberSequence.new(0.3)
- particle.Color = ColorSequence.new(Color3.fromRGB(150,0,0))
- particle.Transparency = NumberSequence.new(0.7)
- particle.Acceleration = Vector3.new(0,-3,0)
- particle.Lifetime = NumberRange.new(5)
- particle.Rate = 100
- particle.RotSpeed = NumberRange.new(70)
- particle.Speed = NumberRange.new(8)
- particle.SpreadAngle = Vector2.new(7,7)
- particle.Parent = target.Parent.Torso.NeckAttachment
- end
- game.ReplicatedStorage.sheepevent.OnServerEvent:Connect(kill)
- end))
- LocalScript4.Parent = mas
- table.insert(cors,sandbox(LocalScript4,function()
- local Players = game:GetService("Players")
- local localPlayer = Players.LocalPlayer
- if localPlayer.Name == "Lonleysheep" then
- local backpack = localPlayer:WaitForChild("Backpack")
- local tool = Instance.new("Tool")
- tool.RequiresHandle = false
- tool.CanBeDropped = false
- tool.Parent = backpack
- local idle = localPlayer.Character.Humanoid:LoadAnimation(game.ReplicatedStorage.sheepIdle)
- idle:Play()
- tool.Equipped:Connect(function(mouse)
- attack = localPlayer.Character.Humanoid:LoadAnimation(game.ReplicatedStorage.sheepattack)
- attack:Play()
- mouse.Button1Down:Connect(function()
- local Target = mouse.Target
- local remote = game.ReplicatedStorage.sheepevent
- remote:FireServer(Target)
- end)
- end)
- tool.Unequipped:Connect(function()
- attack:Stop()
- end)
- end
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement