Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --By iiJoeCats (DEMO VERSION. NOT COMPLETE.)
- repeat wait(3) until game.Players.LocalPlayer.Character
- print("Running...")
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- local UIS = game:GetService("UserInputService")
- local character = player.Character
- local runS = game:GetService("RunService").RenderStepped
- local tweenS = game:GetService("TweenService")
- local attack = false
- local firing = false
- local gunSize = 1.2
- function removeItem(item,timer)
- game:GetService("Debris"):AddItem(item,timer)
- end
- local hum = character:FindFirstChildOfClass("Humanoid")
- local rArm = character["Right Arm"]
- local lArm = character["Left Arm"]
- local rLeg = character["Right Leg"]
- local lLeg = character["Left Leg"]
- local tors = character.Torso
- local hed = character.Head
- local root = character.HumanoidRootPart
- local rootj = root.RootJoint
- for i, v in pairs(character:GetChildren()) do
- if v.ClassName == "Pants" or v.ClassName == "Shirt" or v.ClassName == "Accessory" or v.ClassName == "ShirtGraphic" then
- v:Destroy()
- end
- end
- hed.Transparency = 0.9
- if hed:FindFirstChild("face") then
- hed.face:Destroy()
- end
- tors.Transparency = 1
- lArm.Transparency = 1
- rArm.Transparency = 1
- lLeg.CanCollide = true
- lLeg.Transparency = 1
- rLeg.CanCollide = true
- rLeg.Transparency = 1
- --Morph
- --//Head
- function createHead()
- --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"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- Part2 = Instance.new("Part")
- Part3 = Instance.new("Part")
- Part4 = Instance.new("Part")
- Part5 = Instance.new("Part")
- Part6 = Instance.new("Part")
- Part7 = Instance.new("Part")
- Part8 = Instance.new("Part")
- Part9 = Instance.new("Part")
- Part10 = Instance.new("Part")
- Part11 = Instance.new("Part")
- Part12 = Instance.new("Part")
- Script13 = Instance.new("Script")
- Model0.Name = "HeadPart"
- Model0.Parent = mas
- Part1.Name = "Middle"
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(-75.1135941, 9.12043381, 135.362, 0.00273008668, 4.81450115e-08, 0.999987721, -4.33010318e-05, 1, 7.09478627e-08, -0.999987721, -4.33006826e-05, 0.00273008621)
- Part1.Orientation = Vector3.new(0, 89.8399963, 0)
- Part1.Position = Vector3.new(-75.1135941, 9.12043381, 135.362)
- Part1.Rotation = Vector3.new(0, 89.7200012, 0)
- Part1.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part1.Transparency = 1
- Part1.Size = Vector3.new(2, 1, 1)
- Part1.Anchored = true
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.BrickColor = BrickColor.new("Institutional white")
- Part1.CanCollide = false
- Part1.Material = Enum.Material.SmoothPlastic
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Institutional white")
- Part1.FormFactor = Enum.FormFactor.Symmetric
- Part1.formFactor = Enum.FormFactor.Symmetric
- Part2.Name = "Head"
- Part2.Parent = Model0
- Part2.CFrame = CFrame.new(-75.1037521, 9.62043381, 135.362213, 0.00281639281, 5.00112947e-08, 0.999987483, -4.33010209e-05, 1, 7.28214218e-08, -0.999987483, -4.33006826e-05, 0.00281639257)
- Part2.Orientation = Vector3.new(0, 89.8399963, 0)
- Part2.Position = Vector3.new(-75.1037521, 9.62043381, 135.362213)
- Part2.Rotation = Vector3.new(0, 89.7099991, 0)
- Part2.Color = Color3.new(1, 0.4, 0.8)
- Part2.Size = Vector3.new(2, 2, 2)
- Part2.Anchored = true
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.BrickColor = BrickColor.new("Pink")
- Part2.CanCollide = false
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.brickColor = BrickColor.new("Pink")
- Part2.FormFactor = Enum.FormFactor.Symmetric
- Part2.formFactor = Enum.FormFactor.Symmetric
- Part3.Name = "eyes"
- Part3.Parent = Model0
- Part3.CFrame = CFrame.new(-75.5667877, 9.99046707, 135.341003, 0.00281639281, 5.00112947e-08, 0.999987483, -4.33010209e-05, 1, 7.28214218e-08, -0.999987483, -4.33006826e-05, 0.00281639257)
- Part3.Orientation = Vector3.new(0, 89.8399963, 0)
- Part3.Position = Vector3.new(-75.5667877, 9.99046707, 135.341003)
- Part3.Rotation = Vector3.new(0, 89.7099991, 0)
- Part3.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part3.Size = Vector3.new(2.07999921, 0.600000024, 0.629999876)
- Part3.Anchored = true
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.BrickColor = BrickColor.new("Institutional white")
- Part3.CanCollide = false
- Part3.Material = Enum.Material.SmoothPlastic
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part3.brickColor = BrickColor.new("Institutional white")
- Part3.FormFactor = Enum.FormFactor.Symmetric
- Part3.formFactor = Enum.FormFactor.Symmetric
- Part4.Name = "eyes"
- Part4.Parent = Model0
- Part4.CFrame = CFrame.new(-75.7663498, 9.99661636, 134.31543, 0.00281639281, 5.00112947e-08, 0.999987483, -4.33010209e-05, 1, 7.28214218e-08, -0.999987483, -4.33006826e-05, 0.00281639257)
- Part4.Orientation = Vector3.new(0, 89.8399963, 0)
- Part4.Position = Vector3.new(-75.7663498, 9.99661636, 134.31543)
- Part4.Rotation = Vector3.new(0, 89.7099991, 0)
- Part4.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part4.Size = Vector3.new(0.0700000003, 0.210000053, 0.189999953)
- Part4.Anchored = true
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.BrickColor = BrickColor.new("Really black")
- Part4.CanCollide = false
- Part4.Material = Enum.Material.SmoothPlastic
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part4.brickColor = BrickColor.new("Really black")
- Part4.FormFactor = Enum.FormFactor.Symmetric
- Part4.formFactor = Enum.FormFactor.Symmetric
- Part5.Name = "eyes"
- Part5.Parent = Model0
- Part5.CFrame = CFrame.new(-75.7897644, 9.99627686, 136.385345, 0.00281639281, 5.00112947e-08, 0.999987483, -4.33010209e-05, 1, 7.28214218e-08, -0.999987483, -4.33006826e-05, 0.00281639257)
- Part5.Orientation = Vector3.new(0, 89.8399963, 0)
- Part5.Position = Vector3.new(-75.7897644, 9.99627686, 136.385345)
- Part5.Rotation = Vector3.new(0, 89.7099991, 0)
- Part5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part5.Size = Vector3.new(0.0500000007, 0.210000053, 0.189999953)
- Part5.Anchored = true
- Part5.BottomSurface = Enum.SurfaceType.Smooth
- Part5.BrickColor = BrickColor.new("Really black")
- Part5.CanCollide = false
- Part5.Material = Enum.Material.SmoothPlastic
- Part5.TopSurface = Enum.SurfaceType.Smooth
- Part5.brickColor = BrickColor.new("Really black")
- Part5.FormFactor = Enum.FormFactor.Symmetric
- Part5.formFactor = Enum.FormFactor.Symmetric
- Part6.Name = "Head"
- Part6.Parent = Model0
- Part6.CFrame = CFrame.new(-75.5237427, 9.99043274, 135.361023, 0.00281639281, 5.00112947e-08, 0.999987483, -4.33010209e-05, 1, 7.28214218e-08, -0.999987483, -4.33006826e-05, 0.00281639257)
- Part6.Orientation = Vector3.new(0, 89.8399963, 0)
- Part6.Position = Vector3.new(-75.5237427, 9.99043274, 135.361023)
- Part6.Rotation = Vector3.new(0, 89.7099991, 0)
- Part6.Color = Color3.new(1, 0.4, 0.8)
- Part6.Size = Vector3.new(2, 1.26000011, 2.83999991)
- Part6.Anchored = true
- Part6.BottomSurface = Enum.SurfaceType.Smooth
- Part6.BrickColor = BrickColor.new("Pink")
- Part6.CanCollide = false
- Part6.TopSurface = Enum.SurfaceType.Smooth
- Part6.brickColor = BrickColor.new("Pink")
- Part6.FormFactor = Enum.FormFactor.Symmetric
- Part6.formFactor = Enum.FormFactor.Symmetric
- Part7.Name = "Head"
- Part7.Parent = Model0
- Part7.CFrame = CFrame.new(-76.9470367, 9.83540344, 134.757019, 0.00281639281, 5.00112947e-08, 0.999987483, -4.33010209e-05, 1, 7.28214218e-08, -0.999987483, -4.33006826e-05, 0.00281639257)
- Part7.Orientation = Vector3.new(0, 89.8399963, 0)
- Part7.Position = Vector3.new(-76.9470367, 9.83540344, 134.757019)
- Part7.Rotation = Vector3.new(0, 89.7099991, 0)
- Part7.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part7.Size = Vector3.new(0.32000041, 0.310000479, 0.109999992)
- Part7.Anchored = true
- Part7.BottomSurface = Enum.SurfaceType.Smooth
- Part7.BrickColor = BrickColor.new("Really black")
- Part7.CanCollide = false
- Part7.TopSurface = Enum.SurfaceType.Smooth
- Part7.brickColor = BrickColor.new("Really black")
- Part7.FormFactor = Enum.FormFactor.Symmetric
- Part7.formFactor = Enum.FormFactor.Symmetric
- Part8.Name = "Head"
- Part8.Parent = Model0
- Part8.CFrame = CFrame.new(-76.9501495, 9.83545113, 135.860916, 0.00281639281, 5.00112947e-08, 0.999987483, -4.33010209e-05, 1, 7.28214218e-08, -0.999987483, -4.33006826e-05, 0.00281639257)
- Part8.Orientation = Vector3.new(0, 89.8399963, 0)
- Part8.Position = Vector3.new(-76.9501495, 9.83545113, 135.860916)
- Part8.Rotation = Vector3.new(0, 89.7099991, 0)
- Part8.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part8.Size = Vector3.new(0.32000041, 0.310000479, 0.109999992)
- Part8.Anchored = true
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.BrickColor = BrickColor.new("Really black")
- Part8.CanCollide = false
- Part8.TopSurface = Enum.SurfaceType.Smooth
- Part8.brickColor = BrickColor.new("Really black")
- Part8.FormFactor = Enum.FormFactor.Symmetric
- Part8.formFactor = Enum.FormFactor.Symmetric
- Part9.Name = "Head"
- Part9.Parent = Model0
- Part9.CFrame = CFrame.new(-75.0861053, 10.0253906, 134.422272, 0.00281639281, 5.00112947e-08, 0.999987483, -4.33010209e-05, 1, 7.28214218e-08, -0.999987483, -4.33006826e-05, 0.00281639257)
- Part9.Orientation = Vector3.new(0, 89.8399963, 0)
- Part9.Position = Vector3.new(-75.0861053, 10.0253906, 134.422272)
- Part9.Rotation = Vector3.new(0, 89.7099991, 0)
- Part9.Color = Color3.new(1, 0.4, 0.8)
- Part9.Size = Vector3.new(0.119999997, 2.80999923, 0.650000334)
- Part9.Anchored = true
- Part9.BottomSurface = Enum.SurfaceType.Smooth
- Part9.BrickColor = BrickColor.new("Pink")
- Part9.CanCollide = false
- Part9.TopSurface = Enum.SurfaceType.Smooth
- Part9.brickColor = BrickColor.new("Pink")
- Part9.FormFactor = Enum.FormFactor.Symmetric
- Part9.formFactor = Enum.FormFactor.Symmetric
- Part10.Name = "Head"
- Part10.Parent = Model0
- Part10.CFrame = CFrame.new(-75.0912781, 10.0254707, 136.258438, 0.00281639281, 5.00112947e-08, 0.999987483, -4.33010209e-05, 1, 7.28214218e-08, -0.999987483, -4.33006826e-05, 0.00281639257)
- Part10.Orientation = Vector3.new(0, 89.8399963, 0)
- Part10.Position = Vector3.new(-75.0912781, 10.0254707, 136.258438)
- Part10.Rotation = Vector3.new(0, 89.7099991, 0)
- Part10.Color = Color3.new(1, 0.4, 0.8)
- Part10.Size = Vector3.new(0.119999997, 2.80999923, 0.650000334)
- Part10.Anchored = true
- Part10.BottomSurface = Enum.SurfaceType.Smooth
- Part10.BrickColor = BrickColor.new("Pink")
- Part10.CanCollide = false
- Part10.TopSurface = Enum.SurfaceType.Smooth
- Part10.brickColor = BrickColor.new("Pink")
- Part10.FormFactor = Enum.FormFactor.Symmetric
- Part10.formFactor = Enum.FormFactor.Symmetric
- Part11.Name = "Head"
- Part11.Parent = Model0
- Part11.CFrame = CFrame.new(-76.0936432, 8.9804287, 135.324463, 0.00281639281, 5.00112947e-08, 0.999987483, -4.33010209e-05, 1, 7.28214218e-08, -0.999987483, -4.33006826e-05, 0.00281639257)
- Part11.Orientation = Vector3.new(0, 89.8399963, 0)
- Part11.Position = Vector3.new(-76.0936432, 8.9804287, 135.324463)
- Part11.Rotation = Vector3.new(0, 89.7099991, 0)
- Part11.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part11.Size = Vector3.new(1.09000051, 0.0600000024, 0.0799999982)
- Part11.Anchored = true
- Part11.BottomSurface = Enum.SurfaceType.Smooth
- Part11.BrickColor = BrickColor.new("Really black")
- Part11.CanCollide = false
- Part11.TopSurface = Enum.SurfaceType.Smooth
- Part11.brickColor = BrickColor.new("Really black")
- Part11.FormFactor = Enum.FormFactor.Symmetric
- Part11.formFactor = Enum.FormFactor.Symmetric
- Part12.Name = "eyes"
- Part12.Parent = Model0
- Part12.CFrame = CFrame.new(-75.2616043, 9.18519211, 135.351898, 0.00281639281, 5.00112947e-08, 0.999987483, -4.33010209e-05, 1, 7.28214218e-08, -0.999987483, -4.33006826e-05, 0.00281639257)
- Part12.Orientation = Vector3.new(0, 89.8399963, 0)
- Part12.Position = Vector3.new(-75.2616043, 9.18519211, 135.351898)
- Part12.Rotation = Vector3.new(0, 89.7099991, 0)
- Part12.Color = Color3.new(1, 0.34902, 0.34902)
- Part12.Size = Vector3.new(2.01999927, 0.600000024, 0.629999876)
- Part12.Anchored = true
- Part12.BottomSurface = Enum.SurfaceType.Smooth
- Part12.BrickColor = BrickColor.new("Persimmon")
- Part12.CanCollide = false
- Part12.Material = Enum.Material.SmoothPlastic
- Part12.TopSurface = Enum.SurfaceType.Smooth
- Part12.brickColor = BrickColor.new("Persimmon")
- Part12.FormFactor = Enum.FormFactor.Symmetric
- Part12.formFactor = Enum.FormFactor.Symmetric
- Script13.Name = "qPerfectionWeld"
- Script13.Parent = Model0
- table.insert(cors,sandbox(Script13,function()
- -- Created by Quenty (@Quenty, follow me on twitter).
- -- Should work with only ONE copy, seamlessly with weapons, trains, et cetera.
- -- Parts should be ANCHORED before use. It will, however, store relatives values and so when tools are reparented, it'll fix them.
- --[[ INSTRUCTIONS
- - Place in the model
- - Make sure model is anchored
- - That's it. It will weld the model and all children.
- THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
- THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
- THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
- THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
- THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
- THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
- THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
- THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
- This script is designed to be used is a regular script. In a local script it will weld, but it will not attempt to handle ancestory changes.
- ]]
- --[[ DOCUMENTATION
- - Will work in tools. If ran more than once it will not create more than one weld. This is especially useful for tools that are dropped and then picked up again.
- - Will work in PBS servers
- - Will work as long as it starts out with the part anchored
- - Stores the relative CFrame as a CFrame value
- - Takes careful measure to reduce lag by not having a joint set off or affected by the parts offset from origin
- - Utilizes a recursive algorith to find all parts in the model
- - Will reweld on script reparent if the script is initially parented to a tool.
- - Welds as fast as possible
- ]]
- -- qPerfectionWeld.lua
- -- Created 10/6/2014
- -- Author: Quenty
- -- Version 1.0.3
- -- Updated 10/14/2014 - Updated to 1.0.1
- --- Bug fix with existing ROBLOX welds ? Repro by asimo3089
- -- Updated 10/14/2014 - Updated to 1.0.2
- --- Fixed bug fix.
- -- Updated 10/14/2014 - Updated to 1.0.3
- --- Now handles joints semi-acceptably. May be rather hacky with some joints. :/
- local NEVER_BREAK_JOINTS = false -- If you set this to true it will never break joints (this can create some welding issues, but can save stuff like hinges).
- local function CallOnChildren(Instance, FunctionToCall)
- -- Calls a function on each of the children of a certain object, using recursion.
- FunctionToCall(Instance)
- for _, Child in next, Instance:GetChildren() do
- CallOnChildren(Child, FunctionToCall)
- end
- end
- local function GetNearestParent(Instance, ClassName)
- -- Returns the nearest parent of a certain class, or returns nil
- local Ancestor = Instance
- repeat
- Ancestor = Ancestor.Parent
- if Ancestor == nil then
- return nil
- end
- until Ancestor:IsA(ClassName)
- return Ancestor
- end
- local function GetBricks(StartInstance)
- local List = {}
- -- if StartInstance:IsA("BasePart") then
- -- List[#List+1] = StartInstance
- -- end
- CallOnChildren(StartInstance, function(Item)
- if Item:IsA("BasePart") then
- List[#List+1] = Item;
- end
- end)
- return List
- end
- local function Modify(Instance, Values)
- -- Modifies an Instance by using a table.
- assert(type(Values) == "table", "Values is not a table");
- for Index, Value in next, Values do
- if type(Index) == "number" then
- Value.Parent = Instance
- else
- Instance[Index] = Value
- end
- end
- return Instance
- end
- local function Make(ClassType, Properties)
- -- Using a syntax hack to create a nice way to Make new items.
- return Modify(Instance.new(ClassType), Properties)
- end
- local Surfaces = {"TopSurface", "BottomSurface", "LeftSurface", "RightSurface", "FrontSurface", "BackSurface"}
- local HingSurfaces = {"Hinge", "Motor", "SteppingMotor"}
- local function HasWheelJoint(Part)
- for _, SurfaceName in pairs(Surfaces) do
- for _, HingSurfaceName in pairs(HingSurfaces) do
- if Part[SurfaceName].Name == HingSurfaceName then
- return true
- end
- end
- end
- return false
- end
- local function ShouldBreakJoints(Part)
- --- We do not want to break joints of wheels/hinges. This takes the utmost care to not do this. There are
- -- definitely some edge cases.
- if NEVER_BREAK_JOINTS then
- return false
- end
- if HasWheelJoint(Part) then
- return false
- end
- local Connected = Part:GetConnectedParts()
- if #Connected == 1 then
- return false
- end
- for _, Item in pairs(Connected) do
- if HasWheelJoint(Item) then
- return false
- elseif not Item:IsDescendantOf(script.Parent) then
- return false
- end
- end
- return true
- end
- local function WeldTogether(Part0, Part1, JointType, WeldParent)
- --- Weld's 2 parts together
- -- @param Part0 The first part
- -- @param Part1 The second part (Dependent part most of the time).
- -- @param [JointType] The type of joint. Defaults to weld.
- -- @param [WeldParent] Parent of the weld, Defaults to Part0 (so GC is better).
- -- @return The weld created.
- JointType = JointType or "Weld"
- local RelativeValue = Part1:FindFirstChild("qRelativeCFrameWeldValue")
- local NewWeld = Part1:FindFirstChild("qCFrameWeldThingy") or Instance.new(JointType)
- Modify(NewWeld, {
- Name = "qCFrameWeldThingy";
- Part0 = Part0;
- Part1 = Part1;
- C0 = CFrame.new();--Part0.CFrame:inverse();
- C1 = RelativeValue and RelativeValue.Value or Part1.CFrame:toObjectSpace(Part0.CFrame); --Part1.CFrame:inverse() * Part0.CFrame;-- Part1.CFrame:inverse();
- Parent = Part1;
- })
- if not RelativeValue then
- RelativeValue = Make("CFrameValue", {
- Parent = Part1;
- Name = "qRelativeCFrameWeldValue";
- Archivable = true;
- Value = NewWeld.C1;
- })
- end
- return NewWeld
- end
- local function WeldParts(Parts, MainPart, JointType, DoNotUnanchor)
- -- @param Parts The Parts to weld. Should be anchored to prevent really horrible results.
- -- @param MainPart The part to weld the model to (can be in the model).
- -- @param [JointType] The type of joint. Defaults to weld.
- -- @parm DoNotUnanchor Boolean, if true, will not unachor the model after cmopletion.
- for _, Part in pairs(Parts) do
- if ShouldBreakJoints(Part) then
- Part:BreakJoints()
- end
- end
- for _, Part in pairs(Parts) do
- if Part ~= MainPart then
- WeldTogether(MainPart, Part, JointType, MainPart)
- end
- end
- if not DoNotUnanchor then
- for _, Part in pairs(Parts) do
- Part.Anchored = false
- end
- MainPart.Anchored = false
- end
- end
- local function PerfectionWeld()
- local Tool = GetNearestParent(script, "Tool")
- local Parts = GetBricks(script.Parent)
- local PrimaryPart = Tool and Tool:FindFirstChild("Handle") and Tool.Handle:IsA("BasePart") and Tool.Handle or script.Parent:IsA("Model") and script.Parent.PrimaryPart or Parts[1]
- if PrimaryPart then
- WeldParts(Parts, PrimaryPart, "Weld", false)
- else
- warn("qWeld - Unable to weld part")
- end
- return Tool
- end
- local Tool = PerfectionWeld()
- if Tool and script.ClassName == "Script" then
- --- Don't bother with local scripts
- script.Parent.AncestryChanged:connect(function()
- PerfectionWeld()
- end)
- end
- -- Created by Quenty (@Quenty, follow me on twitter).
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = hed
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- local wld = Instance.new("Weld",hed)
- wld.Part0 = hed
- wld.Part1 = Part2
- wld.C0 = CFrame.new(0,0.5,0)
- end
- function createLegs()
- --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"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- Part2 = Instance.new("Part")
- Part3 = Instance.new("Part")
- Part4 = Instance.new("Part")
- Model5 = Instance.new("Model")
- Part6 = Instance.new("Part")
- Part7 = Instance.new("Part")
- Part8 = Instance.new("Part")
- Part9 = Instance.new("Part")
- Model0.Name = "Leg2"
- Model0.Parent = mas
- Part1.Name = "leg"
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(75.1063843, 0.700029016, -74.5235672, 0.00273008668, 4.81450115e-08, 0.999987721, -4.33010318e-05, 1, 7.09478627e-08, -0.999987721, -4.33006826e-05, 0.00273008621)
- Part1.Orientation = Vector3.new(0, 89.8399963, 0)
- Part1.Position = Vector3.new(75.1063843, 0.700029016, -74.5235672)
- Part1.Rotation = Vector3.new(0, 89.7200012, 0)
- Part1.Color = Color3.new(1, 0.4, 0.8)
- Part1.Size = Vector3.new(1, 0.600000024, 1)
- Part1.Anchored = true
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.BrickColor = BrickColor.new("Pink")
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Pink")
- Part1.FormFactor = Enum.FormFactor.Symmetric
- Part1.formFactor = Enum.FormFactor.Symmetric
- Part2.Name = "foot"
- Part2.Parent = Model0
- Part2.CFrame = CFrame.new(75.0062866, 0.200029001, -74.5238113, 0.00273008668, 4.81450115e-08, 0.999987721, -4.33010318e-05, 1, 7.09478627e-08, -0.999987721, -4.33006826e-05, 0.00273008621)
- Part2.Orientation = Vector3.new(0, 89.8399963, 0)
- Part2.Position = Vector3.new(75.0062866, 0.200029001, -74.5238113)
- Part2.Rotation = Vector3.new(0, 89.7200012, 0)
- Part2.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part2.Size = Vector3.new(1, 0.399999976, 1.20000005)
- Part2.Anchored = true
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.BrickColor = BrickColor.new("Really black")
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.brickColor = BrickColor.new("Really black")
- Part2.FormFactor = Enum.FormFactor.Symmetric
- Part2.formFactor = Enum.FormFactor.Symmetric
- Part3.Name = "Middle"
- Part3.Parent = Model0
- Part3.CFrame = CFrame.new(75.1063843, 1.00007498, -74.5235672, 0.00273008668, 4.81450115e-08, 0.999987721, -4.33010318e-05, 1, 7.09478627e-08, -0.999987721, -4.33006826e-05, 0.00273008621)
- Part3.Orientation = Vector3.new(0, 89.8399963, 0)
- Part3.Position = Vector3.new(75.1063843, 1.00007498, -74.5235672)
- Part3.Rotation = Vector3.new(0, 89.7200012, 0)
- Part3.Color = Color3.new(1, 0.4, 0.8)
- Part3.Transparency = 1
- Part3.Size = Vector3.new(1, 2, 1)
- Part3.Anchored = true
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.BrickColor = BrickColor.new("Pink")
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part3.brickColor = BrickColor.new("Pink")
- Part3.FormFactor = Enum.FormFactor.Symmetric
- Part3.formFactor = Enum.FormFactor.Symmetric
- Part4.Name = "leg"
- Part4.Parent = Model0
- Part4.CFrame = CFrame.new(75.1063766, 1.50007498, -74.5235672, 0.00273008668, 4.81450115e-08, 0.999987721, -4.33010318e-05, 1, 7.09478627e-08, -0.999987721, -4.33006826e-05, 0.00273008621)
- Part4.Orientation = Vector3.new(0, 89.8399963, 0)
- Part4.Position = Vector3.new(75.1063766, 1.50007498, -74.5235672)
- Part4.Rotation = Vector3.new(0, 89.7200012, 0)
- Part4.Color = Color3.new(1, 0.4, 0.8)
- Part4.Size = Vector3.new(1, 1, 1)
- Part4.Anchored = true
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.BrickColor = BrickColor.new("Pink")
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part4.brickColor = BrickColor.new("Pink")
- Part4.FormFactor = Enum.FormFactor.Symmetric
- Part4.formFactor = Enum.FormFactor.Symmetric
- Model5.Name = "Leg1"
- Model5.Parent = mas
- Part6.Name = "Middle"
- Part6.Parent = Model5
- Part6.CFrame = CFrame.new(75.1036606, 1.00007498, -73.5128021, 0.00273008668, 4.81450115e-08, 0.999987721, -4.33010318e-05, 1, 7.09478627e-08, -0.999987721, -4.33006826e-05, 0.00273008621)
- Part6.Orientation = Vector3.new(0, 89.8399963, 0)
- Part6.Position = Vector3.new(75.1036606, 1.00007498, -73.5128021)
- Part6.Rotation = Vector3.new(0, 89.7200012, 0)
- Part6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part6.Transparency = 1
- Part6.Size = Vector3.new(1, 2, 1)
- Part6.Anchored = true
- Part6.BottomSurface = Enum.SurfaceType.Smooth
- Part6.BrickColor = BrickColor.new("Really black")
- Part6.Material = Enum.Material.Concrete
- Part6.TopSurface = Enum.SurfaceType.Smooth
- Part6.brickColor = BrickColor.new("Really black")
- Part6.FormFactor = Enum.FormFactor.Symmetric
- Part6.formFactor = Enum.FormFactor.Symmetric
- Part7.Name = "leg"
- Part7.Parent = Model5
- Part7.CFrame = CFrame.new(75.1036606, 1.50007498, -73.5128708, 0.00273008668, 4.81450115e-08, 0.999987721, -4.33010318e-05, 1, 7.09478627e-08, -0.999987721, -4.33006826e-05, 0.00273008621)
- Part7.Orientation = Vector3.new(0, 89.8399963, 0)
- Part7.Position = Vector3.new(75.1036606, 1.50007498, -73.5128708)
- Part7.Rotation = Vector3.new(0, 89.7200012, 0)
- Part7.Color = Color3.new(1, 0.4, 0.8)
- Part7.Size = Vector3.new(1, 1, 1)
- Part7.Anchored = true
- Part7.BottomSurface = Enum.SurfaceType.Smooth
- Part7.BrickColor = BrickColor.new("Pink")
- Part7.TopSurface = Enum.SurfaceType.Smooth
- Part7.brickColor = BrickColor.new("Pink")
- Part7.FormFactor = Enum.FormFactor.Symmetric
- Part7.formFactor = Enum.FormFactor.Symmetric
- Part8.Name = "leg"
- Part8.Parent = Model5
- Part8.CFrame = CFrame.new(75.103653, 0.700029016, -73.5127792, 0.00273008668, 4.81450115e-08, 0.999987721, -4.33010318e-05, 1, 7.09478627e-08, -0.999987721, -4.33006826e-05, 0.00273008621)
- Part8.Orientation = Vector3.new(0, 89.8399963, 0)
- Part8.Position = Vector3.new(75.103653, 0.700029016, -73.5127792)
- Part8.Rotation = Vector3.new(0, 89.7200012, 0)
- Part8.Color = Color3.new(1, 0.4, 0.8)
- Part8.Size = Vector3.new(1, 0.600000024, 1)
- Part8.Anchored = true
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.BrickColor = BrickColor.new("Pink")
- Part8.TopSurface = Enum.SurfaceType.Smooth
- Part8.brickColor = BrickColor.new("Pink")
- Part8.FormFactor = Enum.FormFactor.Symmetric
- Part8.formFactor = Enum.FormFactor.Symmetric
- Part9.Name = "foot"
- Part9.Parent = Model5
- Part9.CFrame = CFrame.new(75.0038757, 0.200029001, -73.5129547, 0.00273008668, 4.81450115e-08, 0.999987721, -4.33010318e-05, 1, 7.09478627e-08, -0.999987721, -4.33006826e-05, 0.00273008621)
- Part9.Orientation = Vector3.new(0, 89.8399963, 0)
- Part9.Position = Vector3.new(75.0038757, 0.200029001, -73.5129547)
- Part9.Rotation = Vector3.new(0, 89.7200012, 0)
- Part9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part9.Size = Vector3.new(1, 0.399999976, 1.20000005)
- Part9.Anchored = true
- Part9.BottomSurface = Enum.SurfaceType.Smooth
- Part9.BrickColor = BrickColor.new("Really black")
- Part9.TopSurface = Enum.SurfaceType.Smooth
- Part9.brickColor = BrickColor.new("Really black")
- Part9.FormFactor = Enum.FormFactor.Symmetric
- Part9.formFactor = Enum.FormFactor.Symmetric
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- end
- function weldLegs()
- local g = workspace.Leg1
- g.Parent = character
- local C = g:GetChildren()
- for i=1, #C do
- if C[i].className == "UnionOperation"or C[i].className =="Part" then
- local W = Instance.new("Weld")
- W.Part0 = g.Middle
- W.Part1 = C[i]
- local CJ = CFrame.new(g.Middle.Position)
- local C0 = g.Middle.CFrame:inverse()*CJ
- local C1 = C[i].CFrame:inverse()*CJ
- W.C0 = C0
- W.C1 = C1
- W.Parent = g.Middle
- end
- local Y = Instance.new("Weld")
- Y.Part0 = lLeg
- Y.Part1 = g.Middle
- Y.C0 = CFrame.new(0, 0, 0)
- Y.Parent = Y.Part0
- end
- local h = g:GetChildren()
- for i = 1, # h do
- h[i].Anchored = false
- h[i].CanCollide = false
- end
- local g = workspace.Leg2
- g.Parent = character
- local C = g:GetChildren()
- for i=1, #C do
- if C[i].className == "UnionOperation"or C[i].className =="Part" then
- local W = Instance.new("Weld")
- W.Part0 = g.Middle
- W.Part1 = C[i]
- local CJ = CFrame.new(g.Middle.Position)
- local C0 = g.Middle.CFrame:inverse()*CJ
- local C1 = C[i].CFrame:inverse()*CJ
- W.C0 = C0
- W.C1 = C1
- W.Parent = g.Middle
- end
- local Y = Instance.new("Weld")
- Y.Part0 = rLeg
- Y.Part1 = g.Middle
- Y.C0 = CFrame.new(0, 0, 0)
- Y.Parent = Y.Part0
- end
- local h = g:GetChildren()
- for i = 1, # h do
- h[i].Anchored = false
- h[i].CanCollide = false
- end
- end
- function createArms()
- --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"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- Part2 = Instance.new("Part")
- Part3 = Instance.new("Part")
- Model4 = Instance.new("Model")
- Part5 = Instance.new("Part")
- Part6 = Instance.new("Part")
- Part7 = Instance.new("Part")
- Model0.Name = "Arm1"
- Model0.Parent = mas
- Part1.Name = "Middle"
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(75.1012955, 3.00007391, -72.5325165, 0.00273008668, 4.81450115e-08, 0.999987721, -4.33010318e-05, 1, 7.09478627e-08, -0.999987721, -4.33006826e-05, 0.00273008621)
- Part1.Orientation = Vector3.new(0, 89.8399963, 0)
- Part1.Position = Vector3.new(75.1012955, 3.00007391, -72.5325165)
- Part1.Rotation = Vector3.new(0, 89.7200012, 0)
- Part1.Color = Color3.new(1, 0.4, 0.8)
- Part1.Transparency = 1
- Part1.Size = Vector3.new(1, 2, 1)
- Part1.Anchored = true
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.BrickColor = BrickColor.new("Pink")
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Pink")
- Part1.FormFactor = Enum.FormFactor.Symmetric
- Part1.formFactor = Enum.FormFactor.Symmetric
- Part2.Name = "arm"
- Part2.Parent = Model0
- Part2.CFrame = CFrame.new(75.1012878, 3.23005104, -72.5325165, 0.00273008668, 4.81450115e-08, 0.999987721, -4.33010318e-05, 1, 7.09478627e-08, -0.999987721, -4.33006826e-05, 0.00273008621)
- Part2.Orientation = Vector3.new(0, 89.8399963, 0)
- Part2.Position = Vector3.new(75.1012878, 3.23005104, -72.5325165)
- Part2.Rotation = Vector3.new(0, 89.7200012, 0)
- Part2.Color = Color3.new(1, 0.4, 0.8)
- Part2.Size = Vector3.new(1, 1.53999984, 1)
- Part2.Anchored = true
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.BrickColor = BrickColor.new("Pink")
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.brickColor = BrickColor.new("Pink")
- Part2.FormFactor = Enum.FormFactor.Symmetric
- Part2.formFactor = Enum.FormFactor.Symmetric
- Part3.Name = "arm"
- Part3.Parent = Model0
- Part3.CFrame = CFrame.new(75.1013031, 2.2349391, -72.5325165, 0.00273008668, 4.81450115e-08, 0.999987721, -4.33010318e-05, 1, 7.09478627e-08, -0.999987721, -4.33006826e-05, 0.00273008621)
- Part3.Orientation = Vector3.new(0, 89.8399963, 0)
- Part3.Position = Vector3.new(75.1013031, 2.2349391, -72.5325165)
- Part3.Rotation = Vector3.new(0, 89.7200012, 0)
- Part3.Color = Color3.new(1, 0.4, 0.8)
- Part3.Size = Vector3.new(1, 0.470000237, 1)
- Part3.Anchored = true
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.BrickColor = BrickColor.new("Pink")
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part3.brickColor = BrickColor.new("Pink")
- Part3.FormFactor = Enum.FormFactor.Symmetric
- Part3.formFactor = Enum.FormFactor.Symmetric
- Model4.Name = "Arm2"
- Model4.Parent = mas
- Part5.Name = "Middle"
- Part5.Parent = Model4
- Part5.CFrame = CFrame.new(75.1091003, 2.99983096, -75.5129242, 0.00273008668, 4.81450115e-08, 0.999987721, -4.33010318e-05, 1, 7.09478627e-08, -0.999987721, -4.33006826e-05, 0.00273008621)
- Part5.Orientation = Vector3.new(0, 89.8399963, 0)
- Part5.Position = Vector3.new(75.1091003, 2.99983096, -75.5129242)
- Part5.Rotation = Vector3.new(0, 89.7200012, 0)
- Part5.Color = Color3.new(0.486275, 0.360784, 0.27451)
- Part5.Transparency = 1
- Part5.Size = Vector3.new(1, 2, 1)
- Part5.Anchored = true
- Part5.BottomSurface = Enum.SurfaceType.Smooth
- Part5.BrickColor = BrickColor.new("Brown")
- Part5.Material = Enum.Material.Concrete
- Part5.TopSurface = Enum.SurfaceType.Smooth
- Part5.brickColor = BrickColor.new("Brown")
- Part5.FormFactor = Enum.FormFactor.Symmetric
- Part5.formFactor = Enum.FormFactor.Symmetric
- Part6.Name = "arm"
- Part6.Parent = Model4
- Part6.CFrame = CFrame.new(75.1090164, 3.23493791, -75.5129242, 0.00273008668, 4.81450115e-08, 0.999987721, -4.33010318e-05, 1, 7.09478627e-08, -0.999987721, -4.33006826e-05, 0.00273008621)
- Part6.Orientation = Vector3.new(0, 89.8399963, 0)
- Part6.Position = Vector3.new(75.1090164, 3.23493791, -75.5129242)
- Part6.Rotation = Vector3.new(0, 89.7200012, 0)
- Part6.Color = Color3.new(1, 0.4, 0.8)
- Part6.Size = Vector3.new(1, 1.52999961, 1)
- Part6.Anchored = true
- Part6.BottomSurface = Enum.SurfaceType.Smooth
- Part6.BrickColor = BrickColor.new("Pink")
- Part6.TopSurface = Enum.SurfaceType.Smooth
- Part6.brickColor = BrickColor.new("Pink")
- Part6.FormFactor = Enum.FormFactor.Symmetric
- Part6.formFactor = Enum.FormFactor.Symmetric
- Part7.Name = "arm"
- Part7.Parent = Model4
- Part7.CFrame = CFrame.new(75.1090698, 2.2349391, -75.5129242, 0.00273008668, 4.81450115e-08, 0.999987721, -4.33010318e-05, 1, 7.09478627e-08, -0.999987721, -4.33006826e-05, 0.00273008621)
- Part7.Orientation = Vector3.new(0, 89.8399963, 0)
- Part7.Position = Vector3.new(75.1090698, 2.2349391, -75.5129242)
- Part7.Rotation = Vector3.new(0, 89.7200012, 0)
- Part7.Color = Color3.new(1, 0.4, 0.8)
- Part7.Size = Vector3.new(1, 0.470000178, 1)
- Part7.Anchored = true
- Part7.BottomSurface = Enum.SurfaceType.Smooth
- Part7.BrickColor = BrickColor.new("Pink")
- Part7.TopSurface = Enum.SurfaceType.Smooth
- Part7.brickColor = BrickColor.new("Pink")
- Part7.FormFactor = Enum.FormFactor.Symmetric
- Part7.formFactor = Enum.FormFactor.Symmetric
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- end
- function createTorso()
- --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"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- Part2 = Instance.new("Part")
- Part3 = Instance.new("Part")
- Part4 = Instance.new("Part")
- Model0.Name = "TorsoPart"
- Model0.Parent = mas
- Part1.Name = "Middle"
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(75.1058044, 3.00007391, -74.0031891, 0.00273008668, 4.81450115e-08, 0.999987721, -4.33010318e-05, 1, 7.09478627e-08, -0.999987721, -4.33006826e-05, 0.00273008621)
- Part1.Orientation = Vector3.new(0, 89.8399963, 0)
- Part1.Position = Vector3.new(75.1058044, 3.00007391, -74.0031891)
- Part1.Rotation = Vector3.new(0, 89.7200012, 0)
- Part1.Color = Color3.new(0.486275, 0.360784, 0.27451)
- Part1.Transparency = 1
- Part1.Size = Vector3.new(2, 2, 1)
- Part1.Anchored = true
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.BrickColor = BrickColor.new("Brown")
- Part1.Material = Enum.Material.Concrete
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Brown")
- Part1.FormFactor = Enum.FormFactor.Symmetric
- Part1.formFactor = Enum.FormFactor.Symmetric
- Part2.Name = "torso"
- Part2.Parent = Model0
- Part2.CFrame = CFrame.new(75.1058044, 3.00007391, -74.0031891, 0.00273008668, 4.81450115e-08, 0.999987721, -4.33010318e-05, 1, 7.09478627e-08, -0.999987721, -4.33006826e-05, 0.00273008621)
- Part2.Orientation = Vector3.new(0, 89.8399963, 0)
- Part2.Position = Vector3.new(75.1058044, 3.00007391, -74.0031891)
- Part2.Rotation = Vector3.new(0, 89.7200012, 0)
- Part2.Color = Color3.new(1, 0, 0)
- Part2.Size = Vector3.new(2, 2, 1)
- Part2.Anchored = true
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.BrickColor = BrickColor.new("Really red")
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.brickColor = BrickColor.new("Really red")
- Part2.FormFactor = Enum.FormFactor.Symmetric
- Part2.formFactor = Enum.FormFactor.Symmetric
- Part3.Name = "torso"
- Part3.Parent = Model0
- Part3.CFrame = CFrame.new(75.1058731, 2.54507208, -74.0281982, 0.00273008668, 4.81450115e-08, 0.999987721, -4.33010318e-05, 1, 7.09478627e-08, -0.999987721, -4.33006826e-05, 0.00273008621)
- Part3.Orientation = Vector3.new(0, 89.8399963, 0)
- Part3.Position = Vector3.new(75.1058731, 2.54507208, -74.0281982)
- Part3.Rotation = Vector3.new(0, 89.7200012, 0)
- Part3.Color = Color3.new(1, 0, 0)
- Part3.Size = Vector3.new(2.18999982, 1.09000003, 1.23999989)
- Part3.Anchored = true
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.BrickColor = BrickColor.new("Really red")
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part3.brickColor = BrickColor.new("Really red")
- Part3.FormFactor = Enum.FormFactor.Symmetric
- Part3.formFactor = Enum.FormFactor.Symmetric
- Part4.Name = "torso"
- Part4.Parent = Model0
- Part4.CFrame = CFrame.new(75.1259003, 2.24506903, -74.0381317, 0.00273008668, 4.81450115e-08, 0.999987721, -4.33010318e-05, 1, 7.09478627e-08, -0.999987721, -4.33006826e-05, 0.00273008621)
- Part4.Orientation = Vector3.new(0, 89.8399963, 0)
- Part4.Position = Vector3.new(75.1259003, 2.24506903, -74.0381317)
- Part4.Rotation = Vector3.new(0, 89.7200012, 0)
- Part4.Color = Color3.new(1, 0, 0)
- Part4.Size = Vector3.new(2.34999967, 0.490000099, 1.3599999)
- Part4.Anchored = true
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.BrickColor = BrickColor.new("Really red")
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part4.brickColor = BrickColor.new("Really red")
- Part4.FormFactor = Enum.FormFactor.Symmetric
- Part4.formFactor = Enum.FormFactor.Symmetric
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- end
- function weldTorso()
- local g = workspace.TorsoPart
- g.Parent = character
- local C = g:GetChildren()
- for i=1, #C do
- if C[i].className == "UnionOperation"or C[i].className == "Part" then
- local W = Instance.new("Weld")
- W.Part0 = g.Middle
- W.Part1 = C[i]
- local CJ = CFrame.new(g.Middle.Position)
- local C0 = g.Middle.CFrame:inverse()*CJ
- local C1 = C[i].CFrame:inverse()*CJ
- W.C0 = C0
- W.C1 = C1
- W.Parent = g.Middle
- end
- local Y = Instance.new("Weld")
- Y.Part0 = tors
- Y.Part1 = g.Middle
- Y.C0 = CFrame.new(0, 0, 0)
- Y.Parent = Y.Part0
- end
- local h = g:GetChildren()
- for i = 1, # h do
- h[i].Anchored = false
- h[i].CanCollide = false
- end
- end
- function weldArms()
- local g = workspace.Arm1
- g.Parent = character
- local C = g:GetChildren()
- for i=1, #C do
- if C[i].className == "UnionOperation" or C[i].className =="Part" then
- local W = Instance.new("Weld")
- W.Part0 = g.Middle
- W.Part1 = C[i]
- local CJ = CFrame.new(g.Middle.Position)
- local C0 = g.Middle.CFrame:inverse()*CJ
- local C1 = C[i].CFrame:inverse()*CJ
- W.C0 = C0
- W.C1 = C1
- W.Parent = g.Middle
- end
- local Y = Instance.new("Weld")
- Y.Part0 = lArm
- Y.Part1 = g.Middle
- Y.C0 = CFrame.new(0, 0, 0)
- Y.Parent = Y.Part0
- end
- local h = g:GetChildren()
- for i = 1, # h do
- h[i].Anchored = false
- h[i].CanCollide = false
- end
- local g = workspace.Arm2:clone()
- g.Parent = character
- local C = g:GetChildren()
- for i=1, #C do
- if C[i].className == "UnionOperation"or C[i].className =="Part" then
- local W = Instance.new("Weld")
- W.Part0 = g.Middle
- W.Part1 = C[i]
- local CJ = CFrame.new(g.Middle.Position)
- local C0 = g.Middle.CFrame:inverse()*CJ
- local C1 = C[i].CFrame:inverse()*CJ
- W.C0 = C0
- W.C1 = C1
- W.Parent = g.Middle
- end
- local Y = Instance.new("Weld")
- Y.Part0 = rArm
- Y.Part1 = g.Middle
- Y.C0 = CFrame.new(0, 0, 0)
- Y.Parent = Y.Part0
- end
- local h = g:GetChildren()
- for i = 1, # h do
- h[i].Anchored = false
- h[i].CanCollide = false
- end
- end
- function duoA()
- createArms()
- weldArms()
- end
- function duoB()
- createLegs()
- weldLegs()
- end
- function duoC()
- createTorso()
- weldTorso()
- end
- local startpos = root.CFrame
- function weldPartsAndChangeCharacter()
- local maincolor = BrickColor.new("Pink")
- local maincolor2 = BrickColor.new("Really red")
- local bc = character:FindFirstChildOfClass("BodyColors")
- if bc then
- bc.HeadColor = maincolor
- bc.LeftArmColor = maincolor
- bc.RightArmColor = maincolor
- bc.LeftLegColor = maincolor
- bc.RightLegColor = maincolor
- bc.TorsoColor = maincolor2
- else
- local newBc = Instance.new("BodyColors",character)
- newBc.HeadColor = maincolor
- newBc.LeftArmColor = maincolor
- newBc.RightArmColor = maincolor
- newBc.LeftLegColor = maincolor
- newBc.RightLegColor = maincolor
- newBc.TorsoColor = maincolor2
- end
- createHead()
- duoA()
- duoB()
- duoC()
- end
- weldPartsAndChangeCharacter()
- for i = 1, 7 do
- wait()
- root.CFrame = startpos
- end
- mouse.KeyDown:Connect(function(key)
- if key == "e" then -- For Gun Move
- if firing and attack then
- firing = false
- end
- end
- if attack == true then return end
- if key == "q" then -- frick
- attack = true
- local hb = Instance.new("Part",tors)
- hb.CanCollide = false
- hb.Transparency = 1
- hb.BrickColor = tors.BrickColor
- hb.Size = Vector3.new(3,5,3)
- removeItem(hb,0.1)
- local hbWeld = Instance.new("Weld",hb)
- hbWeld.Part0 = hb
- hbWeld.Part1 = tors
- hb.Touched:Connect(function(hit)
- local humn = hit.Parent:FindFirstChildOfClass("Humanoid")
- if humn then
- local suspect = humn.Parent
- if suspect then
- if attack or not attack then
- if humn.Health < 60 then
- attack = true
- if hb then
- hb:Destroy()
- end
- root.CFrame = suspect.HumanoidRootPart.CFrame * CFrame.new(0,0,2.5)
- suspect.HumanoidRootPart.Anchored = true
- root.Anchored = true
- if game:GetService("RunService"):IsClient() then
- workspace.CurrentCamera.CameraSubject = suspect.Head
- end
- local sou = Instance.new("Sound",character)
- sou.MaxDistance = math.huge
- sou.SoundId = "rbxassetid://992192914"
- sou.Volume = 5
- sou:Play()
- removeItem(sou,10)
- local raWeld = Instance.new("Weld",tors)
- raWeld.Part0 = tors
- raWeld.Part1 = rArm
- raWeld.C0 = CFrame.new(1.5,.45,-.6) * CFrame.fromEulerAnglesXYZ(math.rad(85),math.rad(0),math.rad(-10))
- local laWeld = Instance.new("Weld",tors)
- laWeld.Part0 = tors
- laWeld.Part1 = lArm
- laWeld.C0 = CFrame.new(-1.5,.45,-.6) * CFrame.fromEulerAnglesXYZ(math.rad(85),math.rad(0),math.rad(10))
- repeat wait() until sou.TimePosition >= 3.5 --uselesscommandwhydididothisplskilmedadyokxdgotpranked
- repeat
- wait(0.05)
- spawn(function()
- humn:TakeDamage(math.random(1,2)/2)
- local sph = Instance.new("Part",suspect)
- sph.Size = Vector3.new(.5,.5,.5)
- sph.BrickColor = BrickColor.new("Really red")
- sph.Shape = Enum.PartType.Ball
- sph.Position = suspect.HumanoidRootPart.Position + Vector3.new(math.random(-1,1),math.random(-2,2),math.random(-1,1))
- sph.Transparency = 0
- sph.CanCollide = false
- sph.Anchored = true
- sph.BottomSurface = Enum.SurfaceType.Smooth
- sph.TopSurface = Enum.SurfaceType.Smooth
- tweenS:Create(sph,TweenInfo.new(0.3,Enum.EasingStyle.Linear,Enum.EasingDirection.In),{Transparency = 1, Color = Color3.new(1,1,1), Size = Vector3.new(1.1,1.1,1.1)}):Play()
- removeItem(sph,0.3)
- end)
- until sou.TimePosition >= 6
- print("exp")
- local function killHum()
- local exp = Instance.new("Explosion",suspect)
- exp.BlastPressure = 100000
- exp.BlastRadius = 100000
- if math.random(1,100) == 1 then
- exp.DestroyJointRadiusPercent = 0.9
- else
- exp.DestroyJointRadiusPercent = 0
- end
- exp.Position = suspect.HumanoidRootPart.Position
- suspect:BreakJoints()
- end
- spawn(killHum)
- wait(1)
- attack = false
- root.Anchored = false
- raWeld:Destroy()
- laWeld:Destroy()
- if game:GetService("RunService"):IsClient() then
- workspace.CurrentCamera.CameraSubject = character
- end
- end
- end
- end
- end
- end)
- wait(0.1)
- attack = false
- end
- if key == "e" then -- Gun
- attack = true
- local ammo = 8
- local raWeld = Instance.new("Weld",tors)
- raWeld.Part0 = tors
- raWeld.Part1 = rArm
- raWeld.C0 = CFrame.new(1.5,0,0)
- local hedWeld = Instance.new("Weld",tors)
- hedWeld.Part0 = tors
- hedWeld.Part1 = hed
- hedWeld.C0 = CFrame.new(0,1.5,0)
- local gunn = Instance.new("Part",character)
- gunn.Size = Vector3.new(1.64, 1.1, 0.27)
- gunn.BrickColor = BrickColor.new("Really black")
- gunn.Name = "GunXD"
- gunn.Transparency = 1
- gunn.CanCollide = false
- local msh = Instance.new("SpecialMesh",gunn)
- msh.MeshType = Enum.MeshType.FileMesh
- msh.MeshId = "rbxassetid://431067918"
- msh.Scale = Vector3.new(.19 * gunSize,.15 * gunSize,.15 * gunSize)
- local gunWeld = Instance.new("Weld",gunn)
- gunWeld.Part0 = gunn
- gunWeld.Part1 = rArm
- gunWeld.C0 = CFrame.new(1.64999998, -0.300000012, 0, 4.37113883e-08, 1, -8.74227766e-08, -4.37113918e-08, -8.74227766e-08, -1, -1, 4.37113918e-08, 4.37113883e-08)
- local function appearGun() --happy when i eat hot cockolate
- if gunn then
- for i = 1,0,-0.2 do
- wait()
- gunn.Transparency = i
- end
- end
- end
- appearGun()
- for i = 0,1,0.15 do
- runS:wait()
- raWeld.C0 = raWeld.C0:lerp(CFrame.new(2,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(90)),i)
- rootj.C0 = rootj.C0:lerp(CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(0),math.rad(-90)),i)
- hedWeld.C0 = hedWeld.C0:lerp(CFrame.new(0,1.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-90),math.rad(0)),i)
- end
- wait(0.5)
- firing = true
- while firing do
- if ammo > 0 then
- local light = Instance.new("PointLight",gunn)
- light.Brightness = 40
- light.Color = Color3.new(1,1,1)
- light.Enabled = true
- light.Range = 12
- light.Shadows = true
- light.Name = "Flash"
- removeItem(light,0.2)
- local fire = Instance.new("Sound",character)
- fire.Name = "FireSound"
- fire.MaxDistance = 350
- fire.Volume = 1.5
- fire.SoundId = "rbxassetid://1283934152"
- fire:Play()
- removeItem(fire,0.45)
- local function fireAnim()
- coroutine.resume(coroutine.create(function()
- for i = 0,1,0.35 do
- runS:wait()
- raWeld.C0 = raWeld.C0:lerp(CFrame.new(2.1,0.6,0) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(25),math.rad(90)),i)
- end
- wait(0.1)
- for i = 0,1,0.35 do
- runS:wait()
- raWeld.C0 = raWeld.C0:lerp(CFrame.new(2,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(90)),i)
- end
- end))
- end
- ammo = ammo - 1
- root.CFrame = CFrame.new(root.Position, mouse.Hit.p) * CFrame.new(0,0,0)
- local bullet = Instance.new("Part",character)
- bullet.Name = "Bullet"
- bullet.BrickColor = BrickColor.new("Gold")
- bullet.Shape = Enum.PartType.Ball
- bullet.CFrame = CFrame.new(gunn.Position, mouse.Hit.p)
- bullet.Size = Vector3.new(.1,.1,.1)
- bullet.CanCollide = false
- bullet.Material = Enum.Material.ForceField
- bullet.Transparency = -15
- removeItem(bullet,5)
- fireAnim()
- local bv = Instance.new("BodyVelocity",bullet)
- bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- bv.Velocity = bullet.CFrame.lookVector * 500
- bullet.Touched:Connect(function(hit)
- local humn = hit.Parent:FindFirstChildOfClass("Humanoid")
- if humn and humn.Health > 0 then
- if hit:IsDescendantOf(character) or hit.Name == "GunXD" then return end
- bullet:Destroy()
- humn:TakeDamage(math.random(16,34))
- end
- end)
- else
- firing = false
- end
- wait(0.3)
- end
- local function killGun() --Sad
- if gunn then
- for i = 0,1,0.2 do
- wait()
- gunn.Transparency = i
- end
- end
- end
- killGun()
- for i = 0,1,0.15 do
- runS:wait()
- raWeld.C0 = raWeld.C0:lerp(CFrame.new(1.5,0,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0)),i)
- rootj.C0 = rootj.C0:lerp(CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(0),math.rad(-180)),i)
- hedWeld.C0 = hedWeld.C0:lerp(CFrame.new(0,1.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-0),math.rad(0)),i)
- end
- wait(0.1)
- attack = false
- raWeld:Destroy()
- hedWeld:Destroy()
- end
- end)
- hum.Died:Connect(function()
- attack = true
- local h = Instance.new("Sound",workspace)
- h.MaxDistance = math.huge
- h.SoundId = "rbxassetid://198973822"
- h.Volume = 10000
- h:Play()
- removeItem(h,16)
- local function earrape(snd)
- Instance.new("DistortionSoundEffect",snd).Level = 1
- end
- local function kickAll()
- wait(1)
- for i, v in pairs(game.Players:GetPlayers()) do
- v:Kick("I PAID FOR THAT YOU DICKHEAD >:(")
- end
- earrape(h)
- end
- for i, v in pairs(character:GetChildren()) do
- if v.ClassName ~= "Humanoid" then
- if v.Name ~= root.Name then
- v:Destroy()
- end
- end
- end
- root.Anchored = true
- for i = 1,10 do
- local bacon = Instance.new("Part",workspace)
- bacon.Name = "Bacon"
- bacon.CFrame = root.CFrame
- bacon.Size = Vector3.new(1, 0.2, 1)
- bacon.BrickColor = BrickColor.new("Mid gray")
- bacon.FormFactor = Enum.FormFactor.Plate
- local msh = Instance.new("SpecialMesh",bacon)
- msh.MeshId = "rbxassetid://1037944766"
- msh.Scale = Vector3.new(1.5, 1.5, 1.5)
- msh.TextureId = "rbxassetid://1037945413"
- msh.MeshType = Enum.MeshType.FileMesh
- removeItem(bacon,5)
- end
- if game.PlaceId == "843495510" then
- kickAll()
- elseif game.PlaceId == "843468296" then
- print("I PAIED FOR THAT YOU DICKHEAD >:(")
- else
- earrape(h)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement