Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Converted using Mokiros's Model to Script plugin
- -- Converted string size: 1654
- local genv={}
- local Scripts = {
- function() function kill(hit)
- print(hit)
- if hit.Parent.ClassName == "Model" then
- if hit.Parent:FindFirstChild("HumanoidRootPart") and hit.Parent:FindFirstChild("Head") then
- hit.Parent:BreakJoints()
- end
- end
- end
- script.Parent.Touched:connect(kill) end;
- function() function kill(hit)
- if hit.Parent and hit.Parent:FindFirstChild("Humanoid") then
- if hit.Parent:FindFirstChild("Torso") and hit.Parent:FindFirstChild("Head") then
- hit.Parent:BreakJoints()
- end
- end
- end
- script.Parent.Touched:connect(kill) end;
- function() function kill(hit)
- if hit.Parent and hit.Parent:FindFirstChild("Humanoid") then
- if hit.Parent:FindFirstChild("Torso") and hit.Parent:FindFirstChild("Head") then
- hit.Parent:BreakJoints()
- end
- end
- end
- script.Parent.Touched:connect(kill) end;
- function() bin = script.Parent
- reapertorso = bin:WaitForChild("Torso")
- function findNearestTorso(pos)
- local list = game.Workspace:GetChildren()
- local torso = nil
- local dist = 100
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= script.Parent) and (temp2:FindFirstChild("Humanoid")) then
- wait(0.5)
- temp = temp2:findFirstChild("Torso")
- if temp == nil then
- temp = temp2:findFirstChild("UpperTorso")
- end
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human ~= script.Parent.Humanoid) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- function patrol()
- local current = reapertorso.Position
- local patrolTo = current + Vector3.new(math.random(-100,100), math.random(-100,100), math.random(-100,100))
- bin.Humanoid:MoveTo(patrolTo)
- wait(5)
- end
- while true do
- local torso = findNearestTorso(reapertorso.Position)
- if torso~= nil then
- bin.Humanoid:MoveTo(torso.Position, torso)
- wait(1)
- else
- patrol()
- end
- end
- end;}local ActualScripts = {}
- function s(var)
- local func = table.remove(Scripts,1)
- setfenv(func,setmetatable({script=var,require=fake_require or require,global=genv},{
- __index = getfenv(func),
- }))
- table.insert(ActualScripts,coroutine.wrap(func))
- end
- Decode = function(str,t,props,classes,values,ICList,Model,CurPar,LastIns,split,RemoveAndSplit,InstanceList)
- local tonum,table_remove,inst,parnt,comma,table_foreach = tonumber,table.remove,Instance.new,"Parent",",",
- function(t,f)
- for a,b in pairs(t) do
- f(a,b)
- end
- end
- local Types = {
- Color3 = Color3.new,
- Vector3 = Vector3.new,
- Vector2 = Vector2.new,
- UDim = UDim.new,
- UDim2 = UDim2.new,
- CFrame = CFrame.new,
- Rect = Rect.new,
- NumberRange = NumberRange.new,
- BrickColor = BrickColor.new,
- PhysicalProperties = PhysicalProperties.new,
- NumberSequence = function(...)
- local a = {...}
- local t = {}
- repeat
- t[#t+1] = NumberSequenceKeypoint.new(table_remove(a,1),table_remove(a,1),table_remove(a,1))
- until #a==0
- return NumberSequence.new(t)
- end,
- ColorSequence = function(...)
- local a = {...}
- local t = {}
- repeat
- t[#t+1] = ColorSequenceKeypoint.new(table_remove(a,1),Color3.new(table_remove(a,1),table_remove(a,1),table_remove(a,1)))
- until #a==0
- return ColorSequence.new(t)
- end,
- number = tonumber,
- boolean = function(a)
- return a=="1"
- end
- }
- split = function(str,sep)
- if not str then return end
- local fields = {}
- local ConcatNext = false
- str:gsub(("([^%s]+)"):format(sep),function(c)
- if ConcatNext == true then
- fields[#fields] = fields[#fields]..sep..c
- ConcatNext = false
- else
- fields[#fields+1] = c
- end
- if c:sub(#c)=="\\" then
- c = fields[#fields]
- fields[#fields] = c:sub(1,#c-1)
- ConcatNext = true
- end
- end)
- return fields
- end
- RemoveAndSplit = function(t)
- return split(table_remove(t,1),comma)
- end
- t = split(str,";")
- props = RemoveAndSplit(t)
- classes = RemoveAndSplit(t)
- values = split(table_remove(t,1),'|')
- ICList = RemoveAndSplit(t)
- InstanceList = {}
- Model = inst"Model"
- CurPar = Model
- table_foreach(t,function(ct,c)
- if c=="n" or c=="p" then
- CurPar = c=="n" and LastIns or CurPar[parnt]
- else
- ct = split(c,"|")
- local class = classes[tonum(table_remove(ct,1))]
- if class=="UnionOperation" then
- LastIns = {UsePartColor="1"}
- else
- LastIns = inst(class)
- if LastIns:IsA"Script" then
- s(LastIns)
- elseif LastIns:IsA("ModuleScript") then
- ms(LastIns)
- end
- end
- local function SetProperty(LastIns,p,str,s)
- s = Types[typeof(LastIns[p])]
- if p=="CustomPhysicalProperties" then
- s = PhysicalProperties.new
- end
- if s then
- LastIns[p] = s(unpack(split(str,comma)))
- else
- LastIns[p] = str
- end
- end
- local UnionData
- table_foreach(ct,function(s,p,a,str)
- a = p:find":"
- p,str = props[tonum(p:sub(1,a-1))],values[tonum(p:sub(a+1))]
- if p=="UnionData" then
- UnionData = split(str," ")
- return
- end
- if class=="UnionOperation" then
- LastIns[p] = str
- return
- end
- SetProperty(LastIns,p,str)
- end)
- if UnionData then
- local LI_Data = LastIns
- LastIns = DecodeUnion(UnionData)
- table_foreach(LI_Data,function(p,str)
- SetProperty(LastIns,p,str)
- end)
- end
- table.insert(InstanceList,LastIns)
- LastIns[parnt] = CurPar
- end
- end)
- table_remove(ICList,1)
- table_foreach(ICList,function(a,b)
- b = split(b,">")
- InstanceList[tonum(b[1])][props[tonum(b[2])]] = InstanceList[tonum(b[3])]
- end)
- return Model:GetChildren()
- end
- local Objects = Decode('Name,PrimaryPart,Transparency,Position,Size,BottomSurface,TopSurface,MaxVelocity,C0,C1,Part0,Part1,CanCollide,Scale,VertexColor,MeshId,TextureId,MeshType,WalkSpeed;Part,Model,Motor6D,Script,SpecialMes'
- ..'h,Humanoid;Part|Reaper|HumanoidRootPart|1|0.2815,3.9111,27.8499|2,2,1|0|Root Hip|0.1|0,0,0,-1,0,0,0,0,1,0,1,-0|Torso|0|Left Hip|-1,-1,0,-0.0001,0,-1,0,0.9999,0,1,0,-0.0001|-0.5,1,0,-0.0001,0,-1,0,0.99'
- ..'99,0,1,0,-0.0001|Right Hip|1,-1,0,-0.0001,0,1,-0,0.9999,0,-1,0,-0.0001|0.5,1,0,-0.0001,0,1,0,0.9999,0,-1,0,-0.0001|Left Shoulder|-1,0.5,0,-0.0001,0,-1,0,0.9999,0,1,0,-0.0001|0.5,0.5,0,-0.0001,0,-1,0,0'
- ..'.9999,0,1,0,-0.0001|Right Shoulder|1,0.5,0,-0.0001,0,1,-0,0.9999,0,-1,0,-0.0001|-0.5,0.5,0,-0.0001,0,1,0,0.9999,0,-1,0,-0.0001|Neck|0,1,0,-1,0,0,0,0,1,0,1,-0|0,-0.5,0,-1,0,0,0,0,1,0,1,-0|Kill Script|9'
- ..',9,9|79,79,79|http://www.roblox.com/asset/?id=42579239|http://www.roblox.com/asset/?id=42578558|5|Left Leg|-0.2185,1.9111,27.8499|1,2,1|Right Leg|0.7815,1.9111,27.8499|Left Arm|-1.2185,3.9111,27.8499|'
- ..'Right Arm|1.7815,3.9111,27.8499|Head|0.2815,5.4111,27.8499|2,1,1|1.25,1.25,1.25|18|FollowScript;0,1>2>2,3>11>2,3>12>4,5>11>4,5>12>12,6>11>4,6>12>13,7>11>4,7>12>14,8>11>4,8>12>16,9>11>4,9>12>18;2|1:2;n'
- ..';1|1:3|3:4|4:5|5:6|6:7|7:7;n;3|1:8|8:9|9:10|10:10;p;1|1:11|4:5|5:6|13:12|6:7|7:7;n;3|1:13|8:9|9:14|10:15;3|1:16|8:9|9:17|10:18;3|1:19|8:9|9:20|10:21;3|1:22|8:9|9:23|10:24;3|1:25|8:9|9:26|10:27;4|1:28;'
- ..'5|14:29|15:30|16:31|17:32|18:33;p;1|1:34|3:4|4:35|5:36|13:12|6:7|7:7;1|1:37|3:4|4:38|5:36|13:12|6:7|7:7;1|1:39|3:4|4:40|5:36|13:12|6:7|7:7;n;4|1:28;p;1|1:41|3:4|4:42|5:36|13:12|6:7|7:7;n;4|1:28;p;1|1:'
- ..'43|3:4|4:44|5:45|6:7|7:7;n;5|14:46;p;6|19:47;4|1:48;p;')
- for _,Object in pairs(Objects) do
- Object.Parent = script and script.Parent==workspace and script or workspace
- end
- for _,f in pairs(ActualScripts) do f() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement