Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --By Rufus14
- --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("Lighting"))
- Tool0 = Instance.new("Tool")
- Script1 = Instance.new("Script")
- Tool0.Name = "Stealer"
- Tool0.Parent = mas
- Tool0.TextureId = "http://www.roblox.com/asset/?id=22551415"
- Tool0.CanBeDropped = false
- Tool0.RequiresHandle = false
- Tool0.ToolTip = "you wouldnt steal a tool"
- Script1.Parent = Tool0
- table.insert(cors,sandbox(Script1,function()
- --By Rufus14
- tool = script.Parent
- equipped = false
- owner = nil
- cananimate = false
- stealin = false
- character = nil
- sine = 0
- runservice = game:GetService("RunService")
- anim = "idle"
- tool.Equipped:connect(function()
- equipped = true
- end)
- tool.Unequipped:connect(function()
- equipped = false
- if character:findFirstChild("oksy") then
- character:findFirstChild("oksy"):destroy()
- end
- if character.Head:findFirstChild("its a crime") then
- character.Head:findFirstChild("its a crime"):destroy()
- end
- if character.Torso:findFirstChild("RightLegWeldpiracy") then
- character.Torso:findFirstChild("RightLegWeldpiracy"):destroy()
- end
- if character.Torso:findFirstChild("LeftLegWeldpiracy") then
- character.Torso:findFirstChild("LeftLegWeldpiracy"):destroy()
- end
- if character.Torso:findFirstChild("LeftArmWeldpiracy") then
- character.Torso:findFirstChild("LeftArmWeldpiracy"):destroy()
- end
- if character.Torso:findFirstChild("RightArmWeldpiracy") then
- character.Torso:findFirstChild("RightArmWeldpiracy"):destroy()
- end
- if character.Torso:findFirstChild("HeadWeldpiracy") then
- character.Torso:findFirstChild("HeadWeldpiracy"):destroy()
- end
- if character:findFirstChild("HumanoidRootPart") then
- if character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeldpiracy") then
- character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeldpiracy"):destroy()
- end
- end
- end)
- tool.Activated:connect(function()
- if owner ~= nil and character ~= nil and not stealin then
- cananimate = false
- stealin = true
- local leftlegweld = character.Torso:findFirstChild("LeftLegWeldpiracy")
- local rightlegweld = character.Torso:findFirstChild("RightLegWeldpiracy")
- local rightarmweld = character.Torso:findFirstChild("RightArmWeldpiracy")
- local leftarmweld = character.Torso:findFirstChild("LeftArmWeldpiracy")
- local headweld = character.Torso:findFirstChild("HeadWeldpiracy")
- local rootweld = character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeldpiracy")
- for i = 0,1 , 0.07 do
- rightarmweld.C0 = rightarmweld.C0:lerp(CFrame.new(2.01083374, 0.5, -0.195486546, 0.642787635, -0.766044497, 0, 9.13498788e-09, 7.6651645e-09, -0.99999994, 0.766044497, 0.642787635, 1.19248824e-08),i)
- leftarmweld.C0 = leftarmweld.C0:lerp(CFrame.new(-1.68301284, 0.316987038, 1.1920929e-07, 0.866025448, 0.50000006, 0, -0.49999997, 0.866025329, 0, 0, 0, 1.00000012),i)
- leftlegweld.C0 = leftlegweld.C0:lerp(CFrame.new(-0.5,-2,0),i)
- rightlegweld.C0 = rightlegweld.C0:lerp(CFrame.new(0.5,-2,0),i)
- rootweld.C0 = rootweld.C0:lerp(CFrame.new(0, 0, 0, 0.173647851, 0, -0.984807849, 0, 1, 0, 0.984807849, 0, 0.173647851),i)
- headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 0.173648015, 0, 0.984807968, 0, 1, 0, -0.984807968, 0, 0.173648015),i)
- runservice.Stepped:wait()
- end
- for i = 0,1 , 0.07 do
- rightarmweld.C0 = rightarmweld.C0:lerp(CFrame.new(1.40641773, 0.5, -0.757115126, 1, 0, 2.22044605e-16, 4.44089183e-16, 1.19248798e-08, -0.99999994, 0, 1, 1.19248815e-08),i)
- leftarmweld.C0 = leftarmweld.C0:lerp(CFrame.new(-2.13939095, 0.457722664, -2.38418579e-07, 0.642787635, 0.766044497, 0, -0.766044319, 0.642787516, 0, 0, 0, 1),i)
- leftlegweld.C0 = leftlegweld.C0:lerp(CFrame.new(-0.5,-2,0),i)
- rightlegweld.C0 = rightlegweld.C0:lerp(CFrame.new(0.5,-2,0),i)
- rootweld.C0 = rootweld.C0:lerp(CFrame.new(0, 0, 0, 0.173648521, 0, 0.98480773, 0, 1, 0, -0.98480773, 0, 0.173648521),i)
- headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 0.173648432, 0, -0.984807849, 0, 1, 0, 0.984807849, 0, 0.173648432),i)
- runservice.Stepped:wait()
- end
- local cangra = true
- for i,v in pairs(workspace:GetDescendants()) do
- if v.ClassName == "Model" and v ~= character then
- local head = v:findFirstChild("Head")
- local vhum = v:findFirstChildOfClass("Humanoid")
- if head and vhum then
- if (head.Position - character["Right Arm"].Position).magnitude < 4 and vhum.Health > 0 and cangra then
- cangra = false
- if v:findFirstChildOfClass("Tool") then
- v:findFirstChildOfClass("Tool").Parent = owner:findFirstChildOfClass("Backpack")
- end
- local plrr = game:GetService("Players"):GetPlayerFromCharacter(v)
- if plrr then
- for q,w in pairs(plrr:findFirstChildOfClass("PlayerGui"):GetChildren()) do
- if w.ClassName == "Script" then
- w:Clone().Parent = owner:findFirstChildOfClass("PlayerGui")
- end
- end
- for q,w in pairs(plrr:findFirstChildOfClass("Backpack"):GetChildren()) do
- if w.ClassName == "Tool" then
- w.Parent = owner:findFirstChildOfClass("Backpack")
- end
- if w.ClassName == "Script" then
- w:Clone().Parent = owner:findFirstChildOfClass("Backpack")
- end
- end
- end
- end
- end
- end
- end
- coroutine.wrap(function()
- for i = 0,1 , 0.07 do
- headweld.C0 = headweld.C0:lerp(CFrame.new(0,1.5,0),i)
- runservice.Stepped:wait()
- end
- end)()
- stealin = false
- cananimate = true
- end
- end)
- tool.Equipped:connect(function()
- owner = game:GetService("Players"):GetPlayerFromCharacter(tool.Parent)
- character = owner.Character
- stealin = true
- local piracy = Instance.new("Sound", character.Head)
- piracy.SoundId = "rbxassetid://298992911"
- piracy.Looped = true
- piracy.Name = "its a crime"
- piracy.Volume = 6
- piracy.TimePosition = 1
- piracy:Play()
- coroutine.wrap(function()
- while runservice.Stepped:wait() and equipped do
- if piracy.TimePosition > 39 then
- piracy.TimePosition = 12
- end
- end
- end)()
- local rightarm = Instance.new("Weld", character.Torso)
- rightarm.Part0 = character.Torso
- rightarm.Part1 = character["Right Arm"]
- rightarm.C0 = CFrame.new(1.5,0,0)
- rightarm.Name = "RightArmWeldpiracy"
- local glasses = Instance.new("Part", character)
- glasses.Size = Vector3.new(1,1,1)
- glasses.CanCollide = true
- glasses:BreakJoints()
- glasses.Name = "oksy"
- local meshglasses = Instance.new("SpecialMesh", glasses)
- meshglasses.MeshId = "http://www.roblox.com/asset/?id=1577360"
- meshglasses.TextureId = "http://www.roblox.com/asset/?id=1577349"
- meshglasses.Scale = Vector3.new(1,1.3,1)
- local glassweld = Instance.new("Weld", glasses)
- glassweld.Part0 = character["Right Arm"]
- glassweld.Part1 = glasses
- glassweld.C0 = CFrame.new(-0.943575382, -0.994297981, -0.0166559219, 0.883870006, 0.333259612, -0.328195155, 0.425595224, -0.864079177, 0.268767387, -0.194017246, -0.377233684, -0.905567288)
- for i = 0,0.7 , 0.02 do
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.22912145, 1.11927986, -0.25297451, 0.884304285, 0.426061481, -0.190991223, 0.357556522, -0.881002724, -0.309818447, -0.300265551, 0.205683619, -0.931415498),i)
- runservice.Stepped:wait()
- end
- stealin = false
- glassweld.Part0 = character.Head
- glassweld.C0 = CFrame.new(0,0.15,-0.15)
- cananimate = true
- local leftarm = Instance.new("Weld", character.Torso)
- leftarm.Part0 = character.Torso
- leftarm.Part1 = character["Left Arm"]
- leftarm.C0 = CFrame.new(-1.5,0,0)
- leftarm.Name = "LeftArmWeldpiracy"
- local rightleg = Instance.new("Weld", character.Torso)
- rightleg.Part0 = character.Torso
- rightleg.Part1 = character["Right Leg"]
- rightleg.C0 = CFrame.new(0.5,-2,0)
- rightleg.Name = "RightLegWeldpiracy"
- local leftleg = Instance.new("Weld", character.Torso)
- leftleg.Part0 = character.Torso
- leftleg.Part1 = character["Left Leg"]
- leftleg.C0 = CFrame.new(-0.5,-2,0)
- leftleg.Name = "LeftLegWeldpiracy"
- local head = Instance.new("Weld", character.Torso)
- head.Part0 = character.Torso
- head.Part1 = character.Head
- head.C0 = CFrame.new(0,1.5,0)
- head.Name = "HeadWeldpiracy"
- local humanoidrootpart = Instance.new("Weld", character.HumanoidRootPart)
- humanoidrootpart.Part0 = character.HumanoidRootPart
- humanoidrootpart.Part1 = character.Torso
- humanoidrootpart.Name = "HumanoidRootPartWeldpiracy"
- local rootpart = character.HumanoidRootPart
- local humanoid = character:findFirstChildOfClass("Humanoid")
- coroutine.wrap(function()
- while runservice.Stepped:wait() and equipped do
- if rootpart.Velocity.x >= 2 or rootpart.Velocity.x <= -2 or rootpart.Velocity.z >= 2 or rootpart.Velocity.z <= -2 then
- if humanoid.FloorMaterial == Enum.Material.Air then
- if rootpart.Velocity.x >= 17 or rootpart.Velocity.x <= -17 or rootpart.Velocity.z >= 17 or rootpart.Velocity.z <= -17 then
- if rootpart.Velocity.y >= 3 then
- anim = "jumprun"
- --print("jumping (running)")
- elseif rootpart.Velocity.y <= -3 then
- anim = "fallrun"
- --("falling (running)")
- end
- else
- if rootpart.Velocity.y >= 3 then
- anim = "jump"
- --print("jumping (walking)")
- elseif rootpart.Velocity.y <= -3 then
- anim = "fall"
- --print("falling (walking)")
- end
- end
- else
- if rootpart.Velocity.x >= 17 or rootpart.Velocity.x <= -17 or rootpart.Velocity.z >= 17 or rootpart.Velocity.z <= -17 then
- anim = "run"
- --print("running")
- else
- anim = "walk"
- --print("walking")
- end
- end
- elseif rootpart.Velocity.x <= 2 or rootpart.Velocity.x >= -2 or rootpart.Velocity.z <= 2 or rootpart.Velocity.z >= -2 then
- if humanoid.FloorMaterial == Enum.Material.Air then
- if rootpart.Velocity.y >= 3 then
- anim = "jump"
- --print("jumping (standing)")
- elseif rootpart.Velocity.y < -3 then
- anim = "fall"
- --print("falling (standing)")
- end
- else
- anim = "idle"
- --print("standing")
- end
- end
- end
- end)()
- coroutine.wrap(function()
- while runservice.Stepped:wait() and equipped do
- sine = tick()*50
- if cananimate then
- if anim == "idle" then
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,math.sin(sine/40)/20,0) * CFrame.Angles(0,0,math.sin(sine/80)/30),0.2)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(0,0,math.rad(-5)+math.cos(sine/40)/20) * CFrame.new(0,-0.5,0),0.2)
- if not stealin then
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(0,0,math.rad(5)-math.cos(sine/40)/20) * CFrame.new(0,-0.5,0),0.2)
- end
- leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1-math.sin(sine/40)/20,0) * CFrame.Angles(0,0,math.rad(-3)-math.sin(sine/80)/30) * CFrame.new(0,-1,0),0.2)
- rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1-math.sin(sine/40)/20,0) * CFrame.Angles(0,0,math.rad(3)-math.sin(sine/80)/30) * CFrame.new(0,-1,0),0.2)
- elseif anim == "walk" then
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,math.sin(sine/3)/15,0) * CFrame.Angles(math.rad(-10),0,rootpart.RotVelocity.y/40+math.cos(sine/6)/30),0.2)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(-math.sin(sine/6)*1.2,0,math.rad(-5)+math.cos(sine/3)/15) * CFrame.new(0,-0.5,0),0.2)
- if not stealin then
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(math.sin(sine/6)*1.2,0,math.rad(5)-math.cos(sine/3)/15) * CFrame.new(0,-0.5,0),0.2)
- end
- leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1+math.cos(sine/6)/4,-math.cos(sine/6)/3) * CFrame.Angles(math.sin(sine/6)*1.1,0,0) * CFrame.new(0,-1,0),0.2)
- rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1-math.cos(sine/6)/4,math.cos(sine/6)/3) * CFrame.Angles(-math.sin(sine/6)*1.1,0,0) * CFrame.new(0,-1,0),0.2)
- elseif anim == "jump" then
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(-10),0,0),0.2)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(0,0,-math.rad(10)) * CFrame.new(0,-0.5,0),0.2)
- if not stealin then
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(0,0,math.rad(10)) * CFrame.new(0,-0.5,0),0.2)
- end
- leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1,0) * CFrame.Angles(0,0,0) * CFrame.new(0,-1,0),0.2)
- rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1,0) * CFrame.Angles(0,0,0) * CFrame.new(0,-1,0),0.2)
- elseif anim == "fall" then
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(10),0,0),0.2)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(0,0,-math.rad(45)) * CFrame.new(0,-0.5,0),0.2)
- if not stealin then
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(0,0,math.rad(45)) * CFrame.new(0,-0.5,0),0.2)
- end
- leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1,0) * CFrame.Angles(0,0,0) * CFrame.new(0,-1,0),0.2)
- rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1,0) * CFrame.Angles(0,0,0) * CFrame.new(0,-1,0),0.2)
- elseif anim == "run" then
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,-0.2+math.sin(sine/2)/10,0) * CFrame.Angles(math.rad(-20),0,rootpart.RotVelocity.y/35+math.cos(sine/4)/25),0.2)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(-math.sin(sine/4)*1.5,0,math.rad(-5)+math.cos(sine/4)/6) * CFrame.new(0,-0.5,0),0.2)
- if not stealin then
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(math.sin(sine/4)*1.5,0,math.rad(5)-math.cos(sine/4)/6) * CFrame.new(0,-0.5,0),0.2)
- end
- leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1+math.cos(sine/4)/3,-math.cos(sine/4)/2) * CFrame.Angles(math.sin(sine/4)*1.5,0,0) * CFrame.new(0,-1,0),0.2)
- rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1-math.cos(sine/4)/3,math.cos(sine/4)/2) * CFrame.Angles(-math.sin(sine/4)*1.5,0,0) * CFrame.new(0,-1,0),0.2)
- elseif anim == "jumprun" then
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(-20),0,0),0.2)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(0,0,-math.rad(10)) * CFrame.new(0,-0.5,0),0.2)
- if not stealin then
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(0,0,math.rad(10)) * CFrame.new(0,-0.5,0),0.2)
- end
- leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1,0) * CFrame.Angles(0,0,0) * CFrame.new(0,-1,0),0.2)
- rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1,0) * CFrame.Angles(0,0,0) * CFrame.new(0,-1,0),0.2)
- elseif anim == "fallrun" then
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(20),0,0),0.2)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(0,0,-math.rad(45)) * CFrame.new(0,-0.5,0),0.2)
- if not stealin then
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(0,0,math.rad(45)) * CFrame.new(0,-0.5,0),0.2)
- end
- leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1,0) * CFrame.Angles(0,0,0) * CFrame.new(0,-1,0),0.2)
- rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1,0) * CFrame.Angles(0,0,0) * CFrame.new(0,-1,0),0.2)
- end
- end
- end
- end)()
- end)
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = owner.Character
- 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