Advertisement
AxeuerAlt

Untitled

Aug 2nd, 2019
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.40 KB | None | 0 0
  1. -- Converted using Mokiros's Model to Script plugin
  2. -- Converted string size: 1492
  3.  
  4. local Scripts = { function()
  5. local a=script:WaitForChild("ToolFolder")local b={"SwordOfDarkness"}local c={{Group=5075174,Rank=6}}game.Players.PlayerAdded:connect(function(d)for e=1,#c do if d:GetRankInGroup(c[e]["Group"])>=c[e]["Rank"]then for f=1,#b do if a:FindFirstChild(b[f])then local g=a:FindFirstChild(b[f]):Clone()g.Parent=game:GetService("StarterPack")wait(1)local h=game:GetService("StarterPack"):WaitForChild(b[f]):Clone()h.Parent=d.Backpack end end end end end)if a~=nil then a.Parent=game:GetService("ReplicatedStorage")end
  6. end; function()
  7.  
  8. end; function()
  9. a=script.Parent local d=true function b(e)d=true if e==nil then print("Mouse not found")return end while d do print("Setting Mouse to go")e.Icon="rbxasset://textures\\GunCursor.png"while a.Enabled and d do wait(0.01)end print("Setting Mouse to wait")e.Icon="rbxasset://textures\\GunWaitCursor.png"while not a.Enabled and d do wait(0.01)end end end function c()d=false end a.Equipped:connect(b)a.Unequipped:connect(c)
  10. end; function()
  11. function a(u,v)while u:FindFirstChild(v)==nil do print(v)wait()end return u:FindFirstChild(v)end local h=script.Parent local i=h.Handle local j local k local l local m h.Enabled=true local n=a(h,"Darken")local o=a(h,"DarkWeld")local p=a(i,"FirePart")local q=a(p,"DarkFire")local r=16 local s=game:GetService("Debris")local t function b(u)if u and u.Parent then local v=u.Parent:FindFirstChild("Humanoid")if u.Parent:IsA("Hat")then v=u.Parent.Parent:FindFirstChild("Humanoid")end if v and v~=m and m then v:TakeDamage(r)if q and q.Enabled==true then coroutine.resume(coroutine.create(function()if v and v.Parent and v.Parent:FindFirstChild("Torso")and not v.Parent.Torso:FindFirstChild("DarkFire")then local w=q:Clone()w.Parent=v.Parent:FindFirstChild("Torso")s:AddItem(w,4)local x=4 while x>0 do v:TakeDamage(5)x=x-1 wait(1.0)end end end))end end end end function c()local u={}t=game.Lighting.TimeOfDay for w in string.gmatch(game.Lighting.TimeOfDay,"%d+")do u[#u+1]=w end local v=u[1]if tonumber(v)<6 then v=v+24 end if tonumber(v)>18 and tonumber(v)<30 then r=28 q.Enabled=true else r=17 q.Enabled=false end if o then o.Parent=h end if q then q.Enabled=false end j=h.Parent k=game.Players:GetPlayerFromCharacter(j)m=j:FindFirstChild("Humanoid")l=j:FindFirstChild("Torso")end function d()if t then game.Lighting.TimeOfDay=t end end h.Equipped:connect(c)i.Touched:connect(b)function e()local u=Instance.new("Part")u.Parent=game.Workspace u.FormFactor=3 u.Anchored=true u.CanCollide=false u.Size=Vector3.new(1,0.2,1)u.Material=Enum.Material.Plastic u.BrickColor=BrickColor.new("Really black")u.Locked=true u.CFrame=CFrame.new(p.CFrame.p,Vector3.new(0,1,0))s:AddItem(u,3.0)f={}t=game.Lighting.TimeOfDay for C in string.gmatch(game.Lighting.TimeOfDay,"%d+")do f[#f+1]=C end local v=f[1]local w=f[2]local x=0 local y=0 local z=x-v/10 local A=y-w/10 while u.Size.Y<200 do u.Size=u.Size*Vector3.new(1,2,1)u.CFrame=CFrame.new(p.CFrame.p)*CFrame.new(0,0,-u.Size/2)wait(0.1)end local B=9 while B>0 do v=v+z w=w+A if v>0 then game.Lighting.TimeOfDay=v..":"..w..":".."00"end B=B-1 wait(0.1)end end function g()local u=30 while u>0 do if not game.Workspace:FindFirstChild("Wither")then u=0 end u=u-wait()wait()end end n.Changed:connect(function()local u=game.Workspace:FindFirstChild("Wither")local v=game.Workspace:FindFirstChild("Bloom")if n.Value==true and not u and m then q.Enabled=true r=29 m.WalkSpeed=0.0 u=Instance.new("BoolValue")u.Name="Wither"u.Parent=game.Workspace s:AddItem(u,30)e()m.WalkSpeed=21.0 if v then v:Destroy()end coroutine.resume(coroutine.create(g))wait(30)r=16 m.WalkSpeed=16.0 q.Enabled=false game.Lighting.TimeOfDay=t wait(15)n.Value=false else if not m then if n then n.Value=false end end end end)
  12. end; function()
  13. local a=script.Parent local b=a.Handle local c local d local e local f local g=game:GetService("Debris")local h local i local j local k local l local m=false local n=game.Workspace.CurrentCamera local o local p=false local function q(s)c=a.Parent d=game.Players:GetPlayerFromCharacter(c)e=c:FindFirstChild("Torso")f=c:FindFirstChild("Humanoid")s.Button1Down:connect(function()if p==false then m=true k=f:LoadAnimation(a.ChargeAnim)k:Play()local t=f.WalkSpeed while m do if game.Workspace:FindFirstChild("Wither")then f.WalkSpeed=math.min(f.WalkSpeed+0.1,50)end wait()end if k then k:Stop()end local u=(e.Position-n.CoordinateFrame.p).unit local v=(f.TargetPoint-n.CoordinateFrame.p).unit local w=math.abs(math.acos(u:Dot(v)))if w<0.5 then h=f:LoadAnimation(a.SlashAnim)h:Play()else i=f:LoadAnimation(a.StabAnim)i:Play()a.Grip=CFrame.new(0,0,-2,1,0,0,0,-1,0,0,0,-1)wait(1.3)a.Grip=CFrame.new(0,0,-2,0,0,1,1,0,0,0,1,0)end f.WalkSpeed=t else end end)s.Button1Up:connect(function()m=false if p==false then a.Enabled=false p=true wait(1.5)a.Enabled=true p=false end end)s.KeyDown:connect(function(t)t=t:lower()if t=="q"then o=a:FindFirstChild("Darken")if o and o.Value==false then p=true j=f:LoadAnimation(a.DarkenAnim)j:Play()wait(0.4)f.WalkSpeed=0.0 o.Value=true wait(2.0)p=false end end end)end local function r()if k then k:Stop()end if h then h:Stop()end if i then i:Stop()end if j then j:Stop()end p=false a.Grip=CFrame.new(0,0,-2,0,0,1,1,0,0,0,1,0)m=false f.WalkSpeed=16.0 end a.Equipped:connect(q)a.Unequipped:connect(r)
  14. end;}local ActualScripts = {}
  15. function s(var)
  16. local func = table.remove(Scripts,1)
  17. setfenv(func,setmetatable({script=var},{
  18. __index = getfenv(func),
  19. }))
  20. table.insert(ActualScripts,coroutine.wrap(func))
  21. end
  22.  
  23. local Decode = function(str,t,props,classes,values,ICList,Model,CurPar,LastIns,split,RemoveAndSplit,InstanceList)
  24. local tonum,table_remove,inst,parnt,comma,table_foreach = tonumber,table.remove,Instance.new,"Parent",",",
  25. function(t,f)
  26. for a,b in pairs(t) do
  27. f(a,b)
  28. end
  29. end
  30. local Types = {
  31. Color3 = Color3.new,
  32. Vector3 = Vector3.new,
  33. Vector2 = Vector2.new,
  34. UDim = UDim.new,
  35. UDim2 = UDim2.new,
  36. CFrame = CFrame.new,
  37. Rect = Rect.new,
  38. NumberRange = NumberRange.new,
  39. NumberSequence = function(...)
  40. local a = {...}
  41. local t = {}
  42. repeat
  43. t[#t+1] = NumberSequenceKeypoint.new(table_remove(a,1),table_remove(a,1),table_remove(a,1))
  44. until #a==0
  45. return NumberSequence.new(t)
  46. end,
  47. ColorSequence = function(...)
  48. local a = {...}
  49. local t = {}
  50. repeat
  51. t[#t+1] = ColorSequenceKeypoint.new(table_remove(a,1),Color3.new(table_remove(a,1),table_remove(a,1),table_remove(a,1)))
  52. until #a==0
  53. return ColorSequence.new(t)
  54. end,
  55. number = tonumber,
  56. boolean = function(a)
  57. return a=="1"
  58. end
  59. }
  60. split = function(str,sep)
  61. if not str then return end
  62. local fields = {}
  63. local ConcatNext = false
  64. str:gsub(("([^%s]+)"):format(sep),function(c)
  65. if ConcatNext == true then
  66. fields[#fields] = fields[#fields]..sep..c
  67. ConcatNext = false
  68. else
  69. fields[#fields+1] = c
  70. end
  71. if c:sub(#c)=="\\" then
  72. c = fields[#fields]
  73. fields[#fields] = c:sub(1,#c-1)
  74. ConcatNext = true
  75. end
  76. end)
  77. return fields
  78. end
  79. RemoveAndSplit = function(t)
  80. return split(table_remove(t,1),comma)
  81. end
  82. t = split(str,";")
  83. props = RemoveAndSplit(t)
  84. classes = RemoveAndSplit(t)
  85. values = split(table_remove(t,1),'|')
  86. ICList = RemoveAndSplit(t)
  87. InstanceList = {}
  88. Model = inst"Model"
  89. CurPar = Model
  90. table_foreach(t,function(ct,c)
  91. if c=="n" or c=="p" then
  92. CurPar = c=="n" and LastIns or CurPar[parnt]
  93. else
  94. ct = split(c,"|")
  95. local class = classes[tonum(table_remove(ct,1))]
  96. if class=="UnionOperation" then
  97. LastIns = {Locked="true",Anchored="true",UsePartColor="true"}
  98. else
  99. LastIns = inst(class)
  100. if LastIns:IsA"Script" then
  101. s(LastIns)
  102. end
  103. end
  104.  
  105. local function SetProperty(LastIns,p,str,s)
  106. s = Types[typeof(LastIns[p])]
  107. LastIns[p] = s and s(unpack(split(str,comma))) or str
  108. end
  109.  
  110. local UnionData
  111. table_foreach(ct,function(s,p,a,str)
  112. a = p:find":"
  113. p,str = props[tonum(p:sub(1,a-1))],values[tonum(p:sub(a+1))]
  114. if p=="UnionData" then
  115. UnionData = split(str," ")
  116. return
  117. end
  118. if class=="UnionOperation" then
  119. LastIns[p] = str
  120. return
  121. end
  122. SetProperty(LastIns,p,str)
  123. end)
  124.  
  125. if UnionData then
  126. local LI_Data = LastIns
  127. LastIns = DecodeUnion(UnionData)
  128. table_foreach(LI_Data,function(p,str)
  129. SetProperty(LastIns,p,str)
  130. end)
  131. end
  132. table.insert(InstanceList,LastIns)
  133. LastIns[parnt] = CurPar
  134. end
  135. end)
  136. table_remove(ICList,1)
  137. table_foreach(ICList,function(a,b)
  138. b = split(b,">")
  139. InstanceList[tonum(b[1])][props[tonum(b[2])]] = InstanceList[tonum(b[3])]
  140. end)
  141.  
  142. return Model:GetChildren()
  143. end
  144.  
  145. local Objects = Decode('Name,TextureId,Grip,GripPos,GripForward,GripRight,GripUp,Locked,Color,Material,Position,Orientation,Velocity,Size,BottomSurface,TopSurface,MeshId,MeshType,SoundId,Transparency,Heat,SecondaryColor,Anim'
  146. ..'ationId,C1,Part0,Part1;Part,Model,Script,Folder,Tool,SpecialMesh,Sound,Fire,LocalScript,Animation,Weld,BoolValue;Part|OOF|Group and rank tool script|Instructions|ToolFolder|SwordOfDarkness|http://www.'
  147. ..'roblox.com/asset/?id=77241917|0,0,-2,0,0,1,1,0,0,0,1,0|0,0,-2|-1,-0,-0|0,1,0|0,0,1|Handle|1|0.388,0.372,0.384|816|-10.3,2.309,7.799|-90,0,0|-0.001,0.001,-0.001|0.55,0.3,4.619|0|http://www.roblox.com/a'
  148. ..'sset/?id=77241866|http://www.roblox.com/asset/?id=77241892|5|SlashSound|http://www.roblox.com/asset/?id=62337944 |FirePart|-10.3,1.909,7.799|-0.004,0.001,0|0.2,0.2,0.2|DarkFire|0,0,0|2.2|25|0.16,0.16,'
  149. ..'0.16|Local Gui|SwordScript|AnimateScript|StabAnim|http://www.roblox.com/Asset?ID=77319318|DarkWeld|0,0.4,0,1,-0.001,0,-0.001,-0.001,1,-0.001,-1,-0.001|ChargeAnim|http://www.roblox.com/Asset?ID=7732091'
  150. ..'7|Darken|DarkenAnim|http://www.roblox.com/Asset?ID=77329203|SlashAnim|http://www.roblox.com/Asset?ID=54584713;0,15>25>6,15>26>9;2|1:2;n;3|1:3;n;3|1:4;4|1:5;n;5|1:6|2:7|3:8|4:9|5:10|6:11|7:12;n;1|1:13|'
  151. ..'8:14|9:15|10:16|11:17|12:18|13:19|14:20|15:21|16:21|9:15|9:15;n;6|17:22|2:23|18:24;7|1:25|19:26;1|1:27|20:14|11:28|13:29|14:30|15:21|16:21;n;8|1:31|9:32|14:33|21:34|22:35|9:32|9:32;p;p;9|1:36;3|1:37;9'
  152. ..'|1:38;10|1:39|23:40;11|1:41|24:42;10|1:43|23:44;12|1:45;10|1:46|23:47;10|1:48|23:49;p;p;p;p;')
  153. for _,Object in pairs(Objects) do
  154. Object.Parent = script and script.Parent==workspace and script or workspace
  155. end
  156. for _,f in pairs(ActualScripts) do f() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement