Advertisement
Ban43_GodOfEdits

test antman?

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