Advertisement
AxeuerAlt

Untitled

Aug 2nd, 2019
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.87 KB | None | 0 0
  1. -- Converted using Mokiros's Model to Script plugin
  2. -- Converted string size: 1653
  3.  
  4. local Scripts = { function()
  5. a=game:service("RunService")local p=20 local q=game:GetService("Debris")b=script.Parent.Handle c=script.Parent local r=nil local s=Instance.new("Sound")s.SoundId="http://www.roblox.com/asset/?id=31758934"s.Parent=b s.Volume=.7 local t=Instance.new("Sound")t.SoundId="http://www.roblox.com/asset/?id=31758956"t.Parent=b t.Volume=.6 local u=Instance.new("Sound")u.SoundId="http://www.roblox.com/asset/?id=31758982"u.Parent=b u.Volume=1 function d(x)local y=x.Parent.Torso:GetChildren()for z=1,#y do if y[z].className=="Fire"then return false end end if c.Handle:FindFirstChild("Fire")~=nil then local z=c.Handle.Fire:clone()z.Parent=x.Parent.Torso q:AddItem(z,10)end end function e(x)local y=x:GetChildren()for z=1,#y do if y[z].className=="Fire"then y[z]:remove()end end end local v=false function f(x)if x.Parent==nil then return end local y=x.Parent:findFirstChild("Humanoid")local z=c.Parent local A=game.Players:playerFromCharacter(z)local B=z:findFirstChild("Humanoid")if y~=nil and y~=B and B~=nil then local C=z:FindFirstChild("Right Arm")if(C~=nil)then local D=C:FindFirstChild("RightGrip")if(D~=nil and(D.Part0==b or D.Part1==b))and v==false then v=true g(y,A)y:TakeDamage(p)e(x)d(y)wait(1)h(y)v=false end end end end function g(x,y)local z=Instance.new("ObjectValue")z.Value=y z.Name="creator"z.Parent=x end function h(x)if x~=nil then local y=x:findFirstChild("creator")if y~=nil then y.Parent=nil end end end function i()local x=math.random(1,2)if x==1 then s:play()else t:play()end end function j()c.Lunge.Value=true wait(0.2)local x=game:GetService("InsertService"):LoadAsset(31518609)local y=x:GetChildren()if#y==0 then x:Remove()return end u:Play()x=x:FindFirstChild("Fireball")x.Position=c.Handle.Position+r.Parent.Torso.CFrame.lookVector*5 x.Velocity=(r.TargetPoint-c.Parent.Head.Position).unit*100 x.Parent=game.Workspace x.Locked=true local z=c.FireballScript:clone()z.Parent=x z.Disabled=false local A=c.ColorScript:clone()A.Parent=x A.Disabled=false local B=Instance.new("BodyForce")B.force=Vector3.new(0,x:GetMass()*187,0)B.Parent=x local C=Instance.new("BodyGyro")C.cframe=x.CFrame C.P=10000 C.D=1000 C.maxTorque=Vector3.new(1,1,1)*C.P C.Parent=x q:AddItem(x,10)wait(.6)end c.Enabled=true local w=-5 function k()if not c.Enabled then return end c.Enabled=false local x=c.Parent local y=x.Humanoid if y==nil then print("Humanoid not found")return end l=a.Stepped:wait()if(l-w<.2)then j()else i()end w=l wait(.1)c.Enabled=true end function m()r=c.Parent:FindFirstChild("Humanoid")b.Sound:Play()b.Fire.Enabled=true end function n()b.Fire.Enabled=true end script.Parent.Activated:connect(k)script.Parent.Equipped:connect(m)script.Parent.Unequipped:connect(n)o=b.Touched:connect(f)
  6. end; function()
  7. local e=script.Parent local f=nil local g=nil local h=nil local i=nil a=true function b(j)if not a then return end a=false wait()if e.Lunge.Value==true then i.Jump=true g:Play()wait(0.8)e.Lunge.Value=false else local k=math.random(2,3)if k==2 then f:Play()else h:Play()end end a=true end function c(j)if j==nil then print("Mouse not found")return end j.Icon="rbxasset://textures\\GunCursor.png"j.Button1Down:connect(function()b(j)end)i=e.Parent:FindFirstChild("Humanoid")f=i:LoadAnimation(e.twohandswordwithswingout)g=i:LoadAnimation(e.swordswingjump)h=i:LoadAnimation(e.swordthrust)end function d()f:remove()g:remove()h:remove()end e.Equipped:connect(c)e.Unequipped:connect(d)
  8. end; function()
  9. local b=script.Parent local c=game:GetService("Debris")local d=Instance.new("Part")d.Transparency=1 d.Shape=0 d.formFactor=0 d.Size=Vector3.new(0,0,0)d.TopSurface=0 d.BottomSurface=0 d.Locked=true local e=Instance.new("Fire")e.Color=Color3.new(1,160/255,51/255)e.Size=2 e.Parent=d local f=Instance.new("BodyForce")f.force=Vector3.new(0,90,0)f.Parent=d function a()for h=1,5 do local i=d:clone()i.Position=b.Position i.Velocity=Vector3.new(math.random(-20,20),math.random(10,25),math.random(-20,20))i.Parent=game.Workspace c:AddItem(i,2)end end local g=false b.Touched:connect(function(h)local i=h.Parent:FindFirstChild("Humanoid")if i~=nil and g==false then script.Parent=i.Parent g=true a()local j=b.Fire:clone()b.Fire:remove()j.Parent=h c:AddItem(j,10)b:remove()for k=1,100 do if j.Enabled==true then i:TakeDamage(0.59)end wait(0.1)end script:remove()g=false end end)
  10. end; function()
  11. while true do script.Parent.Fire.Color=Color3.new(math.random(),math.random(),math.random())script.Parent.Fire.SecondaryColor=Color3.new(math.random(),math.random(),math.random())break end script.Parent.Touched:connect(ontouch)
  12. end;}local ActualScripts = {}
  13. function s(var)
  14. local func = table.remove(Scripts,1)
  15. setfenv(func,setmetatable({script=var},{
  16. __index = getfenv(func),
  17. }))
  18. table.insert(ActualScripts,coroutine.wrap(func))
  19. end
  20.  
  21. local Decode = function(str,t,props,classes,values,ICList,Model,CurPar,LastIns,split,RemoveAndSplit,InstanceList)
  22. local tonum,table_remove,inst,parnt,comma,table_foreach = tonumber,table.remove,Instance.new,"Parent",",",
  23. function(t,f)
  24. for a,b in pairs(t) do
  25. f(a,b)
  26. end
  27. end
  28. local Types = {
  29. Color3 = Color3.new,
  30. Vector3 = Vector3.new,
  31. Vector2 = Vector2.new,
  32. UDim = UDim.new,
  33. UDim2 = UDim2.new,
  34. CFrame = CFrame.new,
  35. Rect = Rect.new,
  36. NumberRange = NumberRange.new,
  37. NumberSequence = function(...)
  38. local a = {...}
  39. local t = {}
  40. repeat
  41. t[#t+1] = NumberSequenceKeypoint.new(table_remove(a,1),table_remove(a,1),table_remove(a,1))
  42. until #a==0
  43. return NumberSequence.new(t)
  44. end,
  45. ColorSequence = function(...)
  46. local a = {...}
  47. local t = {}
  48. repeat
  49. t[#t+1] = ColorSequenceKeypoint.new(table_remove(a,1),Color3.new(table_remove(a,1),table_remove(a,1),table_remove(a,1)))
  50. until #a==0
  51. return ColorSequence.new(t)
  52. end,
  53. number = tonumber,
  54. boolean = function(a)
  55. return a=="1"
  56. end
  57. }
  58. split = function(str,sep)
  59. if not str then return end
  60. local fields = {}
  61. local ConcatNext = false
  62. str:gsub(("([^%s]+)"):format(sep),function(c)
  63. if ConcatNext == true then
  64. fields[#fields] = fields[#fields]..sep..c
  65. ConcatNext = false
  66. else
  67. fields[#fields+1] = c
  68. end
  69. if c:sub(#c)=="\\" then
  70. c = fields[#fields]
  71. fields[#fields] = c:sub(1,#c-1)
  72. ConcatNext = true
  73. end
  74. end)
  75. return fields
  76. end
  77. RemoveAndSplit = function(t)
  78. return split(table_remove(t,1),comma)
  79. end
  80. t = split(str,";")
  81. props = RemoveAndSplit(t)
  82. classes = RemoveAndSplit(t)
  83. values = split(table_remove(t,1),'|')
  84. ICList = RemoveAndSplit(t)
  85. InstanceList = {}
  86. Model = inst"Model"
  87. CurPar = Model
  88. table_foreach(t,function(ct,c)
  89. if c=="n" or c=="p" then
  90. CurPar = c=="n" and LastIns or CurPar[parnt]
  91. else
  92. ct = split(c,"|")
  93. local class = classes[tonum(table_remove(ct,1))]
  94. if class=="UnionOperation" then
  95. LastIns = {Locked="true",Anchored="true",UsePartColor="true"}
  96. else
  97. LastIns = inst(class)
  98. if LastIns:IsA"Script" then
  99. s(LastIns)
  100. end
  101. end
  102.  
  103. local function SetProperty(LastIns,p,str,s)
  104. s = Types[typeof(LastIns[p])]
  105. LastIns[p] = s and s(unpack(split(str,comma))) or str
  106. end
  107.  
  108. local UnionData
  109. table_foreach(ct,function(s,p,a,str)
  110. a = p:find":"
  111. p,str = props[tonum(p:sub(1,a-1))],values[tonum(p:sub(a+1))]
  112. if p=="UnionData" then
  113. UnionData = split(str," ")
  114. return
  115. end
  116. if class=="UnionOperation" then
  117. LastIns[p] = str
  118. return
  119. end
  120. SetProperty(LastIns,p,str)
  121. end)
  122.  
  123. if UnionData then
  124. local LI_Data = LastIns
  125. LastIns = DecodeUnion(UnionData)
  126. table_foreach(LI_Data,function(p,str)
  127. SetProperty(LastIns,p,str)
  128. end)
  129. end
  130. table.insert(InstanceList,LastIns)
  131. LastIns[parnt] = CurPar
  132. end
  133. end)
  134. table_remove(ICList,1)
  135. table_foreach(ICList,function(a,b)
  136. b = split(b,">")
  137. InstanceList[tonum(b[1])][props[tonum(b[2])]] = InstanceList[tonum(b[3])]
  138. end)
  139.  
  140. return Model:GetChildren()
  141. end
  142.  
  143. local Objects = Decode('Name,TextureId,Grip,GripPos,Color,Position,Size,BottomSurface,TopSurface,Looped,SoundId,Volume,C0,C1,Scale,MeshId,MeshType,SecondaryColor,AnimationId;Part,Tool,Script,Sound,Weld,SpecialMesh,Fire,Local'
  144. ..'Script,Animation,BoolValue;Part|ElementalSword|http://www.roblox.com/asset/?id=31758193|0,-2.8,0,1,0,0,0,1,0,0,0,1|0,-2.8,0|FireSwordScript|Handle|0.388,0.372,0.384|-19.432,2.999,4.95|1,6,1|0|1|http:/'
  145. ..'/www.roblox.com/asset/?id=31760113|0.3|http://www.roblox.com/asset/?id=31758934|0.699|http://www.roblox.com/asset/?id=31758956|0.6|http://www.roblox.com/asset/?id=31758982|Handle-to-Part Weld|0.5,-3,0'
  146. ..'.5,1,0,0,0,0,-1,-0,1,0|1,1.2,-13,0,1,0,0,0,-1,-1,0,0|0.4,0.4,0.4|http://www.roblox.com/asset/?id=31758253|http://www.roblox.com/asset/?id=32933095|5|0.2,0.4,1|3|0.4,0.611,1|0,0.807,0|3.2|0,0.607,0|1,0'
  147. ..'.4,0|3.5|1,0,0|Local Gui|swordswingjump|http://www.roblox.com/Asset?ID=32659699|swordthrust|http://www.roblox.com/Asset?ID=32659703|twohandswordwithswingout|http://www.roblox.com/Asset?ID=32659706|Lun'
  148. ..'ge|FireballScript|ColorScript;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:11|5:8|5:8;n;4|10:12|11:13|12:14;4|11:15|12:16;4|11:17|12:18;4|11:19|12:12;5|1:20|13:21|14:22;4|11:15|12:16;4|11:17|'
  149. ..'12:18;4|11:19|12:12;4|11:15|12:16;4|11:17|12:18;4|11:19|12:12;6|15:23|16:24|2:25|17:26;4|11:19|12:12;7|5:27|7:28|18:29|5:27|5:27;4|11:17|12:18;4|11:15|12:16;4|11:17|12:18;4|11:19|12:12;4|11:15|12:16;4'
  150. ..'|11:17|12:18;4|11:19|12:12;4|11:15|12:16;7|5:30|7:31|18:32|5:30|5:30;7|5:33|7:34|18:35|5:33|5:33;4|11:15|12:16;4|11:17|12:18;4|11:19|12:12;4|11:15|12:16;4|11:17|12:18;4|11:19|12:12;p;8|1:36;9|1:37|19:'
  151. ..'38;9|1:39|19:40;9|1:41|19:42;10|1:43;3|1:44;3|1:45;p;')
  152. for _,Object in pairs(Objects) do
  153. Object.Parent = script and script.Parent==workspace and script or workspace
  154. end
  155. for _,f in pairs(ActualScripts) do f() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement