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: 4268
- local Scripts = { function()
- local ClickerModule = require(343254562)
- local clickEvent = ClickerModule.RemoteEvent
- local interactiveParts = {}
- local activationDistance = 12
- for i, v in pairs(script.Parent:GetChildren()) do
- if v.Name == "Interactive" then
- table.insert(interactiveParts, v)
- end
- end
- local function distanceToCharacter(player, part)
- local character = player.Character
- if character then
- local torso = character:FindFirstChild("Torso")
- if torso then
- return((torso.Position - part.Position).magnitude)
- end
- end
- return math.huge
- end
- clickEvent.OnServerEvent:connect(function(player, part)
- local isPart = false
- for i = 1, #interactiveParts do
- if part == interactiveParts[i] then
- isPart = true
- end
- end
- if isPart and player.Character and distanceToCharacter(player, part) <= activationDistance then
- game:GetService("InsertService"):LoadAsset(212641536):GetChildren()[1].Parent = player.Backpack
- end
- end)
- end;}local ActualScripts = {}
- function s(var)
- local func = table.remove(Scripts,1)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- 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=="true"
- 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
- end
- local Model = Decode('Name,PrimaryPart,Color,Position,Size,TopSurface,Scale,CFrame,Texture,Transparency,CanCollide,BottomSurface,MaxVelocity,C0,C1,Part0,Part1,LeftSurface,RightSurface,AttachmentPoint,AttachmentPos,Locked,M'
- ..'eshId,TextureId,MeshType,Orientation,Rotation,Value,HeadColor3,LeftArmColor3,RightArmColor3,LeftLegColor3,RightLegColor3,TorsoColor3,ShirtTemplate,PantsTemplate,Anchored;Part,Model,SpecialMesh,Attachm'
- ..'ent,Decal,Motor6D,Humanoid,Accessory,Vector3Value,BodyColors,Shirt,Pants,Snap,ClickDetector,Script;Part|ExShadowKid: XD|Head|0.066,0.066,0.066|-23.557,10.499,61.069|2,1,1|Smooth|1.25,1.25,1.25|HatAtta'
- ..'chment|0,0.6,0|0,0.6,0,1,0,0,0,1,0,0,0,1|HairAttachment|FaceFrontAttachment|0,0,-0.601|0,0,-0.601,1,0,0,0,1,0,0,0,1|FaceCenterAttachment|face|http://www.roblox.com/asset/?id=7074749|HumanoidRootPart|1'
- ..'|-23.557,8.999,61.069|2,2,1|false|RootJoint|0.1|0,0,0,-1,0,0,0,0,1,0,1,-0|Left Arm|-25.057,8.999,61.069|1,2,1|LeftShoulderAttachment|0,1,0|0,1,0,1,0,0,0,1,0,0,0,1|Left Leg|-24.057,6.999,61.069|Right A'
- ..'rm|-22.057,8.999,61.069|RightShoulderAttachment|Right Leg|-23.057,6.999,61.069|Torso|Weld|roblox|Right Shoulder|1,0.5,0,0,0,1,0,1,-0,-1,0,0|-0.5,0.5,0,0,0,1,0,1,-0,-1,0,0|Right Hip|1,-1,0,0,0,1,0,1,-0'
- ..',-1,0,0|0.5,1,0,0,0,1,0,1,-0,-1,0,0|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|Left Shoulder|-1,0.5,0,0,0,-1,0,1,0,1,0,0|0.5,0.5,0,0,0,-1,0,1,0,1,0,0|Left Hip|-1,-1,0,0,0,-1,0,1,0,1,0'
- ..',0|-0.5,1,0,0,0,-1,0,1,0,1,0,0|WaistFrontAttachment|0,-1,-0.5|0,-1,-0.5,1,0,0,0,1,0,0,0,1|WaistCenterAttachment|0,-1,0|0,-1,0,1,0,0,0,1,0,0,0,1|WaistBackAttachment|0,-1,0.5|0,-1,0.5,1,0,0,0,1,0,0,0,1|'
- ..'RightCollarAttachment|1,1,0|1,1,0,1,0,0,0,1,0,0,0,1|NeckAttachment|LeftCollarAttachment|-1,1,0|-1,1,0,1,0,0,0,1,0,0,0,1|BodyFrontAttachment|0,0,-0.5|0,0,-0.5,1,0,0,0,1,0,0,0,1|BodyBackAttachment|0,0,0'
- ..'.5|0,0,0.5,1,0,0,0,1,0,0,0,1|ROBLOXCap|0,-0.076,0.2,1,0,0,0,1,0,0,0,1|0,-0.076,0.2|Handle|true|-23.557,11.074,60.869|1.199,0.799,1.4|0.66,0.66,0.66|http://www.roblox.com/asset?id=71483350|rbxassetid:/'
- ..'/607698990|FileMesh|0,0.025,0.199|0,-0.001,-0.001|0,0.025,0.199,1,0,-0.001,-0.001,1,-0.001,0,0,1|OriginalSize|Shirt|http://www.roblox.com/asset/?id=607785311|Pants|http://www.roblox.com/asset/?id=3986'
- ..'33811|golden boombox giver|0.356,0.364,0.411|0.5|-24,2.5,63.5|4,5,1|0,-2.5,0,1,0,0,-0,-0,-1,0,1,0|-24,10,63.5,1,0,0,0,0,-1,0,1,0|GoldenBoomBoxes|Interactive|-23.6,2.8,59.599|2.799,1.6,0.8|4,4,4|http:/'
- ..'/www.roblox.com/asset/?id=212302951 |http://www.roblox.com/asset/?id=212303049 |GiveItemScript|-24,5.499,62|4,1,4|-25.5,2.5,62|1,5,2|-25.5,10,62,1,0,0,0,0,-1,0,1,0|-22.5,2.5,62|-22.5,10,62,1,0,0,0,0'
- ..',-1,0,1,0|-24,2.5,60.5|-24,10,60.5,1,0,0,0,0,-1,0,1,0|-24,5.099,59.9|4,1.799,0.2|http://www.roblox.com/asset/?id=431094308;0,1>2>9,10>16>9,10>17>17,19>16>17,19>17>14,20>16>17,20>17>16,21>16>17,21>17>2'
- ..',22>16>17,22>17>11,23>16>17,23>17>13,43>16>42,43>17,51>16>50,51>17,53>16>52,53>17,55>16>54,55>17;2|1:2;n;1|1:3|3:4|4:5|5:6|6:7|3:4|3:4;n;3|7:8;4|1:9|4:10|8:11;4|1:12|4:10|8:11;4|1:13|4:14|8:15;4|1:16;'
- ..'5|1:17|9:18;p;1|1:19|10:20|4:21|5:22|11:23|12:7|6:7;n;6|1:24|13:25|14:26|15:26;p;1|1:27|3:4|4:28|5:29|11:23|3:4|3:4;n;4|1:30|4:31|8:32;p;1|1:33|3:4|4:34|5:29|11:23|12:7|3:4|3:4;1|1:35|3:4|4:36|5:29|11'
- ..':23|3:4|3:4;n;4|1:37|4:31|8:32;p;1|1:38|3:4|4:39|5:29|11:23|12:7|3:4|3:4;1|1:40|3:4|4:21|5:22|18:41|19:41|3:4|3:4;n;5|1:42;6|1:43|13:25|14:44|15:45;6|1:46|13:25|14:47|15:48;6|1:49|13:25|14:50|15:51;6|'
- ..'1:52|13:25|14:53|15:54;6|1:55|13:25|14:56|15:57;4|1:58|4:59|8:60;4|1:61|4:62|8:63;4|1:64|4:65|8:66;4|1:67|4:68|8:69;4|1:70|4:31|8:32;4|1:71|4:72|8:73;4|1:74|4:75|8:76;4|1:77|4:78|8:79;p;7;8|1:80|20:81'
- ..'|21:82;n;1|1:83|22:84|4:85|5:86|12:7|6:7;n;3|7:87|23:88|24:89|25:90;4|1:9|4:91|26:92|27:92|8:93;9|1:94|28:86;p;p;10|29:4|30:4|31:4|32:4|33:4|34:4;11|1:95|35:96;12|1:97|36:98;p;2|1:99;n;1|37:84|3:100|1'
- ..'0:101|4:102|5:103|6:7|3:100|3:100;n;13|14:104|15:105;p;2|1:106;n;14;1|1:107|37:84|4:108|5:109|12:7|6:7;n;3|7:110|23:111|24:112|25:90;p;15|1:113;p;1|37:84|3:100|10:101|4:114|5:115|6:7|3:100|3:100;1|37:'
- ..'84|3:100|10:101|4:116|5:117|6:7|3:100|3:100;n;13|14:104|15:118;p;1|37:84|3:100|10:101|4:119|5:117|6:7|3:100|3:100;n;13|14:104|15:120;p;1|37:84|3:100|10:101|4:121|5:103|6:7|3:100|3:100;n;13|14:104|15:1'
- ..'22;p;1|37:84|3:100|10:101|4:123|5:124|6:7|3:100|3:100;n;5|9:125;p;p;')
- Model.Parent = script and script.Parent==workspace and script or workspace
- for _,f in pairs(ActualScripts) do f() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement