Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- 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)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- ScreenGui0 = Instance.new("ScreenGui")
- LocalScript1 = Instance.new("LocalScript")
- Sound2 = Instance.new("Sound")
- Sound3 = Instance.new("Sound")
- Sound4 = Instance.new("Sound")
- Animation5 = Instance.new("Animation")
- Animation6 = Instance.new("Animation")
- Frame7 = Instance.new("Frame")
- Frame8 = Instance.new("Frame")
- TextButton9 = Instance.new("TextButton")
- LocalScript10 = Instance.new("LocalScript")
- TextButton11 = Instance.new("TextButton")
- Model12 = Instance.new("Model")
- Script13 = Instance.new("Script")
- ScreenGui0.Name = "Antman"
- ScreenGui0.Parent = mas
- LocalScript1.Name = "SyringeScript"
- LocalScript1.Parent = ScreenGui0
- table.insert(cors,sandbox(LocalScript1,function()
- -- Made By SolarCrane
- wait(5)
- player=game.Players.LocalPlayer
- Char=player.Character
- alphaframe=script.Parent:WaitForChild('Frame1')
- gui=alphaframe.Frame2.TextButton
- model=Instance.new('Model')
- model.Name='LimbCloneBin'
- model.Parent=Char
- -- Waits for the child of the specified parent
- -- This may be less typing if we made this a table index by their part names
- local Tool = script.Parent
- local Handle = script
- local MyHumanoid
- local MyCharacter
- local PlayersService = Game:GetService('Players')
- local InjectTrack
- local EnrageTrack
- local InjectSound
- local EnrageSound
- local SwooshSound
- local function ParseBodyPartEnum(bodyPartName)
- local result = Enum.BodyPart.Head
- if bodyPartName == "Left Arm" then
- result = Enum.BodyPart.LeftArm
- elseif bodyPartName == "Right Arm" then
- result = Enum.BodyPart.RightArm
- elseif bodyPartName == "Left Leg" then
- result = Enum.BodyPart.LeftLeg
- elseif bodyPartName == "Right Leg" then
- result = Enum.BodyPart.RightLeg
- elseif bodyPartName == "Torso" then
- result = Enum.BodyPart.Torso
- end
- return result
- end
- function FadeEffect()
- ct=Char.Torso:Clone()
- ct.BrickColor=BrickColor.new(gui.TextColor3)
- ct.Material=Enum.Material.Neon
- ct:ClearAllChildren()
- ct.CanCollide=false
- ct.Transparency=.9
- ct.Anchored=true
- ct.Parent=workspace
- game.Debris:AddItem(ct,.25)
- ch=Char.Head:Clone()
- ch.BrickColor=BrickColor.new(gui.TextColor3)
- ch.Material=Enum.Material.Neon
- ch:ClearAllChildren()
- ch.CanCollide=false
- ch.Transparency=.9
- ch.Anchored=true
- ch.Parent=workspace
- game.Debris:AddItem(ch,.25)
- cll=Char['Left Leg']:Clone()
- cll.BrickColor=BrickColor.new(gui.TextColor3)
- cll.Material=Enum.Material.Neon
- cll:ClearAllChildren()
- cll.CanCollide=false
- cll.Transparency=.9
- cll.Anchored=true
- cll.Parent=workspace
- game.Debris:AddItem(cll,.25)
- crl=Char['Right Leg']:Clone()
- crl.BrickColor=BrickColor.new(gui.TextColor3)
- crl.Material=Enum.Material.Neon
- crl:ClearAllChildren()
- crl.CanCollide=false
- crl.Transparency=.9
- crl.Anchored=true
- crl.Parent=workspace
- game.Debris:AddItem(crl,.25)
- cla=Char['Left Arm']:Clone()
- cla.Material=Enum.Material.Neon
- cla.BrickColor=BrickColor.new(gui.TextColor3)
- cla:ClearAllChildren()
- cla.CanCollide=false
- cla.Transparency=.9
- cla.Anchored=true
- cla.Parent=workspace
- game.Debris:AddItem(cla,.25)
- cra=Char['Right Arm']:Clone()
- cra.Material=Enum.Material.Neon
- cra.BrickColor=BrickColor.new(gui.TextColor3)
- cra:ClearAllChildren()
- cra.CanCollide=false
- cra.Transparency=.9
- cra.Anchored=true
- cra.Parent=workspace
- game.Debris:AddItem(cra,.1)
- end
- -------------------------------- AWESOME CODE EXCEPT FROM HOTTHOTH COMMANDS; MORE TO COME -------------------------
- local foundObjectList = {}
- local foundObjectIndex = 1
- local function findObjectHelper(model, objectName, className, listOfFoundObjects)
- if not model then return end
- local findStart, findEnd = string.find(model.Name, objectName)
- if findStart == 1 and findEnd == #(model.Name) then -- must match entire name
- if not className or model.className == className or (pcall(model.IsA, model, className) and model:IsA(className)) then
- table.insert(listOfFoundObjects, model)
- end
- end
- if pcall(model.GetChildren, model) then
- local modelChildren = model:GetChildren()
- for i = 1, #modelChildren do
- -- make sure not to resize tools, things tend to get complicated if we do
- findObjectHelper(modelChildren[i], objectName, className, listOfFoundObjects)
- end
- end
- end
- local function resizeModelInternal(model, resizeFactor)
- local modelCFrame = model:GetModelCFrame()
- local modelSize = model:GetModelSize()
- local baseParts = {}
- local basePartCFrames = {}
- local joints = {}
- local jointParents = {}
- local meshes = {}
- findObjectHelper(model, ".*", "BasePart", baseParts)
- findObjectHelper(model, ".*", "JointInstance", joints)
- -- meshes don't inherit from anything accessible?
- findObjectHelper(model, ".*", "FileMesh", meshes) -- base class for SpecialMesh and FileMesh
- findObjectHelper(model, ".*", "CylinderMesh", meshes)
- findObjectHelper(model, ".*", "BlockMesh", meshes)
- -- store the CFrames, so our other changes don't rearrange stuff
- for _, basePart in pairs(baseParts) do
- basePartCFrames[basePart] = basePart.CFrame
- end
- -- scale meshes
- for _,mesh in pairs(meshes) do
- -- This is a nasty hack because head meshes scale relative to the part's size
- -- thus scaling the mesh and the head gives u 2x the size
- if mesh.Parent.Name ~= "Head" then
- mesh.Scale = mesh.Scale * resizeFactor
- end
- end
- -- scale joints
- for _, joint in pairs(joints) do
- joint.C0 = joint.C0 + (joint.C0.p) * (resizeFactor - 1)
- joint.C1 = joint.C1 + (joint.C1.p) * (resizeFactor - 1)
- jointParents[joint] = joint.Parent
- end
- -- scale parts and reposition them within the model
- for _, basePart in pairs(baseParts) do
- if pcall(function() basePart.FormFactor = "Custom" end) then basePart.FormFactor = "Custom" end
- basePart.Size = basePart.Size * resizeFactor
- local oldCFrame = basePartCFrames[basePart]
- local oldPositionInModel = modelCFrame:pointToObjectSpace(oldCFrame.p)
- local distanceFromCorner = oldPositionInModel + modelSize/2
- distanceFromCorner = distanceFromCorner * resizeFactor
- local newPositionInSpace = modelCFrame:pointToWorldSpace(distanceFromCorner - modelSize/2)
- basePart.CFrame = oldCFrame - oldCFrame.p + newPositionInSpace
- end
- -- pop the joints back, because they prolly got borked
- for _, joint in pairs(joints) do
- joint.Parent = jointParents[joint]
- end
- return model
- end
- local function resizeImplementation(modelList, resizeFactor)
- if type(modelList) ~= "table" then modelList = {modelList} end
- for _, model in pairs(modelList) do
- --if model.Name ~= "BackPack" then
- resizeModelInternal(model, resizeFactor)
- -- end
- end
- return modelList
- end
- ------------------------------------------------------------------------------------------------------------------
- local attacking = false
- local HitCharacters = {}
- function OnActivate()
- if gui.Text=='Grow' then
- factor=(10^(1/10))
- elseif gui.Text=='Shrink' then
- factor=(.1^(1/10))
- end
- if (MyHumanoid and MyHumanoid.Health <= 0) or attacking or MyHumanoid.Parent.Head.Size.Z*(factor^10)<0.02 then return end
- attacking = true
- if InjectSound then
- InjectSound:Play()
- end
- if InjectTrack then
- InjectTrack:Play()
- end
- Delay(0.2, (function() if EnrageSound then EnrageSound:Play() end end))
- local character = PlayersService.localPlayer.Character
- for i = 1, 10 do
- resizeImplementation(character, factor)
- FadeEffect()
- wait(0.02)
- end
- MyHumanoid.JumpPower=10
- MyHumanoid.WalkSpeed=10
- wait(0.03)
- HitCharacters = {}
- wait(0.2)
- attacking = false
- end
- local Equipping = false
- MyHumanoid = Char:WaitForChild('Humanoid')
- InjectTrack = MyHumanoid:LoadAnimation(script:WaitForChild('Inject'))
- EnrageTrack = MyHumanoid:LoadAnimation(script:WaitForChild('Enrage'))
- InjectSound = Handle:WaitForChild('Absorb')
- EnrageSound = Handle:WaitForChild('Rage')
- SwooshSound = Handle:WaitForChild('Swoosh')
- script.Parent.Frame1.Go.MouseButton1Click:connect(OnActivate)
- end))
- Sound2.Name = "Absorb"
- Sound2.Parent = LocalScript1
- Sound2.SoundId = "http://www.roblox.com/asset/?id=181004943"
- Sound3.Name = "Rage"
- Sound3.Parent = LocalScript1
- Sound3.SoundId = "http://www.roblox.com/asset/?id=181004957"
- Sound4.Name = "Swoosh"
- Sound4.Parent = LocalScript1
- Sound4.Pitch = 1.2000000476837
- Sound4.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound4.Volume = 1
- Animation5.Name = "Enrage"
- Animation5.Parent = LocalScript1
- Animation5.AnimationId = "http://www.roblox.com//Asset?ID=93648331"
- Animation6.Name = "Inject"
- Animation6.Parent = LocalScript1
- Animation6.AnimationId = "http://www.roblox.com/Asset?ID=93642075"
- Frame7.Name = "Frame1"
- Frame7.Parent = ScreenGui0
- Frame7.Transparency = 1
- Frame7.Size = UDim2.new(0, 300, 0, 250)
- Frame7.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame7.BackgroundTransparency = 1
- Frame7.BorderSizePixel = 0
- Frame8.Name = "Frame2"
- Frame8.Parent = Frame7
- Frame8.Size = UDim2.new(1, 0, 0.800000012, 0)
- Frame8.Style = Enum.FrameStyle.RobloxRound
- Frame8.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame8.ZIndex = 2
- TextButton9.Parent = Frame8
- TextButton9.Size = UDim2.new(1, 0, 1, 0)
- TextButton9.Text = "Shrink"
- TextButton9.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton9.BorderColor3 = Color3.new(1, 0, 0)
- TextButton9.ZIndex = 3
- TextButton9.FontSize = Enum.FontSize.Size14
- TextButton9.TextColor3 = Color3.new(1, 0, 0)
- TextButton9.TextScaled = true
- TextButton9.TextWrapped = true
- LocalScript10.Parent = Frame8
- table.insert(cors,sandbox(LocalScript10,function()
- c=1
- script.Parent.TextButton.MouseButton1Click:connect(function()
- if c==1 then
- c=2
- script.Parent.TextButton.Text='Grow'
- script.Parent.TextButton.TextColor3=Color3.new(0,0,255)
- script.Parent.TextButton.BorderColor3=Color3.new(0,0,255)
- elseif c==2 then
- c=1
- script.Parent.TextButton.Text='Shrink'
- script.Parent.TextButton.TextColor3=Color3.new(255,0,0)
- script.Parent.TextButton.BorderColor3=Color3.new(255,0,0)
- end
- end)
- end))
- TextButton11.Name = "Go"
- TextButton11.Parent = Frame7
- TextButton11.Size = UDim2.new(1, 0, 0.200000003, 0)
- TextButton11.Style = Enum.ButtonStyle.RobloxButton
- TextButton11.Text = "Activate"
- TextButton11.Position = UDim2.new(0, 0, 0.800000012, 0)
- TextButton11.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton11.Font = Enum.Font.SourceSans
- TextButton11.FontSize = Enum.FontSize.Size14
- TextButton11.TextColor3 = Color3.new(1, 1, 1)
- TextButton11.TextScaled = true
- TextButton11.TextWrapped = true
- Model12.Parent = ScreenGui0
- Script13.Parent = ScreenGui0
- table.insert(cors,sandbox(Script13,function()
- script.Parent["Antman"].Parent=game.StarterGui
- script.Parent.Display:Destroy()
- game.Debris:AddItem(script.Parent,.1)
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.PlayerGui
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement