SHOW:
|
|
- or go back to the newest paste.
1 | - | 1.local whitelist = {"foxy44444_vitalick", "SHYIME"} |
1 | + | -- Created by Nebula_Zorua -- |
2 | -- Your DeTERMINATION -- | |
3 | -- Y o u a c t l i k e y o u h a v e a c h o i c e. =) -- | |
4 | - | 2.local model = Instance.new("Model", workspace) |
4 | + | --Edited by SHYIMe (Please Support :D-- |
5 | -- Discord: Nebula the Zorua#6969 | |
6 | -- Youtube: https://www.youtube.com/channel/UCo9oU9dCw8jnuVLuy4_SATA | |
7 | - | 3.local part = Instance.new("Part") |
7 | + | |
8 | ||
9 | --// Initializing \\-- | |
10 | - | 4.local part_2 = Instance.new("Part") |
10 | + | Player = game:GetService("Players").LocalPlayer |
11 | PlayerGui = Player.PlayerGui | |
12 | Cam = workspace.CurrentCamera | |
13 | - | 5.local part_3 = Instance.new("Part") |
13 | + | Backpack = Player.Backpack |
14 | Character = Player.Character | |
15 | Humanoid = Character.Humanoid | |
16 | - | 6.local part_4 = Instance.new("Part") |
16 | + | Mouse = Player:GetMouse() |
17 | RootPart = Character["HumanoidRootPart"] | |
18 | Torso = Character["Torso"] | |
19 | - | 7.local part_5 = Instance.new("Part") |
19 | + | Head = Character["Head"] |
20 | RightArm = Character["Right Arm"] | |
21 | LeftArm = Character["Left Arm"] | |
22 | - | 8.local part_6 = Instance.new("Part") |
22 | + | RightLeg = Character["Right Leg"] |
23 | LeftLeg = Character["Left Leg"] | |
24 | RootJoint = RootPart["RootJoint"] | |
25 | - | 9.local part_7 = Instance.new("Part") |
25 | + | Neck = Torso["Neck"] |
26 | RightShoulder = Torso["Right Shoulder"] | |
27 | LeftShoulder = Torso["Left Shoulder"] | |
28 | - | 10.local part_8 = Instance.new("Part") |
28 | + | RightHip = Torso["Right Hip"] |
29 | LeftHip = Torso["Left Hip"] | |
30 | LeftArm = Character["Left Arm"] | |
31 | - | 11.local part_9 = Instance.new("Part") |
31 | + | |
32 | IT = Instance.new | |
33 | CF = CFrame.new | |
34 | - | 12.local part_10 = Instance.new("Part") |
34 | + | VT = Vector3.new |
35 | RAD = math.rad | |
36 | C3 = Color3.new | |
37 | - | 13.local parttopart_strong_joint = Instance.new("ManualWeld") |
37 | + | UD2 = UDim2.new |
38 | BRICKC = BrickColor.new | |
39 | ANGLES = CFrame.Angles | |
40 | - | 14.local parttopart_strong_joint_2 = Instance.new("ManualWeld") |
40 | + | EULER = CFrame.fromEulerAnglesXYZ |
41 | COS = math.cos | |
42 | ACOS = math.acos | |
43 | - | 15.local part_13 = Instance.new("Part") |
43 | + | SIN = math.sin |
44 | ASIN = math.asin | |
45 | ABS = math.abs | |
46 | - | 16.local part_14 = Instance.new("Part") |
46 | + | MRANDOM = math.random |
47 | FLOOR = math.floor | |
48 | local Weapon = IT("Model") | |
49 | - | 17.local part_15 = Instance.new("Part") |
49 | + | Weapon.Name = "Adds" |
50 | Player_Size = 1 | |
51 | local LEFTWINGS = {} | |
52 | - | 18.local part_16 = Instance.new("Part") |
52 | + | local RIGHTWINGS = {} |
53 | local toggleTag = true | |
54 | local txt = Instance.new("BillboardGui", Head) | |
55 | - | 19.local part_17 = Instance.new("Part") |
55 | + | txt.Adornee = nil |
56 | txt.Name = "NameDetect" | |
57 | txt.Size = UDim2.new(4, 0, 1.2, 0) | |
58 | - | 20.local part_18 = Instance.new("Part") |
58 | + | txt.StudsOffset = Vector3.new(-8, 8/1.5, 0) |
59 | local text = Instance.new("TextLabel", txt) | |
60 | text.Size = UDim2.new(10/2, 0, 7/2, 0) | |
61 | - | 21.local part_19 = Instance.new("Part") |
61 | + | text.FontSize = "Size8" |
62 | text.TextScaled = true | |
63 | text.TextTransparency = 0 | |
64 | - | 22.local part_20 = Instance.new("Part") |
64 | + | text.BackgroundTransparency = 1 |
65 | text.TextTransparency = 0 | |
66 | text.TextStrokeTransparency = 0 | |
67 | - | 23.local part_21 = Instance.new("Part") |
67 | + | text.Font = "Garamond" |
68 | text.TextStrokeColor3 = Color3.new(0,1,0) | |
69 | text.TextColor3 = Color3.new(0,0,0) | |
70 | - | 24.local part_22 = Instance.new("Part") |
70 | + | text.Text = "Deathside" |
71 | ||
72 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
73 | - | 25.local bloxy_cola = Instance.new("Tool") |
73 | + | local NEWPART = IT("Part") |
74 | NEWPART.formFactor = FORMFACTOR | |
75 | NEWPART.Reflectance = REFLECTANCE | |
76 | - | 26.local handle = Instance.new("Part") |
76 | + | NEWPART.Transparency = TRANSPARENCY |
77 | NEWPART.CanCollide = false | |
78 | NEWPART.Locked = true | |
79 | - | 27.local mesh = Instance.new("SpecialMesh") |
79 | + | NEWPART.Anchored = true |
80 | if ANCHOR == false then | |
81 | NEWPART.Anchored = false | |
82 | - | 28.local part_23 = Instance.new("Part") |
82 | + | end |
83 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
84 | NEWPART.Name = NAME | |
85 | - | 29.local parttohandle_strong_joint = Instance.new("ManualWeld") |
85 | + | NEWPART.Size = SIZE |
86 | NEWPART.Position = Torso.Position | |
87 | NEWPART.Material = MATERIAL | |
88 | - | 30.local parttopart_strong_joint_3 = Instance.new("ManualWeld") |
88 | + | NEWPART:BreakJoints() |
89 | NEWPART.Parent = PARENT | |
90 | return NEWPART | |
91 | - | 31.local houseinteriorbed = Instance.new("Model") |
91 | + | end |
92 | ||
93 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
94 | - | 32.local part_25 = Instance.new("Part") |
94 | + | local NEWWELD = IT(TYPE) |
95 | NEWWELD.Part0 = PART0 | |
96 | NEWWELD.Part1 = PART1 | |
97 | - | 33.local parttopart_strong_joint_4 = Instance.new("ManualWeld") |
97 | + | NEWWELD.C0 = C0 |
98 | NEWWELD.C1 = C1 | |
99 | NEWWELD.Parent = PARENT | |
100 | - | 34.local part_11 = Instance.new("Part") |
100 | + | return NEWWELD |
101 | end | |
102 | ||
103 | - | 35.local parttopart_strong_joint_5 = Instance.new("ManualWeld") |
103 | + | local Back = CreatePart(3, Character, "Granite", 0, 0, "Lime green", "Wing", VT(1,1,0.35),false) |
104 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Back, CF(0, 0.5, 1.2) * ANGLES(RAD(0),RAD(0),RAD(45)), CF(0, 0, 0)) | |
105 | ||
106 | - | 36.local part_26 = Instance.new("Part") |
106 | + | local ANGLE = 35 |
107 | for i = 1, 5 do | |
108 | local Wing = CreatePart(3, Character, "Granite", 0, 0, "Really black", "Wing", VT(0.15,2+(i/2),0.15),false) | |
109 | - | 37.local parttopart_strong_joint_6 = Instance.new("ManualWeld") |
109 | + | local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0)) |
110 | local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Wing", VT(0.25,1,0.25),false) | |
111 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0)) | |
112 | - | 38.local parttopart_strong_joint_7 = Instance.new("ManualWeld") |
112 | + | ANGLE = ANGLE - 15 |
113 | table.insert(LEFTWINGS,WingWeld) | |
114 | end | |
115 | - | 39.local part_28 = Instance.new("Part") |
115 | + | ANGLE = 35 |
116 | for i = 1, 5 do | |
117 | local Wing = CreatePart(3, Character, "Granite", 0, 0, "Lime green", "Wing", VT(0.15,2+(i/2),0.15),false) | |
118 | - | 40.local parttopart_strong_joint_8 = Instance.new("ManualWeld") |
118 | + | local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0)) |
119 | local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "Wing", VT(0.25,1,0.25),false) | |
120 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0)) | |
121 | - | 41.local part_27 = Instance.new("Part") |
121 | + | ANGLE = ANGLE - 15 |
122 | table.insert(RIGHTWINGS,WingWeld) | |
123 | end | |
124 | - | 42.local part_12 = Instance.new("Part") |
124 | + | |
125 | local S = setmetatable({},{__index = function(s,i) return game:service(i) end}) | |
126 | local Plrs = S.Players | |
127 | - | 43.local parttopart_strong_joint_9 = Instance.new("ManualWeld") |
127 | + | local Plr = Plrs.LocalPlayer |
128 | local Char = Plr.Character | |
129 | local Hum = Char:FindFirstChildOfClass'Humanoid' | |
130 | - | 44.local parttopart_strong_joint_10 = Instance.new("ManualWeld") |
130 | + | local RArm = Char["Right Arm"] |
131 | local LArm = Char["Left Arm"] | |
132 | local RLeg = Char["Right Leg"] | |
133 | - | 45.local seat = Instance.new("Seat") |
133 | + | local LLeg = Char["Left Leg"] |
134 | local Root = Char:FindFirstChild'HumanoidRootPart' | |
135 | local Torso = Char.Torso | |
136 | - | 46.local seattopart_strong_joint = Instance.new("ManualWeld") |
136 | + | local Head = Char.Head |
137 | local NeutralAnims = true | |
138 | local Attack = false | |
139 | - | 47.local seattopart_strong_joint_2 = Instance.new("ManualWeld") |
139 | + | local BloodPuddles = {} |
140 | local Effects = {} | |
141 | local Debounces = {Debounces={}} | |
142 | - | 48.local part_29 = Instance.new("Part") |
142 | + | local Mouse = Plr:GetMouse() |
143 | local Hit = {} | |
144 | local Sine = 0 | |
145 | - | 49.local door = Instance.new("Part") |
145 | + | local Change = 1 |
146 | local Souls = 0 | |
147 | --// Debounce System \\-- | |
148 | - | 50.local clickdetector = Instance.new("ClickDetector", door) |
148 | + | |
149 | ||
150 | New = function(Object, Parent, Name, Data) | |
151 | - | 51.local part_30 = Instance.new("Part") |
151 | + | local Object = Instance.new(Object) |
152 | for Index, Value in pairs(Data or {}) do | |
153 | Object[Index] = Value | |
154 | - | 52.local part_31 = Instance.new("Part") |
154 | + | end |
155 | Object.Parent = Parent | |
156 | Object.Name = Name | |
157 | - | 53.local part_32 = Instance.new("Part") |
157 | + | return Object |
158 | end | |
159 | ||
160 | - | 54.local part_33 = Instance.new("Part") |
160 | + | CyborgArm = New("Model",Char,"CyborgArm",{}) |
161 | Handle = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1.0500015, 2.02999949, 1.07999992),CFrame = CFrame.new(-138.347275, 2.99473095, 41.7816849, 0.999635339, 8.27677286e-06, 0.0270056836, -0.000191000072, 0.999977112, 0.00676353322, -0.0270050094, -0.00676622428, 0.999612451),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,0),}) | |
162 | Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Lime green"),Material = Enum.Material.Neon,Size = Vector3.new(0.429999948, 0.100000001, 1.04999983),CFrame = CFrame.new(-138.369171, 2.89115906, 41.8271637, 0.505694926, -0.862284958, 0.0271573812, 0.862490892, 0.506027818, 0.0067293453, -0.019545, 0.0200200025, 0.999608755),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 1, 0),}) | |
163 | - | 55.local part_34 = Instance.new("Part") |
163 | + | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, 0.505694926, 0.862490892, -0.0195449982, -0.862284899, 0.506027818, 0.0200199969, 0.0271573793, 0.00672934437, 0.999608576),C1 = CFrame.new(0.0136108398, -0.108844995, -0.0342674255, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),}) |
164 | Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Lime green"),Material = Enum.Material.Neon,Size = Vector3.new(0.600001693, 0.100000001, 1.04999983),CFrame = CFrame.new(-138.268127, 3.26462603, 41.8218994, 0.0100010047, -0.999581397, 0.0271513518, 0.999925494, 0.010187286, 0.00673122332, -0.00700500328, 0.027082013, 0.999608815),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 1, 0),}) | |
165 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, 0.0100010047, 0.999925494, -0.00700500328, -0.999581337, 0.010187286, 0.0270820074, 0.0271513499, 0.00673122238, 0.999608636),C1 = CFrame.new(-0.0874328613, 0.264621973, -0.028968811, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),}) | |
166 | - | 56.local part_35 = Instance.new("Part") |
166 | + | Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Lime green"),Material = Enum.Material.Neon,Size = Vector3.new(0.3000018, 0.100000001, 1.04999983),CFrame = CFrame.new(-138.217133, 3.61339307, 41.8189926, 0.778245091, -0.627379835, 0.0270029604, 0.627452075, 0.778625846, 0.00676273741, -0.0252680089, 0.0116800005, 0.999612689),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 1, 0),}) |
167 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, 0.778245091, 0.627452075, -0.0252680033, -0.627379835, 0.778625846, 0.0116799958, 0.0270029567, 0.00676273648, 0.99961251),C1 = CFrame.new(-0.138427734, 0.613389015, -0.0260467529, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),}) | |
168 | Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Lime green"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.840000331, 0.420000285, 1),CFrame = CFrame.new(-138.395523, 2.38962889, 41.7660217, -0.00574199716, -0.999983609, 1.77533366e-09, 0.999983549, -0.00574199716, 9.3131769e-10, 9.41781764e-10, 1.77533366e-09, 1.00000012),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 1, 0),}) | |
169 | - | 57.local part_36 = Instance.new("Part") |
169 | + | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, -0.00574199716, 0.999983549, 0, -0.999983549, -0.00574199716, 0, 0, 0, 1),C1 = CFrame.new(0.0399932861, -0.610375166, 0.0268669128, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),}) |
170 | Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Lime green"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.840000331, 0.420000285, 0.2900002),CFrame = CFrame.new(-138.540939, 3.80931711, 41.9832687, 2.29982252e-05, -0.999983609, -0.00574393803, -0.00452899979, -0.00574398367, 0.999973238, -0.999989927, 3.01669934e-06, -0.00452905567),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 1, 0),}) | |
171 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, 2.29999951e-05, -0.00452899886, -0.999989748, -0.999983549, -0.00574398367, 3.01490991e-06, -0.00574393803, 0.999973238, -0.00452905614),C1 = CFrame.new(0.185333252, 0.809313059, -0.190429688, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),}) | |
172 | - | 58.local part_37 = Instance.new("Part") |
172 | + | Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Shape = Enum.PartType.Ball,Size = Vector3.new(1.15999990, 1.16000044, 1.16000044),CFrame = CFrame.new(-138.563065, 3.74006891, 41.8137894, 1, -1.23944917e-22, 1.77533366e-09, -1.48608469e-11, 1, 9.3131769e-10, -1.80443749e-09, 9.31322575e-10, 1.00000012),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,0),}) |
173 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C1 = CFrame.new(0.207519531, 0.740064859, -0.0209579468, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),}) | |
174 | Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Lime green"),Material = Enum.Material.Neon,Size = Vector3.new(0.660001755, 0.100000001, 0.799999833),CFrame = CFrame.new(-138.557587, 3.57138705, 41.9535294, 0.999635398, 8.27676195e-06, 0.0270056874, -0.000191000116, 0.999977112, 0.00676353415, -0.0270050168, -0.00676622475, 0.999612629),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 1, 0),}) | |
175 | - | 59.local part_38 = Instance.new("Part") |
175 | + | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, 0.999635339, -0.000191000072, -0.0270050094, 8.27677377e-06, 0.999977112, -0.00676622428, 0.0270056836, 0.00676353322, 0.999612451),C1 = CFrame.new(0.20199585, 0.571382999, -0.160697937, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),}) |
176 | Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Lime green"),Material = Enum.Material.Neon,Size = Vector3.new(0.660001755, 0.100000001, 0.0899999291),CFrame = CFrame.new(-138.548004, 3.20288205, 42.3108978, 0.999635398, 8.27676195e-06, 0.0270056874, -0.000191000116, 0.999977112, 0.00676353415, -0.0270050168, -0.00676622475, 0.999612629),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 1, 0),}) | |
177 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, 0.999635339, -0.000191000072, -0.0270050094, 8.27677377e-06, 0.999977112, -0.00676622428, 0.0270056836, 0.00676353322, 0.999612451),C1 = CFrame.new(0.19229126, 0.202877998, -0.518062592, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),}) | |
178 | - | 60.local part_39 = Instance.new("Part") |
178 | + | Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Lime green"),Material = Enum.Material.Neon,Size = Vector3.new(0.390001893, 0.100000001, 1.04999983),CFrame = CFrame.new(-138.031433, 3.68374205, 41.8135147, 0.999635398, 8.27676195e-06, 0.0270056874, -0.000191000116, 0.999977112, 0.00676353415, -0.0270050168, -0.00676622475, 0.999612629),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 1, 0),}) |
179 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, 0.999635339, -0.000191000072, -0.0270050094, 8.27677377e-06, 0.999977112, -0.00676622428, 0.0270056836, 0.00676353322, 0.999612451),C1 = CFrame.new(-0.324111938, 0.683737993, -0.0205078125, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),}) | |
180 | Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Lime green"),Material = Enum.Material.Neon,Size = Vector3.new(0.2800017, 0.100000001, 0.690000117),CFrame = CFrame.new(-138.393951, 2.11307812, 42.0131454, 0.0100010047, -0.999581397, 0.0271513518, 0.999925494, 0.010187286, 0.00673122332, -0.00700500328, 0.027082013, 0.999608815),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 1, 0),}) | |
181 | - | 61.local part_40 = Instance.new("Part") |
181 | + | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, 0.0100010047, 0.999925494, -0.00700500328, -0.999581337, 0.010187286, 0.0270820074, 0.0271513499, 0.00673122238, 0.999608636),C1 = CFrame.new(0.0383300781, -0.886925936, -0.220256805, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),}) |
182 | Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Lime green"),Material = Enum.Material.Neon,Size = Vector3.new(0.600001693, 0.100000001, 1.04999983),CFrame = CFrame.new(-138.452835, 2.48128104, 41.8321991, -0.223359078, -0.974358141, 0.027149044, 0.974736214, -0.223258108, 0.00673288852, -0.000498998852, 0.0279670097, 0.999608934),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 1, 0),}) | |
183 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, -0.223359063, 0.974736214, -0.000499000133, -0.974358141, -0.223258108, 0.0279670041, 0.0271490421, 0.00673288759, 0.999608755),C1 = CFrame.new(0.0972747803, -0.518723011, -0.0393295288, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),}) | |
184 | - | 62.local part_41 = Instance.new("Part") |
184 | + | |
185 | ||
186 | function Debounces:New(name,cooldown) | |
187 | - | 63.local part_42 = Instance.new("Part") |
187 | + | local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0} |
188 | setmetatable(aaaaa,{__index = Debounces}) | |
189 | Debounces.Debounces[name] = aaaaa | |
190 | - | 64.local part_43 = Instance.new("Part") |
190 | + | return aaaaa |
191 | end | |
192 | ||
193 | - | 65.local parttopart_strong_joint_11 = Instance.new("ManualWeld") |
193 | + | function Debounces:Use(overrideUsable) |
194 | assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use") | |
195 | if(self.Usable or overrideUsable)then | |
196 | - | 66.local parttopart_strong_joint_12 = Instance.new("ManualWeld") |
196 | + | self.Usable = false |
197 | self.CoolingDown = true | |
198 | local LastUse = time() | |
199 | - | 67.local parttopart_strong_joint_13 = Instance.new("ManualWeld") |
199 | + | self.LastUse = LastUse |
200 | delay(self.Cooldown or 2,function() | |
201 | if(self.LastUse == LastUse)then | |
202 | - | 68.local part_45 = Instance.new("Part") |
202 | + | self.CoolingDown = false |
203 | self.Usable = true | |
204 | end | |
205 | - | 69.local part_46 = Instance.new("Part") |
205 | + | end) |
206 | end | |
207 | end | |
208 | - | 70.local part_47 = Instance.new("Part") |
208 | + | |
209 | function Debounces:Get(name) | |
210 | assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name))) | |
211 | - | 71.local part_44 = Instance.new("Part") |
211 | + | for i,v in next, Debounces.Debounces do |
212 | if(i == name)then | |
213 | return v; | |
214 | - | 72.local part_48 = Instance.new("Part") |
214 | + | end |
215 | end | |
216 | end | |
217 | - | 73.local part_49 = Instance.new("Part") |
217 | + | |
218 | function Debounces:GetProgressPercentage() | |
219 | assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use") | |
220 | - | 74.local parttopart_strong_joint_14 = Instance.new("ManualWeld") |
220 | + | if(self.CoolingDown and not self.Usable)then |
221 | return math.max( | |
222 | math.floor( | |
223 | - | 75.local snysoda = Instance.new("Tool") |
223 | + | ( |
224 | (time()-self.LastUse)/self.Cooldown or 2 | |
225 | )*100 | |
226 | - | 76.local handle_2 = Instance.new("Part") |
226 | + | ) |
227 | ) | |
228 | else | |
229 | - | 77.local mesh_2 = Instance.new("SpecialMesh") |
229 | + | return 100 |
230 | end | |
231 | end | |
232 | - | 78.local decal = Instance.new("Decal") |
232 | + | |
233 | --// Shortcut Variables \\-- | |
234 | local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ} | |
235 | - | 79.local model_2 = Instance.new("Model", model) |
235 | + | local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV} |
236 | local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis} | |
237 | local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end} | |
238 | - | 80.local part_50 = Instance.new("Part") |
238 | + | local R3 = {N=Region3.new} |
239 | local De = S.Debris | |
240 | local WS = workspace | |
241 | - | 81.local part_24 = Instance.new("Part") |
241 | + | local Lght = S.Lighting |
242 | local RepS = S.ReplicatedStorage | |
243 | local IN = Instance.new | |
244 | - | 82.local parttopart_strong_joint_15 = Instance.new("ManualWeld") |
244 | + | local CSK = ColorSequenceKeypoint.new |
245 | local CS = ColorSequence.new | |
246 | --// Instance Creation Functions \\-- | |
247 | - | 83.local parttopart_strong_joint_16 = Instance.new("ManualWeld") |
247 | + | |
248 | function Sound(parent,id,pitch,volume,looped,effect,autoPlay) | |
249 | local Sound = IN("Sound") | |
250 | - | 84.local part_51 = Instance.new("Part") |
250 | + | Sound.SoundId = "rbxassetid://".. tostring(id or 0) |
251 | Sound.Pitch = pitch or 1 | |
252 | Sound.Volume = volume or 1 | |
253 | - | 85.local part_53 = Instance.new("Part") |
253 | + | Sound.Looped = looped or false |
254 | if(autoPlay)then | |
255 | coroutine.wrap(function() | |
256 | - | 86.local part_54 = Instance.new("Part") |
256 | + | repeat wait() until Sound.IsLoaded |
257 | Sound.Playing = autoPlay or false | |
258 | end)() | |
259 | - | 87.local part_55 = Instance.new("Part") |
259 | + | end |
260 | if(not looped and effect)then | |
261 | Sound.Stopped:connect(function() | |
262 | - | 88.local part_56 = Instance.new("Part") |
262 | + | Sound.Volume = 0 |
263 | Sound:destroy() | |
264 | end) | |
265 | - | 89.local part_57 = Instance.new("Part") |
265 | + | elseif(effect)then |
266 | warn("Sound can't be looped and a sound effect!") | |
267 | end | |
268 | - | 90.local part_52 = Instance.new("Part") |
268 | + | Sound.Parent =parent or Torso |
269 | return Sound | |
270 | end | |
271 | - | 91.local part_58 = Instance.new("Part") |
271 | + | function Part(parent,color,material,size,cframe,anchored,cancollide) |
272 | local part = IN("Part") | |
273 | part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0) | |
274 | - | 92. |
274 | + | part.Material = (material or Enum.Material.SmoothPlastic) |
275 | part.TopSurface,part.BottomSurface=10,10 | |
276 | part.Size = (size or V3.N(1,1,1)) | |
277 | - | 93.part.Anchored = true |
277 | + | part.CFrame = (cframe or CF.N(0,0,0)) |
278 | part.Anchored = (anchored or false) | |
279 | part.CanCollide = (cancollide or false) | |
280 | - | 94.part.Size = Vector3.new(0.35, 12.05, 13.61) |
280 | + | part.Parent = (parent or Char) |
281 | return part | |
282 | end | |
283 | - | 95.part.Material = Enum.Material.SmoothPlastic |
283 | + | function Mesh(parent,meshtype,meshid,textid,scale,offset) |
284 | local part = IN("SpecialMesh") | |
285 | part.MeshId = meshid or "" | |
286 | - | 96.part.TopSurface = Enum.SurfaceType.Smooth |
286 | + | part.TextureId = textid or "" |
287 | part.Scale = scale or V3.N(1,1,1) | |
288 | part.Offset = offset or V3.N(0,0,0) | |
289 | - | 97.part.BottomSurface = Enum.SurfaceType.Smooth |
289 | + | part.MeshType = meshtype or Enum.MeshType.Sphere |
290 | part.Parent = parent | |
291 | return part | |
292 | - | 98.part.Parent = model |
292 | + | end |
293 | ||
294 | NewInstance = function(instance,parent,properties) | |
295 | - | 99.part.CFrame = CFrame.new(-30.935, 6.695, -38.805) |
295 | + | local inst = Instance.new(instance,parent) |
296 | if(properties)then | |
297 | for i,v in next, properties do | |
298 | - | 100.part_2.Anchored = true |
298 | + | pcall(function() inst[i] = v end) |
299 | end | |
300 | end | |
301 | - | 101.part_2.Size = Vector3.new(0.93, 12.05, 27.26) |
301 | + | return inst; |
302 | end | |
303 | ||
304 | - | 102.part_2.Material = Enum.Material.SmoothPlastic |
304 | + | |
305 | ||
306 | --// Extended ROBLOX tables \\-- | |
307 | - | 103.part_2.TopSurface = Enum.SurfaceType.Smooth |
307 | + | local Instance = setmetatable({ClearChildrenOfClass = function(where,class,recursive) local children = (recursive and where:GetDescendants() or where:GetChildren()) for _,v in next, children do if(v:IsA(class))then v:destroy();end;end;end},{__index = Instance}) |
308 | --// Customization \\-- | |
309 | ||
310 | - | 104.part_2.BottomSurface = Enum.SurfaceType.Smooth |
310 | + | local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this |
311 | local Remove_Hats = false | |
312 | local Remove_Clothing = true | |
313 | - | 105.part_2.Parent = model |
313 | + | local PlayerSize = 1 |
314 | local DamageColor = BrickColor.new'Lime green' | |
315 | local MusicID = 1504604335 | |
316 | - | 106.part_2.CFrame = CFrame.new(4.825, 6.695, -44.5) |
316 | + | local WalkSpeed = 13 |
317 | local MaxSouls = 100 | |
318 | local MaxHealth = 500 | |
319 | - | 107.part_3.Anchored = true |
319 | + | |
320 | ||
321 | if(_G.RefusedAnimation == nil) then _G.RefusedAnimation = false end | |
322 | - | 108.part_3.Size = Vector3.new(97.6, 0.58, 37.18) |
322 | + | |
323 | --// Weapon and GUI creation, and Character Customization \\-- | |
324 | ||
325 | - | 109.part_3.Material = Enum.Material.SmoothPlastic |
325 | + | if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end |
326 | if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end | |
327 | local Effects = IN("Folder",Char) | |
328 | - | 110.part_3.TopSurface = Enum.SurfaceType.Smooth |
328 | + | Effects.Name = "Effects" |
329 | ||
330 | Hum.MaxHealth = MaxHealth | |
331 | - | 111.part_3.BottomSurface = Enum.SurfaceType.Smooth |
331 | + | Hum.Health = MaxHealth |
332 | ||
333 | local Knife = NewInstance("Part",Char,{Name='Knife',Size=V3.N(.4,3,.7),Anchored=false,CanCollide=false,Locked=true,Archivable=false,Reflectance=.01,Color=C3.N(0,0,0)}) | |
334 | - | 112.part_3.Parent = model |
334 | + | local KnifeMesh = Mesh(Knife,Enum.MeshType.FileMesh,"rbxassetid://156092238","rbxassetid://156092253",V3.N(1,1,1),V3.N()) |
335 | local AuraEmitter = NewInstance("ParticleEmitter",Knife,{EmissionDirection='Back',Color=CS{CSK(0,C3.N(0,1,0)),CSK(0.5,C3.N(0,1,0)),CSK(1,C3.RGB(0,255,0))},LightEmission=.5,LightInfluence=0,Size=NumberSequence.new(0.3),Texture="rbxassetid://141116476",Transparency=NumberSequence.new(0,1),LockedToPart=true,Lifetime=NumberRange.new(1),Rate=150,Speed=NumberRange.new(0)}) | |
336 | local FireEmitter = NewInstance("ParticleEmitter",Knife,{EmissionDirection='Back',Color=CS(C3.N(0,1,0),C3.N(0,1,0)),LightEmission=.5,LightInfluence=0,Size=NumberSequence.new{NumberSequenceKeypoint.new(0,.5,0),NumberSequenceKeypoint.new(0.755,0,0),NumberSequenceKeypoint.new(1,0,0)},Texture="rbxassetid://141116476",Transparency=NumberSequence.new(0.35,1),Lifetime=NumberRange.new(1,2),Rate=150,Speed=NumberRange.new(3)}) | |
337 | - | 113.part_3.CFrame = CFrame.new(15.46, 12.96, -28.71) |
337 | + | |
338 | local KTrail = NewInstance("Trail",Knife,{ | |
339 | Attachment0=NewInstance("Attachment",Knife,{Position=V3.N(0,-.4,0)}), | |
340 | - | 114.part_4.Anchored = true |
340 | + | Attachment1=NewInstance("Attachment",Knife,{Position=V3.N(0,1.2,0)}), |
341 | Color=CS(C3.N(0,1,0)), | |
342 | Enabled=false, | |
343 | - | 115.part_4.Size = Vector3.new(34.88, 0.45, 32.42) |
343 | + | Transparency=NumberSequence.new(0,1), |
344 | Lifetime=1.25, | |
345 | }) | |
346 | - | 116.part_4.Material = Enum.Material.Fabric |
346 | + | local Hair = Part(Char,C3.N(0,0,0),Enum.Material.SmoothPlastic,V3.N(1,1,1),CF.N(),false,false) |
347 | local HairMesh = Mesh(Hair,Enum.MeshType.FileMesh,"rbxassetid://62246019","rbxassetid://62246077",V3.N(1.05,1.05,1.05),V3.N()) | |
348 | ||
349 | - | 117.part_4.TopSurface = Enum.SurfaceType.Smooth |
349 | + | NewInstance("PointLight",Knife,{Color=C3.N(0,1,0),Range=10,Brightness=3}) |
350 | ||
351 | ||
352 | - | 118.part_4.BottomSurface = Enum.SurfaceType.Smooth |
352 | + | Hum.DisplayDistanceType = 'None' |
353 | ||
354 | local naeeym2 = IN("BillboardGui",Char) | |
355 | - | 119.part_4.Parent = model |
355 | + | naeeym2.AlwaysOnTop = true |
356 | naeeym2.Size = UDim2.new(5,35,2,15) | |
357 | naeeym2.StudsOffset = V3.N(0,2.5,0) | |
358 | - | 120.part_4.CFrame = CFrame.new(-13.43, 0.895, -28.89) |
358 | + | naeeym2.Adornee = Char.Head |
359 | naeeym2.Name = "Name" | |
360 | naeeym2.PlayerToHideFrom = Plr | |
361 | - | 121.part_5.Anchored = true |
361 | + | local tecks2 = IN("TextLabel",naeeym2) |
362 | tecks2.BackgroundTransparency = 1 | |
363 | tecks2.TextScaled = true | |
364 | - | 122.part_5.Size = Vector3.new(1.89, 12.05, 46.01) |
364 | + | tecks2.BorderSizePixel = 0 |
365 | tecks2.Text = "The Lord Of Darkness And Forest" | |
366 | tecks2.Font = Enum.Font.Bodoni | |
367 | - | 123.part_5.Material = Enum.Material.SmoothPlastic |
367 | + | tecks2.TextSize = 30 |
368 | tecks2.TextStrokeTransparency = 0 | |
369 | tecks2.TextColor3 = C3.N(0,0,0) | |
370 | - | 124.part_5.TopSurface = Enum.SurfaceType.Smooth |
370 | + | tecks2.TextStrokeColor3 = C3.N(0,1,0) |
371 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
372 | tecks2.Parent = naeeym2 | |
373 | - | 125.part_5.BottomSurface = Enum.SurfaceType.Smooth |
373 | + | |
374 | ||
375 | IN("Shirt",Char) | |
376 | - | 126.part_5.Parent = model |
376 | + | IN("Pants",Char) |
377 | ||
378 | Hum.WalkSpeed = WalkSpeed | |
379 | - | 127.part_5.CFrame = CFrame.new(62.155, 6.695, -35.125) |
379 | + | if(PlayerSize ~= 1)then |
380 | for _,v in next, Char:GetDescendats() do | |
381 | if(v:IsA'BasePart')then | |
382 | - | 128.part_6.Anchored = true |
382 | + | v.Size = v.Size * PlayerSize |
383 | end | |
384 | end | |
385 | - | 129.part_6.Size = Vector3.new(0.35, 3.17, 7.21) |
385 | + | end |
386 | ||
387 | ||
388 | - | 130.part_6.Material = Enum.Material.SmoothPlastic |
388 | + | for i = 1, 35 do |
389 | local FACE = Part(Char,C3.N(0,0,0),Enum.Material.Neon,V3.N(1.01,.5,1.01),CF.N(),false,false) | |
390 | FACE.Transparency = 0+(i-1)/35.2 | |
391 | - | 131.part_6.TopSurface = Enum.SurfaceType.Smooth |
391 | + | FACE.Name = 'ShadowFace' |
392 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE | |
393 | NewInstance("Weld",Head,{Part0=Head,Part1=FACE,C0=CF.N(0,.35-(i-1)/75,0)}) | |
394 | - | 132.part_6.BottomSurface = Enum.SurfaceType.Smooth |
394 | + | --CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0)) |
395 | end | |
396 | ||
397 | - | 133.part_6.Parent = model |
397 | + | local LEye = Part(Char,C3.N(0,1,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false) |
398 | local LEyeM = Mesh(LEye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N()) | |
399 | local LEyeW = NewInstance("Weld",LEye,{Part0=Head,Part1=LEye,C0=CF.N(-.2,.2,-.49)}) | |
400 | - | 134.part_6.CFrame = CFrame.new(-30.935, 11.135, -29.205) |
400 | + | |
401 | ||
402 | ||
403 | - | 135.part_7.Anchored = true |
403 | + | pcall(function() |
404 | Char.LeftWing:destroy() | |
405 | Char.ReaperShadowHead:destroy() | |
406 | - | 136.part_7.Size = Vector3.new(93.93, 4.13, 1.26) |
406 | + | end) |
407 | ||
408 | ||
409 | - | 137.part_7.Material = Enum.Material.SmoothPlastic |
409 | + | local Music = Sound(Torso,MusicID,1,3,true,false,true) |
410 | Music.Name = 'Music' | |
411 | ||
412 | - | 138.part_7.TopSurface = Enum.SurfaceType.Smooth |
412 | + | --// Stop animations \\-- |
413 | for _,v in next, Hum:GetPlayingAnimationTracks() do | |
414 | v:Stop(); | |
415 | - | 139.part_7.BottomSurface = Enum.SurfaceType.Smooth |
415 | + | end |
416 | ||
417 | pcall(game.Destroy,Char:FindFirstChild'Animate') | |
418 | - | 140.part_7.Parent = model |
418 | + | pcall(game.Destroy,Hum:FindFirstChild'Animator') |
419 | ||
420 | --// Joints \\-- | |
421 | - | 141.part_7.CFrame = CFrame.new(16.155, 10.655, -12.67) |
421 | + | |
422 | local LS = NewInstance('Motor',Char,{Part0=Torso,Part1=LArm,C0 = CF.N(-1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)}) | |
423 | local RS = NewInstance('Motor',Char,{Part0=Torso,Part1=RArm,C0 = CF.N(1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)}) | |
424 | - | 142.part_8.Anchored = true |
424 | + | local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)}) |
425 | local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)}) | |
426 | local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)}) | |
427 | - | 143.part_8.Size = Vector3.new(0.35, 12.05, 13.61) |
427 | + | local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso}) |
428 | local HW = NewInstance('Motor',Char,{Part0=RArm,Part1=Knife,C0=CF.N(0,-1,-1)*CF.A(M.R(-90),0,0)}) | |
429 | local HW2 = NewInstance('Motor',Char,{Part0=Head,Part1=Hair,C0=CF.N(0,.25,0)}) | |
430 | - | 144.part_8.Material = Enum.Material.SmoothPlastic |
430 | + | |
431 | local LSC0 = LS.C0 | |
432 | local RSC0 = RS.C0 | |
433 | - | 145.part_8.TopSurface = Enum.SurfaceType.Smooth |
433 | + | local NKC0 = NK.C0 |
434 | local LHC0 = LH.C0 | |
435 | local RHC0 = RH.C0 | |
436 | - | 146.part_8.BottomSurface = Enum.SurfaceType.Smooth |
436 | + | local RJC0 = RJ.C0 |
437 | ||
438 | --// Artificial HB \\-- | |
439 | - | 147.part_8.Parent = model |
439 | + | |
440 | local ArtificialHB = IN("BindableEvent", script) | |
441 | ArtificialHB.Name = "Heartbeat" | |
442 | - | 148.part_8.CFrame = CFrame.new(-30.935, 6.695, -18.845) |
442 | + | |
443 | script:WaitForChild("Heartbeat") | |
444 | ||
445 | - | 149.part_9.Anchored = true |
445 | + | local tf = 0 |
446 | local allowframeloss = false | |
447 | local tossremainder = false | |
448 | - | 150.part_9.Size = Vector3.new(56.02, 12.05, 2.14) |
448 | + | local lastframe = tick() |
449 | local frame = 1/Frame_Speed | |
450 | ArtificialHB:Fire() | |
451 | - | 151.part_9.Material = Enum.Material.SmoothPlastic |
451 | + | |
452 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
453 | tf = tf + s | |
454 | - | 152.part_9.TopSurface = Enum.SurfaceType.Smooth |
454 | + | if tf >= frame then |
455 | if allowframeloss then | |
456 | script.Heartbeat:Fire() | |
457 | - | 153.part_9.BottomSurface = Enum.SurfaceType.Smooth |
457 | + | lastframe = tick() |
458 | else | |
459 | for i = 1, math.floor(tf / frame) do | |
460 | - | 154.part_9.Parent = model |
460 | + | ArtificialHB:Fire() |
461 | end | |
462 | lastframe = tick() | |
463 | - | 155.part_9.CFrame = CFrame.new(33.25, 6.695, -57.06) |
463 | + | end |
464 | if tossremainder then | |
465 | tf = 0 | |
466 | - | 156.part_10.Anchored = true |
466 | + | else |
467 | tf = tf - frame * math.floor(tf / frame) | |
468 | end | |
469 | - | 157.part_10.Size = Vector3.new(57.85, 0.45, 43.43) |
469 | + | end |
470 | end) | |
471 | ||
472 | - | 158.part_10.Material = Enum.Material.Fabric |
472 | + | function swait(num) |
473 | if num == 0 or num == nil then | |
474 | ArtificialHB.Event:wait() | |
475 | - | 159.part_10.TopSurface = Enum.SurfaceType.Smooth |
475 | + | else |
476 | for i = 0, num do | |
477 | ArtificialHB.Event:wait() | |
478 | - | 160.part_10.BottomSurface = Enum.SurfaceType.Smooth |
478 | + | end |
479 | end | |
480 | end | |
481 | - | 161.part_10.Parent = model |
481 | + | |
482 | ||
483 | --// Effect Function(s) \\-- | |
484 | - | 162.part_10.CFrame = CFrame.new(32.885, 0.895, -34.395) |
484 | + | |
485 | Circle = nil | |
486 | CircleParts = {} | |
487 | - | 163.parttopart_strong_joint.Part1 = part_11 |
487 | + | Equipped = false |
488 | ||
489 | function RayCast(Position, Direction, MaxDistance, IgnoreList) | |
490 | - | 164.parttopart_strong_joint.C0 = CFrame.new(-28.925, 0.225, 21.715) * CFrame.Angles(-1.571, 0, 3.141) |
490 | + | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList) |
491 | end | |
492 | Humanoid = Char:FindFirstChildOfClass("Humanoid") | |
493 | - | 165.parttopart_strong_joint.C1 = CFrame.new(19.95, -2, 55.531) * CFrame.Angles(-1.571, 0, -1.571) |
493 | + | Torso = Char:FindFirstChild("Torso") |
494 | if not Plr or not Humanoid or Humanoid.Health == 0 or not Torso then | |
495 | return | |
496 | - | 166.parttopart_strong_joint.Part0 = part_10 |
496 | + | end |
497 | Equipped = true | |
498 | Circle = Instance.new("Model") | |
499 | - | 167.parttopart_strong_joint.Name = "Part-to-Part Strong Joint" |
499 | + | Circle.Name = "Circle" |
500 | Angle = 0 | |
501 | for i = 1, 1 do | |
502 | - | 168.parttopart_strong_joint.Parent = part_10 |
502 | + | local CirclePart = Instance.new("Part") |
503 | CirclePart.Name = "CirclePart" | |
504 | CirclePart.Transparency = 1 | |
505 | - | 169.parttopart_strong_joint_2.Part1 = part_12 |
505 | + | CirclePart.BrickColor = BrickColor.new("Really black") |
506 | CirclePart.Material = Enum.Material.Plastic | |
507 | CirclePart.Shape = Enum.PartType.Block | |
508 | - | 170.parttopart_strong_joint_2.C0 = CFrame.new(-28.925, 0.225, 21.715) * CFrame.Angles(-1.571, 0, 3.141) |
508 | + | CirclePart.FormFactor = Enum.FormFactor.Custom |
509 | CirclePart.TopSurface = Enum.SurfaceType.Smooth | |
510 | CirclePart.BottomSurface = Enum.SurfaceType.Smooth | |
511 | - | 171.parttopart_strong_joint_2.C1 = CFrame.new(19.95, -0.5, 47.78) * CFrame.Angles(-1.571, 0, -1.571) |
511 | + | CirclePart.Anchored = true |
512 | CirclePart.CanCollide = false | |
513 | CirclePart.Locked = true | |
514 | - | 172.parttopart_strong_joint_2.Part0 = part_10 |
514 | + | CirclePart.Size = Vector3.new(10, 0.2, 10) |
515 | local BlockMesh = Instance.new("BlockMesh") | |
516 | BlockMesh.Scale = Vector3.new(1, (1 + (0.005 * i)), 1) | |
517 | - | 173.parttopart_strong_joint_2.Name = "Part-to-Part Strong Joint" |
517 | + | BlockMesh.Parent = CirclePart |
518 | CirclePart.Parent = Circle | |
519 | local Star = Instance.new("Decal", CirclePart) | |
520 | - | 174.parttopart_strong_joint_2.Parent = part_10 |
520 | + | Star.Texture = "http://www.roblox.com/asset/?id=43997508" |
521 | Star.Face = "Top" | |
522 | local Light = Instance.new("PointLight", CirclePart) | |
523 | - | 175.part_13.Anchored = true |
523 | + | Light.Color = Color3.new(1,0,0) |
524 | Light.Brightness = 100 | |
525 | Light.Range = 15 | |
526 | - | 176.part_13.Size = Vector3.new(0.93, 12.05, 14.33) |
526 | + | table.insert(CircleParts, CirclePart) |
527 | end | |
528 | Spawn(function() | |
529 | - | 177.part_13.Material = Enum.Material.SmoothPlastic |
529 | + | while Equipped and Humanoid.Parent and Humanoid.Health > 0 and Torso.Parent do |
530 | if Angle == 360 then | |
531 | Angle = 0 | |
532 | - | 178.part_13.TopSurface = Enum.SurfaceType.Smooth |
532 | + | end |
533 | Angle = Angle + 0.05 | |
534 | local Hit, EndPosition = RayCast(Torso.Position, Vector3.new(0, -1, 0), (Torso.Size.Y * 6.5), {Char}) | |
535 | - | 179.part_13.BottomSurface = Enum.SurfaceType.Smooth |
535 | + | if Hit then |
536 | if not Circle.Parent then | |
537 | Circle.Parent = Char | |
538 | - | 180.part_13.Parent = model |
538 | + | end |
539 | for i, v in pairs(CircleParts) do | |
540 | v.CFrame = CFrame.new(Torso.Position.X, EndPosition.Y, Torso.Position.Z) * CFrame.Angles(0, (Angle + i), 0) | |
541 | - | 181.part_13.CFrame = CFrame.new(4.825, 6.695, -19.225) |
541 | + | end |
542 | else | |
543 | Circle.Parent = nil | |
544 | - | 182.part_14.Anchored = true |
544 | + | end |
545 | wait() | |
546 | end | |
547 | - | 183.part_14.Size = Vector3.new(93.72, 3.29, 1.26) |
547 | + | end) |
548 | ||
549 | function Bezier(startpos, pos2, pos3, endpos, t) | |
550 | - | 184.part_14.Material = Enum.Material.SmoothPlastic |
550 | + | local A = startpos:lerp(pos2, t) |
551 | local B = pos2:lerp(pos3, t) | |
552 | local C = pos3:lerp(endpos, t) | |
553 | - | 185.part_14.TopSurface = Enum.SurfaceType.Smooth |
553 | + | local lerp1 = A:lerp(B, t) |
554 | local lerp2 = B:lerp(C, t) | |
555 | local cubic = lerp1:lerp(lerp2, t) | |
556 | - | 186.part_14.BottomSurface = Enum.SurfaceType.Smooth |
556 | + | return cubic |
557 | end | |
558 | ||
559 | - | 187.part_14.Parent = model |
559 | + | function Tween(obj,props,time,easing,direction,repeats,backwards) |
560 | local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false) | |
561 | local tween = S.TweenService:Create(obj, info, props) | |
562 | - | 188.part_14.CFrame = CFrame.new(16.05, 2.415, -12.67) |
562 | + | |
563 | tween:Play() | |
564 | end | |
565 | - | 189.part_15.Anchored = true |
565 | + | |
566 | local FXTable = {} | |
567 | ||
568 | - | 190.part_15.Size = Vector3.new(59.81, 0.58, 13.01) |
568 | + | coroutine.resume(coroutine.create(function() |
569 | while true do | |
570 | for i = 1, #FXTable do | |
571 | - | 191.part_15.Material = Enum.Material.SmoothPlastic |
571 | + | local data = FXTable[i] |
572 | if(data)then | |
573 | local Frame = data.Frame | |
574 | - | 192.part_15.TopSurface = Enum.SurfaceType.Smooth |
574 | + | local FX = data.Effect or 'ResizeAndFade' |
575 | local Parent = data.Parent or Effects | |
576 | local Color = data.Color or C3.N(0,0,0) | |
577 | - | 193.part_15.BottomSurface = Enum.SurfaceType.Smooth |
577 | + | local Size = data.Size or V3.N(1,1,1) |
578 | local MoveDir = data.MoveDirection or nil | |
579 | local MeshData = data.Mesh or nil | |
580 | - | 194.part_15.Parent = model |
580 | + | local SndData = data.Sound or nil |
581 | local Frames = data.Frames or 45 | |
582 | local CFra = data.CFrame or Torso.CFrame | |
583 | - | 195.part_15.CFrame = CFrame.new(34.355, 12.96, -53.755) |
583 | + | local Settings = data.FXSettings or {} |
584 | local Prt,Msh,Snd = data.Part,data.Mesh,data.Sound | |
585 | local grow = data.Grow | |
586 | - | 196.part_16.Anchored = true |
586 | + | |
587 | local MoveSpeed = nil; | |
588 | if(MoveDir)then | |
589 | - | 197.part_16.Size = Vector3.new(93.86, 4.58, 1.26) |
589 | + | MoveSpeed = (CFra.p - MoveDir).magnitude/Frames |
590 | end | |
591 | if(FX ~= 'Arc')then | |
592 | - | 198.part_16.Material = Enum.Material.SmoothPlastic |
592 | + | Frame = Frame + 1 |
593 | if(FX == "Fade")then | |
594 | Prt.Transparency = (Frame/Frames) | |
595 | - | 199.part_16.BottomSurface = Enum.SurfaceType.Smooth |
595 | + | elseif(FX == "Resize")then |
596 | if(not Settings.EndSize)then | |
597 | Settings.EndSize = V3.N(0,0,0) | |
598 | - | 200.part_16.BrickColor = BrickColor.new("Bright blue") |
598 | + | end |
599 | if(Settings.EndIsIncrement)then | |
600 | if(Msh)then | |
601 | - | 201.part_16.Transparency = 0.7 |
601 | + | Msh.Scale = Msh.Scale + Settings.EndSize |
602 | else | |
603 | Prt.Size = Prt.Size + Settings.EndSize | |
604 | - | 202.part_16.Color = Color3.new(0.0509804, 0.411765, 0.67451) |
604 | + | end |
605 | else | |
606 | if(Msh)then | |
607 | - | 203.part_16.TopSurface = Enum.SurfaceType.Smooth |
607 | + | Msh.Scale = Msh.Scale - grow/Frames |
608 | else | |
609 | Prt.Size = Prt.Size - grow/Frames | |
610 | - | 204.part_16.Parent = model |
610 | + | end |
611 | end | |
612 | elseif(FX == "ResizeAndFade")then | |
613 | - | 205.part_16.CFrame = CFrame.new(16.12, 6.37, -12.67) |
613 | + | if(not Settings.EndSize)then |
614 | Settings.EndSize = V3.N(0,0,0) | |
615 | end | |
616 | - | 206.part_17.Anchored = true |
616 | + | if(Settings.EndIsIncrement)then |
617 | if(Msh)then | |
618 | Msh.Scale = Msh.Scale + Settings.EndSize | |
619 | - | 207.part_17.Size = Vector3.new(35.52, 12.05, 1.02) |
619 | + | else |
620 | Prt.Size = Prt.Size + Settings.EndSize | |
621 | end | |
622 | - | 208.part_17.Material = Enum.Material.SmoothPlastic |
622 | + | else |
623 | if(Msh)then | |
624 | Msh.Scale = Msh.Scale - grow/Frames | |
625 | - | 209.part_17.TopSurface = Enum.SurfaceType.Smooth |
625 | + | else |
626 | Prt.Size = Prt.Size - grow/Frames | |
627 | end | |
628 | - | 210.part_17.BottomSurface = Enum.SurfaceType.Smooth |
628 | + | end |
629 | Prt.Transparency = (Frame/Frames) | |
630 | end | |
631 | - | 211.part_17.Parent = model |
631 | + | if(Settings.RandomizeCFrame)then |
632 | Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360)) | |
633 | end | |
634 | - | 212.part_17.CFrame = CFrame.new(-13.35, 6.695, -45.1) |
634 | + | if(MoveDir and MoveSpeed)then |
635 | local Orientation = Prt.Orientation | |
636 | Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed) | |
637 | - | 213.part_18.Anchored = true |
637 | + | Prt.Orientation = Orientation |
638 | end | |
639 | if(Prt.Transparency >= 1 or Frame >= Frames)then | |
640 | - | 214.part_18.Size = Vector3.new(0.93, 3.13, 4.77) |
640 | + | Prt:destroy() |
641 | table.remove(FXTable,i) | |
642 | else | |
643 | - | 215.part_18.Material = Enum.Material.SmoothPlastic |
643 | + | data.Frame = Frame |
644 | end | |
645 | else | |
646 | - | 216.part_18.TopSurface = Enum.SurfaceType.Smooth |
646 | + | local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End |
647 | if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end | |
648 | if(start and endP)then | |
649 | - | 217.part_18.BottomSurface = Enum.SurfaceType.Smooth |
649 | + | local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25)) |
650 | local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25)) | |
651 | Frame = Frame + (Settings.Speed or 0.01) | |
652 | - | 218.part_18.Parent = model |
652 | + | if(Settings.Home)then |
653 | endP = Settings.Home.CFrame | |
654 | end | |
655 | - | 219.part_18.CFrame = CFrame.new(4.825, 11.155, -28.535) |
655 | + | Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame) |
656 | if(Prt.Transparency >= 1 or Frame >= Frames)then | |
657 | if(Settings.RemoveOnGoal)then | |
658 | - | 220.part_19.Anchored = true |
658 | + | Prt:destroy() |
659 | end | |
660 | end | |
661 | - | 221.part_19.Shape = Enum.PartType.Cylinder |
661 | + | else |
662 | Prt:destroy() | |
663 | end | |
664 | - | 222.part_19.Size = Vector3.new(0.05, 0.48, 0.48) |
664 | + | end |
665 | end | |
666 | end | |
667 | - | 223.part_19.Orientation = Vector3.new(0, 90.01, 0) |
667 | + | swait() |
668 | end | |
669 | end)) | |
670 | - | 224.part_19.Material = Enum.Material.SmoothPlastic |
670 | + | |
671 | function Effect(data) | |
672 | local FX = data.Effect or 'ResizeAndFade' | |
673 | - | 225.part_19.BottomSurface = Enum.SurfaceType.Smooth |
673 | + | local Parent = data.Parent or Effects |
674 | local Color = data.Color or C3.N(0,0,0) | |
675 | local Size = data.Size or V3.N(1,1,1) | |
676 | - | 226.part_19.BrickColor = BrickColor.new("Really black") |
676 | + | local MoveDir = data.MoveDirection or nil |
677 | local MeshData = data.Mesh or nil | |
678 | local SndData = data.Sound or nil | |
679 | - | 227.part_19.TopSurface = Enum.SurfaceType.Smooth |
679 | + | local Frames = data.Frames or 45 |
680 | local Manual = data.Manual or nil | |
681 | local Material = data.Material or nil | |
682 | - | 228.part_19.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) |
682 | + | local CFra = data.CFrame or Torso.CFrame |
683 | local Settings = data.FXSettings or {} | |
684 | local Shape = data.Shape or Enum.PartType.Block | |
685 | - | 229.part_19.Parent = model |
685 | + | local Snd,Prt,Msh; |
686 | coroutine.wrap(function() | |
687 | if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then | |
688 | - | 230.part_19.CFrame = CFrame.new(18.12, 10.65, -50.405) * CFrame.Angles(0, 1.571, 0) |
688 | + | Prt = Manual |
689 | else | |
690 | Prt = Part(Parent,Color,Material,Size,CFra,true,false) | |
691 | - | 231.part_20.Anchored = true |
691 | + | Prt.Shape = Shape |
692 | end | |
693 | if(typeof(MeshData) == 'table')then | |
694 | - | 232.part_20.Size = Vector3.new(0.4, 2.36, 7.76) |
694 | + | Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset) |
695 | elseif(typeof(MeshData) == 'Instance')then | |
696 | Msh = MeshData:Clone() | |
697 | - | 233.part_20.Material = Enum.Material.SmoothPlastic |
697 | + | Msh.Parent = Prt |
698 | elseif(Shape == Enum.PartType.Block)then | |
699 | Msh = Mesh(Prt,Enum.MeshType.Brick) | |
700 | - | 234.part_20.TopSurface = Enum.SurfaceType.Smooth |
700 | + | end |
701 | if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then | |
702 | Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true) | |
703 | - | 235.part_20.BottomSurface = Enum.SurfaceType.Smooth |
703 | + | end |
704 | if(Snd)then | |
705 | repeat swait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0 | |
706 | - | 236.part_20.Parent = model |
706 | + | Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch |
707 | end | |
708 | Size = (Msh and Msh.Scale or Size) | |
709 | - | 237.part_20.CFrame = CFrame.new(19.17, 11.56, -54.11) |
709 | + | local grow = Size-(Settings.EndSize or (Msh and Msh.Scale or Size)/2) |
710 | ||
711 | local MoveSpeed = nil; | |
712 | - | 238.part_21.Anchored = true |
712 | + | if(MoveDir)then |
713 | MoveSpeed = (CFra.p - MoveDir).magnitude/Frames | |
714 | end | |
715 | - | 239.part_21.Shape = Enum.PartType.Cylinder |
715 | + | if(FX ~= 'Arc')then |
716 | for Frame = 1, Frames do | |
717 | if(FX == "Fade")then | |
718 | - | 240.part_21.Size = Vector3.new(0.05, 1, 1) |
718 | + | Prt.Transparency = (Frame/Frames) |
719 | elseif(FX == "Resize")then | |
720 | if(not Settings.EndSize)then | |
721 | - | 241.part_21.Orientation = Vector3.new(-0.02, 180, -89.99) |
721 | + | Settings.EndSize = V3.N(0,0,0) |
722 | end | |
723 | if(Settings.EndIsIncrement)then | |
724 | - | 242.part_21.Material = Enum.Material.SmoothPlastic |
724 | + | if(Msh)then |
725 | Msh.Scale = Msh.Scale + Settings.EndSize | |
726 | else | |
727 | - | 243.part_21.BottomSurface = Enum.SurfaceType.Smooth |
727 | + | Prt.Size = Prt.Size + Settings.EndSize |
728 | end | |
729 | else | |
730 | - | 244.part_21.BrickColor = BrickColor.new("Really black") |
730 | + | if(Msh)then |
731 | Msh.Scale = Msh.Scale - grow/Frames | |
732 | else | |
733 | - | 245.part_21.TopSurface = Enum.SurfaceType.Smooth |
733 | + | Prt.Size = Prt.Size - grow/Frames |
734 | end | |
735 | end | |
736 | - | 246.part_21.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) |
736 | + | elseif(FX == "ResizeAndFade")then |
737 | if(not Settings.EndSize)then | |
738 | Settings.EndSize = V3.N(0,0,0) | |
739 | - | 247.part_21.Parent = model |
739 | + | end |
740 | if(Settings.EndIsIncrement)then | |
741 | if(Msh)then | |
742 | - | 248.part_21.CFrame = CFrame.new(10.1, 4.355, -54.23) * CFrame.Angles(-3.141, 0, 1.571) |
742 | + | Msh.Scale = Msh.Scale + Settings.EndSize |
743 | else | |
744 | Prt.Size = Prt.Size + Settings.EndSize | |
745 | - | 249.part_22.Anchored = true |
745 | + | end |
746 | else | |
747 | if(Msh)then | |
748 | - | 250.part_22.Size = Vector3.new(27.84, 2.76, 7.07) |
748 | + | Msh.Scale = Msh.Scale - grow/Frames |
749 | else | |
750 | Prt.Size = Prt.Size - grow/Frames | |
751 | - | 251.part_22.Material = Enum.Material.SmoothPlastic |
751 | + | end |
752 | end | |
753 | Prt.Transparency = (Frame/Frames) | |
754 | - | 252.part_22.TopSurface = Enum.SurfaceType.Smooth |
754 | + | end |
755 | if(Settings.RandomizeCFrame)then | |
756 | Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360)) | |
757 | - | 253.part_22.BottomSurface = Enum.SurfaceType.Smooth |
757 | + | end |
758 | if(MoveDir and MoveSpeed)then | |
759 | local Orientation = Prt.Orientation | |
760 | - | 254.part_22.Parent = model |
760 | + | Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed) |
761 | Prt.Orientation = Orientation | |
762 | end | |
763 | - | 255.part_22.CFrame = CFrame.new(18.46, 2.42, -54.455) |
763 | + | swait() |
764 | end | |
765 | Prt:destroy() | |
766 | - | 256.bloxy_cola.GripForward = Vector3.new(-0.976, 0, -0.217) |
766 | + | else |
767 | local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End | |
768 | if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end | |
769 | - | 257.bloxy_cola.GripRight = Vector3.new(0.217, 0, -0.976) |
769 | + | if(start and endP)then |
770 | local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25)) | |
771 | local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25)) | |
772 | - | 258.bloxy_cola.TextureId = "http://www.roblox.com/asset/?id=10472127" |
772 | + | for Frame = 0, 1, (Settings.Speed or 0.01) do |
773 | if(Settings.Home)then | |
774 | endP = Settings.Home.CFrame | |
775 | - | 259.bloxy_cola.Grip = CFrame.new(0.03, 0, 0) * CFrame.Angles(0, 1.352, 0) |
775 | + | end |
776 | Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame) | |
777 | end | |
778 | - | 260.bloxy_cola.Name = "Bloxy Cola" |
778 | + | if(Settings.RemoveOnGoal)then |
779 | Prt:destroy() | |
780 | end | |
781 | - | 261.bloxy_cola.GripPos = Vector3.new(0.03, 0, 0) |
781 | + | else |
782 | Prt:destroy() | |
783 | assert(start,"You need a start position!") | |
784 | - | 262.bloxy_cola.Parent = model |
784 | + | assert(endP,"You need a start position!") |
785 | end | |
786 | end | |
787 | - | 263.handle.Size = Vector3.new(1, 1.2, 1) |
787 | + | end)() |
788 | return Prt,Msh,Snd | |
789 | end | |
790 | - | 264.handle.Orientation = Vector3.new(-0.02, 180, -0.02) |
790 | + | |
791 | ||
792 | ||
793 | - | 265.handle.BottomSurface = Enum.SurfaceType.Smooth |
793 | + | function SoulSteal(whom,human) |
794 | local torso = (whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart' or whom:FindFirstChild'Torso') | |
795 | local succ, health, alive = pcall(function() return whom:FindFirstChildOfClass'Humanoid'.Health, whom:FindFirstChildOfClass'Humanoid'.Health > 0 end) | |
796 | - | 266.handle.Color = Color3.new(0.803922, 0.803922, 0.803922) |
796 | + | if(torso and torso:IsA'BasePart' and alive == true)then |
797 | whom:FindFirstChildOfClass'Humanoid'.Health = 0 | |
798 | whom:BreakJoints() | |
799 | - | 267.handle.BrickColor = BrickColor.new("Mid gray") |
799 | + | local Model = IN("Model",Effects) |
800 | warn('Soul stolen from '..whom.Name) | |
801 | Model.Name = whom.Name.."'s Soul" | |
802 | - | 268.handle.TopSurface = Enum.SurfaceType.Smooth |
802 | + | local Soul = Part(Model,(human and BrickColor.new'Lime green' or BrickColor.new(C3.N(1,1,1))),'Glass',V3.N(1,1,1),torso.CFrame,true,false) |
803 | Soul.CanCollide=false | |
804 | Mesh(Soul,Enum.MeshType.Sphere) | |
805 | - | 269.handle.Name = "Handle" |
805 | + | Soul.Name = 'Head' |
806 | if(whom.Name == 'CKbackup')then | |
807 | Soul.Color = C3.N(1,1,1) | |
808 | - | 270.handle.Parent = bloxy_cola |
808 | + | local DripEmitter = NewInstance("ParticleEmitter",Soul,{EmissionDirection='Bottom',Color=CS(Soul.Color),LightEmission=.5,LightInfluence=0,Size=NumberSequence.new(0.3),Texture="rbxassetid://243132757",Transparency=NumberSequence.new(0,1),LockedToPart=false,Lifetime=NumberRange.new(1),Rate=150,Speed=NumberRange.new(5)}) |
809 | end | |
810 | local Hoom = NewInstance("Humanoid",Model,{MaxHealth=(health <= 10000 and health/2 or 10000),Health=(health <= 10000 and health/2 or 10000)}) | |
811 | - | 271.handle.CFrame = CFrame.new(-21.44, 4.93, -42.26) * CFrame.Angles(-3.141, 0, 3.141) |
811 | + | local AT0 = NewInstance("Attachment",Soul,{Position=V3.N(0,.5,0)}) |
812 | local AT1 = NewInstance("Attachment",Soul,{Position=V3.N(0,-.5,0)}) | |
813 | local Trail = NewInstance("Trail",Soul,{Attachment0=AT0,Attachment1=AT1,Transparency=NumberSequence.new(0),FaceCamera = true,Texture="rbxassetid://945758042",LightEmission=.3,Color=CS(Soul.Color),Lifetime=.5,MinLength=0}) | |
814 | - | 272.mesh.MeshType = Enum.MeshType.FileMesh |
814 | + | NewInstance("PointLight",Soul,{Color=Soul.Color,Range=10,Brightness=(human and 3 or .5)}) |
815 | ||
816 | local turdso = Soul:Clone() | |
817 | - | 273.mesh.Scale = Vector3.new(1.2, 1.2, 1.2) |
817 | + | turdso.Name = "Torso" |
818 | turdso.CanCollide = false | |
819 | turdso.Anchored = true | |
820 | - | 274.mesh.MeshId = "http://www.roblox.com/asset/?id=10470609" |
820 | + | turdso.CFrame = Soul.CFrame |
821 | turdso.Parent = Model | |
822 | turdso.Size = V3.N() | |
823 | - | 275.mesh.TextureId = "http://www.roblox.com/asset/?id=10470600" |
823 | + | turdso.Transparency=1 |
824 | local Distance = math.huge | |
825 | repeat | |
826 | - | 276.mesh.Parent = handle |
826 | + | Soul.CFrame = CF.N(Soul.Position,Torso.Position)*CF.N(0,0,-1) |
827 | turdso.CFrame = Soul.CFrame | |
828 | Distance = (Soul.CFrame.p-Torso.CFrame.p).magnitude | |
829 | - | 277.part_23.Anchored = true |
829 | + | swait() |
830 | until Hoom.Health <= 0 or not Soul.Parent or Distance <= 1.2 | |
831 | if(Soul.Parent and Hoom.Health > 0)then | |
832 | - | 278.part_23.Size = Vector3.new(19.16, 0.58, 5.08) |
832 | + | Model:destroy() |
833 | Effect{ | |
834 | Effect="ResizeAndFade", | |
835 | - | 279.part_23.Material = Enum.Material.SmoothPlastic |
835 | + | Mesh={Enum.MeshType.Sphere}, |
836 | Color = Soul.Color, | |
837 | CFrame=Torso.CFrame, | |
838 | - | 280.part_23.TopSurface = Enum.SurfaceType.Smooth |
838 | + | Size=V3.N(3,3,3), |
839 | Material=Enum.Material.Neon, | |
840 | Sound={SoundId=444667859,Pitch=1,Volume=2.5}, | |
841 | - | 281.part_23.BottomSurface = Enum.SurfaceType.Smooth |
841 | + | FXSettings={ |
842 | EndSize=V3.N(6,6,6), | |
843 | } | |
844 | - | 282.part_23.Parent = model |
844 | + | } |
845 | Souls = Souls + (human and 1 or .1) | |
846 | warn("Souls: "..Souls) | |
847 | - | 283.part_23.CFrame = CFrame.new(-21.4, 4.04, -42.9) |
847 | + | MaxHealth = MaxHealth + Hoom.Health |
848 | Hum.Health = Hum.Health + Hoom.Health | |
849 | for i = 1, 5 do | |
850 | - | 284.parttohandle_strong_joint.Part1 = handle |
850 | + | Effect{ |
851 | Effect="Fade", | |
852 | Color = Soul.Color, | |
853 | - | 285.parttohandle_strong_joint.C0 = CFrame.new(-9.58, 0.29, 2.54) * CFrame.Angles(-1.571, 0, 3.141) |
853 | + | MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p |
854 | } | |
855 | end | |
856 | - | 286.parttohandle_strong_joint.C1 = CFrame.new(9.54, -0.6, -1.9) * CFrame.Angles(-1.571, 0, 0) |
856 | + | else |
857 | ||
858 | warn("Soul destroyed!") | |
859 | - | 287.parttohandle_strong_joint.Part0 = part_23 |
859 | + | for i = 1, 5 do |
860 | Effect{ | |
861 | Effect="Fade", | |
862 | - | 288.parttohandle_strong_joint.Name = "Part-to-Handle Strong Joint" |
862 | + | Color = Soul.Color, |
863 | CFrame=Soul.CFrame, | |
864 | MoveDirection = (Soul.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p | |
865 | - | 289.parttohandle_strong_joint.Parent = part_23 |
865 | + | } |
866 | end | |
867 | Effect{ | |
868 | - | 290.parttopart_strong_joint_3.Part1 = part_24 |
868 | + | Effect="ResizeAndFade", |
869 | Mesh={Enum.MeshType.Sphere}, | |
870 | Sound={SoundId=444667859,Pitch=1,Volume=5}, | |
871 | - | 291.parttopart_strong_joint_3.C0 = CFrame.new(-9.58, 0.29, 2.54) * CFrame.Angles(-1.571, 0, -3.142) |
871 | + | Color = Soul.Color, |
872 | CFrame=Soul.CFrame, | |
873 | Size=V3.N(3,3,3), | |
874 | - | 292.parttopart_strong_joint_3.C1 = CFrame.new(-14.456, -0.48, 5.556) * CFrame.Angles(-1.571, 0, -2.957) |
874 | + | Material=Enum.Material.Neon, |
875 | FXSettings={ | |
876 | EndSize=V3.N(6,6,6), | |
877 | - | 293.parttopart_strong_joint_3.Part0 = part_23 |
877 | + | } |
878 | } | |
879 | Model:destroy() | |
880 | - | 294.parttopart_strong_joint_3.Name = "Part-to-Part Strong Joint" |
880 | + | end |
881 | end | |
882 | end | |
883 | - | 295.parttopart_strong_joint_3.Parent = part_23 |
883 | + | |
884 | --// Other Functions \\ -- | |
885 | ||
886 | - | 296.houseinteriorbed.Name = "houseInteriorBed" |
886 | + | function getRegion(point,range,ignore) |
887 | return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100) | |
888 | end | |
889 | - | 297.houseinteriorbed.Parent = model |
889 | + | |
890 | function clerp(startCF,endCF,alpha) | |
891 | return startCF:lerp(endCF, alpha) | |
892 | - | 298.part_25.Anchored = true |
892 | + | end |
893 | ||
894 | function GetTorso(char) | |
895 | - | 299.part_25.Size = Vector3.new(3, 0.8, 2) |
895 | + | return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart' |
896 | end | |
897 | ||
898 | - | 300.part_25.Orientation = Vector3.new(0, -90.01, 0) |
898 | + | function ShowDamage(Pos, Text, Time, Color) |
899 | coroutine.wrap(function() | |
900 | local Rate = (1 / Frame_Speed) | |
901 | - | 301.part_25.Color = Color3.new(0.94902, 0.952941, 0.952941) |
901 | + | local Pos = (Pos or Vector3.new(0, 0, 0)) |
902 | local Text = (Text or "") | |
903 | local Time = (Time or 2) | |
904 | - | 302.part_25.BottomSurface = Enum.SurfaceType.Smooth |
904 | + | local Color = (Color or Color3.new(1, 0, 1)) |
905 | local EffectPart = NewInstance("Part",Effects,{ | |
906 | Material=Enum.Material.SmoothPlastic, | |
907 | - | 303.part_25.TopSurface = Enum.SurfaceType.Smooth |
907 | + | Reflectance = 0, |
908 | Transparency = 1, | |
909 | BrickColor = BrickColor.new(Color), | |
910 | - | 304.part_25.BrickColor = BrickColor.new("White") |
910 | + | Name = "Effect", |
911 | Size = Vector3.new(0,0,0), | |
912 | Anchored = true, | |
913 | - | 305.part_25.Parent = houseinteriorbed |
913 | + | CFrame = CF.N(Pos) |
914 | }) | |
915 | local BillboardGui = NewInstance("BillboardGui",EffectPart,{ | |
916 | - | 306.part_25.CFrame = CFrame.new(57.49, 3.92, -34.23) * CFrame.Angles(0, -1.571, 0) |
916 | + | Size = UDim2.new(1.25, 0, 1.25, 0), |
917 | Adornee = EffectPart, | |
918 | }) | |
919 | - | 307.parttopart_strong_joint_4.Part1 = part_26 |
919 | + | local TextLabel = NewInstance("TextLabel",BillboardGui,{ |
920 | BackgroundTransparency = 1, | |
921 | Size = UDim2.new(1, 0, 1, 0), | |
922 | - | 308.parttopart_strong_joint_4.C0 = CFrame.new(1.5, -0.4, 1) * CFrame.Angles(1.571, 0, 0) |
922 | + | Text = Text, |
923 | Font = "Arcade", | |
924 | TextColor3 = Color, | |
925 | - | 309.parttopart_strong_joint_4.C1 = CFrame.new(-0.1, 0.5, 1) * CFrame.Angles(1.571, 0, 0) |
925 | + | TextStrokeColor3 = Color3.new(0,0,0), |
926 | TextStrokeTransparency=0, | |
927 | TextScaled = true, | |
928 | - | 310.parttopart_strong_joint_4.Part0 = part_25 |
928 | + | }) |
929 | S.Debris:AddItem(EffectPart, (Time)) | |
930 | EffectPart.Parent = workspace | |
931 | - | 311.parttopart_strong_joint_4.Name = "Part-to-Part Strong Joint" |
931 | + | delay(0, function() |
932 | Tween(EffectPart,{CFrame=CF.N(Pos)*CF.N(0,3,0)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out) | |
933 | local Frames = (Time / Rate) | |
934 | - | 312.parttopart_strong_joint_4.Parent = part_25 |
934 | + | for Frame = 1, Frames do |
935 | swait() | |
936 | local Percent = (Frame / Frames) | |
937 | - | 313.part_11.Anchored = true |
937 | + | TextLabel.TextTransparency = Percent |
938 | TextLabel.TextStrokeTransparency = Percent | |
939 | end | |
940 | - | 314.part_11.Size = Vector3.new(8, 4, 1) |
940 | + | if EffectPart and EffectPart.Parent then |
941 | EffectPart:Destroy() | |
942 | end | |
943 | - | 315.part_11.Orientation = Vector3.new(0, -90.01, 0) |
943 | + | end) end)() |
944 | end | |
945 | ||
946 | - | 316.part_11.Color = Color3.new(0.105882, 0.164706, 0.207843) |
946 | + | function Kill(whom) |
947 | if(whom.Name ~= 'SHYIME')then | |
948 | local isPlr = Plrs:GetPlayerFromCharacter(whom) ~= nil | |
949 | - | 317.part_11.BottomSurface = Enum.SurfaceType.Smooth |
949 | + | coroutine.wrap(SoulSteal)(whom,isPlr) |
950 | for _,v in next, whom:children() do | |
951 | if(v:IsA'BasePart')then | |
952 | - | 318.part_11.TopSurface = Enum.SurfaceType.Smooth |
952 | + | v.Parent = Effects |
953 | v:ClearAllChildren() | |
954 | v.Anchored = true | |
955 | - | 319.part_11.BrickColor = BrickColor.new("Black") |
955 | + | v.CanCollide = false |
956 | v.Transparency = 1 | |
957 | local dust = NewInstance("ParticleEmitter",v,{ | |
958 | - | 320.part_11.Parent = houseinteriorbed |
958 | + | Color = ColorSequence.new(C3.N(1,1,1)), |
959 | LightEmission=0, | |
960 | LightInfluence=1, | |
961 | - | 321.part_11.CFrame = CFrame.new(59.49, 3.12, -32.63) * CFrame.Angles(0, -1.571, 0) |
961 | + | Size=NumberSequence.new{NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0,0)}, |
962 | Texture="rbxassetid://284205403", | |
963 | Transparency=NumberSequence.new{NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}, | |
964 | - | 322.parttopart_strong_joint_5.Part1 = part_27 |
964 | + | Lifetime = NumberRange.new(1), |
965 | Rate=150, | |
966 | Acceleration = V3.N(0,10,0), | |
967 | - | 323.parttopart_strong_joint_5.C0 = CFrame.new(-4, -2, 0.5) |
967 | + | Speed = NumberRange.new(5), |
968 | Enabled = true | |
969 | }) | |
970 | - | 324.parttopart_strong_joint_5.C1 = CFrame.new(-4, -1.2, -7.5) |
970 | + | delay(1, function() |
971 | dust.Enabled = false | |
972 | S.Debris:AddItem(v,2) | |
973 | - | 325.parttopart_strong_joint_5.Part0 = part_11 |
973 | + | end) |
974 | end | |
975 | end | |
976 | - | 326.parttopart_strong_joint_5.Name = "Part-to-Part Strong Joint" |
976 | + | else |
977 | warn"nope. nawt happenin'" | |
978 | end | |
979 | - | 327.parttopart_strong_joint_5.Parent = part_11 |
979 | + | end |
980 | ||
981 | function DealDamage(who,minDam,maxDam,Knock,Type,critChance,critMult) | |
982 | - | 328.part_26.Anchored = true |
982 | + | if(who)then |
983 | local hum = who:FindFirstChildOfClass'Humanoid' | |
984 | local Damage = M.RNG(minDam,maxDam) | |
985 | - | 329.part_26.Size = Vector3.new(7, 1, 3) |
985 | + | local canHit = true |
986 | if(hum)then | |
987 | for _, p in pairs(Hit) do | |
988 | - | 330.part_26.Orientation = Vector3.new(0, -90.01, 0) |
988 | + | if p[1] == hum then |
989 | if(time() - p[2] < 0.4) then | |
990 | canHit = false | |
991 | - | 331.part_26.Color = Color3.new(0.94902, 0.952941, 0.952941) |
991 | + | else |
992 | Hit[_] = nil | |
993 | end | |
994 | - | 332.part_26.BottomSurface = Enum.SurfaceType.Smooth |
994 | + | end |
995 | end | |
996 | if(canHit)then | |
997 | - | 333.part_26.TopSurface = Enum.SurfaceType.Smooth |
997 | + | table.insert(Hit,{hum,time()}) |
998 | if(GetTorso(who))then | |
999 | Sound(GetTorso(who),406913243,1,10,false,true,true) | |
1000 | - | 334.part_26.BrickColor = BrickColor.new("White") |
1000 | + | end |
1001 | if(hum.Health >= math.huge)then | |
1002 | Kill(who) | |
1003 | - | 335.part_26.Parent = houseinteriorbed |
1003 | + | if(who:FindFirstChild'Head' and hum.Health > 0)then |
1004 | ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), "INSTANT", 3, DamageColor.Color) | |
1005 | end | |
1006 | - | 336.part_26.CFrame = CFrame.new(57.49, 3.02, -32.63) * CFrame.Angles(0, -1.571, 0) |
1006 | + | else |
1007 | local player = S.Players:GetPlayerFromCharacter(who) | |
1008 | if(Type == "Fire")then | |
1009 | - | 337.parttopart_strong_joint_6.Part1 = part_27 |
1009 | + | --idk.. |
1010 | else | |
1011 | local c = Instance.new("ObjectValue",hum) | |
1012 | - | 338.parttopart_strong_joint_6.C0 = CFrame.new(3.5, -0.5, 1.5) * CFrame.Angles(1.571, 0, 0) |
1012 | + | c.Name = "creator" |
1013 | c.Value = Plr | |
1014 | game:service'Debris':AddItem(c,0.35) | |
1015 | - | 339.parttopart_strong_joint_6.C1 = CFrame.new(3.5, 0.2, -4.5) * CFrame.Angles(1.571, 0, 0) |
1015 | + | local Crit = false |
1016 | if(M.RNG(1,100) <= (critChance or 0) and critMult > 1)then | |
1017 | Crit = true | |
1018 | - | 340.parttopart_strong_joint_6.Part0 = part_26 |
1018 | + | Damage = Damage*(critMult or 2) |
1019 | end | |
1020 | Damage = Damage*((Souls/5)+1) | |
1021 | - | 341.parttopart_strong_joint_6.Name = "Part-to-Part Strong Joint" |
1021 | + | if(who:FindFirstChild'Head' and hum.Health > 0)then |
1022 | ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), (Crit and "[CRIT] " or "").. math.floor(Damage), 3, (Crit and BrickColor.new'New Yeller'.Color or DamageColor.Color)) | |
1023 | end | |
1024 | - | 342.parttopart_strong_joint_6.Parent = part_26 |
1024 | + | |
1025 | if(hum.Health - Damage <= 0)then | |
1026 | Kill(who) | |
1027 | - | 343.parttopart_strong_joint_7.Part1 = part_11 |
1027 | + | else |
1028 | hum.Health = hum.Health - Damage | |
1029 | if(Type == 'Knockback' and GetTorso(who))then | |
1030 | - | 344.parttopart_strong_joint_7.C0 = CFrame.new(3.5, -0.5, -1.5) * CFrame.Angles(3.141, 0, 3.141) |
1030 | + | local angle = GetTorso(who).Position - Root.Position + Vector3.new(0, 0, 0).unit |
1031 | local body = NewInstance('BodyVelocity',GetTorso(who),{ | |
1032 | P = 500, | |
1033 | - | 345.parttopart_strong_joint_7.C1 = CFrame.new(3.5, -0.6, 0.5) * CFrame.Angles(3.141, 0, 3.141) |
1033 | + | maxForce = V3.N(math.huge,0,math.huge), |
1034 | velocity = Root.CFrame.lookVector * Knock + Root.Velocity / 1.05 | |
1035 | }) | |
1036 | - | 346.parttopart_strong_joint_7.Part0 = part_26 |
1036 | + | game:service'Debris':AddItem(body,.5) |
1037 | elseif(Type == "Electric")then | |
1038 | if(M.RNG(1,100) >= critChance)then | |
1039 | - | 347.parttopart_strong_joint_7.Name = "Part-to-Part Strong Joint" |
1039 | + | if(who:FindFirstChild'Head' and hum.Health > 0)then |
1040 | ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), "[PARALYZED]", 3, BrickColor.new"New Yeller".Color) | |
1041 | end | |
1042 | - | 348.parttopart_strong_joint_7.Parent = part_26 |
1042 | + | local asd = hum.WalkSpeed/2 |
1043 | hum.WalkSpeed = asd | |
1044 | local paralyzed = true | |
1045 | - | 349.part_28.Anchored = true |
1045 | + | coroutine.wrap(function() |
1046 | while paralyzed do | |
1047 | swait(25) | |
1048 | - | 350.part_28.Size = Vector3.new(3, 0.8, 2) |
1048 | + | if(M.RNG(1,25) == 1)then |
1049 | if(who:FindFirstChild'Head' and hum.Health > 0)then | |
1050 | ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), "[STATIC]", 3, BrickColor.new"New Yeller".Color) | |
1051 | - | 351.part_28.Orientation = Vector3.new(0, -90.01, 0) |
1051 | + | end |
1052 | hum.PlatformStand = true | |
1053 | end | |
1054 | - | 352.part_28.Color = Color3.new(0.94902, 0.952941, 0.952941) |
1054 | + | end |
1055 | end)() | |
1056 | delay(4, function() | |
1057 | - | 353.part_28.BottomSurface = Enum.SurfaceType.Smooth |
1057 | + | paralyzed = false |
1058 | hum.WalkSpeed = hum.WalkSpeed + asd | |
1059 | end) | |
1060 | - | 354.part_28.TopSurface = Enum.SurfaceType.Smooth |
1060 | + | end |
1061 | ||
1062 | elseif(Type == 'Knockdown' and GetTorso(who))then | |
1063 | - | 355.part_28.BrickColor = BrickColor.new("White") |
1063 | + | local rek = GetTorso(who) |
1064 | hum.PlatformStand = true | |
1065 | delay(1,function() | |
1066 | - | 356.part_28.Parent = houseinteriorbed |
1066 | + | hum.PlatformStand = false |
1067 | end) | |
1068 | local angle = (GetTorso(who).Position - (Root.Position + Vector3.new(0, 0, 0))).unit | |
1069 | - | 357.part_28.CFrame = CFrame.new(57.49, 3.92, -31.03) * CFrame.Angles(0, -1.571, 0) |
1069 | + | local bodvol = NewInstance("BodyVelocity",rek,{ |
1070 | velocity = angle * Knock, | |
1071 | P = 5000, | |
1072 | - | 358.parttopart_strong_joint_8.Part1 = part_26 |
1072 | + | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), |
1073 | }) | |
1074 | local rl = NewInstance("BodyAngularVelocity",rek,{ | |
1075 | - | 359.parttopart_strong_joint_8.C0 = CFrame.new(1.5, -0.4, 1) * CFrame.Angles(1.571, 0, 0) |
1075 | + | P = 3000, |
1076 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
1077 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
1078 | - | 360.parttopart_strong_joint_8.C1 = CFrame.new(3.1, 0.5, 1) * CFrame.Angles(1.571, 0, 0) |
1078 | + | }) |
1079 | game:GetService("Debris"):AddItem(bodvol, .5) | |
1080 | game:GetService("Debris"):AddItem(rl, .5) | |
1081 | - | 361.parttopart_strong_joint_8.Part0 = part_28 |
1081 | + | end |
1082 | end | |
1083 | end | |
1084 | - | 362.parttopart_strong_joint_8.Name = "Part-to-Part Strong Joint" |
1084 | + | end |
1085 | end | |
1086 | end | |
1087 | - | 363.parttopart_strong_joint_8.Parent = part_28 |
1087 | + | end |
1088 | end | |
1089 | ||
1090 | - | 364.part_27.Anchored = true |
1090 | + | |
1091 | function AOEDamage(where,range,minDam,maxDam,Knock,Type,critChance,critMult) | |
1092 | for _,v in next, getRegion(where,range,{Char}) do | |
1093 | - | 365.part_27.Size = Vector3.new(8, 0.4, 15) |
1093 | + | if(v.Name ~= 'SHYIME')then |
1094 | if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')then | |
1095 | DealDamage(v.Parent,minDam,maxDam,Knock,Type,critChance,critMult) | |
1096 | - | 366.part_27.Orientation = Vector3.new(0, -90.01, 0) |
1096 | + | end |
1097 | end | |
1098 | end | |
1099 | - | 367.part_27.Color = Color3.new(0.105882, 0.164706, 0.207843) |
1099 | + | end |
1100 | ||
1101 | function AOEKill(where,range) | |
1102 | - | 368.part_27.BottomSurface = Enum.SurfaceType.Smooth |
1102 | + | for _,v in next, getRegion(where,range,{Char,Effects}) do |
1103 | local succ,alive = pcall(function() return v.Parent:FindFirstChildOfClass'Humanoid'.Health > 0 end) | |
1104 | if(v.Name ~= 'SHYIME')then | |
1105 | - | 369.part_27.TopSurface = Enum.SurfaceType.Smooth |
1105 | + | if(v.Parent and alive == true)then |
1106 | coroutine.wrap(Kill)(v.Parent) | |
1107 | end | |
1108 | - | 370.part_27.BrickColor = BrickColor.new("Black") |
1108 | + | end |
1109 | end | |
1110 | end | |
1111 | - | 371.part_27.Parent = houseinteriorbed |
1111 | + | |
1112 | function AOEHeal(where,range,amount) | |
1113 | local healed = {} | |
1114 | - | 372.part_27.CFrame = CFrame.new(51.49, 2.32, -32.63) * CFrame.Angles(0, -1.571, 0) |
1114 | + | for _,v in next, getRegion(where,range,{Char}) do |
1115 | local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil) | |
1116 | if(hum and not healed[hum])then | |
1117 | - | 373.part_12.Anchored = true |
1117 | + | hum.Health = hum.Health + amount |
1118 | if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then | |
1119 | ShowDamage((v.Parent.Head.CFrame * CF.N(0, 0, (v.Parent.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), "+"..amount, 1.5, BrickColor.new'Lime green'.Color) | |
1120 | - | 374.part_12.Size = Vector3.new(7, 1, 14.5) |
1120 | + | end |
1121 | end | |
1122 | end | |
1123 | - | 375.part_12.Orientation = Vector3.new(0, -90.01, 0) |
1123 | + | end |
1124 | ||
1125 | ||
1126 | - | 376.part_12.Color = Color3.new(0.105882, 0.164706, 0.207843) |
1126 | + | --// Attack Functions \\-- |
1127 | ||
1128 | ||
1129 | - | 377.part_12.BottomSurface = Enum.SurfaceType.Smooth |
1129 | + | function Slash() |
1130 | Attack = true | |
1131 | NeutralAnims = false | |
1132 | - | 378.part_12.TopSurface = Enum.SurfaceType.Smooth |
1132 | + | local sound = Sound(Knife,615910787,1,5,false,true,false) |
1133 | for i = 0, 2, 0.1 do | |
1134 | swait() | |
1135 | - | 379.part_12.BrickColor = BrickColor.new("Black") |
1135 | + | local Alpha = .2 |
1136 | RJ.C0 = clerp(RJ.C0,CFrame.new(0.0343287587, 0.00629056804, 0.0572580174, 0.943793893, 0.00207689893, 0.330528289, 1.0000764e-06, 0.99998033, -0.00628630351, -0.330534875, 0.00593330665, 0.943775296),Alpha) | |
1137 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496478021, -0.990818381, 0.021652732, 0.999878168, 0, 0.0156089365, -9.80779296e-05, 0.99998033, 0.00628268253, -0.0156086385, -0.00628344761, 0.999858379),Alpha) | |
1138 | - | 380.part_12.Parent = houseinteriorbed |
1138 | + | RH.C0 = clerp(RH.C0,CFrame.new(0.498511612, -0.990985274, 0.0154910646, 0.999878168, 0, 0.0156089365, -9.80779296e-05, 0.99998033, 0.00628268253, -0.0156086385, -0.00628344761, 0.999858379),Alpha) |
1139 | LS.C0 = clerp(LS.C0,CFrame.new(-1.32692134, 0.474511296, -0.0055731535, 0.934981823, 0.354351997, 0.0156129003, -0.354479939, 0.93504262, 0.00628374517, -0.0123721063, -0.0114096552, 0.999858379),Alpha) | |
1140 | RS.C0 = clerp(RS.C0,CFrame.new(1.12629449, 0.369358033, -0.486052871, 0.490151912, 0.65154773, 0.57899636, 0.721657813, 0.0691910982, -0.688783586, -0.488836735, 0.755445719, -0.436280251),Alpha) | |
1141 | - | 381.part_12.CFrame = CFrame.new(51.74, 1.62, -32.63) * CFrame.Angles(0, -1.571, 0) |
1141 | + | NK.C0 = clerp(NK.C0,CFrame.new(-0.0118216109, 1.49854016, -0.0795068145, 0.943793833, 0.0190048125, -0.329988182, 0.00207654224, 0.997985244, 0.0634154305, 0.330528468, -0.0605363287, 0.94185257),Alpha) |
1142 | HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha) | |
1143 | end | |
1144 | - | 382.parttopart_strong_joint_9.Part1 = part_27 |
1144 | + | KTrail.Enabled = true |
1145 | sound:Play() | |
1146 | for i = 0, 2.5, 0.1 do | |
1147 | - | 383.parttopart_strong_joint_9.C0 = CFrame.new(-3.5, 0.5, 7.25) * CFrame.Angles(-1.571, 0, 3.141) |
1147 | + | swait() |
1148 | AOEDamage(Knife.CFrame.p,1,15,30,0,"Normal",0,1) | |
1149 | local Alpha = .25 | |
1150 | - | 384.parttopart_strong_joint_9.C1 = CFrame.new(-3.5, -0.2, 7) * CFrame.Angles(-1.571, 0, 3.141) |
1150 | + | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.0352100767, 0.00629066909, -0.0097481478, 0.817972422, -0.00361463916, -0.575246274, -1.74103582e-06, 0.99998033, -0.00628598873, 0.575257719, 0.00514276745, 0.817956269),Alpha) |
1151 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496478021, -0.990818381, 0.0216572341, 0.999878287, 0, 0.015610218, -9.80866607e-05, 0.99998033, 0.00628274865, -0.0156098902, -0.00628351374, 0.999858499),Alpha) | |
1152 | RH.C0 = clerp(RH.C0,CFrame.new(0.498511702, -0.990985274, 0.0154905058, 0.999878287, 0, 0.015610218, -9.80866607e-05, 0.99998033, 0.00628274865, -0.0156098902, -0.00628351374, 0.999858499),Alpha) | |
1153 | - | 385.parttopart_strong_joint_9.Part0 = part_12 |
1153 | + | LS.C0 = clerp(LS.C0,CFrame.new(-1.32694602, 0.474510223, -0.00555660389, 0.934981823, 0.354351729, 0.0156157613, -0.354479671, 0.935042739, 0.00628153514, -0.012375474, -0.0114085823, 0.999858379),Alpha) |
1154 | RS.C0 = clerp(RS.C0,CFrame.new(1.23906493, 0.406229913, 0.00231830776, 0.49015066, -0.849889755, 0.193494052, 0.721655607, 0.520183682, 0.456752002, -0.488841236, -0.0842411816, 0.868295968),Alpha) | |
1155 | NK.C0 = clerp(NK.C0,CFrame.new(0.0315471888, 1.49887729, -0.0257819965, 0.817972481, -0.0330747738, 0.574305832, -0.00361499586, 0.998030663, 0.0626262054, -0.575246155, -0.0533026271, 0.81624186),Alpha) | |
1156 | - | 386.parttopart_strong_joint_9.Name = "Part-to-Part Strong Joint" |
1156 | + | HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha) |
1157 | end | |
1158 | KTrail.Enabled = false | |
1159 | - | 387.parttopart_strong_joint_9.Parent = part_12 |
1159 | + | Attack = false |
1160 | NeutralAnims = true | |
1161 | end | |
1162 | - | 388.parttopart_strong_joint_10.Part1 = part_11 |
1162 | + | |
1163 | Mouse.Button1Down:connect(function() | |
1164 | if(Attack)then return end | |
1165 | - | 389.parttopart_strong_joint_10.C0 = CFrame.new(3.5, -0.5, -7.25) * CFrame.Angles(3.141, 0, 3.141) |
1165 | + | Slash() |
1166 | end) | |
1167 | ||
1168 | - | 390.parttopart_strong_joint_10.C1 = CFrame.new(3.5, -2, 0.5) * CFrame.Angles(3.141, 0, 3.141) |
1168 | + | Mouse.KeyDown:connect(function(k) |
1169 | if(Attack)then return end | |
1170 | if(k == 'z')then AOEKill(Root.CFrame.p,25) end -- TODO: Animation and effects | |
1171 | - | 391.parttopart_strong_joint_10.Part0 = part_12 |
1171 | + | if(k == 'q')then WalkSpeed = (WalkSpeed == 8 and 48 or 8) end |
1172 | end) | |
1173 | ||
1174 | - | 392.parttopart_strong_joint_10.Name = "Part-to-Part Strong Joint" |
1174 | + | |
1175 | function Refuse() | |
1176 | Attack = true | |
1177 | - | 393.parttopart_strong_joint_10.Parent = part_12 |
1177 | + | warn("B u t i t r e f u s e d.") |
1178 | local oMH = MaxHealth | |
1179 | MaxHealth = "inf" | |
1180 | - | 394.seat.Anchored = true |
1180 | + | Hum.MaxHealth = "inf" |
1181 | Hum.Health = "inf" | |
1182 | Char.Parent = nil | |
1183 | - | 395.seat.Size = Vector3.new(7, 1, 11.5) |
1183 | + | Hum:destroy() |
1184 | if(not _G.RefusedAnimation)then | |
1185 | _G.RefusedAnimation = true | |
1186 | - | 396.seat.Orientation = Vector3.new(0, 90.01, 0) |
1186 | + | coroutine.resume(coroutine.create(function(Part,Weld) |
1187 | while Part.Parent~=nil do | |
1188 | wait(2) | |
1189 | - | 397.seat.BrickColor = BrickColor.new("Bright red") |
1189 | + | for i=0,1,0.2 do |
1190 | wait() | |
1191 | m.Scale = Vector3.new(.9,.9-.8*i,.5) | |
1192 | - | 398.seat.BottomSurface = Enum.SurfaceType.Smooth |
1192 | + | end |
1193 | for i=0,1,0.2 do | |
1194 | wait() | |
1195 | - | 399.seat.TopSurface = Enum.SurfaceType.Smooth |
1195 | + | m.Scale = Vector3.new(.9,.9+.8*i,.5) |
1196 | end | |
1197 | end | |
1198 | - | 400.seat.Color = Color3.new(0.768628, 0.156863, 0.109804) |
1198 | + | end),leye,weld) |
1199 | ||
1200 | ||
1201 | - | 401.seat.Parent = houseinteriorbed |
1201 | + | wait(1) |
1202 | char.Head.face:Destroy() | |
1203 | ||
1204 | - | 402.seat.CFrame = CFrame.new(50.24, 3.02, -32.63) * CFrame.Angles(0, 1.571, 0) |
1204 | + | local leye = Instance.new("Part", char) |
1205 | leye.CanCollide = false | |
1206 | leye.BrickColor = BrickColor.new(righteyebrickcolor) | |
1207 | - | 403.seattopart_strong_joint.Part1 = part_27 |
1207 | + | leye.Material = "Neon" |
1208 | leye.Size = Vector3.new(.15,.15,.15) | |
1209 | weld(leye, char.Head, CFrame.new(-0.15,-0.2,0.55), CFrame.new(1,0,0)) | |
1210 | - | 404.seattopart_strong_joint.C0 = CFrame.new(3.5, -0.5, 5.75) * CFrame.Angles(1.571, 0, 0) |
1210 | + | local m = Instance.new("SpecialMesh", leye) |
1211 | m.MeshType = "Sphere" | |
1212 | m.Scale = Vector3.new(0.9,0.9,0.9) | |
1213 | - | 405.seattopart_strong_joint.C1 = CFrame.new(-3.499, 0.2, -4.5) * CFrame.Angles(1.571, 0, -3.141) |
1213 | + | leye.Locked = true |
1214 | leye.Name = "le" | |
1215 | ||
1216 | - | 406.seattopart_strong_joint.Part0 = seat |
1216 | + | |
1217 | ||
1218 | ||
1219 | - | 407.seattopart_strong_joint.Name = "Seat-to-Part Strong Joint" |
1219 | + | |
1220 | ||
1221 | ||
1222 | - | 408.seattopart_strong_joint.Parent = seat |
1222 | + | |
1223 | ||
1224 | ||
1225 | - | 409.seattopart_strong_joint_2.Part1 = part_26 |
1225 | + | |
1226 | ||
1227 | ||
1228 | - | 410.seattopart_strong_joint_2.C0 = CFrame.new(-3.5, -0.5, 5.75) |
1228 | + | |
1229 | ||
1230 | ||
1231 | - | 411.seattopart_strong_joint_2.C1 = CFrame.new(3.501, -0.5, 1.5) * CFrame.Angles(3.141, 0, 3.141) |
1231 | + | |
1232 | ||
1233 | ||
1234 | - | 412.seattopart_strong_joint_2.Part0 = seat |
1234 | + | |
1235 | ||
1236 | ||
1237 | - | 413.seattopart_strong_joint_2.Name = "Seat-to-Part Strong Joint" |
1237 | + | |
1238 | ||
1239 | ||
1240 | - | 414.seattopart_strong_joint_2.Parent = seat |
1240 | + | |
1241 | ||
1242 | ||
1243 | - | 415.part_29.Anchored = true |
1243 | + | |
1244 | local Soul; | |
1245 | function Soul(where,decalId) | |
1246 | - | 416.part_29.Shape = Enum.PartType.Cylinder |
1246 | + | local destroy = false |
1247 | local soul = NewInstance("Part",workspace) | |
1248 | soul.Name = "Soul" | |
1249 | - | 417.part_29.Size = Vector3.new(0.05, 0.48, 0.48) |
1249 | + | soul.Transparency=1 |
1250 | soul.Size = V3.N(2,2,.05) | |
1251 | soul.Anchored=true | |
1252 | - | 418.part_29.Orientation = Vector3.new(0, 90.01, 0) |
1252 | + | soul.CanCollide=false |
1253 | soul.CFrame = where | |
1254 | local heartF = NewInstance("Decal",soul,{Face=Enum.NormalId.Front,Texture="rbxassetid://"..decalId}) | |
1255 | - | 419.part_29.Material = Enum.Material.SmoothPlastic |
1255 | + | local heartB = NewInstance("Decal",soul,{Face=Enum.NormalId.Back,Texture="rbxassetid://"..decalId}) |
1256 | return soul,heartF,heartB | |
1257 | end | |
1258 | - | 420.part_29.BottomSurface = Enum.SurfaceType.Smooth |
1258 | + | local owo = Root.CFrame |
1259 | local s,f,b = Soul(owo,1569347904) | |
1260 | swait(60) | |
1261 | - | 421.part_29.BrickColor = BrickColor.new("Really black") |
1261 | + | local snd = Sound(s,862552636,1,5,false,false,false) |
1262 | snd:Play() | |
1263 | f.Texture = "rbxassetid://1569348344" | |
1264 | - | 422.part_29.TopSurface = Enum.SurfaceType.Smooth |
1264 | + | b.Texture = "rbxassetid://1569348344" |
1265 | swait(15) | |
1266 | snd:Stop() | |
1267 | - | 423.part_29.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) |
1267 | + | swait(60) |
1268 | print'lol' | |
1269 | for i = 0, 6, .1 do | |
1270 | - | 424.part_29.Parent = model |
1270 | + | swait() |
1271 | s.CFrame = owo * CF.N(M.RNG(-50,50)/100,M.RNG(-50,50)/100,M.RNG(-50,50)/100) | |
1272 | end | |
1273 | - | 425.part_29.CFrame = CFrame.new(26.79, 3.2, -50.405) * CFrame.Angles(0, 1.571, 0) |
1273 | + | local snd = Sound(s,862552636,1,5,false,false,false) |
1274 | snd:Play() | |
1275 | s.CFrame = owo | |
1276 | - | 426.door.Anchored = true |
1276 | + | f.Texture = "rbxassetid://1569347904" |
1277 | b.Texture = "rbxassetid://1569347904" | |
1278 | swait(15) | |
1279 | - | 427.door.Size = Vector3.new(0.35, 12.05, 13.61) |
1279 | + | snd:Stop() |
1280 | swait(60) | |
1281 | ||
1282 | - | 428.door.BottomSurface = Enum.SurfaceType.Smooth |
1282 | + | s:destroy() |
1283 | end | |
1284 | ||
1285 | - | 429.door.Material = Enum.Material.SmoothPlastic |
1285 | + | RJ.Parent = Char |
1286 | LS.Parent = Char | |
1287 | RS.Parent = Char | |
1288 | - | 430.door.TopSurface = Enum.SurfaceType.Smooth |
1288 | + | LH.Parent = Char |
1289 | RH.Parent = Char | |
1290 | NK.Parent = Char | |
1291 | - | 431.door.Name = "Door" |
1291 | + | |
1292 | LArm.Parent = Char | |
1293 | RArm.Parent = Char | |
1294 | - | 432.door.Parent = model |
1294 | + | LLeg.Parent = Char |
1295 | LArm.Parent = Char | |
1296 | Root.Parent = Char | |
1297 | - | 433.door.CFrame = CFrame.new(-30.665, 6.695, -28.185) |
1297 | + | Torso.Parent = Char |
1298 | Head.Parent = Char | |
1299 | ||
1300 | - | 434.part_30.Anchored = true |
1300 | + | Knife.Parent = Char |
1301 | Hair.Parent = Char | |
1302 | ||
1303 | - | 435.part_30.Size = Vector3.new(0.4, 2.36, 7.76) |
1303 | + | HW.Parent = Char |
1304 | HW2.Parent = Char | |
1305 | ||
1306 | - | 436.part_30.Material = Enum.Material.SmoothPlastic |
1306 | + | |
1307 | LEye:destroy() | |
1308 | ||
1309 | - | 437.part_30.TopSurface = Enum.SurfaceType.Smooth |
1309 | + | for _,v in next, Char:children() do |
1310 | if(v.Name == 'ShadowFace')then v:destroy() end | |
1311 | end | |
1312 | - | 438.part_30.BottomSurface = Enum.SurfaceType.Smooth |
1312 | + | LEye = Part(Char,C3.N(0,1,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false) |
1313 | LEyeM = Mesh(LEye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N()) | |
1314 | LEyeW = NewInstance("Weld",LEye,{Part0=Head,Part1=LEye,C0=CF.N(-.2,.2,-.49)}) | |
1315 | - | 439.part_30.Parent = model |
1315 | + | for i = 1, 35 do |
1316 | local FACE = Part(Char,C3.N(0,0,0),Enum.Material.Neon,V3.N(1.01,.5,1.01),CF.N(),false,false) | |
1317 | FACE.Transparency = 0+(i-1)/35.2 | |
1318 | - | 440.part_30.CFrame = CFrame.new(23.04, 11.56, -54.11) |
1318 | + | FACE.Name = 'ShadowFace' |
1319 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE | |
1320 | NewInstance("Weld",Head,{Part0=Head,Part1=FACE,C0=CF.N(0,.35-(i-1)/75,0)}) | |
1321 | - | 441.part_31.Anchored = true |
1321 | + | --CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0)) |
1322 | end | |
1323 | Hum = NewInstance("Humanoid",Char,{DisplayDistanceType='None'}) | |
1324 | - | 442.part_31.Shape = Enum.PartType.Cylinder |
1324 | + | ConnectHum() |
1325 | MaxHealth = oMH | |
1326 | Hum.MaxHealth = MaxHealth | |
1327 | - | 443.part_31.Size = Vector3.new(0.05, 0.48, 0.48) |
1327 | + | Hum.Health = MaxHealth |
1328 | swait(5) | |
1329 | Char.Parent = workspace | |
1330 | - | 444.part_31.Orientation = Vector3.new(0, 90.01, 0) |
1330 | + | |
1331 | Attack = false | |
1332 | end | |
1333 | - | 445.part_31.Material = Enum.Material.SmoothPlastic |
1333 | + | |
1334 | function ConnectHum() | |
1335 | Hum.Died:connect(Refuse) | |
1336 | - | 446.part_31.BottomSurface = Enum.SurfaceType.Smooth |
1336 | + | end |
1337 | ConnectHum() | |
1338 | ||
1339 | - | 447.part_31.BrickColor = BrickColor.new("Really black") |
1339 | + | |
1340 | --// Wrap it all up \\-- | |
1341 | while true do | |
1342 | - | 448.part_31.TopSurface = Enum.SurfaceType.Smooth |
1342 | + | swait() |
1343 | Sine = Sine + Change | |
1344 | if(not Music)then | |
1345 | - | 449.part_31.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) |
1345 | + | Music = Sound(Torso,MusicID,1,3,true,false,true) |
1346 | Music.Name = 'Music' | |
1347 | end | |
1348 | - | 450.part_31.Parent = model |
1348 | + | Music.Pitch = 1 |
1349 | Music.Volume = 5 | |
1350 | Music.SoundId = "rbxassetid://"..MusicID | |
1351 | - | 451.part_31.CFrame = CFrame.new(21.99, 10.65, -50.405) * CFrame.Angles(0, 1.571, 0) |
1351 | + | Music.Parent = Torso |
1352 | Music:Resume() | |
1353 | local hitfloor,posfloor = workspace:FindPartOnRay(Ray.new(Root.CFrame.p,((CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector).unit * 4), Char) | |
1354 | - | 452.part_32.Anchored = true |
1354 | + | local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1) |
1355 | local State = (Hum.PlatformStand and 'Paralyzed' or Hum.Sit and 'Sit' or not hitfloor and Root.Velocity.y < -1 and "Fall" or not hitfloor and Root.Velocity.y > 1 and "Jump" or hitfloor and Walking and "Walk" or hitfloor and "Idle") | |
1356 | if(not Effects or not Effects.Parent)then | |
1357 | - | 453.part_32.Shape = Enum.PartType.Cylinder |
1357 | + | Effects = IN("Model",Char) |
1358 | Effects.Name = "Effects" | |
1359 | end | |
1360 | - | 454.part_32.Size = Vector3.new(0.05, 0.48, 0.48) |
1360 | + | Hum.WalkSpeed = WalkSpeed |
1361 | if(State == 'Walk')then | |
1362 | if(Hum.WalkSpeed >= 24)then | |
1363 | - | 455.part_32.Orientation = Vector3.new(0, 90.01, 0) |
1363 | + | local wsVal = 22 / (Hum.WalkSpeed/16) |
1364 | local Alpha = math.min(.1 * (Hum.WalkSpeed/16),1) | |
1365 | Change = 2 | |
1366 | - | 456.part_32.Material = Enum.Material.SmoothPlastic |
1366 | + | RH.C1 = RH.C1:lerp(CF.N(0,1,0)*CF.N(0,0-.2*M.C(Sine/wsVal),0+.4*M.C(Sine/wsVal))*CF.A(M.R(25+45*M.C(Sine/wsVal))+-M.S(Sine/wsVal),0,0),Alpha) |
1367 | LH.C1 = LH.C1:lerp(CF.N(0,1,0)*CF.N(0,0+.2*M.C(Sine/wsVal),0-.4*M.C(Sine/wsVal))*CF.A(M.R(25-45*M.C(Sine/wsVal))+M.S(Sine/wsVal),0,0),Alpha) | |
1368 | else | |
1369 | - | 457.part_32.BottomSurface = Enum.SurfaceType.Smooth |
1369 | + | Change = .9 |
1370 | local wsVal = 8 / (Hum.WalkSpeed/8) | |
1371 | local Alpha = math.min(.2 * (Hum.WalkSpeed/8),1) | |
1372 | - | 458.part_32.BrickColor = BrickColor.new("Really black") |
1372 | + | LH.C1 = LH.C1:lerp(CF.N(0,1-.2*M.C(Sine/wsVal)/2,.4*M.C(Sine/wsVal)/2)*CF.A(M.R(15-2*M.C(Sine/wsVal))-M.S(Sine/wsVal)/2.5,0,0)*CF.A(M.R(0-3*M.C(Sine/wsVal)),0,0),Alpha) |
1373 | RH.C1 = RH.C1:lerp(CF.N(0,1+.2*M.C(Sine/wsVal)/2,-.4*M.C(Sine/wsVal)/2)*CF.A(M.R(15+2*M.C(Sine/wsVal))+M.S(Sine/wsVal)/2.5,0,0)*CF.A(M.R(0+3*M.C(Sine/wsVal)),0,0),Alpha) | |
1374 | end | |
1375 | - | 459.part_32.TopSurface = Enum.SurfaceType.Smooth |
1375 | + | else |
1376 | RH.C1 = RH.C1:lerp(CF.N(0,1,0),.1) | |
1377 | LH.C1 = LH.C1:lerp(CF.N(0,1,0),.1) | |
1378 | - | 460.part_32.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) |
1378 | + | end |
1379 | for _,v in next, Char:children() do | |
1380 | if(v:IsA'Accessory')then | |
1381 | - | 461.part_32.Parent = model |
1381 | + | v:destroy() |
1382 | elseif(v:IsA'Shirt')then | |
1383 | v.ShirtTemplate = "rbxassetid://338740550" | |
1384 | - | 462.part_32.CFrame = CFrame.new(18.12, 3.2, -50.405) * CFrame.Angles(0, 1.571, 0) |
1384 | + | elseif(v:IsA'Pants')then |
1385 | v.PantsTemplate = "rbxassetid://338750779" --1049387572 | |
1386 | elseif(v:IsA'CharacterMesh')then | |
1387 | - | 463.part_33.Anchored = true |
1387 | + | v:destroy() |
1388 | elseif(v:FindFirstChildOfClass'ShirtGraphic')then | |
1389 | v:FindFirstChildOfClass'ShirtGraphic':destroy() | |
1390 | - | 464.part_33.Size = Vector3.new(8.51, 2.94, 7.2) |
1390 | + | end |
1391 | end | |
1392 | local face = Head:FindFirstChild'face' | |
1393 | - | 465.part_33.Material = Enum.Material.SmoothPlastic |
1393 | + | if(not face)then |
1394 | NewInstance("Decal",Head,{Name='face',Face=Enum.NormalId.Front,Texture="rbxassetid://1102142750"}) | |
1395 | else | |
1396 | - | 466.part_33.TopSurface = Enum.SurfaceType.Smooth |
1396 | + | face.Texture = "rbxassetid://1102142750" |
1397 | end | |
1398 | RArm.BrickColor = BrickColor.new'Pastel brown' | |
1399 | - | 467.part_33.BottomSurface = Enum.SurfaceType.Smooth |
1399 | + | LArm.BrickColor = BrickColor.new'Pastel brown' |
1400 | RLeg.BrickColor = BrickColor.new'Pastel brown' | |
1401 | LLeg.BrickColor = BrickColor.new'Pastel brown' | |
1402 | - | 468.part_33.Parent = model |
1402 | + | Torso.BrickColor = BrickColor.new'Pastel brown' |
1403 | Head.BrickColor = BrickColor.new'Pastel brown' | |
1404 | Hum.Name = 'Chara' | |
1405 | - | 469.part_33.CFrame = CFrame.new(8.795, 2.5, -54.39) |
1405 | + | if(Hum.MaxHealth ~= MaxHealth)then |
1406 | Hum.MaxHealth = MaxHealth | |
1407 | end | |
1408 | - | 470.part_34.Anchored = true |
1408 | + | Hum.DisplayDistanceType='None' |
1409 | if(NeutralAnims)then | |
1410 | if(State == 'Idle')then | |
1411 | - | 471.part_34.Size = Vector3.new(6.52, 2.94, 7.3) |
1411 | + | Change = 1 |
1412 | local Alpha = .1 | |
1413 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.0999571308, 0+.05*M.C(Sine/16), -0.237876296, 0.857335567, -0.00323621999, -0.514731407, 0, 0.99998033, -0.00628707698, 0.51474154, 0.00539013464, 0.85731858),Alpha) | |
1414 | - | 472.part_34.Material = Enum.Material.SmoothPlastic |
1414 | + | LH.C0 = clerp(LH.C0,CFrame.new(-0.536091685, -0.991042495-.05*M.C(Sine/16), -0.0134909991, 0.849195242, 0, 0.528063774, -0.00331997755, 0.99998033, 0.00533895614, -0.528053343, -0.00628707698, 0.849178433),Alpha) |
1415 | RH.C0 = clerp(RH.C0,CFrame.new(0.529067397, -0.991597891-.05*M.C(Sine/16), -0.0818087086, 0.849195242, 0, 0.528063774, -0.00331997755, 0.99998033, 0.00533895614, -0.528053343, -0.00628707698, 0.849178433),Alpha) | |
1416 | LS.C0 = clerp(LS.C0,CFrame.new(-1.32175505, 0.156236127+.15*M.C(Sine/16), 0.233877867, 0.877554953, -0.456876248, 0.145469457, 0.259513229, 0.707695842, 0.657129884, -0.403175086, -0.538916171, 0.739607573),Alpha) | |
1417 | - | 473.part_34.BrickColor = BrickColor.new("Really black") |
1417 | + | RS.C0 = clerp(RS.C0,CFrame.new(1.2516855, 0.604915917+.15*M.C(Sine/16), -0.0189059302, 0.915104508, -0.287113011, -0.283108115, 0.301054537, 0.953587949, 0.00603589695, 0.268235415, -0.0907544345, 0.959069014),Alpha) |
1418 | NK.C0 = clerp(NK.C0,CFrame.new(1.79447234e-05, 1.49895597, -0.0143749639, 0.769539058, -0.360377938, 0.527197778, 0.387706369, 0.919646919, 0.0627188534, -0.507438183, 0.156133309, 0.847424924),Alpha) | |
1419 | HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha) | |
1420 | - | 474.part_34.BottomSurface = Enum.SurfaceType.Smooth |
1420 | + | -- idle |
1421 | elseif(State == 'Walk')then | |
1422 | if(Hum.WalkSpeed >= 24)then | |
1423 | - | 475.part_34.TopSurface = Enum.SurfaceType.Smooth |
1423 | + | local wsVal = 22 / (Hum.WalkSpeed/16) |
1424 | local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1) | |
1425 | RJ.C0 = RJ.C0:lerp(CF.N(0,0-.15*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-15),M.R(0-15*M.S(Sine/wsVal)/2),0),Alpha) | |
1426 | - | 476.part_34.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) |
1426 | + | LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,0-.3*M.S(Sine/wsVal))*CF.A(M.R(0+45*M.S(Sine/wsVal)),0,M.R(-5+15*M.S(Sine/wsVal))),Alpha) |
1427 | RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,0+.3*M.S(Sine/wsVal))*CF.A(M.R(0-45*M.S(Sine/wsVal)),0,M.R(5+15*M.S(Sine/wsVal))),Alpha) | |
1428 | NK.C0 = NK.C0:lerp(NKC0*CF.A(M.R(15),0,0),Alpha) | |
1429 | - | 477.part_34.Parent = model |
1429 | + | LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.15*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(15),0,0),Alpha) |
1430 | RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.15*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(15),0,0),Alpha) | |
1431 | HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha) | |
1432 | - | 478.part_34.CFrame = CFrame.new(9.06, 2.5, -54.34) |
1432 | + | else |
1433 | local wsVal = 8 / (Hum.WalkSpeed/8) | |
1434 | local Alpha = math.min(.2 * (Hum.WalkSpeed/8),1) | |
1435 | - | 479.part_35.Anchored = true |
1435 | + | RJ.C0 = RJ.C0:lerp(CF.N(0,0-.05*M.C(Sine/(wsVal/2)),0)*CF.A(0,M.R(0-5*M.S(Sine/wsVal)/2),0),Alpha) |
1436 | LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,0+.3*M.S(Sine/wsVal))*CF.A(M.R(0-25*M.S(Sine/wsVal)),0,M.R(5-5*M.S(Sine/wsVal))),Alpha) | |
1437 | RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,0-.3*M.S(Sine/wsVal))*CF.A(M.R(0+25*M.S(Sine/wsVal)),0,M.R(-5-5*M.S(Sine/wsVal))),Alpha) | |
1438 | - | 480.part_35.Shape = Enum.PartType.Cylinder |
1438 | + | NK.C0 = NK.C0:lerp(NKC0,Alpha) |
1439 | LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.05*M.C(Sine/(wsVal/2)),0),Alpha) | |
1440 | RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.05*M.C(Sine/(wsVal/2)),0),Alpha) | |
1441 | - | 481.part_35.Size = Vector3.new(0.05, 1, 1) |
1441 | + | HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha) |
1442 | end | |
1443 | elseif(State == 'Jump' or State == 'Fall')then | |
1444 | - | 482.part_35.Orientation = Vector3.new(-0.02, 180, -89.99) |
1444 | + | if(Walking)then |
1445 | local Alpha = .2 | |
1446 | RJ.C0 = clerp(RJ.C0,RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(65)),M.R(65)),0,0),Alpha) | |
1447 | - | 483.part_35.Material = Enum.Material.SmoothPlastic |
1447 | + | LH.C0 = clerp(LH.C0,CFrame.new(-0.497912645, -1.0987643, -0.0683324337, 0.999878228, 0.00860835519, 0.0130246133, -0.00010142161, 0.837816596, -0.545952022, -0.015611981, 0.545884132, 0.837715328),Alpha) |
1448 | RH.C0 = clerp(RH.C0,CFrame.new(0.499978393, -1.16382337, 0.109293163, 0.999878228, -0.0120433727, 0.00993486121, -0.00010142161, 0.631323814, 0.775519371, -0.015611981, -0.775425911, 0.631245613),Alpha) | |
1449 | LS.C0 = clerp(LS.C0,CFrame.new(-1.55211556, 0.576563478, -0.00269976072, 0.976067662, 0.216906726, 0.0156116467, -0.217024669, 0.976145923, 0.00628317893, -0.0138763804, -0.00952091813, 0.999858499),Alpha) | |
1450 | - | 484.part_35.BottomSurface = Enum.SurfaceType.Smooth |
1450 | + | RS.C0 = clerp(RS.C0,CFrame.new(1.50182188, 0.636661649, 0.00632623257, 0.977592707, -0.209926367, 0.0156121543, 0.209851891, 0.977713108, 0.00628198683, -0.016582964, -0.00286500831, 0.999858439),Alpha) |
1451 | NK.C0 = clerp(NK.C0,CFrame.new(1.14440072e-05, 1.49924362, -0.0143961608, 1.00000024, -5.82076609e-11, 0, 1.23691279e-10, 0.997964919, 0.0637660474, 0, -0.0637660623, 0.997965038),Alpha) | |
1452 | HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha) | |
1453 | - | 485.part_35.BrickColor = BrickColor.new("Really black") |
1453 | + | else |
1454 | local Alpha = .2 | |
1455 | RJ.C0 = clerp(RJ.C0,RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(65)),M.R(65)),0,0),Alpha) | |
1456 | - | 486.part_35.TopSurface = Enum.SurfaceType.Smooth |
1456 | + | LH.C0 = clerp(LH.C0,CFrame.new(-0.504374504, -0.291219354, -0.487436086, 0.999878228, -0.00438931212, 0.0149825988, -0.00010142161, 0.957819223, 0.287371844, -0.015611981, -0.287338346, 0.957701981),Alpha) |
1457 | RH.C0 = clerp(RH.C0,CFrame.new(0.453094482, -0.871358454, 0.0898642987, 0.985589385, -0.168456957, 0.0153662469, 0.162863791, 0.969548643, 0.182895929, -0.0457084104, -0.177757636, 0.983012319),Alpha) | |
1458 | LS.C0 = clerp(LS.C0,CFrame.new(-1.55211556, 0.576563478, -0.00269976072, 0.976067662, 0.216906726, 0.0156116467, -0.217024669, 0.976145923, 0.00628317893, -0.0138763804, -0.00952091813, 0.999858499),Alpha) | |
1459 | - | 487.part_35.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) |
1459 | + | RS.C0 = clerp(RS.C0,CFrame.new(1.50182188, 0.636661649, 0.00632623257, 0.977592707, -0.209926367, 0.0156121543, 0.209851891, 0.977713108, 0.00628198683, -0.016582964, -0.00286500831, 0.999858439),Alpha) |
1460 | NK.C0 = clerp(NK.C0,CFrame.new(1.14440072e-05, 1.49924362, -0.0143961608, 1.00000024, -5.82076609e-11, 0, 1.23691279e-10, 0.997964919, 0.0637660474, 0, -0.0637660623, 0.997965038),Alpha) | |
1461 | HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha) | |
1462 | - | 488.part_35.Parent = model |
1462 | + | end |
1463 | elseif(State == 'Paralyzed')then | |
1464 | -- paralyzed | |
1465 | - | 489.part_35.CFrame = CFrame.new(7.24, 4.355, -54.21) * CFrame.Angles(-3.141, 0, 1.571) |
1465 | + | elseif(State == 'Sit')then |
1466 | -- sit | |
1467 | end | |
1468 | - | 490.part_36.Anchored = true |
1468 | + | end |
1469 | end |