Advertisement
Gametoy

WATTT

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