plytalent

Roland Character Script Test RBX

Sep 18th, 2021 (edited)
915
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 45.12 KB | None | 0 0
  1. function createface()
  2.     local Model0 = Instance.new("Model");
  3.     local Part1 = Instance.new("Part");
  4.     local SpecialMesh2 = Instance.new("SpecialMesh");
  5.     local Part3 = Instance.new("Part");
  6.     local Decal4 = Instance.new("Decal");
  7.     local SpecialMesh5 = Instance.new("SpecialMesh");
  8.     local Weld6 = Instance.new("Weld");
  9.     local Weld7 = Instance.new("Weld");
  10.     local Part8 = Instance.new("Part");
  11.     local SpecialMesh9 = Instance.new("SpecialMesh");
  12.     local Weld10 = Instance.new("Weld");
  13.     Model0.Name = "HeadAcc";
  14.     Part1.Name = "Hair";
  15.     Part1.Parent = Model0;
  16.     Part1.CFrame = CFrame.new(-10.5516481, 3.84958363, -39.6669617, -0.139173076, 0, 0.990268052, 0, 1, 0, -0.990268052, 0, -0.139173076);
  17.     Part1.Orientation = Vector3.new(0, 98, 0);
  18.     Part1.Position = Vector3.new(-10.551648139954, 3.8495836257935, -39.666961669922);
  19.     Part1.Rotation = Vector3.new(-180, 82, -180);
  20.     Part1.Size = Vector3.new(1, 1, 1);
  21.     Part1.BottomSurface = Enum.SurfaceType.Smooth;
  22.     Part1.TopSurface = Enum.SurfaceType.Smooth;
  23.     SpecialMesh2.Name = "SpecialMesh";
  24.     SpecialMesh2.Parent = Part1;
  25.     SpecialMesh2.MeshId = "rbxassetid://6521980205";
  26.     SpecialMesh2.Scale = Vector3.new(0.94999998807907, 0.95999997854233, 0.91000002622604);
  27.     SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=6517665515";
  28.     SpecialMesh2.MeshType = Enum.MeshType.FileMesh;
  29.     Part3.Name = "Head";
  30.     Part3.Parent = Model0;
  31.     Part3.CFrame = CFrame.new(-10.8355103, 4.5, -39.626709, 0, 0, 1, 0, 1, -0, -1, 0, 0);
  32.     Part3.Orientation = Vector3.new(0, 90, 0);
  33.     Part3.Position = Vector3.new(-10.835510253906, 4.5, -39.626708984375);
  34.     Part3.Rotation = Vector3.new(0, 90, 0);
  35.     Part3.Size = Vector3.new(2, 1, 1);
  36.     Part3.BottomSurface = Enum.SurfaceType.Smooth;
  37.     Part3.TopSurface = Enum.SurfaceType.Smooth;
  38.     Decal4.Name = "Face";
  39.     Decal4.Parent = Part3;
  40.     Decal4.Texture = "rbxasset://textures/face.png";
  41.     SpecialMesh5.Parent = Part3;
  42.     SpecialMesh5.Scale = Vector3.new(1.25, 1.25, 1.25);
  43.     Weld6.Name = "Hair";
  44.     Weld6.Parent = Part3;
  45.     Weld6.C0 = CFrame.new(0.0402526855, -0.650416374, 0.283862114, 0.990268052, 0, 0.139173076, 0, 1, 0, -0.139173076, 0, 0.990268052);
  46.     Weld6.Part0 = Part3;
  47.     Weld6.Part1 = Part1;
  48.     Weld6.part1 = Part1;
  49.     Weld7.Name = "Mask";
  50.     Weld7.Parent = Part3;
  51.     Weld7.C0 = CFrame.new(0.000289916992, 0, -0.0448408127, 0.99999994, 0, 0, 0, 1, 0, 0, 0, 0.99999994);
  52.     Weld7.Part0 = Part3;
  53.     Weld7.Part1 = Part8;
  54.     Weld7.part1 = Part8;
  55.     Part8.Name = "Mask";
  56.     Part8.Parent = Model0;
  57.     Part8.CFrame = CFrame.new(-10.8803511, 4.5, -39.6269989, 0, 0, 0.99999994, 0, 1, 0, -0.99999994, 0, 0);
  58.     Part8.Orientation = Vector3.new(0, 90, 0);
  59.     Part8.Position = Vector3.new(-10.880351066589, 4.5, -39.626998901367);
  60.     Part8.Rotation = Vector3.new(0, 89.980003356934, 0);
  61.     Part8.Size = Vector3.new(1, 1, 1);
  62.     Part8.BottomSurface = Enum.SurfaceType.Smooth;
  63.     Part8.TopSurface = Enum.SurfaceType.Smooth;
  64.     SpecialMesh9.Name = "SpecialMesh";
  65.     SpecialMesh9.Parent = Part8;
  66.     SpecialMesh9.MeshId = "rbxassetid://5728632913";
  67.     SpecialMesh9.TextureId = "http://www.roblox.com/asset/?id=4809181158";
  68.     SpecialMesh9.MeshType = Enum.MeshType.FileMesh;
  69.     Weld10.Name = "Hair";
  70.     Weld10.Parent = Part8;
  71.     Weld10.C0 = CFrame.new(0.0399627686, -0.650416374, 0.328702927, 0.990268052, 0, 0.139173076, 0, 1, 0, -0.139173076, 0, 0.990268052);
  72.     Weld10.Part0 = Part8;
  73.     Weld10.Part1 = Part1;
  74.     Weld10.part1 = Part1;
  75.     return Model0;
  76. end
  77. function creategun()
  78.     local Model0 = Instance.new("Model")
  79.     local Part1 = Instance.new("Part")
  80.     local SpecialMesh2 = Instance.new("SpecialMesh")
  81.     local Weld3 = Instance.new("Weld")
  82.     local Part4 = Instance.new("Part")
  83.     local Part5 = Instance.new("Part")
  84.     local Weld6 = Instance.new("Weld")
  85.     Model0.Name = "GunModel"
  86.     Model0.PrimaryPart = Part1
  87.     Part1.Name = "gun"
  88.     Part1.Parent = Model0
  89.     Part1.CFrame = CFrame.new(-36.0459862, 2.68512678, 5.4637394, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  90.     Part1.Position = Vector3.new(-36.045986175537, 2.6851267814636, 5.4637393951416)
  91.     Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  92.     Part1.Size = Vector3.new(0.20847088098526, 0.94680535793304, 6.3699998855591)
  93.     Part1.BottomSurface = Enum.SurfaceType.Smooth
  94.     Part1.BrickColor = BrickColor.new("Really black")
  95.     Part1.CanCollide = false
  96.     Part1.Locked = true
  97.     Part1.Reflectance = -100
  98.     Part1.TopSurface = Enum.SurfaceType.Smooth
  99.     Part1.brickColor = BrickColor.new("Really black")
  100.     SpecialMesh2.Parent = Part1
  101.     SpecialMesh2.MeshId = "rbxassetid://7515835851"
  102.     SpecialMesh2.Scale = Vector3.new(0.45717298984528, 0.4571730196476, 0.45717298984528)
  103.     SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  104.     Weld3.Name = "Bullet"
  105.     Weld3.Parent = Part1
  106.     Weld3.C0 = CFrame.new(0, 0.313477516, -3.12394595, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  107.     Weld3.Part0 = Part1
  108.     Weld3.Part1 = Part4
  109.     Weld3.part1 = Part4
  110.     Part4.Name = "Bullet"
  111.     Part4.Parent = Model0
  112.     Part4.CFrame = CFrame.new(-36.0459862, 2.9986043, 2.33979344, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  113.     Part4.Position = Vector3.new(-36.045986175537, 2.9986042976379, 2.3397934436798)
  114.     Part4.Size = Vector3.new(0.10000000149012, 0.10000000149012, 0.10000000149012)
  115.     Part4.BottomSurface = Enum.SurfaceType.Smooth
  116.     Part4.CanCollide = false
  117.     Part4.Locked = true
  118.     Part4.TopSurface = Enum.SurfaceType.Smooth
  119.     Part5.Name = "Handle"
  120.     Part5.Parent = Model0
  121.     Part5.CFrame = CFrame.new(-36.0605736, 3.12793541, 7.73314953, 1, 0, 0, 0, 0.464352816, -0.885652781, 0, 0.885652781, 0.464352816)
  122.     Part5.Orientation = Vector3.new(62.330001831055, 0, 0)
  123.     Part5.Position = Vector3.new(-36.060573577881, 3.1279354095459, 7.7331495285034)
  124.     Part5.Rotation = Vector3.new(62.330001831055, 0, 0)
  125.     Part5.Size = Vector3.new(1, 2, 1)
  126.     Part5.BottomSurface = Enum.SurfaceType.Smooth
  127.     Part5.CanCollide = false
  128.     Part5.Locked = true
  129.     Part5.TopSurface = Enum.SurfaceType.Smooth
  130.     Weld6.Name = "gun"
  131.     Weld6.Parent = Part5
  132.     Weld6.C0 = CFrame.new(0.0725860596, -2.21551895, -0.661629438, 1, 0, 0, 0, 0.464352816, 0.885652781, 0, -0.885652781, 0.464352816)
  133.     Weld6.C1 = CFrame.new(0.0580000021, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  134.     Weld6.Part0 = Part5
  135.     Weld6.Part1 = Part1
  136.     Weld6.part1 = Part1
  137.     return Model0
  138. end
  139. function creategun2()
  140.     local Model0 = Instance.new("Model")
  141.     local Part1 = Instance.new("Part")
  142.     local Part2 = Instance.new("Part")
  143.     local SpecialMesh3 = Instance.new("SpecialMesh")
  144.     local Weld4 = Instance.new("Weld")
  145.     local Part5 = Instance.new("Part")
  146.     local Weld6 = Instance.new("Weld")
  147.     Model0.Name = "Gun"
  148.     Model0.PrimaryPart = Part2
  149.     Part1.Name = "Handle"
  150.     Part1.Parent = Model0
  151.     Part1.CFrame = CFrame.new(-56.3740005, 3.78794551, 7.83799982, 1, 3.82137432e-15, -8.74228334e-08, -3.82137093e-15, 1.00000095, 3.34075197e-22, 8.74227837e-08, 1.26217745e-28, 1.00000072)
  152.     Part1.Position = Vector3.new(-56.374000549316, 3.7879455089569, 7.8379998207092)
  153.     Part1.Transparency = 1
  154.     Part1.Size = Vector3.new(1, 2, 1)
  155.     Part1.BottomSurface = Enum.SurfaceType.Smooth
  156.     Part1.CanCollide = false
  157.     Part1.TopSurface = Enum.SurfaceType.Smooth
  158.     Part2.Name = "Gun"
  159.     Part2.Parent = Model0
  160.     Part2.CFrame = CFrame.new(-56.3740005, 2.14700007, 7.55256653, -1, 8.74227624e-08, -3.82137093e-15, 3.82137093e-15, 0, -1, -8.74227766e-08, -0.999999881, -3.34074869e-22)
  161.     Part2.Orientation = Vector3.new(90, 180, 0)
  162.     Part2.Position = Vector3.new(-56.374000549316, 2.1470000743866, 7.5525665283203)
  163.     Part2.Rotation = Vector3.new(90, 0, -180)
  164.     Part2.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  165.     Part2.Size = Vector3.new(0.37797310948372, 0.94999998807907, 2.6956248283386)
  166.     Part2.BottomSurface = Enum.SurfaceType.Smooth
  167.     Part2.BrickColor = BrickColor.new("Really black")
  168.     Part2.Reflectance = -1000
  169.     Part2.TopSurface = Enum.SurfaceType.Smooth
  170.     Part2.brickColor = BrickColor.new("Really black")
  171.     Part2.CanCollide = false
  172.     SpecialMesh3.Parent = Part2
  173.     SpecialMesh3.MeshId = "rbxassetid://7523374921"
  174.     SpecialMesh3.Scale = Vector3.new(0.38372907042503, 0.38372913002968, 0.38372910022736)
  175.     SpecialMesh3.MeshType = Enum.MeshType.FileMesh
  176.     Weld4.Name = "Handle"
  177.     Weld4.Parent = Part2
  178.     Weld4.C0 = CFrame.new(0, -0.285433292, -1.64094543, -1, 4.23516474e-22, 0, -7.10542736e-15, 3.34075096e-22, -1.00000083, -2.92057526e-29, -1.00000095, -3.34075197e-22)
  179.     Weld4.Part0 = Part2
  180.     Weld4.Part1 = Part1
  181.     Weld4.part1 = Part1
  182.     Part5.Name = "Bullet"
  183.     Part5.Parent = Model0
  184.     Part5.CFrame = CFrame.new(-56.3740005, 0.811995029, 7.22424364, 1, 0, 2.13162821e-14, 0, 1, 0, 2.13162821e-14, 0, 0.999999762)
  185.     Part5.Position = Vector3.new(-56.374000549316, 0.81199502944946, 7.2242436408997)
  186.     Part5.Transparency = 1
  187.     Part5.Size = Vector3.new(0.10000000149012, 0.10000000149012, 0.10000000149012)
  188.     Part5.BottomSurface = Enum.SurfaceType.Smooth
  189.     Part5.TopSurface = Enum.SurfaceType.Smooth
  190.     Part5.CanCollide = false
  191.     Weld6.Name = "Part"
  192.     Weld6.Parent = Part5
  193.     Weld6.C0 = CFrame.new(0, 1.33500504, 0.328322887, -1, 8.74227624e-08, -3.82137093e-15, 3.82137093e-15, 0, -1, -8.74227766e-08, -0.999999881, -3.34074869e-22)
  194.     Weld6.Part0 = Part5
  195.     Weld6.Part1 = Part2
  196.     Weld6.part1 = Part2
  197.     return Model0
  198. end
  199. function createsword()
  200.     local Model0 = Instance.new("Model")
  201.     local Part1 = Instance.new("Part")
  202.     local ParticleEmitter2 = Instance.new("ParticleEmitter")
  203.     local Part3 = Instance.new("Part")
  204.     local Weld4 = Instance.new("Weld")
  205.     local Part5 = Instance.new("Part")
  206.     local Weld6 = Instance.new("Weld")
  207.     local SpecialMesh7 = Instance.new("SpecialMesh")
  208.     Model0.Name = "Main"
  209.     Model0.PrimaryPart = Part1
  210.     Part1.Name = "Hitbox"
  211.     Part1.Parent = Model0
  212.     Part1.CFrame = CFrame.new(-65.1884003, 2.34880948, 29.0725231, 1, 0, 0, 0, 1, 4.37113883e-08, 0, -4.37113883e-08, 1)
  213.     Part1.Position = Vector3.new(-65.188400268555, 2.3488094806671, 29.072523117065)
  214.     Part1.Transparency = 1
  215.     Part1.Size = Vector3.new(0.0010000000474975, 0.6583531498909, 11.325116157532)
  216.     Part1.BottomSurface = Enum.SurfaceType.Smooth
  217.     Part1.CanCollide = false
  218.     Part1.TopSurface = Enum.SurfaceType.Smooth
  219.     ParticleEmitter2.Parent = Part1
  220.     ParticleEmitter2.Speed = NumberRange.new(0, 0)
  221.     ParticleEmitter2.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0.117647, 0.117647, 0.117647))
  222.     ParticleEmitter2.LightInfluence = 1
  223.     ParticleEmitter2.Texture = "rbxassetid://603193846"
  224.     ParticleEmitter2.Transparency = NumberSequence.new(0,1)
  225.     ParticleEmitter2.ZOffset = 1
  226.     ParticleEmitter2.Size = NumberSequence.new(0.3125,0)
  227.     ParticleEmitter2.Acceleration = Vector3.new(0, 5, 0)
  228.     ParticleEmitter2.EmissionDirection = Enum.NormalId.Back
  229.     ParticleEmitter2.Lifetime = NumberRange.new(0.75, 1)
  230.     ParticleEmitter2.Rate = 3000
  231.     Part3.Name = "Handle"
  232.     Part3.Parent = Model0
  233.     Part3.CFrame = CFrame.new(-65.2248993, 3.1950767, 37.3521118, 1, 0, 0, 0, 0.985921264, -0.167210802, 0, 0.167210802, 0.985921264)
  234.     Part3.Orientation = Vector3.new(9.6300001144409, 0, 0)
  235.     Part3.Position = Vector3.new(-65.224899291992, 3.1950767040253, 37.352111816406)
  236.     Part3.Rotation = Vector3.new(9.6300001144409, 0, 0)
  237.     Part3.Transparency = 1
  238.     Part3.Size = Vector3.new(1, 2, 1)
  239.     Part3.BottomSurface = Enum.SurfaceType.Smooth
  240.     Part3.CanCollide = false
  241.     Part3.TopSurface = Enum.SurfaceType.Smooth
  242.     Weld4.Name = "Sword"
  243.     Weld4.Parent = Part3
  244.     Weld4.C0 = CFrame.new(0.0368614197, -0.65113759, -6.00376034, 1, 0, 0, 0, 0, 1, 0, -1, 0)
  245.     Weld4.C1 = CFrame.new(0, 0, 1.20799994, 1, 0, 0, 0, 0.985921264, -0.167210847, 0, 0.167210847, 0.985921264)
  246.     Weld4.Part0 = Part3
  247.     Weld4.Part1 = Part5
  248.     Weld4.part1 = Part5
  249.     Part5.Name = "Sword"
  250.     Part5.Parent = Model0
  251.     Part5.CFrame = CFrame.new(-65.1880417, 2.34899998, 31.3239994, 1, 0, 0, 0, -4.37113883e-08, 1, 0, -1, -4.37113883e-08)
  252.     Part5.Orientation = Vector3.new(-90, 0, 0)
  253.     Part5.Position = Vector3.new(-65.188041687012, 2.3489999771118, 31.323999404907)
  254.     Part5.Rotation = Vector3.new(-90, 0, 0)
  255.     Part5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  256.     Part5.Size = Vector3.new(0.67699998617172, 15.430000305176, 1.5319999456406)
  257.     Part5.BottomSurface = Enum.SurfaceType.Smooth
  258.     Part5.BrickColor = BrickColor.new("Really black")
  259.     Part5.CanCollide = false
  260.     Part5.TopSurface = Enum.SurfaceType.Smooth
  261.     Part5.brickColor = BrickColor.new("Really black")
  262.     Weld6.Name = "Hitbox"
  263.     Weld6.Parent = Part5
  264.     Weld6.C0 = CFrame.new(-0.000358581543, 2.25147676, -0.000190496445, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  265.     Weld6.Part0 = Part5
  266.     Weld6.Part1 = Part1
  267.     Weld6.part1 = Part1
  268.     SpecialMesh7.Parent = Part5
  269.     SpecialMesh7.MeshId = "rbxassetid://7513632006"
  270.     SpecialMesh7.MeshType = Enum.MeshType.FileMesh
  271.     return Model0
  272. end
  273. function createsword2()
  274.     local Model0 = Instance.new("Model")
  275.     local Part1 = Instance.new("Part")
  276.     local Weld2 = Instance.new("Weld")
  277.     local Part3 = Instance.new("Part")
  278.     local SpecialMesh4 = Instance.new("SpecialMesh")
  279.     local Weld5 = Instance.new("Weld")
  280.     local Weld6 = Instance.new("Weld")
  281.     local Weld7 = Instance.new("Weld")
  282.     local Weld8 = Instance.new("Weld")
  283.     local Part9 = Instance.new("Part")
  284.     local Part10 = Instance.new("Part")
  285.     local Part11 = Instance.new("Part")
  286.     local Part12 = Instance.new("Part")
  287.     Model0.Name = "Sword2"
  288.     Model0.PrimaryPart = Part1
  289.     Part1.Name = "Handle"
  290.     Part1.Parent = Model0
  291.     Part1.CFrame = CFrame.new(-57.4780884, 3.45233488, 9.50007629, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  292.     Part1.Position = Vector3.new(-57.478088378906, 3.4523348808289, 9.5000762939453)
  293.     Part1.Transparency = 1
  294.     Part1.Size = Vector3.new(1, 2, 1)
  295.     Part1.BottomSurface = Enum.SurfaceType.Smooth
  296.     Part1.CanCollide = false
  297.     Part1.Locked = true
  298.     Part1.TopSurface = Enum.SurfaceType.Smooth
  299.     Weld2.Name = "Sword"
  300.     Weld2.Parent = Part1
  301.     Weld2.C0 = CFrame.new(-0.111911774, -0.549632311, -4.20755672, -1, 0, 8.74227766e-08, 0, 1, 0, -8.74227766e-08, 0, -1)
  302.     Weld2.Part0 = Part1
  303.     Weld2.Part1 = Part3
  304.     Weld2.part1 = Part3
  305.     Part3.Name = "Sword"
  306.     Part3.Parent = Model0
  307.     Part3.CFrame = CFrame.new(-57.5900002, 2.90270257, 5.29251957, -1, 0, 8.74227766e-08, 0, 1, 0, -8.74227766e-08, 0, -1)
  308.     Part3.Orientation = Vector3.new(0, 180, 0)
  309.     Part3.Position = Vector3.new(-57.590000152588, 2.9027025699615, 5.292519569397)
  310.     Part3.Rotation = Vector3.new(-180, 0, -180)
  311.     Part3.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  312.     Part3.Size = Vector3.new(0.3568326830864, 1.1743521690369, 11.178980827332)
  313.     Part3.BottomSurface = Enum.SurfaceType.Smooth
  314.     Part3.BrickColor = BrickColor.new("Really black")
  315.     Part3.CanCollide = false
  316.     Part3.Locked = true
  317.     Part3.TopSurface = Enum.SurfaceType.Smooth
  318.     Part3.brickColor = BrickColor.new("Really black")
  319.     SpecialMesh4.Parent = Part3
  320.     SpecialMesh4.MeshId = "rbxassetid://7527652353"
  321.     SpecialMesh4.Scale = Vector3.new(0.53258603811264, 0.53258603811264, 0.53258603811264)
  322.     SpecialMesh4.MeshType = Enum.MeshType.FileMesh
  323.     Weld5.Name = "Hitbox0"
  324.     Weld5.Parent = Part3
  325.     Weld5.C0 = CFrame.new(0.00191879272, 0.087678194, 5.09866619, -1, -4.63827234e-08, -7.41038804e-08, 0, 0.847649574, -0.5305565, 8.74227766e-08, -0.5305565, -0.847649574)
  326.     Weld5.Part0 = Part3
  327.     Weld5.Part1 = Part10
  328.     Weld5.part1 = Part10
  329.     Weld6.Name = "Hitbox1"
  330.     Weld6.Parent = Part3
  331.     Weld6.C0 = CFrame.new(0.0409698486, -0.228977919, 1.76255965, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1)
  332.     Weld6.Part0 = Part3
  333.     Weld6.Part1 = Part9
  334.     Weld6.part1 = Part9
  335.     Weld7.Name = "Hitbox2"
  336.     Weld7.Parent = Part3
  337.     Weld7.C0 = CFrame.new(0.0409698486, -0.346400023, -2.01896858, -1, 3.68905511e-08, -7.92580224e-08, 0, 0.906606138, 0.421978712, 8.74227766e-08, 0.421978712, -0.906606138)
  338.     Weld7.Part0 = Part3
  339.     Weld7.Part1 = Part12
  340.     Weld7.part1 = Part12
  341.     Weld8.Name = "Hitbox3"
  342.     Weld8.Parent = Part3
  343.     Weld8.C0 = CFrame.new(0.0409698486, -0.32441926, -1.37172031, -1, -1.94975538e-08, -8.52208188e-08, 0, 0.974812508, -0.223026022, 8.74227766e-08, -0.223026022, -0.974812508)
  344.     Weld8.Part0 = Part3
  345.     Weld8.Part1 = Part11
  346.     Weld8.part1 = Part11
  347.     Part9.Name = "Hitbox1"
  348.     Part9.Parent = Model0
  349.     Part9.CFrame = CFrame.new(-57.63097, 2.67372465, 3.52995992, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  350.     Part9.Position = Vector3.new(-57.630970001221, 2.6737246513367, 3.5299599170685)
  351.     Part9.Transparency = 1
  352.     Part9.Size = Vector3.new(0.14361953735352, 0.11858534812927, 5.6687269210815)
  353.     Part9.BottomSurface = Enum.SurfaceType.Smooth
  354.     Part9.CanCollide = false
  355.     Part9.Locked = true
  356.     Part9.TopSurface = Enum.SurfaceType.Smooth
  357.     Part10.Name = "Hitbox0"
  358.     Part10.Parent = Model0
  359.     Part10.CFrame = CFrame.new(-57.5919189, 2.99038076, 0.193853378, 1, 0, 0, 0, 0.847649574, -0.5305565, 0, 0.5305565, 0.847649574)
  360.     Part10.Orientation = Vector3.new(32.040000915527, 0, 0)
  361.     Part10.Position = Vector3.new(-57.591918945313, 2.9903807640076, 0.1938533782959)
  362.     Part10.Rotation = Vector3.new(32.040000915527, 0, 0)
  363.     Part10.Transparency = 1
  364.     Part10.Size = Vector3.new(0.13296127319336, 0.11858534812927, 1.2458262443542)
  365.     Part10.BottomSurface = Enum.SurfaceType.Smooth
  366.     Part10.CanCollide = false
  367.     Part10.Locked = true
  368.     Part10.TopSurface = Enum.SurfaceType.Smooth
  369.     Part11.Name = "Hitbox3"
  370.     Part11.Parent = Model0
  371.     Part11.CFrame = CFrame.new(-57.63097, 2.57828331, 6.66423988, 1, 0, 0, 0, 0.974812508, -0.223026022, 0, 0.223026022, 0.974812508)
  372.     Part11.Orientation = Vector3.new(12.890000343323, 0, 0)
  373.     Part11.Position = Vector3.new(-57.630970001221, 2.5782833099365, 6.6642398834229)
  374.     Part11.Rotation = Vector3.new(12.890000343323, 0, 0)
  375.     Part11.Transparency = 1
  376.     Part11.Size = Vector3.new(0.14361953735352, 0.11858534812927, 0.9631462097168)
  377.     Part11.BottomSurface = Enum.SurfaceType.Smooth
  378.     Part11.CanCollide = false
  379.     Part11.Locked = true
  380.     Part11.TopSurface = Enum.SurfaceType.Smooth
  381.     Part12.Name = "Hitbox2"
  382.     Part12.Parent = Model0
  383.     Part12.CFrame = CFrame.new(-57.63097, 2.55630255, 7.31148815, 1, 0, 0, 0, 0.906606138, 0.421978712, 0, -0.421978712, 0.906606138)
  384.     Part12.Orientation = Vector3.new(-24.959999084473, 0, 0)
  385.     Part12.Position = Vector3.new(-57.630970001221, 2.5563025474548, 7.3114881515503)
  386.     Part12.Rotation = Vector3.new(-24.959999084473, 0, 0)
  387.     Part12.Transparency = 1
  388.     Part12.Size = Vector3.new(0.14361953735352, 0.11858534812927, 0.46920847892761)
  389.     Part12.BottomSurface = Enum.SurfaceType.Smooth
  390.     Part12.CanCollide = false
  391.     Part12.Locked = true
  392.     Part12.TopSurface = Enum.SurfaceType.Smooth
  393.     return Model0
  394. end
  395. local swordmodel = createsword()
  396. function newshirt()
  397.     local a = Instance.new("Shirt")
  398.     local b = Instance.new("Pants")
  399.     a.ShirtTemplate = "http://www.roblox.com/asset/?id=1210857659"
  400.     b.PantsTemplate = "http://www.roblox.com/asset/?id=1210858273"
  401.     return a,b
  402. end
  403. local Player = owner or game:GetService("Players"):WaitForChild("plytalent")
  404. wait(1)
  405. local char = Player.Character
  406. script.Parent = char
  407. local weldweapon = Instance.new("Weld",char:WaitForChild("Right Arm"))
  408. weldweapon.Part0 = weldweapon.Parent
  409. weldweapon.Part1 = swordmodel.Handle
  410. swordmodel.Parent = char
  411. local facemodel = createface()
  412. facemodel.Parent = char
  413. local weldface = Instance.new("Weld",char:WaitForChild("Head"))
  414. weldface.Part0 = weldface.Parent
  415. weldface.Part1 = facemodel.Head
  416. local gunmodel = creategun()
  417. gunmodel.Parent = char
  418. local weldgun = Instance.new("Weld",char:WaitForChild("Right Arm"))
  419. weldgun.Part0 = weldgun.Parent
  420. weldgun.Part1 = gunmodel.Handle
  421. local dualweld_folder = Instance.new("Folder",char)
  422. dualweld_folder.Name = "Dual_Welded_Gun"
  423. local gunright = creategun2()
  424. gunright.Parent = char
  425. local gunleft = creategun2()
  426. gunleft.Parent = char
  427. local weldright_hand = Instance.new("Weld",char:WaitForChild("Right Arm"))
  428. weldright_hand.Part0 = weldright_hand.Parent
  429. weldright_hand.Part1 = gunright.Handle
  430. local weldleft_hand = Instance.new("Weld",char:WaitForChild("Left Arm"))
  431. weldleft_hand.Part0 = weldleft_hand.Parent
  432. weldleft_hand.Part1 = gunleft.Handle
  433. local swordright = createsword2()
  434. swordright.Parent = char
  435. local swordleft = createsword2()
  436. swordleft.Parent = char
  437. local weldright_handsword = Instance.new("Weld",char:WaitForChild("Right Arm"))
  438. weldright_handsword.Part0 = weldright_handsword.Parent
  439. weldright_handsword.Part1 = swordright.Handle
  440. local weldleft_handsword = Instance.new("Weld",char:WaitForChild("Left Arm"))
  441. weldleft_handsword.Part0 = weldleft_handsword.Parent
  442. weldleft_handsword.Part1 = swordleft.Handle
  443. local weaponlist={
  444.     ["Dual_Weld_Gun"]={gunleft,gunright},
  445.     ["Gun"] = {gunmodel},
  446.     ["Dual_Weld_Sword"] = {swordright,swordleft}
  447.    
  448. }
  449. for _,models in pairs(weaponlist) do
  450.     for _,model in pairs(models) do
  451.         spawn(function()
  452.             for _,v in pairs(model:GetDescendants()) do
  453.                 if v:IsA("BasePart")then
  454.                     v.Transparency = 1
  455.                 elseif v:IsA("ParticleEmitter") then
  456.                     v.Enabled = false
  457.                 end
  458.             end
  459.         end)
  460.     end
  461. end
  462. weaponlist["Sword"] = {swordmodel}
  463.  
  464. local mode = "Sword"
  465. local lastswitch = mode
  466.  
  467. function switchweapon_f()
  468.     for _,model in pairs(weaponlist[lastswitch]) do
  469.         spawn(function()
  470.             for i=0,1,1/60 do
  471.                 for _,v in pairs(model:GetDescendants()) do
  472.                     if v:IsA("BasePart") and v.Name ~= "Handle" and not v.Name:find("Hitbox") and v.Name ~= "Bullet"then
  473.                         if v.Transparency < i then
  474.                             v.Transparency = i
  475.                         end
  476.                         wait(1/60)
  477.                     elseif v:IsA("ParticleEmitter") then
  478.                         v.Enabled = false
  479.                     end
  480.                 end
  481.             end
  482.         end)
  483.     end
  484.     for _,model in pairs(weaponlist[mode]) do
  485.         spawn(function()
  486.             for i=1,0,-1/60 do
  487.                 for _,v in pairs(model:GetDescendants()) do
  488.                     if v:IsA("BasePart") and v.Name ~= "Handle" and not v.Name:find("Hitbox") and v.Name ~= "Bullet"then
  489.                         v.Transparency = i
  490.                         wait(1/60)
  491.                     elseif v:IsA("ParticleEmitter") then
  492.                         v.Enabled = true
  493.                     end
  494.                 end
  495.             end
  496.         end)
  497.     end
  498. end
  499.  
  500. switchweapon_f(mode)
  501.  
  502. local shirt, pants = newshirt()
  503.  
  504. for _,ac in pairs(char:GetChildren())do
  505.     if ac:IsA("Accessory") or ac:IsA("Shirt") or ac:IsA("Pants") then
  506.         ac:Destroy()
  507.     elseif ac:IsA("BasePart") then
  508.         ac.Color = Color3.new(231/255, 231/255, 236/255)
  509.     end
  510. end
  511.  
  512. shirt.Parent = char
  513. pants.Parent = char
  514. Character=Player.Character
  515. Torso=Character.Torso
  516. Humanoid=Character.Humanoid
  517. LeftArm=Character["Left Arm"]
  518. LeftLeg=Character["Left Leg"]
  519. RightArm=Character["Right Arm"]
  520. RightLeg=Character["Right Leg"]
  521. LS=Torso["Left Shoulder"]
  522. LH=Torso["Left Hip"]
  523. RS=Torso["Right Shoulder"]
  524. RH=Torso["Right Hip"]
  525. Neck=Torso.Neck
  526. RootPart=Character.HumanoidRootPart
  527. RootJoint=RootPart.RootJoint
  528.  
  529. cf = CFrame.new
  530. angles = CFrame.Angles
  531. ROOTC0 =  RootJoint.C0
  532. NECKC0 = Torso.Neck.C0
  533. COS = math.cos
  534. ACOS = math.acos
  535. SIN = math.sin
  536. ASIN = math.asin
  537. ABS = math.abs
  538. MRANDOM = math.random
  539. FLOOR = math.floor
  540.  
  541.  
  542. cf=CFrame.new
  543. cn=CFrame.new
  544. euler=CFrame.fromEulerAnglesXYZ
  545. angles=CFrame.Angles
  546.  
  547.  
  548. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  549. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  550. LH=Torso["Left Hip"]
  551. RH=Torso["Right Hip"]
  552.  
  553. RootCF=euler(-1.57,0,3.14)
  554. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  555.  
  556. RSH=Character.Torso["Right Shoulder"]
  557. LSH=Character.Torso["Left Shoulder"]
  558.  
  559. RSH.Parent=nil
  560. LSH.Parent=nil
  561.  
  562. RW.Name="Right Shoulder"
  563. RW.Part0=Character.Torso
  564. RW.C0=cf(1.5, 0.5, 0)
  565. RW.C1=cf(0, 0.5, 0)
  566. RW.Part1=Character["Right Arm"]
  567. RW.Parent=Character.Torso
  568.  
  569. LW.Name="Left Shoulder"
  570. LW.Part0=Character.Torso
  571. LW.C0=cf(-1.5, 0.5, 0)
  572. LW.C1=cf(0, 0.5, 0)
  573. LW.Part1=Character["Left Arm"]
  574. LW.Parent=Character.Torso
  575.  
  576. local currentsine = 0
  577. local attack = false
  578. function create_homing_script_f(parent,type)
  579.     local scstring = [==[
  580.         local part = script.Parent
  581.         local BodyGyro = Instance.new("BodyGyro",part)
  582.         local BodyPosition = Instance.new("BodyPosition",part)
  583.         part.Anchored  = false
  584.         function moveTo(target)
  585.             local dir = (target.Position - part.Position).unit
  586.             BodyGyro.cframe = CFrame.new(Vector3.new(0,0,0), dir)
  587.             BodyGyro.D = 100
  588.             BodyGyro.maxTorque = Vector3.new(1000000, 1000000, 1000000)
  589.             BodyPosition.position = target.Position
  590.             BodyPosition.D = 100
  591.             BodyPosition.maxForce = Vector3.new(1000000, 1000000, 1000000)
  592.         end
  593.         function findNearestTorso(pos)
  594.             local nearest = {
  595.                 torso = nil,
  596.                 distance = math.huge
  597.             }
  598.             for _, object in ipairs(game:GetService("Players"):GetPlayers()) do
  599.                 if object and object ~= owner then
  600.                     if object.Character then
  601.                         local torso = object.Character:FindFirstChild("HumanoidRootPart")
  602.                         local human = object.Character:FindFirstChildOfClass("Humanoid")
  603.                         if torso and human and human.Health > 0 then
  604.                             local this = {
  605.                                 torso = torso,
  606.                                 distance = (torso.Position - pos).magnitude
  607.                             }
  608.                             if this.distance < nearest.distance then
  609.                                 nearest = this
  610.                             end
  611.                         end
  612.                     end
  613.                 end
  614.             end
  615.             return nearest.torso, nearest.distance
  616.         end
  617.         local debris=game:GetService("Debris")]==]
  618.    
  619.     if type == "Heal" then
  620.         scstring = scstring.. [==[
  621.         function damage(PartParent,hit)
  622.             if PartParent then
  623.                 if game:GetService("Players"):FindFirstChild(PartParent.Name) and PartParent.Name ~= "plytalent" and  PartParent.Name ~= "FacelessOne" and PartParent.Name ~= "Mami Tomoe Armor" and PartParent.Name ~= "NekoBeast" then
  624.                     if part.Anchored then
  625.                         return
  626.                     end
  627.                     part.Anchored  = true
  628.                     part.Position = hit.Position
  629.                     game:GetService("Players"):FindFirstChild(PartParent.Name).Character.Archivable = true
  630.                     local fake = game:GetService("Players"):FindFirstChild(PartParent.Name).Character:Clone()
  631.                     game:GetService("Players"):FindFirstChild(PartParent.Name).Character.Archivable = false
  632.                     if PartParent:FindFirstChildOfClass("Humanoid") then
  633.                         PartParent:FindFirstChildOfClass("Humanoid").Health =  PartParent:FindFirstChildOfClass("Humanoid").MaxHealth
  634.                         if fake then
  635.                             for _,partfake in pairs(fake:GetChildren())do
  636.                                 if partfake:IsA("BasePart")then
  637.                                     partfake.Anchored = true
  638.                                     spawn(function()
  639.                                         for i=0,1,1/60 do
  640.                                             partfake.Transparency = i
  641.                                             wait(1/60)
  642.                                         end
  643.                                     end)
  644.                                     partfake.Color = Color3.new(0,1,0)
  645.                                     partfake.CanCollide = false
  646.                                 else
  647.                                     partfake:Destroy()
  648.                                 end
  649.                             end
  650.                             fake.Parent = workspace
  651.                             debris:AddItem(fake,2)
  652.                         end
  653.                         for i =0 , 1 , 0.01 do
  654.                             part.Transparency = i
  655.                             wait(0.01)
  656.                         end
  657.                         cleanup()
  658.                     end
  659.                 end
  660.             end
  661.         end
  662.         ]==]
  663.     elseif type == "Damage" then
  664.         scstring = scstring.. [==[
  665.         function damage(PartParent,hit)
  666.             if PartParent then
  667.                 if game:GetService("Players"):FindFirstChild(PartParent.Name) and PartParent.Name ~= "plytalent" and  PartParent.Name ~= "FacelessOne" and PartParent.Name ~= "Mami Tomoe Armor" and PartParent.Name ~= "NekoBeast" then
  668.                     if part.Anchored then
  669.                         return
  670.                     end
  671.                     part.Anchored  = true
  672.                     part.Position = hit.Position
  673.                     game:GetService("Players"):FindFirstChild(PartParent.Name).Character.Archivable = true
  674.                     local fake = game:GetService("Players"):FindFirstChild(PartParent.Name).Character:Clone()
  675.                     game:GetService("Players"):FindFirstChild(PartParent.Name).Character.Archivable = false
  676.                     if PartParent:FindFirstChildOfClass("Humanoid") then
  677.                         PartParent:FindFirstChildOfClass("Humanoid").Health =  PartParent:FindFirstChildOfClass("Humanoid").Health - 10
  678.                         if fake then
  679.                             for _,partfake in pairs(fake:GetChildren())do
  680.                                 if partfake:IsA("BasePart")then
  681.                                     partfake.Anchored = true
  682.                                     spawn(function()
  683.                                         for i=0,1,1/60 do
  684.                                             partfake.Transparency = i
  685.                                             wait(1/60)
  686.                                         end
  687.                                     end)
  688.                                     partfake.Color = Color3.new(1,0,0)
  689.                                     partfake.CanCollide = false
  690.                                 else
  691.                                     partfake:Destroy()
  692.                                 end
  693.                             end
  694.                             fake.Parent = workspace
  695.                             debris:AddItem(fake,2)
  696.                         end
  697.                         for i =0 , 1 , 0.01 do
  698.                             part.Transparency = i
  699.                             wait(0.01)
  700.                         end
  701.                         cleanup()
  702.                     end
  703.                 end
  704.             end
  705.         end
  706.         ]==]
  707.     end
  708.     scstring = scstring..[==[
  709.         Homing=game:GetService("RunService").Stepped:Connect(function()
  710.             local torso,far = findNearestTorso(part.Position)
  711.             if torso ~= nil then
  712.                 moveTo(torso)
  713.             end
  714.         end)
  715.         touch=part.Touched:Connect(function(hit)
  716.             damage(hit.Parent,hit)
  717.         end)
  718.         function cleanup()
  719.             print("Disconnecting Event")
  720.             part:Destroy()
  721.             Homing:Disconnect()
  722.             touch:Disconnect()
  723.             script:Destroy()
  724.         end]==]
  725.     return NS(scstring,parent)
  726. end
  727.  
  728. function teleport(plr,where)
  729.     if plr ~= Player then
  730.         return
  731.     end
  732.     char:SetPrimaryPartCFrame(where*CFrame.new(0,3.5,0))
  733. end
  734. local Dual_Weld_Gun_combo = 0
  735. local damagetype = "Heal"
  736. function attack_f(plr)
  737.     if plr ~= Player or attack then
  738.         return
  739.     end
  740.     print("CheckMode:",mode)
  741.     attack = true
  742.     if mode == "Gun" then
  743.         for i=0,1,1/60 do
  744.             RH.C0=Clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(currentsine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(currentsine / 34))),i)
  745.             LH.C0=Clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(currentsine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(currentsine / 34))),i)
  746.             RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(currentsine / 28))*angles(math.rad(0 - 1 * math.cos(currentsine / 34)),math.rad(0),math.rad(0)),i)
  747.             Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),i)
  748.             RW.C0=Clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(currentsine / 28),0)*angles(math.rad(60 - 1 * math.cos(currentsine / 8)),math.rad(0),math.rad(0)),i)
  749.             LW.C0=Clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(currentsine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(0)),i)
  750.             game:GetService("RunService").Heartbeat:Wait()
  751.         end
  752.         local clone = Instance.new("Part")
  753.         clone.Size = Vector3.new(0.1,0.1,0.1)
  754.         clone.Color = Color3.new(0,1,0)
  755.         clone.Parent = workspace
  756.         clone.CFrame = gunmodel.Bullet.CFrame
  757.         create_homing_script_f(clone,damagetype)
  758.         for i=0,1,1/60 do
  759.             RH.C0=Clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(currentsine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(currentsine / 34))),i)
  760.             LH.C0=Clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(currentsine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(currentsine / 34))),i)
  761.             RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(currentsine / 28))*angles(math.rad(0 - 1 * math.cos(currentsine / 34)),math.rad(0),math.rad(0)),i)
  762.             Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),i)
  763.             RW.C0=Clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(currentsine / 28),0)*angles(math.rad(80 - 1 * math.cos(currentsine / 8)),math.rad(0),math.rad(0)),i)
  764.             LW.C0=Clerp(LW.C0,cf(-1.25,0.5 + 0.1 * math.cos(currentsine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(0)),i)
  765.             game:GetService("RunService").Heartbeat:Wait()
  766.         end
  767.     elseif mode == "Dual_Weld_Gun" then
  768.         for i=0,1,1/60 do
  769.             RH.C0=Clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(currentsine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(currentsine / 34))),i)
  770.             LH.C0=Clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(currentsine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(currentsine / 34))),i)
  771.             RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(currentsine / 28))*angles(math.rad(0 - 1 * math.cos(currentsine / 34)),math.rad(0),math.rad(45)),i)
  772.             Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-45)),i)
  773.             RW.C0=Clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(currentsine / 28),0)*angles(math.rad(90 - 1 * math.cos(currentsine / 8)),math.rad(0),math.rad(45)),i)
  774.             LW.C0=Clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(currentsine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(0)),i)
  775.             game:GetService("RunService").Heartbeat:Wait()
  776.         end
  777.         local clone = Instance.new("Part")
  778.         clone.Size = Vector3.new(0.1,0.1,0.1)
  779.         clone.Color = Color3.new(0,1,0)
  780.         clone.Parent = workspace
  781.         clone.CFrame = gunleft.Bullet.CFrame
  782.         create_homing_script_f(clone,damagetype)
  783.         for i=0,1,1/60 do
  784.             RH.C0=Clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(currentsine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(currentsine / 34))),i)
  785.             LH.C0=Clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(currentsine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(currentsine / 34))),i)
  786.             RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(currentsine / 28))*angles(math.rad(0 - 1 * math.cos(currentsine / 34)),math.rad(0),math.rad(45)),i)
  787.             Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-45)),i)
  788.             RW.C0=Clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(currentsine / 28),0)*angles(math.rad(110 - 1 * math.cos(currentsine / 8)),math.rad(0),math.rad(45)),i)
  789.             LW.C0=Clerp(LW.C0,cf(-1.25,0.5 + 0.1 * math.cos(currentsine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(0)),i)
  790.             game:GetService("RunService").Heartbeat:Wait()
  791.         end
  792.         for i=0,1,1/60 do
  793.             RH.C0=Clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(currentsine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(currentsine / 34))),i)
  794.             LH.C0=Clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(currentsine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(currentsine / 34))),i)
  795.             RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(currentsine / 28))*angles(math.rad(0 - 1 * math.cos(currentsine / 34)),math.rad(0),math.rad(-45)),i)
  796.             Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(45)),i)
  797.             RW.C0=Clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(currentsine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(0)),i)
  798.             LW.C0=Clerp(LW.C0,cf(-1.25,0.5 + 0.1 * math.cos(currentsine / 28),0)*angles(math.rad(90 + 1 * math.cos(currentsine / 8)),math.rad(0),math.rad(-45)),i)
  799.             game:GetService("RunService").Heartbeat:Wait()
  800.         end
  801.         local clone = Instance.new("Part")
  802.         clone.Size = Vector3.new(0.1,0.1,0.1)
  803.         clone.Color = Color3.new(0,1,0)
  804.         clone.Parent = workspace
  805.         clone.CFrame = gunright.Bullet.CFrame
  806.         create_homing_script_f(clone,damagetype)
  807.         for i=0,1,1/60 do
  808.             RH.C0=Clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(currentsine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(currentsine / 34))),i)
  809.             LH.C0=Clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(currentsine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(currentsine / 34))),i)
  810.             RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(currentsine / 28))*angles(math.rad(0 - 1 * math.cos(currentsine / 34)),math.rad(0),math.rad(-45)),i)
  811.             Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(45)),i)
  812.             RW.C0=Clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(currentsine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(0)),i)
  813.             LW.C0=Clerp(LW.C0,cf(-1.25,0.5 + 0.1 * math.cos(currentsine / 28),0)*angles(math.rad(110 + 1 * math.cos(currentsine / 8)),math.rad(0),math.rad(-45)),i)
  814.             game:GetService("RunService").Heartbeat:Wait()
  815.         end
  816.     end
  817.     attack = false
  818. end
  819.  
  820. function switch_f(plr,key)
  821.     if plr ~= Player then
  822.         return
  823.     end
  824.  
  825.     local switched = false
  826.  
  827.     if mode ~= lastswitch then
  828.         lastswitch = mode
  829.     end
  830.  
  831.     if key == "q" and mode ~= "Sword" then
  832.         mode = "Sword"
  833.         switched = true
  834.     elseif key == "e" and mode ~= "Gun" then
  835.         mode = "Gun"
  836.         switched = true
  837.     elseif key == "r" and mode ~= "Dual_Weld_Gun" then
  838.         mode = "Dual_Weld_Gun"
  839.         switched = true
  840.     elseif key == "t" and mode ~= "Dual_Weld_Sword" then
  841.         mode = "Dual_Weld_Sword"
  842.         switched = true
  843.     elseif key == "f" and damagetype == "Damage" then
  844.         damagetype = "Heal"
  845.         print("Damage Mode:",damagetype)
  846.     elseif key == "f" and damagetype == "Heal" then
  847.         damagetype = "Damage"
  848.         print("Damage Mode:",damagetype)
  849.     end
  850.  
  851.     if switched then
  852.         switchweapon_f(mode)
  853.         print("Current Mode:", mode)
  854.     end
  855. end
  856.  
  857. local music = Instance.new("Sound",char.HumanoidRootPart)
  858. music.SoundId = "rbxassetid://6659445380"
  859. music.Volume = 0.1
  860. music.Looped = true
  861. music:Play()
  862. local skill_folder = Instance.new("Folder",script)
  863. local switch_remote = Instance.new("RemoteEvent",skill_folder)
  864. local attack_remote = Instance.new("RemoteEvent",skill_folder)
  865. local teleport_remote = Instance.new("RemoteEvent",skill_folder)
  866.  
  867. skill_folder.Name = "Skill_Folder"
  868. switch_remote.Name = "Switch"
  869. attack_remote.Name = "Attack"
  870. teleport_remote.Name = "Teleport"
  871.  
  872. attack_remote.OnServerEvent:Connect(attack_f)
  873. switch_remote.OnServerEvent:Connect(switch_f)
  874. teleport_remote.OnServerEvent:Connect(teleport)
  875.  
  876. function QuaternionSlerp(a, b, t)
  877.     local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  878.     local startInterp, finishInterp;
  879.     if cosTheta >= 0.0001 then
  880.         if (1 - cosTheta) > 0.0001 then
  881.             local theta = math.acos(cosTheta)
  882.             local invSinTheta = 1/math.sin(theta)
  883.             startInterp = math.sin((1-t)*theta)*invSinTheta
  884.             finishInterp = math.sin(t*theta)*invSinTheta  
  885.         else
  886.             startInterp = 1-t
  887.             finishInterp = t
  888.         end
  889.     else
  890.         if (1+cosTheta) > 0.0001 then
  891.             local theta = math.acos(-cosTheta)
  892.             local invSinTheta = 1/math.sin(theta)
  893.             startInterp = math.sin((t-1)*theta)*invSinTheta
  894.             finishInterp = math.sin(t*theta)*invSinTheta
  895.         else
  896.             startInterp = t-1
  897.             finishInterp = t
  898.         end
  899.     end
  900.     return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  901. end
  902.  
  903. function Clerp(a,b,t)
  904.     local qa = {QuaternionFromCFrame(a)}
  905.     local qb = {QuaternionFromCFrame(b)}
  906.     local ax, ay, az = a.x, a.y, a.z
  907.     local bx, by, bz = b.x, b.y, b.z
  908.     local _t = 1-t
  909.     return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  910. end
  911.  
  912. function QuaternionFromCFrame(cf)
  913.     local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  914.     local trace = m00 + m11 + m22
  915.     if trace > 0 then
  916.         local s = math.sqrt(1 + trace)
  917.         local recip = 0.5/s
  918.         return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  919.     else
  920.         local i = 0
  921.         if m11 > m00 then
  922.             i = 1
  923.         end
  924.         if m22 > (i == 0 and m00 or m11) then
  925.             i = 2
  926.         end
  927.         if i == 0 then
  928.             local s = math.sqrt(m00-m11-m22+1)
  929.             local recip = 0.5/s
  930.             return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  931.         elseif i == 1 then
  932.             local s = math.sqrt(m11-m22-m00+1)
  933.             local recip = 0.5/s
  934.             return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  935.         elseif i == 2 then
  936.             local s = math.sqrt(m22-m00-m11+1)
  937.             local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  938.         end
  939.     end
  940. end
  941.  
  942. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  943.     local xs, ys, zs = x + x, y + y, z + z
  944.     local wx, wy, wz = w*xs, w*ys, w*zs
  945.     local xx = x*xs
  946.     local xy = x*ys
  947.     local xz = x*zs
  948.     local yy = y*ys
  949.     local yz = y*zs
  950.     local zz = z*zs
  951.     return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  952. end
  953.  
  954.  
  955. local function CFrameFromTopBack(at, top, back)
  956.     local right = top:Cross(back)
  957.     return CFrame.new(
  958.         at.x, at.y, at.z,
  959.         right.x, top.x, back.x,
  960.         right.y, top.y, back.y,
  961.         right.z, top.z, back.z
  962.     )
  963. end
  964.  
  965. function rayCast(Pos, Dir, Max, Ignore)
  966.     return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or math.huge)), Ignore)
  967. end
  968.  
  969. local destroy_animate = true
  970. function animation(sine)
  971.     if not attack then
  972.         local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  973.         local hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  974.         if hitfloor then
  975.             if Character:FindFirstChild("Animate") and destroy_animate then
  976.                 destroy_animate=false
  977.                 wait(1)
  978.                 Character:FindFirstChild("Animate"):Destroy()
  979.             end
  980.         end
  981.         if RootPart.Velocity.y > 1 and hitfloor==nil then
  982.             RH.C0=Clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine/25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  983.             LH.C0=Clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine/25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  984.             RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine/25))*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  985.             Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  986.             RW.C0=Clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine/25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1)
  987.             LW.C0=Clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine/25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1)
  988.         elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  989.             RH.C0=Clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine/25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  990.             LH.C0=Clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine/25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  991.             RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine/25))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  992.             Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  993.             RW.C0=Clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine/25),0)*angles(math.rad(-20),math.rad(0),math.rad(50)),.1)
  994.             LW.C0=Clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine/25),0)*angles(math.rad(-20),math.rad(0),math.rad(-50)),.1)
  995.         elseif torvel<1 and hitfloor~=nil then
  996.             RH.C0=Clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  997.             LH.C0=Clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  998.             RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  999.             Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(22.5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  1000.             if mode == "Dual_Weld_Gun" or  mode == "Sword" then
  1001.                 RW.C0=Clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1002.             else
  1003.                 RW.C0=Clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1004.             end
  1005.             if mode == "Sword" then
  1006.                 LW.C0=Clerp(LW.C0,cf(-1.25,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(75 - 1 * math.cos(sine / 8)),math.rad(0),math.rad(20)),.1)
  1007.             else
  1008.                 LW.C0=Clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1009.             end
  1010.         elseif torvel>2 and hitfloor~=nil then
  1011.             RH.C0=Clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1)
  1012.             LH.C0=Clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1)
  1013.             RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 4))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 8))),.1)
  1014.             Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 5 * math.cos(sine / 8))),.1)
  1015.             if mode == "Dual_Weld_Gun" or  mode == "Sword" then
  1016.                 RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 10 * math.cos(sine / 8)),math.rad(0),math.rad(10 - 10 * math.cos(sine / 4))),.1)
  1017.             else
  1018.                 RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 45 * math.cos(sine / 8)),math.rad(0),math.rad(10 - 10 * math.cos(sine / 4))),.1)
  1019.             end
  1020.             if mode == "Dual_Weld_Gun" then
  1021.                 LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 10 * math.cos(sine / 8)),math.rad(0),math.rad(-10 + 10 * math.cos(sine / 4))),.1)
  1022.             else
  1023.                 LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 45 * math.cos(sine / 8)),math.rad(0),math.rad(-10 + 10 * math.cos(sine / 4))),.1)
  1024.             end
  1025.         end
  1026.  
  1027.     end
  1028. end
  1029.  
  1030. game:GetService("RunService").Heartbeat:Connect(function(delta)
  1031.     music:Resume()
  1032.     if Humanoid.MaxHealth < 999 then
  1033.         Humanoid.MaxHealth = 999
  1034.     end
  1035.     if Humanoid.Health ~=Humanoid.MaxHealth then
  1036.         Humanoid.Health =Humanoid.MaxHealth
  1037.     end
  1038.     currentsine = currentsine + (25*delta)
  1039.     animation(currentsine)
  1040. end)
  1041. NLS(
  1042.     [=[
  1043.         local player = owner or game:GetService("Players").LocalPlayer
  1044.         local keylist={
  1045.             ["Teleport"] = {"n"},
  1046.             ["Switch"] = {"q","e","r","t","f"}
  1047.         }
  1048.         local needargs = {
  1049.             ["Teleport"] = "Hit",
  1050.             ["Switch"] = "Key",
  1051.             ["Attack"] = "Hit"
  1052.         }
  1053.         local mouse = player:GetMouse()
  1054.         mouse.Button1Down:Connect(function()
  1055.             if script.Parent:FindFirstChild("Skill_Folder") then
  1056.                 if script.Parent.Skill_Folder:FindFirstChild("Attack") then
  1057.                     print("Fired Remote Attack")
  1058.                     script.Parent.Skill_Folder:FindFirstChild("Attack"):FireServer()
  1059.                 end
  1060.             end
  1061.         end)
  1062.         mouse.KeyDown:Connect(function(k)
  1063.             for index, keybinds in pairs(keylist) do
  1064.                 for i=1,#keybinds do
  1065.                     if keybinds[i] == k then
  1066.                         if script.Parent:FindFirstChild("Skill_Folder") then
  1067.                             if script.Parent.Skill_Folder:FindFirstChild(index) then
  1068.                                 local args = needargs[index]
  1069.                                 if args == "Key" then
  1070.                                     args = k
  1071.                                 else
  1072.                                     args = mouse[args]
  1073.                                 end
  1074.                                 script.Parent.Skill_Folder:FindFirstChild(index):FireServer(args)
  1075.                             end
  1076.                         end
  1077.                     end
  1078.                 end
  1079.             end
  1080.         end)
  1081.     ]=]
  1082. ,script)
Add Comment
Please, Sign In to add comment