Advertisement
Bleu_Ui

raw

Feb 18th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.52 KB | None | 0 0
  1. function fWeld(zName, zParent, zPart0, zPart1, zCoco, a, b, c, d, e, f)
  2.     local funcw = Instance.new("Weld")
  3.     local A = game.Lighting.PA
  4.     local B = game.Lighting.PB
  5.     funcw.Name = zName
  6.     funcw.Parent = zParent
  7.     funcw.Part0 = zPart0
  8.     funcw.Part1 = zPart1
  9.     if (zCoco == true) then
  10.     funcw.C0 = CFrame.new(a, b, c) * CFrame.fromEulerAnglesXYZ(d, e, f)
  11.     else
  12.     funcw.C1 = CFrame.new(a, b, c) * CFrame.fromEulerAnglesXYZ(d, e, f)
  13.     end
  14.     return funcw
  15.     end
  16.     function fun(n1, n2)
  17.     pcall(function()
  18.     t1 = game.Players[n1].Character.Torso
  19.     t2 = game.Players[n2].Character.Torso
  20.     t2.Parent.Humanoid.PlatformStand = true
  21.     t1["Left Shoulder"]:Remove()
  22.     ls1 = Instance.new("Weld")
  23.     ls1.Parent = t1
  24.     ls1.Part0 = t1
  25.     ls1.Part1 = t1.Parent["Left Arm"]
  26.     ls1.C0 = CFrame.new(-1.5,0,0)
  27.     ls1.Name = "Left Shoulder"
  28.     t1["Right Shoulder"]:Remove()
  29.     rs1 = Instance.new("Weld")
  30.     rs1.Parent = t1
  31.     rs1.Part0 = t1
  32.     rs1.Part1 = t1.Parent["Right Arm"]
  33.     rs1.C0 = CFrame.new(1.5,0,0)
  34.     rs1.Name = "Right Shoulder"
  35.     t2["Left Shoulder"]:Remove()
  36.     ls2 = Instance.new("Weld")
  37.     ls2.Parent = t2
  38.     ls2.Part0 = t2
  39.     ls2.Part1 = t2.Parent["Left Arm"]
  40.     ls2.C0 = CFrame.new(-1.5,0,0)
  41.     ls2.Name = "Left Shoulder"
  42.     t2["Right Shoulder"]:Remove()
  43.     rs2 = Instance.new("Weld")
  44.     rs2.Parent = t2
  45.     rs2.Part0 = t2
  46.     rs2.Part1 = t2.Parent["Right Arm"]
  47.     rs2.C0 = CFrame.new(1.5,0,0)
  48.     rs2.Name = "Right Shoulder"
  49.     t2["Left Hip"]:Remove()
  50.     lh2 = Instance.new("Weld")
  51.     lh2.Parent = t2
  52.     lh2.Part0 = t2
  53.     lh2.Part1 = t2.Parent["Left Leg"]
  54.     lh2.C0 = CFrame.new(-0.5,-2,0)
  55.     lh2.Name = "Left Hip"
  56.     t2["Right Hip"]:Remove()
  57.     rh2 = Instance.new("Weld")
  58.     rh2.Parent = t2
  59.     rh2.Part0 = t2
  60.     rh2.Part1 = t2.Parent["Right Leg"]
  61.     rh2.C0 = CFrame.new(0.5,-2,0)
  62.     rh2.Name = "Right Hip"
  63.     local d = Instance.new("Part")
  64.     d.TopSurface = 0
  65.     d.BottomSurface = 0
  66.     d.CanCollide = false
  67.     d.BrickColor = BrickColor.new("Medium stone grey")
  68.     d.Shape = "Ball"
  69.     d.Parent = t1
  70.     d.Size = Vector3.new(1,1,1)
  71.     local dm = Instance.new("SpecialMesh")
  72.     dm.MeshType = "Sphere"
  73.     dm.Parent = d
  74.     dm.Scale = Vector3.new(0.4,0.4,0.4)
  75.     fWeld("weld",t1,t1,d,true,-0.2,-1.3,-0.6,0,0,0)
  76.     d2 = d:Clone()
  77.     d2.Parent = t1
  78.     fWeld("weld",t1,t1,d2,true,0.2,-1.3,-0.6,0,0,0)
  79.     local c = Instance.new("Part")
  80.     c.TopSurface = 0
  81.     c.BottomSurface = 0
  82.     c.CanCollide = false
  83.     c.BrickColor = BrickColor.new("Pastel brown")
  84.     c.Parent = t1
  85.     c.formFactor = "Custom"
  86.     c.Size = Vector3.new(0.4,1.3,0.4)
  87.     cm = Instance.new("CylinderMesh")
  88.     cm.Parent = c
  89.     a = fWeld("weld",t1,t1,c,true,0,-1,-0.52+(-c.Size.y/2),math.rad(-80),0,0)
  90.     c2 = d:Clone()
  91.     c2.BrickColor = BrickColor.new("Medium stone grey")
  92.     c2.Mesh.Scale = Vector3.new(0.4,0.62,0.4)
  93.     c2.Parent = t1
  94.     fWeld("weld",c,c,c2,true,0,0+(c.Size.y/2),0,math.rad(-10),0,0)
  95.     local bl = Instance.new("Part")
  96.     bl.TopSurface = 0
  97.     bl.BottomSurface = 0
  98.     bl.CanCollide = false
  99.     bl.BrickColor = BrickColor.new("Pastel brown")
  100.     bl.Shape = "Ball"
  101.     bl.Parent = t2
  102.     bl.Size = Vector3.new(1,1,1)
  103.     local dm = Instance.new("SpecialMesh")
  104.     dm.MeshType = "Sphere"
  105.     dm.Parent = bl
  106.     dm.Scale = Vector3.new(1.2,1.2,1.2)
  107.     fWeld("weld",t2,t2,bl,true,-0.5,0.5,-0.6,0,0,0)
  108.     local br = Instance.new("Part")
  109.     br.TopSurface = 0
  110.     br.BottomSurface = 0
  111.     br.CanCollide = false
  112.     br.BrickColor = BrickColor.new("Pastel brown")
  113.     br.Shape = "Ball"
  114.     br.Parent = t2
  115.     br.Size = Vector3.new(1,1,1)
  116.     local dm = Instance.new("SpecialMesh")
  117.     dm.MeshType = "Sphere"
  118.     dm.Parent = br
  119.     dm.Scale = Vector3.new(1.2,1.2,1.2)
  120.     fWeld("weld",t2,t2,br,true,0.5,0.5,-0.6,0,0,0)
  121.     local bln = Instance.new("Part")
  122.     bln.TopSurface = 0
  123.     bln.BottomSurface = 0
  124.     bln.CanCollide = false
  125.     bln.Shape = "Ball"
  126.     bln.Parent = t2
  127.     bln.Size = Vector3.new(1,1,1)
  128.     local dm = Instance.new("SpecialMesh")
  129.     dm.MeshType = "Sphere"
  130.     dm.Parent = bln
  131.     dm.Scale = Vector3.new(0.2,0.2,0.2)
  132.     fWeld("weld",t2,t2,bln,true,-0.5,0.5,-1.2,0,0,0)
  133.     local brn = Instance.new("Part")
  134.     brn.TopSurface = 0
  135.     brn.BottomSurface = 0
  136.     brn.CanCollide = false
  137.     brn.Shape = "Ball"
  138.     brn.Parent = t2
  139.     brn.Size = Vector3.new(1,1,1)
  140.     local dm = Instance.new("SpecialMesh")
  141.     dm.MeshType = "Sphere"
  142.     dm.Parent = brn
  143.     dm.Scale = Vector3.new(0.2,0.2,0.2)
  144.     fWeld("weld",t2,t2,brn,true,0.5,0.5,-1.2,0,0,0)
  145.     lh2.C1 = CFrame.new(0,-1.5,-0.5) * CFrame.Angles(0.9,-0.4,0)
  146.     rh2.C1 = CFrame.new(0,-1.5,-0.5) * CFrame.Angles(0.9,0.4,0)
  147.     ls2.C1 = CFrame.new(-0.5,-1.3,-0.5) * CFrame.Angles(0.9,-0.4,0)
  148.     rs2.C1 = CFrame.new(0.5,-1.3,-0.5) * CFrame.Angles(0.9,0.4,0)
  149.     ls1.C1 = CFrame.new(-0.5,0.7,0) * CFrame.Angles(-0.9,-0.4,0)
  150.     rs1.C1 = CFrame.new(0.5,0.7,0) * CFrame.Angles(-0.9,0.4,0)
  151.     if t1:findFirstChild("weldx") ~= nil then
  152.     t1.weldx:Remove()
  153.     end
  154.     we = fWeld("weldx", t1, t1, t2, true, 0, -0.9, -1.3, math.rad(-90), 0, 0)
  155.     n = t2.Neck
  156.     n.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-210), math.rad(180), 0)
  157.     end)
  158.     coroutine.resume(coroutine.create(function()
  159.     while wait() do
  160.     for i = 1,6 do
  161.     we.C1 = we.C1 * CFrame.new(0,-0.3,0)
  162.     wait()
  163.     end
  164.      
  165.     for i = 1,6 do
  166.     we.C1 = we.C1 * CFrame.new(0,0.3,0)
  167.     wait()
  168.     end
  169.     end
  170.     end))
  171.     end
  172.     fun(A, B)
  173. print ("wokred")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement