SHOW:
|
|
- or go back to the newest paste.
1 | --Converted with ttyyuu12345's model to script plugin v4 | |
2 | function sandbox(var,func) | |
3 | local env = getfenv(func) | |
4 | local newenv = setmetatable({},{ | |
5 | __index = function(self,k) | |
6 | if k=="script" then | |
7 | return var | |
8 | else | |
9 | return env[k] | |
10 | end | |
11 | end, | |
12 | }) | |
13 | setfenv(func,newenv) | |
14 | return func | |
15 | end | |
16 | cors = {} | |
17 | mas = Instance.new("Model",game:GetService("Lighting")) | |
18 | ScreenGui0 = Instance.new("ScreenGui") | |
19 | LocalScript1 = Instance.new("LocalScript") | |
20 | Sound2 = Instance.new("Sound") | |
21 | Sound3 = Instance.new("Sound") | |
22 | Sound4 = Instance.new("Sound") | |
23 | Animation5 = Instance.new("Animation") | |
24 | Animation6 = Instance.new("Animation") | |
25 | Frame7 = Instance.new("Frame") | |
26 | Frame8 = Instance.new("Frame") | |
27 | TextButton9 = Instance.new("TextButton") | |
28 | LocalScript10 = Instance.new("LocalScript") | |
29 | TextButton11 = Instance.new("TextButton") | |
30 | Model12 = Instance.new("Model") | |
31 | Script13 = Instance.new("Script") | |
32 | ScreenGui0.Name = "Antman" | |
33 | ScreenGui0.Parent = mas | |
34 | LocalScript1.Name = "SyringeScript" | |
35 | LocalScript1.Parent = ScreenGui0 | |
36 | table.insert(cors,sandbox(LocalScript1,function() | |
37 | -- Made By SolarCrane | |
38 | wait(5) | |
39 | player=game.Players.LocalPlayer | |
40 | Char=player.Character | |
41 | alphaframe=script.Parent:WaitForChild('Frame1') | |
42 | gui=alphaframe.Frame2.TextButton | |
43 | model=Instance.new('Model') | |
44 | model.Name='LimbCloneBin' | |
45 | model.Parent=Char | |
46 | -- Waits for the child of the specified parent | |
47 | ||
48 | ||
49 | -- This may be less typing if we made this a table index by their part names | |
50 | ||
51 | local Tool = script.Parent | |
52 | local Handle = script | |
53 | ||
54 | local MyHumanoid | |
55 | local MyCharacter | |
56 | ||
57 | local PlayersService = Game:GetService('Players') | |
58 | ||
59 | local InjectTrack | |
60 | local EnrageTrack | |
61 | ||
62 | local InjectSound | |
63 | local EnrageSound | |
64 | local SwooshSound | |
65 | ||
66 | ||
67 | ||
68 | local function ParseBodyPartEnum(bodyPartName) | |
69 | local result = Enum.BodyPart.Head | |
70 | if bodyPartName == "Left Arm" then | |
71 | result = Enum.BodyPart.LeftArm | |
72 | elseif bodyPartName == "Right Arm" then | |
73 | result = Enum.BodyPart.RightArm | |
74 | elseif bodyPartName == "Left Leg" then | |
75 | result = Enum.BodyPart.LeftLeg | |
76 | elseif bodyPartName == "Right Leg" then | |
77 | result = Enum.BodyPart.RightLeg | |
78 | elseif bodyPartName == "Torso" then | |
79 | result = Enum.BodyPart.Torso | |
80 | end | |
81 | return result | |
82 | end | |
83 | ||
84 | ||
85 | ||
86 | function FadeEffect() | |
87 | ct=Char.Torso:Clone() | |
88 | ct.BrickColor=BrickColor.new(gui.TextColor3) | |
89 | ct.Material=Enum.Material.Neon | |
90 | ct:ClearAllChildren() | |
91 | ct.CanCollide=false | |
92 | ct.Transparency=.9 | |
93 | ct.Anchored=true | |
94 | ct.Parent=workspace | |
95 | game.Debris:AddItem(ct,.25) | |
96 | ch=Char.Head:Clone() | |
97 | ch.BrickColor=BrickColor.new(gui.TextColor3) | |
98 | ch.Material=Enum.Material.Neon | |
99 | ch:ClearAllChildren() | |
100 | ch.CanCollide=false | |
101 | ch.Transparency=.9 | |
102 | ch.Anchored=true | |
103 | ch.Parent=workspace | |
104 | game.Debris:AddItem(ch,.25) | |
105 | cll=Char['Left Leg']:Clone() | |
106 | cll.BrickColor=BrickColor.new(gui.TextColor3) | |
107 | cll.Material=Enum.Material.Neon | |
108 | cll:ClearAllChildren() | |
109 | cll.CanCollide=false | |
110 | cll.Transparency=.9 | |
111 | cll.Anchored=true | |
112 | cll.Parent=workspace | |
113 | game.Debris:AddItem(cll,.25) | |
114 | crl=Char['Right Leg']:Clone() | |
115 | crl.BrickColor=BrickColor.new(gui.TextColor3) | |
116 | crl.Material=Enum.Material.Neon | |
117 | crl:ClearAllChildren() | |
118 | crl.CanCollide=false | |
119 | crl.Transparency=.9 | |
120 | crl.Anchored=true | |
121 | crl.Parent=workspace | |
122 | game.Debris:AddItem(crl,.25) | |
123 | cla=Char['Left Arm']:Clone() | |
124 | cla.Material=Enum.Material.Neon | |
125 | cla.BrickColor=BrickColor.new(gui.TextColor3) | |
126 | cla:ClearAllChildren() | |
127 | cla.CanCollide=false | |
128 | cla.Transparency=.9 | |
129 | cla.Anchored=true | |
130 | cla.Parent=workspace | |
131 | game.Debris:AddItem(cla,.25) | |
132 | cra=Char['Right Arm']:Clone() | |
133 | cra.Material=Enum.Material.Neon | |
134 | cra.BrickColor=BrickColor.new(gui.TextColor3) | |
135 | cra:ClearAllChildren() | |
136 | cra.CanCollide=false | |
137 | cra.Transparency=.9 | |
138 | cra.Anchored=true | |
139 | cra.Parent=workspace | |
140 | game.Debris:AddItem(cra,.1) | |
141 | end | |
142 | ||
143 | -------------------------------- AWESOME CODE EXCEPT FROM HOTTHOTH COMMANDS; MORE TO COME ------------------------- | |
144 | ||
145 | local foundObjectList = {} | |
146 | local foundObjectIndex = 1 | |
147 | local function findObjectHelper(model, objectName, className, listOfFoundObjects) | |
148 | if not model then return end | |
149 | local findStart, findEnd = string.find(model.Name, objectName) | |
150 | if findStart == 1 and findEnd == #(model.Name) then -- must match entire name | |
151 | if not className or model.className == className or (pcall(model.IsA, model, className) and model:IsA(className)) then | |
152 | table.insert(listOfFoundObjects, model) | |
153 | end | |
154 | end | |
155 | if pcall(model.GetChildren, model) then | |
156 | local modelChildren = model:GetChildren() | |
157 | for i = 1, #modelChildren do | |
158 | -- make sure not to resize tools, things tend to get complicated if we do | |
159 | findObjectHelper(modelChildren[i], objectName, className, listOfFoundObjects) | |
160 | end | |
161 | end | |
162 | end | |
163 | ||
164 | local function resizeModelInternal(model, resizeFactor) | |
165 | local modelCFrame = model:GetModelCFrame() | |
166 | local modelSize = model:GetModelSize() | |
167 | local baseParts = {} | |
168 | local basePartCFrames = {} | |
169 | local joints = {} | |
170 | local jointParents = {} | |
171 | local meshes = {} | |
172 | ||
173 | findObjectHelper(model, ".*", "BasePart", baseParts) | |
174 | findObjectHelper(model, ".*", "JointInstance", joints) | |
175 | ||
176 | -- meshes don't inherit from anything accessible? | |
177 | findObjectHelper(model, ".*", "FileMesh", meshes) -- base class for SpecialMesh and FileMesh | |
178 | findObjectHelper(model, ".*", "CylinderMesh", meshes) | |
179 | findObjectHelper(model, ".*", "BlockMesh", meshes) | |
180 | ||
181 | -- store the CFrames, so our other changes don't rearrange stuff | |
182 | for _, basePart in pairs(baseParts) do | |
183 | basePartCFrames[basePart] = basePart.CFrame | |
184 | end | |
185 | ||
186 | -- scale meshes | |
187 | for _,mesh in pairs(meshes) do | |
188 | -- This is a nasty hack because head meshes scale relative to the part's size | |
189 | -- thus scaling the mesh and the head gives u 2x the size | |
190 | if mesh.Parent.Name ~= "Head" then | |
191 | mesh.Scale = mesh.Scale * resizeFactor | |
192 | end | |
193 | end | |
194 | ||
195 | -- scale joints | |
196 | for _, joint in pairs(joints) do | |
197 | joint.C0 = joint.C0 + (joint.C0.p) * (resizeFactor - 1) | |
198 | joint.C1 = joint.C1 + (joint.C1.p) * (resizeFactor - 1) | |
199 | jointParents[joint] = joint.Parent | |
200 | end | |
201 | ||
202 | -- scale parts and reposition them within the model | |
203 | for _, basePart in pairs(baseParts) do | |
204 | if pcall(function() basePart.FormFactor = "Custom" end) then basePart.FormFactor = "Custom" end | |
205 | basePart.Size = basePart.Size * resizeFactor | |
206 | local oldCFrame = basePartCFrames[basePart] | |
207 | local oldPositionInModel = modelCFrame:pointToObjectSpace(oldCFrame.p) | |
208 | local distanceFromCorner = oldPositionInModel + modelSize/2 | |
209 | distanceFromCorner = distanceFromCorner * resizeFactor | |
210 | ||
211 | local newPositionInSpace = modelCFrame:pointToWorldSpace(distanceFromCorner - modelSize/2) | |
212 | basePart.CFrame = oldCFrame - oldCFrame.p + newPositionInSpace | |
213 | end | |
214 | ||
215 | -- pop the joints back, because they prolly got borked | |
216 | for _, joint in pairs(joints) do | |
217 | joint.Parent = jointParents[joint] | |
218 | end | |
219 | ||
220 | return model | |
221 | end | |
222 | ||
223 | local function resizeImplementation(modelList, resizeFactor) | |
224 | if type(modelList) ~= "table" then modelList = {modelList} end | |
225 | ||
226 | for _, model in pairs(modelList) do | |
227 | --if model.Name ~= "BackPack" then | |
228 | resizeModelInternal(model, resizeFactor) | |
229 | -- end | |
230 | end | |
231 | return modelList | |
232 | end | |
233 | ||
234 | ------------------------------------------------------------------------------------------------------------------ | |
235 | local attacking = false | |
236 | local HitCharacters = {} | |
237 | ||
238 | ||
239 | function OnActivate() | |
240 | if gui.Text=='Grow' then | |
241 | factor=(10^(1/10)) | |
242 | - | factor=(2^(1/10)) |
242 | + | |
243 | factor=(.1^(1/10)) | |
244 | - | factor=(.5^(1/10)) |
244 | + | |
245 | if (MyHumanoid and MyHumanoid.Health <= 0) or attacking or MyHumanoid.Parent.Head.Size.Z*(factor^10)<0.02 then return end | |
246 | - | if (MyHumanoid and MyHumanoid.Health <= 0) or attacking or MyHumanoid.Parent.Head.Size.Z*(factor^10)<0.2 then return end |
246 | + | |
247 | if InjectSound then | |
248 | InjectSound:Play() | |
249 | end | |
250 | if InjectTrack then | |
251 | InjectTrack:Play() | |
252 | end | |
253 | Delay(0.2, (function() if EnrageSound then EnrageSound:Play() end end)) | |
254 | ||
255 | local character = PlayersService.localPlayer.Character | |
256 | for i = 1, 10 do | |
257 | resizeImplementation(character, factor) | |
258 | FadeEffect() | |
259 | wait(0.02) | |
260 | end | |
261 | MyHumanoid.JumpPower=10 | |
262 | - | MyHumanoid.JumpPower=75 |
262 | + | MyHumanoid.WalkSpeed=10 |
263 | - | MyHumanoid.WalkSpeed=32 |
263 | + | |
264 | ||
265 | HitCharacters = {} | |
266 | wait(0.2) | |
267 | attacking = false | |
268 | end | |
269 | ||
270 | local Equipping = false | |
271 | ||
272 | MyHumanoid = Char:WaitForChild('Humanoid') | |
273 | InjectTrack = MyHumanoid:LoadAnimation(script:WaitForChild('Inject')) | |
274 | EnrageTrack = MyHumanoid:LoadAnimation(script:WaitForChild('Enrage')) | |
275 | InjectSound = Handle:WaitForChild('Absorb') | |
276 | EnrageSound = Handle:WaitForChild('Rage') | |
277 | SwooshSound = Handle:WaitForChild('Swoosh') | |
278 | ||
279 | script.Parent.Frame1.Go.MouseButton1Click:connect(OnActivate) | |
280 | ||
281 | end)) | |
282 | Sound2.Name = "Absorb" | |
283 | Sound2.Parent = LocalScript1 | |
284 | Sound2.SoundId = "http://www.roblox.com/asset/?id=181004943" | |
285 | Sound3.Name = "Rage" | |
286 | Sound3.Parent = LocalScript1 | |
287 | Sound3.SoundId = "http://www.roblox.com/asset/?id=181004957" | |
288 | Sound4.Name = "Swoosh" | |
289 | Sound4.Parent = LocalScript1 | |
290 | Sound4.Pitch = 1.2000000476837 | |
291 | Sound4.SoundId = "rbxasset://sounds/swoosh.wav" | |
292 | Sound4.Volume = 1 | |
293 | Animation5.Name = "Enrage" | |
294 | Animation5.Parent = LocalScript1 | |
295 | Animation5.AnimationId = "http://www.roblox.com//Asset?ID=93648331" | |
296 | Animation6.Name = "Inject" | |
297 | Animation6.Parent = LocalScript1 | |
298 | Animation6.AnimationId = "http://www.roblox.com/Asset?ID=93642075" | |
299 | Frame7.Name = "Frame1" | |
300 | Frame7.Parent = ScreenGui0 | |
301 | Frame7.Transparency = 1 | |
302 | Frame7.Size = UDim2.new(0, 300, 0, 250) | |
303 | Frame7.BackgroundColor3 = Color3.new(1, 1, 1) | |
304 | Frame7.BackgroundTransparency = 1 | |
305 | Frame7.BorderSizePixel = 0 | |
306 | Frame8.Name = "Frame2" | |
307 | Frame8.Parent = Frame7 | |
308 | Frame8.Size = UDim2.new(1, 0, 0.800000012, 0) | |
309 | Frame8.Style = Enum.FrameStyle.RobloxRound | |
310 | Frame8.BackgroundColor3 = Color3.new(1, 1, 1) | |
311 | Frame8.ZIndex = 2 | |
312 | TextButton9.Parent = Frame8 | |
313 | TextButton9.Size = UDim2.new(1, 0, 1, 0) | |
314 | TextButton9.Text = "Shrink" | |
315 | TextButton9.BackgroundColor3 = Color3.new(0, 0, 0) | |
316 | TextButton9.BorderColor3 = Color3.new(1, 0, 0) | |
317 | TextButton9.ZIndex = 3 | |
318 | TextButton9.FontSize = Enum.FontSize.Size14 | |
319 | TextButton9.TextColor3 = Color3.new(1, 0, 0) | |
320 | TextButton9.TextScaled = true | |
321 | TextButton9.TextWrapped = true | |
322 | LocalScript10.Parent = Frame8 | |
323 | table.insert(cors,sandbox(LocalScript10,function() | |
324 | c=1 | |
325 | script.Parent.TextButton.MouseButton1Click:connect(function() | |
326 | if c==1 then | |
327 | c=2 | |
328 | script.Parent.TextButton.Text='Grow' | |
329 | script.Parent.TextButton.TextColor3=Color3.new(0,0,255) | |
330 | script.Parent.TextButton.BorderColor3=Color3.new(0,0,255) | |
331 | elseif c==2 then | |
332 | c=1 | |
333 | script.Parent.TextButton.Text='Shrink' | |
334 | script.Parent.TextButton.TextColor3=Color3.new(255,0,0) | |
335 | script.Parent.TextButton.BorderColor3=Color3.new(255,0,0) | |
336 | end | |
337 | end) | |
338 | end)) | |
339 | TextButton11.Name = "Go" | |
340 | TextButton11.Parent = Frame7 | |
341 | TextButton11.Size = UDim2.new(1, 0, 0.200000003, 0) | |
342 | TextButton11.Style = Enum.ButtonStyle.RobloxButton | |
343 | TextButton11.Text = "Activate" | |
344 | TextButton11.Position = UDim2.new(0, 0, 0.800000012, 0) | |
345 | TextButton11.BackgroundColor3 = Color3.new(1, 1, 1) | |
346 | TextButton11.Font = Enum.Font.SourceSans | |
347 | TextButton11.FontSize = Enum.FontSize.Size14 | |
348 | TextButton11.TextColor3 = Color3.new(1, 1, 1) | |
349 | TextButton11.TextScaled = true | |
350 | TextButton11.TextWrapped = true | |
351 | Model12.Parent = ScreenGui0 | |
352 | Script13.Parent = ScreenGui0 | |
353 | table.insert(cors,sandbox(Script13,function() | |
354 | script.Parent["Antman"].Parent=game.StarterGui | |
355 | script.Parent.Display:Destroy() | |
356 | game.Debris:AddItem(script.Parent,.1) | |
357 | end)) | |
358 | for i,v in pairs(mas:GetChildren()) do | |
359 | v.Parent = game:GetService("Players").LocalPlayer.PlayerGui | |
360 | pcall(function() v:MakeJoints() end) | |
361 | end | |
362 | mas:Destroy() | |
363 | for i,v in pairs(cors) do | |
364 | spawn(function() | |
365 | pcall(v) | |
366 | end) | |
367 | end |