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: 560
- local Scripts = { function()
- wait(1)a=2 b=25 c=2 d=script.Parent e=0 function f()print("hitting")local k=Instance.new("StringValue")k.Name="toolanim"k.Value="Slash"k.Parent=d end function g()if not d.Enabled then return end d.Enabled=false f()d.Enabled=true end function h(k)if e==0 then e=1 if k.Parent.Name=="Tree"then i=game.Players:findFirstChild(d.Parent.Name)k.Parent.hit.Value=k.Parent.hit.Value-a if k.Parent.hit.Value<1 and k.Parent.Timber.Value==0 then i.leaderstats.Money.Value=i.leaderstats.Money.Value+b k.Parent.Timber.Value=1 wait(c)else wait(1)end end e=0 end end d.Activated:connect(g)j=d.Handle.Touched:connect(h)
- end; function()
- local e=script.Parent function a(f)e.Key.Value=e.Key.Value..f end b=false function c(f)if f==nil then print("Mouse not found")return end f.Icon="rbxasset://textures\\GunCursor.png"e.Handle.BrickColor=game.Players:FindFirstChild(e.Parent.Name).TeamColor e.Key.Value=""f.KeyDown:connect(a)b=true while b do wait(0.02)e.Target.Value=f.Target e.Origin.Value=f.Origin.p end end function d(f)b=false wait(0.05)e.Target.Value=nil e.Origin.Value=Vector3.new(0,0,0)end e.Equipped:connect(c)e.Unequipped:connect(d)
- 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,CanBeDropped,Grip,GripPos,Position,Orientation,Size,BottomSurface,TopSurface,Scale,MeshId,TextureId,MeshType,Texture,Face;Part,Tool,SpecialMesh,Decal,StringValue,Vector3Value,Script,ObjectValue,L'
- ..'ocalScript;Part|Axe|0|0,-1,0,1,0,0,0,1,0,0,0,1|0,-1,0|Handle|46.5,0.099,3.599|0,-90,-90|0.2,3.2,1|0|1,0.699,0.699|rbxassetid://145815658|rbxassetid://235687506|5|http://www.roblox.com/asset/?id=414474'
- ..'768|3|Key|Origin|Target|Local Gui;0;2|1:2|2:3|3:4|4:5;n;1|1:6|5:7|6:8|7:9|8:10|9:10;n;3|10:11|11:12|12:13|13:14;4|14:15|15:16;p;5|1:17;6|1:18;7;8|1:19;9|1:20;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