Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = game.Players.localPlayer
- local Character = Player.Character
- local Humanoid = Character.Humanoid
- local Mouse = Player:GetMouse()
- local LeftArm = Character["Left Arm"]
- local RightArm = Character["Right Arm"]
- local LeftLeg = Character["Left Leg"]
- local RightLeg = Character["Right Leg"]
- local Head = Character.Head
- local Torso = Character.Torso
- local Camera = game.Workspace.CurrentCamera
- local RootPart = Character.HumanoidRootPart
- local RootJoint = RootPart.RootJoint
- local attack = false
- local Anim = 'Idle'
- local attacktype = 1
- local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
- local velocity = RootPart.Velocity.y
- local sine = 0
- local change = 1
- local oml = false
- local Equipped = false
- local hide = false
- local Gender = 1 --Triggered
- local Create = LoadLibrary("RbxUtility").Create
- Character.Humanoid.MaxHealth = math.huge
- Character.Humanoid.Health = math.huge
- local m = Create("Model"){
- Parent = Character,
- Name = "WeaponModel",
- }
- Humanoid.Animator.Parent = nil
- Character.Animate.Parent = nil
- local newMotor = function(part0, part1, c0, c1)
- local w = Create('Motor'){
- Parent = part0,
- Part0 = part0,
- Part1 = part1,
- C0 = c0,
- C1 = c1,
- }
- return w
- end
- function clerp(a, b, t)
- return a:lerp(b, t)
- end
- RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
- NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
- local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
- local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
- local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
- RootJoint.C1 = CFrame.new(0, 0, 0)
- RootJoint.C0 = CFrame.new(0, 0, 0)
- Torso.Neck.C1 = CFrame.new(0, 0, 0)
- Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
- local rarmc1 = RW.C1
- local larmc1 = LW.C1
- local rlegc1 = RH.C1
- local llegc1 = LH.C1
- local resetc1 = false
- function PlayAnimationFromTable(table, speed, bool)
- RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
- RW.C0 = clerp(RW.C0, table[3], speed)
- LW.C0 = clerp(LW.C0, table[4], speed)
- RH.C0 = clerp(RH.C0, table[5], speed)
- LH.C0 = clerp(LH.C0, table[6], speed)
- if bool == true then
- if resetc1 == false then
- resetc1 = true
- RootJoint.C1 = RootJoint.C1
- Torso.Neck.C1 = Torso.Neck.C1
- RW.C1 = rarmc1
- LW.C1 = larmc1
- RH.C1 = rlegc1
- LH.C1 = llegc1
- end
- end
- end
- ArtificialHB = Create("BindableEvent", script){
- Parent = script,
- Name = "Heartbeat",
- }
- script:WaitForChild("Heartbeat")
- frame = 1 / 30
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.Heartbeat:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.Heartbeat:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- script.Heartbeat:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- function swait(num)
- if num == 0 or num == nil then
- ArtificialHB.Event:wait()
- else
- for i = 0, num do
- ArtificialHB.Event:wait()
- end
- end
- end
- function RemoveOutlines(part)
- part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
- end
- CFuncs = {
- ["Part"] = {
- Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
- local Part = Create("Part"){
- Parent = Parent,
- Reflectance = Reflectance,
- Transparency = Transparency,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new(tostring(BColor)),
- Name = Name,
- Size = Size,
- Material = Material,
- }
- RemoveOutlines(Part)
- return Part
- end;
- };
- ["Mesh"] = {
- Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh){
- Parent = Part,
- Offset = OffSet,
- Scale = Scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end;
- };
- ["Mesh"] = {
- Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh){
- Parent = Part,
- Offset = OffSet,
- Scale = Scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end;
- };
- ["Weld"] = {
- Create = function(Parent, Part0, Part1, C0, C1)
- local Weld = Create("Weld"){
- Parent = Parent,
- Part0 = Part0,
- Part1 = Part1,
- C0 = C0,
- C1 = C1,
- }
- return Weld
- end;
- };
- ["Sound"] = {
- Create = function(id, par, vol, pit)
- coroutine.resume(coroutine.create(function()
- local S = Create("Sound"){
- Volume = vol,
- Pitch = pit or 1,
- SoundId = id,
- Parent = par or workspace,
- }
- wait()
- S:play()
- game:GetService("Debris"):AddItem(S, 6)
- end))
- end;
- };
- ["ParticleEmitter"] = {
- Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
- local fp = Create("ParticleEmitter"){
- Parent = Parent,
- Color = ColorSequence.new(Color1, Color2),
- LightEmission = LightEmission,
- Size = Size,
- Texture = Texture,
- Transparency = Transparency,
- ZOffset = ZOffset,
- Acceleration = Accel,
- Drag = Drag,
- LockedToPart = LockedToPart,
- VelocityInheritance = VelocityInheritance,
- EmissionDirection = EmissionDirection,
- Enabled = Enabled,
- Lifetime = LifeTime,
- Rate = Rate,
- Rotation = Rotation,
- RotSpeed = RotSpeed,
- Speed = Speed,
- VelocitySpread = VelocitySpread,
- }
- return fp
- end;
- };
- CreateTemplate = {
- };
- }
- New = function(Object, Parent, Name, Data)
- local Object = Instance.new(Object)
- for Index, Value in pairs(Data or {}) do
- Object[Index] = Value
- end
- Object.Parent = Parent
- Object.Name = Name
- return Object
- end
- New = function(Object, Parent, Name, Data)
- local Object = Instance.new(Object)
- for Index, Value in pairs(Data or {}) do
- Object[Index] = Value
- end
- Object.Parent = Parent
- Object.Name = Name
- return Object
- end
- Milk = New("Model",Torso,"Milk",{})
- LeftTip = New("Part",Milk,"Left Bump Tip",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Symmetric,Shape = Enum.PartType.Ball,Size = Vector3.new(2, 2.00000024, 2.00000024),CFrame = CFrame.new(40.114666, 0.400974065, -1.34042966, -0.0136929303, 0.0188778769, -0.999728203, 0.00231057359, -0.999818683, -0.0189112332, -0.99990356, -0.00256889523, 0.0136468112),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.854902, 0.52549, 0.478431),})
- Mesh = New("SpecialMesh",LeftTip,"Mesh",{Scale = Vector3.new(0.199999928, 0.199999928, 0.199999928),MeshType = Enum.MeshType.Sphere,})
- mot = New("Motor",LeftTip,"mot",{Part0 = LeftTip,Part1 = Torso,C0 = CFrame.new(0, 0, 0, -0.0136929303, 0.00231057359, -0.99990356, 0.0188778769, -0.999818683, -0.00256889523, -0.999728203, -0.0189112332, 0.0136468112),C1 = CFrame.new(-0.685337067, 0.400954008, -0.810440779, 1, -4.71251241e-07, 1.28895817e-06, 4.712426e-07, 1, 6.70561803e-06, -1.28896136e-06, -6.70561758e-06, 1),})
- Big = New("Part",Milk,"Bigga",{BrickColor = BrickColor.new("Lily white"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Symmetric,Shape = Enum.PartType.Ball,Size = Vector3.new(1, 1.00000012, 1.00000012),CFrame = CFrame.new(40.2831955, 0.405953944, -0.919200182, -0.999724925, 0.018915711, 0.013881512, -0.0189493317, -0.999817967, -0.00229446031, 0.0138355643, -0.00255687325, 0.999901175),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth})
- Mesh = New("SpecialMesh",Big,"Mesh",{Scale = Vector3.new(1.10000002, 1.10000002, 1.10000002),MeshType = Enum.MeshType.Sphere,})
- mot = New("Motor",Big,"mot",{Part0 = Big,Part1 = Torso,C0 = CFrame.new(0, 0, 0, -0.999724925, -0.0189493317, 0.0138355643, 0.018915711, -0.999817967, -0.00255687325, 0.013881512, -0.00229446031, 0.999901175),C1 = CFrame.new(-0.516807556, 0.405936778, -0.389211595, 1, -4.71251241e-07, 1.28895817e-06, 4.712426e-07, 1, 6.70561803e-06, -1.28896136e-06, -6.70561758e-06, 1),})
- Big = New("Part",Milk,"Bigga",{BrickColor = BrickColor.new("Lily white"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Symmetric,Shape = Enum.PartType.Ball,Size = Vector3.new(1, 1.00000012, 1.00000012),CFrame = CFrame.new(41.2824554, 0.42572841, -0.948771834, -0.999722004, 0.0190666858, 0.0138863847, -0.0191003699, -0.999815047, -0.00229704427, 0.0138400048, -0.00256163999, 0.999901056),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth})
- Mesh = New("SpecialMesh",Big,"Mesh",{Scale = Vector3.new(1.10000002, 1.10000002, 1.10000002),MeshType = Enum.MeshType.Sphere,})
- mot = New("Motor",Big,"mot",{Part0 = Big,Part1 = Torso,C0 = CFrame.new(0, 0, 0, -0.999722004, -0.0191003699, 0.0138400048, 0.0190666858, -0.999815047, -0.00256163999, 0.0138863847, -0.00229704427, 0.999901056),C1 = CFrame.new(0.482452393, 0.425711542, -0.418784678, 1, -4.71251241e-07, 1.28895817e-06, 4.712426e-07, 1, 6.70561803e-06, -1.28896136e-06, -6.70561758e-06, 1),})
- LeftTip = New("Part",Milk,"Left Bump Tip",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Symmetric,Shape = Enum.PartType.Ball,Size = Vector3.new(2, 2.00000024, 2.00000024),CFrame = CFrame.new(41.3635826, 0.425968498, -1.38403642, -0.0136998966, 0.0190271325, -0.999725401, 0.0023103063, -0.999815822, -0.0190605167, -0.9999035, -0.00257079722, 0.0136533827),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.854902, 0.52549, 0.478431),})
- Mesh = New("SpecialMesh",LeftTip,"Mesh",{Scale = Vector3.new(0.199999928, 0.199999928, 0.199999928),MeshType = Enum.MeshType.Sphere,})
- mot = New("Motor",LeftTip,"mot",{Part0 = LeftTip,Part1 = Torso,C0 = CFrame.new(0, 0, 0, -0.0136998966, 0.0023103063, -0.9999035, 0.0190271325, -0.999815822, -0.00257079722, -0.999725401, -0.0190605167, 0.0136533827),C1 = CFrame.new(0.563579559, 0.425948739, -0.854049325, 1, -4.71251241e-07, 1.28895817e-06, 4.712426e-07, 1, 6.70561803e-06, -1.28896136e-06, -6.70561758e-06, 1),})
- LeftTip2 = New("Part",Milk,"Left Bump Tip2",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Symmetric,Shape = Enum.PartType.Ball,Size = Vector3.new(1, 1.00000012, 1.00000012),CFrame = CFrame.new(40.0788956, 0.411017627, -1.47115374, -0.0136929303, 0.0188778769, -0.999728203, 0.00231057359, -0.999818683, -0.0189112332, -0.99990356, -0.00256889523, 0.0136468112),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.854902, 0.52549, 0.478431),})
- Mesh = New("SpecialMesh",LeftTip2,"Mesh",{Scale = Vector3.new(0.199999928, 0.199999928, 0.199999928),MeshType = Enum.MeshType.Sphere,})
- mot = New("Motor",LeftTip2,"mot",{Part0 = LeftTip2,Part1 = Torso,C0 = CFrame.new(0, 0, 0, -0.0136929303, 0.00231057359, -0.99990356, 0.0188778769, -0.999818683, -0.00256889523, -0.999728203, -0.0189112332, 0.0136468112),C1 = CFrame.new(-0.721107483, 0.410996675, -0.94116497, 1, -4.71251241e-07, 1.28895817e-06, 4.712426e-07, 1, 6.70561803e-06, -1.28896136e-06, -6.70561758e-06, 1),})
- LeftTip2 = New("Part",Milk,"Left Bump Tip2",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Symmetric,Shape = Enum.PartType.Ball,Size = Vector3.new(1, 1.00000012, 1.00000012),CFrame = CFrame.new(41.3674202, 0.437439501, -1.51978374, -0.0136998966, 0.0190271325, -0.999725401, 0.0023103063, -0.999815822, -0.0190605167, -0.9999035, -0.00257079722, 0.0136533827),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.854902, 0.52549, 0.478431),})
- Mesh = New("SpecialMesh",LeftTip2,"Mesh",{Scale = Vector3.new(0.199999928, 0.199999928, 0.199999928),MeshType = Enum.MeshType.Sphere,})
- mot = New("Motor",LeftTip2,"mot",{Part0 = LeftTip2,Part1 = Torso,C0 = CFrame.new(0, 0, 0, -0.0136998966, 0.0023103063, -0.9999035, 0.0190271325, -0.999815822, -0.00257079722, -0.999725401, -0.0190605167, 0.0136533827),C1 = CFrame.new(0.567417145, 0.437418818, -0.989796638, 1, -4.71251241e-07, 1.28895817e-06, 4.712426e-07, 1, 6.70561803e-06, -1.28896136e-06, -6.70561758e-06, 1),})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement