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: 822
- local Scripts = { function()
- end; function()
- a=game:service("RunService")b=script.Parent c=b.Handle local k=Instance.new("Part")k.formFactor=2 k.Size=Vector3.new(100,100,100)k.Anchored=true k.Locked=true k.CanCollide=false k.archivable=false k.TopSurface=0 k.BottomSurface=0 k.Transparency=1 local l=Instance.new("Decal")l.Face=1 l.Texture="http://www.roblox.com/asset/?version=1&id=1280730"l.Parent=k local m=l:Clone()m.Face=4 m.Parent=k function d(n)local o=n.Parent:findFirstChild("Humanoid")local p=b.Parent local q=game.Players:playerFromCharacter(p)local r=p:findFirstChild("Humanoid")if o~=nil and o~=r and r~=nil then e(o,q)o:TakeDamage(o.MaxHealth)if o.Health<=0 then local s=n.CFrame n.CFrame=CFrame.new(n.Position)n.CFrame=s end delay(1,function()f(o)end)else local s=n.CFrame n:BreakJoints()n.CFrame=CFrame.new(n.Position)n.CFrame=s end end function e(n,o)local p=Instance.new("ObjectValue")p.Value=o p.Name="creator"p.Parent=n end function f(n)if n~=nil then local o=n:findFirstChild("creator")if o~=nil then o.Parent=nil end end end function g(n,o,p)if(n~=p)then if(n.className=="Part")or(n.className=="Seat")then if(not n.Anchored)and(((o-n.Position)*Vector3.new(1,0,1)).magnitude<96)and(o.y<=n.Position.y+8)and(o.y>=n.Position.y-8)then delay((o-n.Position).magnitude/96,function()d(n)n.Velocity=((n.Position-o).unit+Vector3.new(0,0.5,0))*96+n.Velocity n.RotVelocity=n.RotVelocity+Vector3.new(n.Position.z-o.z,0,o.x-n.Position.x).unit*40 end)end elseif(n.className=="Model")or(n.className=="Hat")or(n.className=="Tool")or(n==workspace)then local q=n:GetChildren()for r=1,#q do g(q[r],o,p)end end end end function h()i=slash_damage local n=Instance.new("StringValue")n.Name="toolanim"n.Value="Slash"n.Parent=b wait(0.2)print("Blasting!")local o=c.CFrame*(Vector3.new(0,1.4,0)*c.Mesh.Scale)g(workspace,o,b.Parent)k.CFrame=CFrame.new(o)for p=1,29 do delay(p/30,function()k.Parent=nil k.Size=Vector3.new(0,0.4,0)+Vector3.new(6.4,0,6.4)*p k.Parent=b end)end delay(1,function()k.Parent=nil end)end b.Enabled=true function j()if not b.Enabled then return end b.Enabled=false local n=b.Parent local o=n.Humanoid if o==nil then print("Humanoid not found")return end c.Boom:Play()h()wait(0.5)b.Enabled=true end script.Parent.Activated:connect(j)
- end; function()
- a=nil b,c=nil,nil d=nil e,f=Instance.new("Weld"),Instance.new("Weld")g="none"script.Parent.Equipped:connect(function()a=game.Players:playerFromCharacter(script.Parent.Parent)local n=script.Parent.Parent b=n.Torso["Right Shoulder"]c=n.Torso["Left Shoulder"]d=n["Right Arm"].RightGrip b.Parent=nil c.Parent=nil e.Part0=n.Torso e.C0=CFrame.new(1.5,0.5,0)e.C1=CFrame.new(0,0.5,0)e.Part1=n["Right Arm"]e.Parent=n.Torso _G.R=e f.Part0=n.Torso f.C0=CFrame.new(-1.5,0.5,0)f.C1=CFrame.new(0,0.5,0)f.Part1=n["Left Arm"]f.Parent=n.Torso _G.L=f d.C0=CFrame.new(0,-1,0)*CFrame.fromEulerAnglesXYZ(-1,0,0)for o=0,1,0.05 do wait()e.C0=CFrame.new(1.5,0.5,0)*CFrame.fromEulerAnglesXYZ(1.3*o,0,-0.5*o)f.C0=CFrame.new(-1.5,0.5,0)*CFrame.fromEulerAnglesXYZ(1.7*o,0,0.8*o)f.C1=CFrame.new(-0.3*o,0.5+1.2*o,0)end end)script.Parent.Unequipped:connect(function()for n=1,0,-0.05 do wait()e.C0=CFrame.new(1.5,0.5,0)*CFrame.fromEulerAnglesXYZ(1.3*n,0,-0.5*n)f.C0=CFrame.new(-1.5,0.5,0)*CFrame.fromEulerAnglesXYZ(1.7*n,0,0.8*n)f.C1=CFrame.new(-0.3*n,0.5+1.2*n,0)end e.Parent=nil f.Parent=nil b.Parent=a.Character.Torso c.Parent=a.Character.Torso end)function h(n)local o=(n.Parent or game):FindFirstChild("Humanoid")if o then o.Sit=true wait()o.Jump=true o.Parent.Torso.Velocity=(CFrame.new(script.Parent.Handle.Position,o.Parent.Torso.Position).lookVector*100)+Vector3.new(0,30,0)o.Parent.Torso.RotVelocity=Vector3.new(math.random(-100,100),math.random(-100,100),math.random(-100,100))end end function i()for o=0,1,0.1 do if g~="homerun"then return end wait()e.C0=CFrame.new(1.5,0.5,0)*CFrame.fromEulerAnglesXYZ(1.3+1.2*o,-0.5*o,-0.5+o)f.C0=CFrame.new(-1.5+0.5*o,0.5,-0.5*o)*CFrame.fromEulerAnglesXYZ(1.7,0,0.8)end local n=script.Parent.Handle.Touched:connect(h)for o=0,1,0.2 do wait()e.C0=CFrame.new(1.5,0.5,0)*CFrame.fromEulerAnglesXYZ(2.5,-0.5-1.7*o,0.5+0.5*o)f.C0=CFrame.new(-1-0.5*o,0.5,-0.5+0.5*o)*CFrame.fromEulerAnglesXYZ(1.7,0,0.8-1.2*o)f.C1=CFrame.new(0,0.5-o,0)d.C0=CFrame.new(0,-1,0)*CFrame.fromEulerAnglesXYZ(-1-2*o,0,0)end for o=0,1,0.2 do wait()e.C0=CFrame.new(1.5,0.5,0)*CFrame.fromEulerAnglesXYZ(2.5,-2.2-0.6*o,1)end wait(0.1)n:disconnect()for o=0,1,0.1 do wait()e.C0=CFrame.new(1.5,0.5,0)*CFrame.fromEulerAnglesXYZ(2.5-1.2*o,-2.8+2.8*o,1-1.5*o)f.C0=CFrame.new(-1.5,0.5,0)*CFrame.fromEulerAnglesXYZ(1.7,0,-0.4+1.2*o)f.C1=CFrame.new(0,-0.5+o*2,0)d.C0=CFrame.new(0,-1,0)*CFrame.fromEulerAnglesXYZ(-3+2*o,0,0)end end function j()for n=0,1,0.2 do if g~="norm"then return end wait()e.C0=CFrame.new(1.5,0.5,0)*CFrame.fromEulerAnglesXYZ(1.3+n,0,-0.5+0.5*n)f.C0=CFrame.new(-1.5,0.5,0)*CFrame.fromEulerAnglesXYZ(1.7-0.25*n,0,0.8-0.6*n)end for n=0,1,0.25 do if g~="norm"then return end wait()e.C0=CFrame.new(1.5,0.5,0)*CFrame.fromEulerAnglesXYZ(2.3-2.5*n,0,0)f.C0=CFrame.new(-1.5,0.5,0)*CFrame.fromEulerAnglesXYZ(1.45-0.25*n,0,0.2)d.C0=CFrame.new(0,-1,0)*CFrame.fromEulerAnglesXYZ(-1-0.5*n,0,0)end for n,o in pairs(game.Players:GetChildren())do if o.Character:FindFirstChild("Torso")then if(o.Character.Torso.Position-(script.Parent.Handle.CFrame*CFrame.new(0,-3,0)).p).magnitude<10 then local p=script.Parent._CamShake:clone()p.Disabled=false p.Parent=o.Backpack if o~=a then o.Character.Humanoid.Sit=true delay(0.1,function()o.Character.Humanoid.Jump=true end)o.Character.Torso.RotVelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))end end end end for n=0,1,0.2 do if g~="norm"then return end wait()e.C0=CFrame.new(1.5,0.5,0)*CFrame.fromEulerAnglesXYZ(-0.2+1.5*n,0,-0.5*n)f.C0=CFrame.new(-1.5,0.5,0)*CFrame.fromEulerAnglesXYZ(1.2+0.5*n,0,0.2+0.6*n)d.C0=CFrame.new(0,-1,0)*CFrame.fromEulerAnglesXYZ(-1.5+0.5*n,0,0)end end local k=false local l=nil local m=0 script.Parent.MouseClick.Changed:connect(function()if time()-m<0.3 then g="homerun"m=time()i()else g="norm"m=time()j()end end)
- end; function()
- local a=game.Workspace.CurrentCamera for b=1,5 do wait()local c=a.CoordinateFrame-a.CoordinateFrame.p local d=(a.CoordinateFrame.p-a.Focus.p).magnitude local e=CFrame.new(a.Focus.p)*c*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/40,math.random(-10,10)/40,0)a.CoordinateFrame=e*CFrame.new(0,0,d)end script:remove()
- end; function()
- script.Parent.Equipped:connect(function(a)a.Button1Down:connect(function()script.Parent.MouseClick.Value=not script.Parent.MouseClick.Value end)end)
- end; function()
- a=1 b=3 c=nil d=0.75 e=45 f=0 g=0 h={}local k=1 function i(l)if c==nil then k=1 local m=Instance.new("Model")local n=script.Parent:GetChildren()for o=1,#n do if n[o].className=="Part"then h[k]=n[o].Transparency local p=n[o]:clone()p.Parent=m k=k+1 end end wait()if c==nil then local o=script:FindFirstChild("Weld2")if o~=nil then local p=o:clone()p.Disabled=false p.Parent=m m.Name=script.Parent.Name m.Parent=script.Parent.Parent c=m local q=c:FindFirstChild("Handle")if q~=nil then if a==1 then local r=c.Parent:FindFirstChild("Torso")if r~=nil then if b==1 then local s=Instance.new("Weld")s.Part0=r s.Parent=s.Part0 s.Part1=q s.C1=CFrame.new(d*-1,0.25+f,-0.75+g*-1)*CFrame.fromEulerAnglesXYZ(math.rad(e*-1),(math.pi/2),0)elseif b==2 then local s=Instance.new("Weld")s.Part0=r s.Parent=s.Part0 s.Part1=q s.C1=CFrame.new(d,0.25+f,-0.75+g*-1)*CFrame.fromEulerAnglesXYZ(math.rad(e*-1),(math.pi/2)*-1,0)elseif b==3 then local s=Instance.new("Weld")s.Part0=r s.Parent=s.Part0 s.Part1=q s.C1=CFrame.new(d*-1,-0.1+f,0.2+g*-1)*CFrame.fromEulerAnglesXYZ(math.rad(e),(math.pi/2),-1.5)elseif b==4 then local s=Instance.new("Weld")s.Part0=r s.Parent=s.Part0 s.Part1=q s.C1=CFrame.new(d,0.25+f,-0.75+g*-1)*CFrame.fromEulerAnglesXYZ(math.rad(e),(math.pi/2+e)*-1.1,1)end end elseif a==2 then local r=c.Parent:FindFirstChild("Torso")if r~=nil then if b==1 then local s=Instance.new("Weld")s.Part0=r s.Parent=s.Part0 s.Part1=q s.C1=CFrame.new(d*-1,0.25+f,-0.5+g*-1)*CFrame.fromEulerAnglesXYZ(math.rad(e*-1),math.pi/2,0)elseif b==2 then local s=Instance.new("Weld")s.Part0=r s.Parent=s.Part0 s.Part1=q s.C1=CFrame.new(d,0.25+f,-0.5+g*-1)*CFrame.fromEulerAnglesXYZ(math.rad(e*-1),math.pi/2*-1,0)elseif b==3 then local s=Instance.new("Weld")s.Part0=r s.Parent=s.Part0 s.Part1=q s.C1=CFrame.new(d*-1,0.25+f,-0.5+g*-1)*CFrame.fromEulerAnglesXYZ(math.rad(e),math.pi/2,0)elseif b==4 then local s=Instance.new("Weld")s.Part0=r s.Parent=s.Part0 s.Part1=q s.C1=CFrame.new(d,0.25+f,-0.5+g*-1)*CFrame.fromEulerAnglesXYZ(math.rad(e),math.pi/2*-1,0)end end elseif a==3 then local r=c.Parent:FindFirstChild("Left Leg")local s=c.Parent:FindFirstChild("Right Leg")if r~=nil and s~=nil then if b==1 then local t=Instance.new("Weld")t.Part0=s t.Parent=t.Part0 t.Part1=q t.C1=CFrame.new(d*-1,0+f,-0.25+g*-1)*CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)elseif b==2 then local t=Instance.new("Weld")t.Part0=r t.Parent=t.Part0 t.Part1=q t.C1=CFrame.new(d,0+f,-0.25+g*-1)*CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)elseif b==3 then local t=Instance.new("Weld")t.Part0=torso t.Parent=t.Part0 t.Part1=q t.C1=CFrame.new(d*-1,0+f,0.25+g)*CFrame.fromEulerAnglesXYZ(math.pi/2,math.pi/2,0)elseif b==4 then local t=Instance.new("Weld")t.Part0=torso t.Parent=t.Part0 t.Part1=q t.C1=CFrame.new(d,0+f,0.25+g)*CFrame.fromEulerAnglesXYZ(math.pi/2,math.pi/2*-1,0)end end elseif a==4 then local r=c.Parent:FindFirstChild("Left Leg")local s=c.Parent:FindFirstChild("Right Leg")local t=c.Parent:FindFirstChild("Torso")if r~=nil and s~=nil and t~=nil then if b==1 then local u=Instance.new("Weld")u.Part0=s u.Parent=u.Part0 u.Part1=q u.C1=CFrame.new(d*-1,0.15+f,-0.25+g*-1)*CFrame.fromEulerAnglesXYZ(math.pi,0,0)elseif b==2 then local u=Instance.new("Weld")u.Part0=r u.Parent=u.Part0 u.Part1=q u.C1=CFrame.new(d,0.15+f,-0.25+g*-1)*CFrame.fromEulerAnglesXYZ(math.pi,0,0)elseif b==3 then local u=Instance.new("Weld")u.Part0=t u.Parent=u.Part0 u.Part1=q u.C1=CFrame.new(d*-1,0+f,0.25+g)*CFrame.fromEulerAnglesXYZ(math.pi,math.pi/2,0)elseif b==4 then local u=Instance.new("Weld")u.Part0=t u.Parent=u.Part0 u.Part1=q u.C1=CFrame.new(d,0+f,0.25+g)*CFrame.fromEulerAnglesXYZ(math.pi,math.pi/2*-1,0)end end end end end end end if c~=nil then k=1 local m=c:GetChildren()for n=1,#m do if m[n].className=="Part"then m[n].Transparency=1 end end end end function j(l)if c~=nil then k=1 local m=c:GetChildren()for n=1,#m do if m[n].className=="Part"then m[n].Transparency=h[k]local o=true if o then o=false k=k+1 end end end end end script.Parent.Equipped:connect(i)script.Parent.Unequipped:connect(j)
- end; function()
- function a(f,g)local h=Instance.new("Weld")h.Part0=f h.Part1=g local i=CFrame.new(f.Position)local j=f.CFrame:inverse()*i local k=g.CFrame:inverse()*i h.C0=j h.C1=k h.Parent=f end function b(f)if f.className=="Part"then a(script.Parent.Handle,f)f.Anchored=false else local g=f:GetChildren()for h=1,#g do b(g[h])end end end local e=true if e then e=false b(script.Parent)end function c()script.Parent.Parent=nil end d=script.Parent.Parent:FindFirstChild("Humanoid")if d~=nil then d.Died:connect(c)end
- end;}local ActualScripts = {}
- function s(var)
- local func = table.remove(Scripts,1)
- setfenv(func,setmetatable({script=var},{
- __index = getfenv(func),
- }))
- table.insert(ActualScripts,coroutine.wrap(func))
- end
- local 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,
- 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 = {Locked="true",Anchored="true",UsePartColor="true"}
- else
- LastIns = inst(class)
- if LastIns:IsA"Script" then
- s(LastIns)
- end
- end
- local function SetProperty(LastIns,p,str,s)
- s = Types[typeof(LastIns[p])]
- LastIns[p] = s and s(unpack(split(str,comma))) or str
- 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,TextureId,Grip,GripPos,Color,Position,Orientation,Size,BottomSurface,TopSurface,SoundId,Volume,Scale,MeshId,MeshType,Texture,Face;Part,Tool,LocalScript,Sound,SpecialMesh,Decal,Script,BoolValue;Pa'
- ..'rt|Nuking bam hammer xD it can nuke|http://www.robfghflox.com/asset/?version=1&id=1280038|0,-1.3,0,1,0,-0,-0,1,0,0,0,1|0,-1.3,0|Local Gui|Handle|0.388,0.372,0.384|-50,0.499,152|0,180,-90|1,4,2|0|Boom|'
- ..'rbxasset://sounds/Rocket shot.wav|1|0.5,0.5,0.5|http://www.roblox.com/asset/?id=10604848|http://www.roblox.com/asset/?id=11770358|5|http://www.roblox.com/asset/?id=10605252|2|HammerScript|_Main|MouseC'
- ..'lick|_CamShake|_EVT|BackGun|Weld2;0;2|1:2|2:3|3:4|4:5;n;3|1:6;1|1:7|5:8|6:9|7:10|8:11|9:12|10:12|5:8|5:8;n;4|1:13|11:14|12:15;5|13:16|14:17|2:18|15:19;6|16:20|17:21;p;7|1:22;7|1:23;8|1:24;3|1:25;3|1:2'
- ..'6;3|1:27;n;3|1:28;p;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