HuyEvilDumb

i am ant man

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