SHOW:
|
|
- or go back to the newest paste.
1 | --//====================================================\\-- | |
2 | --|| CREATED BY SHACKLUSTER | |
3 | --\\====================================================//-- | |
4 | ||
5 | ||
6 | ||
7 | wait(0.2) | |
8 | ||
9 | ||
10 | ||
11 | - | Player = game:GetService("Players").bennieboy07 -- put your roblox username here |
11 | + | Player = game:GetService("Players").Robert666121 -- put your roblox username here |
12 | PlayerGui = Player.PlayerGui | |
13 | Cam = workspace.CurrentCamera | |
14 | Backpack = Player.Backpack | |
15 | Character = Player.Character | |
16 | Humanoid = Character.Humanoid | |
17 | Mouse = Player:GetMouse() | |
18 | RootPart = Character["HumanoidRootPart"] | |
19 | Torso = Character["Torso"] | |
20 | Head = Character["Head"] | |
21 | RightArm = Character["Right Arm"] | |
22 | LeftArm = Character["Left Arm"] | |
23 | RightLeg = Character["Right Leg"] | |
24 | LeftLeg = Character["Left Leg"] | |
25 | RootJoint = RootPart["RootJoint"] | |
26 | Neck = Torso["Neck"] | |
27 | RightShoulder = Torso["Right Shoulder"] | |
28 | LeftShoulder = Torso["Left Shoulder"] | |
29 | RightHip = Torso["Right Hip"] | |
30 | LeftHip = Torso["Left Hip"] | |
31 | local sick = Instance.new("Sound",Character) | |
32 | - | sick.SoundId = "rbxassetid://165704299" |
32 | + | sick.SoundId = "rbxassetid://1837344404" |
33 | sick.Looped = true | |
34 | sick.Pitch = 0.8 | |
35 | sick.Volume = 1 | |
36 | sick:Play() | |
37 | Humanoid.DisplayDistanceType = "None" | |
38 | game.Lighting.ClockTime = 22 | |
39 | ||
40 | IT = Instance.new | |
41 | CF = CFrame.new | |
42 | VT = Vector3.new | |
43 | RAD = math.rad | |
44 | C3 = Color3.new | |
45 | UD2 = UDim2.new | |
46 | BRICKC = BrickColor.new | |
47 | ANGLES = CFrame.Angles | |
48 | EULER = CFrame.fromEulerAnglesXYZ | |
49 | COS = math.cos | |
50 | ACOS = math.acos | |
51 | SIN = math.sin | |
52 | ASIN = math.asin | |
53 | ABS = math.abs | |
54 | MRANDOM = math.random | |
55 | FLOOR = math.floor | |
56 | ||
57 | local Sky = IT("Sky") | |
58 | Sky.Parent = game.Lighting | |
59 | Sky.MoonAngularSize = 45 | |
60 | Sky.MoonTextureId = "http://www.roblox.com/asset/?id=1055904136" | |
61 | ||
62 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
63 | local NEWMESH = IT(MESH) | |
64 | if MESH == "SpecialMesh" then | |
65 | NEWMESH.MeshType = MESHTYPE | |
66 | if MESHID ~= "nil" and MESHID ~= "" then | |
67 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
68 | end | |
69 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
70 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
71 | end | |
72 | end | |
73 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
74 | NEWMESH.Scale = SCALE | |
75 | NEWMESH.Parent = PARENT | |
76 | return NEWMESH | |
77 | end | |
78 | ||
79 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
80 | local NEWPART = IT("Part") | |
81 | NEWPART.formFactor = FORMFACTOR | |
82 | NEWPART.Reflectance = REFLECTANCE | |
83 | NEWPART.Transparency = TRANSPARENCY | |
84 | NEWPART.CanCollide = false | |
85 | NEWPART.Locked = true | |
86 | NEWPART.Anchored = true | |
87 | if ANCHOR == false then | |
88 | NEWPART.Anchored = false | |
89 | end | |
90 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
91 | NEWPART.Name = NAME | |
92 | NEWPART.Size = SIZE | |
93 | NEWPART.Position = Torso.Position | |
94 | NEWPART.Material = MATERIAL | |
95 | NEWPART:BreakJoints() | |
96 | NEWPART.Parent = PARENT | |
97 | return NEWPART | |
98 | end | |
99 | ||
100 | --//=================================\\ | |
101 | --|| CUSTOMIZATION | |
102 | --\\=================================// | |
103 | ||
104 | Player_Size = 1 --Size of the player. | |
105 | Animation_Speed = 3 | |
106 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
107 | ||
108 | local Speed = 16 | |
109 | local Effects2 = {} | |
110 | ||
111 | --//=================================\\ | |
112 | --|| END OF CUSTOMIZATION | |
113 | --\\=================================// | |
114 | ||
115 | local function weldBetween(a, b) | |
116 | local weldd = Instance.new("ManualWeld") | |
117 | weldd.Part0 = a | |
118 | weldd.Part1 = b | |
119 | weldd.C0 = CFrame.new() | |
120 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
121 | weldd.Parent = a | |
122 | return weldd | |
123 | end | |
124 | ||
125 | --//=================================\\ | |
126 | --|| USEFUL VALUES | |
127 | --\\=================================// | |
128 | ||
129 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
130 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
131 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
132 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
133 | local CHANGEDEFENSE = 0 | |
134 | local CHANGEDAMAGE = 0 | |
135 | local CHANGEMOVEMENT = 0 | |
136 | local ANIM = "Idle" | |
137 | local ATTACK = false | |
138 | local EQUIPPED = false | |
139 | local HOLD = false | |
140 | local COMBO = 1 | |
141 | local Rooted = false | |
142 | local SINE = 0 | |
143 | local KEYHOLD = false | |
144 | local CHANGE = 2 / Animation_Speed | |
145 | local WALKINGANIM = false | |
146 | local WALK = 0 | |
147 | local VALUE1 = false | |
148 | local VALUE2 = false | |
149 | local ROBLOXIDLEANIMATION = IT("Animation") | |
150 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
151 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
152 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
153 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
154 | WEAPONGUI.Name = "Weapon GUI" | |
155 | local Weapon = IT("Model") | |
156 | Weapon.Name = "Adds" | |
157 | local Effects = IT("Folder", Weapon) | |
158 | Effects.Name = "Effects" | |
159 | local ANIMATOR = Humanoid.Animator | |
160 | local ANIMATE = Character.Animate | |
161 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"} | |
162 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"} | |
163 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"} | |
164 | local HITBLOCKSOUNDS = {"199148933", "199148947"} | |
165 | local UNANCHOR = true | |
166 | local KILLINSTINCT = 0 | |
167 | ||
168 | local SKILLTEXTCOLOR = C3(1,0,0) | |
169 | ||
170 | --//=================================\\ | |
171 | --\\=================================// | |
172 | ||
173 | ||
174 | --//=================================\\ | |
175 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
176 | --\\=================================// | |
177 | ||
178 | ArtificialHB = Instance.new("BindableEvent", script) | |
179 | ArtificialHB.Name = "ArtificialHB" | |
180 | ||
181 | script:WaitForChild("ArtificialHB") | |
182 | ||
183 | frame = Frame_Speed | |
184 | tf = 0 | |
185 | allowframeloss = false | |
186 | tossremainder = false | |
187 | lastframe = tick() | |
188 | script.ArtificialHB:Fire() | |
189 | ||
190 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
191 | tf = tf + s | |
192 | if tf >= frame then | |
193 | if allowframeloss then | |
194 | script.ArtificialHB:Fire() | |
195 | lastframe = tick() | |
196 | else | |
197 | for i = 1, math.floor(tf / frame) do | |
198 | script.ArtificialHB:Fire() | |
199 | end | |
200 | lastframe = tick() | |
201 | end | |
202 | if tossremainder then | |
203 | tf = 0 | |
204 | else | |
205 | tf = tf - frame * math.floor(tf / frame) | |
206 | end | |
207 | end | |
208 | end) | |
209 | ||
210 | --//=================================\\ | |
211 | --\\=================================// | |
212 | ||
213 | ||
214 | ||
215 | ||
216 | ||
217 | --//=================================\\ | |
218 | --|| SOME FUNCTIONS | |
219 | --\\=================================// | |
220 | ||
221 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
222 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
223 | end | |
224 | ||
225 | function PositiveAngle(NUMBER) | |
226 | if NUMBER >= 0 then | |
227 | NUMBER = 0 | |
228 | end | |
229 | return NUMBER | |
230 | end | |
231 | ||
232 | function NegativeAngle(NUMBER) | |
233 | if NUMBER <= 0 then | |
234 | NUMBER = 0 | |
235 | end | |
236 | return NUMBER | |
237 | end | |
238 | ||
239 | function Swait(NUMBER) | |
240 | if NUMBER == 0 or NUMBER == nil then | |
241 | ArtificialHB.Event:wait() | |
242 | else | |
243 | for i = 1, NUMBER do | |
244 | ArtificialHB.Event:wait() | |
245 | end | |
246 | end | |
247 | end | |
248 | ||
249 | function QuaternionFromCFrame(cf) | |
250 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
251 | local trace = m00 + m11 + m22 | |
252 | if trace > 0 then | |
253 | local s = math.sqrt(1 + trace) | |
254 | local recip = 0.5 / s | |
255 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
256 | else | |
257 | local i = 0 | |
258 | if m11 > m00 then | |
259 | i = 1 | |
260 | end | |
261 | if m22 > (i == 0 and m00 or m11) then | |
262 | i = 2 | |
263 | end | |
264 | if i == 0 then | |
265 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
266 | local recip = 0.5 / s | |
267 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
268 | elseif i == 1 then | |
269 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
270 | local recip = 0.5 / s | |
271 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
272 | elseif i == 2 then | |
273 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
274 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
275 | end | |
276 | end | |
277 | end | |
278 | ||
279 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
280 | local xs, ys, zs = x + x, y + y, z + z | |
281 | local wx, wy, wz = w * xs, w * ys, w * zs | |
282 | local xx = x * xs | |
283 | local xy = x * ys | |
284 | local xz = x * zs | |
285 | local yy = y * ys | |
286 | local yz = y * zs | |
287 | local zz = z * zs | |
288 | return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) | |
289 | end | |
290 | ||
291 | function QuaternionSlerp(a, b, t) | |
292 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
293 | local startInterp, finishInterp; | |
294 | if cosTheta >= 0.0001 then | |
295 | if (1 - cosTheta) > 0.0001 then | |
296 | local theta = ACOS(cosTheta) | |
297 | local invSinTheta = 1 / SIN(theta) | |
298 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
299 | finishInterp = SIN(t * theta) * invSinTheta | |
300 | else | |
301 | startInterp = 1 - t | |
302 | finishInterp = t | |
303 | end | |
304 | else | |
305 | if (1 + cosTheta) > 0.0001 then | |
306 | local theta = ACOS(-cosTheta) | |
307 | local invSinTheta = 1 / SIN(theta) | |
308 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
309 | finishInterp = SIN(t * theta) * invSinTheta | |
310 | else | |
311 | startInterp = t - 1 | |
312 | finishInterp = t | |
313 | end | |
314 | end | |
315 | return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp | |
316 | end | |
317 | ||
318 | function Clerp(a, b, t) | |
319 | local qa = {QuaternionFromCFrame(a)} | |
320 | local qb = {QuaternionFromCFrame(b)} | |
321 | local ax, ay, az = a.x, a.y, a.z | |
322 | local bx, by, bz = b.x, b.y, b.z | |
323 | local _t = 1 - t | |
324 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
325 | end | |
326 | ||
327 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
328 | local frame = IT("Frame") | |
329 | frame.BackgroundTransparency = TRANSPARENCY | |
330 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
331 | frame.Position = POSITION | |
332 | frame.Size = SIZE | |
333 | frame.BackgroundColor3 = COLOR | |
334 | frame.BorderColor3 = BORDERCOLOR | |
335 | frame.Name = NAME | |
336 | frame.Parent = PARENT | |
337 | return frame | |
338 | end | |
339 | ||
340 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
341 | local label = IT("TextLabel") | |
342 | label.BackgroundTransparency = 1 | |
343 | label.Size = UD2(1, 0, 1, 0) | |
344 | label.Position = UD2(0, 0, 0, 0) | |
345 | label.TextColor3 = TEXTCOLOR | |
346 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
347 | label.TextTransparency = TRANSPARENCY | |
348 | label.FontSize = TEXTFONTSIZE | |
349 | label.Font = TEXTFONT | |
350 | label.BorderSizePixel = BORDERSIZEPIXEL | |
351 | label.TextScaled = false | |
352 | label.Text = TEXT | |
353 | label.Name = NAME | |
354 | label.Parent = PARENT | |
355 | return label | |
356 | end | |
357 | ||
358 | function NoOutlines(PART) | |
359 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
360 | end | |
361 | ||
362 | ||
363 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
364 | local NEWWELD = IT(TYPE) | |
365 | NEWWELD.Part0 = PART0 | |
366 | NEWWELD.Part1 = PART1 | |
367 | NEWWELD.C0 = C0 | |
368 | NEWWELD.C1 = C1 | |
369 | NEWWELD.Parent = PARENT | |
370 | return NEWWELD | |
371 | end | |
372 | ||
373 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
374 | local NEWSOUND = nil | |
375 | coroutine.resume(coroutine.create(function() | |
376 | NEWSOUND = IT("Sound", PARENT) | |
377 | NEWSOUND.Volume = VOLUME | |
378 | NEWSOUND.Pitch = PITCH | |
379 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
380 | Swait() | |
381 | NEWSOUND:play() | |
382 | game:GetService("Debris"):AddItem(NEWSOUND, 10) | |
383 | end)) | |
384 | return NEWSOUND | |
385 | end | |
386 | ||
387 | function CFrameFromTopBack(at, top, back) | |
388 | local right = top:Cross(back) | |
389 | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
390 | end | |
391 | ||
392 | function MakeForm(PART,TYPE) | |
393 | if TYPE == "Cyl" then | |
394 | local MSH = IT("CylinderMesh",PART) | |
395 | elseif TYPE == "Ball" then | |
396 | local MSH = IT("SpecialMesh",PART) | |
397 | MSH.MeshType = "Sphere" | |
398 | elseif TYPE == "Wedge" then | |
399 | local MSH = IT("SpecialMesh",PART) | |
400 | MSH.MeshType = "Wedge" | |
401 | end | |
402 | end | |
403 | ||
404 | Debris = game:GetService("Debris") | |
405 | --//=================================\\ | |
406 | --|| WEAPON CREATION | |
407 | --\\=================================// | |
408 | ||
409 | - | local HandlePart = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0.2, 3.39, 1.61),false) |
409 | + | local HandlePart = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(1, 1, 1),false) |
410 | - | local HandleMesh = CreateMesh("SpecialMesh", HandlePart, "FileMesh", "145815658", "186913315", VT(1,1,1), VT(0, 0, 0)) |
410 | + | local HandleMesh = CreateMesh("SpecialMesh", HandlePart, "FileMesh", "121944778", "362719969", VT(1,1,1), VT(0, 0, 0)) |
411 | local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, RightArm, HandlePart, CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
412 | ||
413 | local DECAL = IT("Decal",HandlePart) | |
414 | - | DECAL.Texture = "http://www.roblox.com/asset/?id=116830967" |
414 | + | DECAL.Texture = "http://www.roblox.com/asset/?id=141116476" |
415 | ||
416 | for _, c in pairs(Weapon:GetChildren()) do | |
417 | if c.ClassName == "Part" then | |
418 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
419 | end | |
420 | end | |
421 | ||
422 | local A = IT("Attachment",HandlePart) | |
423 | A.Position = VT(0, -1.5, 0) | |
424 | local B = IT("Attachment",HandlePart) | |
425 | B.Position = VT(0, 2.2, 0.2) | |
426 | local Trail = IT("Trail",HandlePart) | |
427 | Trail.Attachment0 = A | |
428 | Trail.Attachment1 = B | |
429 | Trail.Lifetime = 0.1 | |
430 | Trail.Transparency = NumberSequence.new(0.8, 1) | |
431 | Trail.Enabled = false | |
432 | ||
433 | Weapon.Parent = Character | |
434 | ||
435 | Humanoid.Died:connect(function() | |
436 | ATTACK = true | |
437 | end) | |
438 | ||
439 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
440 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
441 | --local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
442 | --local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
443 | --local SKILL5FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
444 | ||
445 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[CLICK] Swing", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 1") | |
446 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Enrage", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 2") | |
447 | --local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, 6, "Legacy", 0, 2, 1, "Text 3") | |
448 | --local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, 6, "Legacy", 0, 2, 1, "Text 4") | |
449 | --local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Ability 5", SKILLTEXTCOLOR, 6, "Legacy", 0, 2, 1, "Text 5") | |
450 | ||
451 | --//=================================\\ | |
452 | --|| DAMAGING | |
453 | --\\=================================// | |
454 | ||
455 | local asd = Instance.new("ParticleEmitter") | |
456 | asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.1, 0, 0)) | |
457 | asd.LightEmission = .1 | |
458 | asd.Size = NumberSequence.new(0.2) | |
459 | asd.Texture = "http://www.roblox.com/asset/?ID=291880914" | |
460 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)}) | |
461 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
462 | asd.Transparency = bbb | |
463 | asd.Size = aaa | |
464 | asd.ZOffset = .9 | |
465 | asd.Acceleration = Vector3.new(0, -5, 0) | |
466 | asd.LockedToPart = false | |
467 | asd.EmissionDirection = "Back" | |
468 | asd.Lifetime = NumberRange.new(1, 2) | |
469 | asd.Rotation = NumberRange.new(-100, 100) | |
470 | asd.RotSpeed = NumberRange.new(-100, 100) | |
471 | asd.Speed = NumberRange.new(2) | |
472 | asd.Enabled = false | |
473 | asd.VelocitySpread = 10000 | |
474 | ||
475 | function getbloody(victim,amount) | |
476 | local prtcl = asd:Clone() | |
477 | prtcl.Parent = victim | |
478 | prtcl:Emit(amount) | |
479 | end | |
480 | ||
481 | local TORSOVELOCITY = 0 | |
482 | ||
483 | function Ragdoll(Character2,CharTorso) | |
484 | local svch = Character2 | |
485 | local hum = Character2:findFirstChild("Humanoid") | |
486 | local q = Character2:GetChildren() | |
487 | local CLONE = IT("Model",Effects) | |
488 | local DummyHead = nil | |
489 | for i = 1,#q do | |
490 | if q[i].ClassName ~= "Humanoid" and q[i].ClassName ~= "LocalScript" and q[i].ClassName ~= "Script" and q[i].ClassName ~= "Accessory" and q[i].ClassName ~= "Hat" and q[i].ClassName ~= "Gear" then | |
491 | q[i].Parent = CLONE | |
492 | if q[i].Name == "Head" then | |
493 | DummyHead = CLONE.Head:Clone() | |
494 | q[i]:ClearAllChildren() | |
495 | q[i].Transparency = 1 | |
496 | end | |
497 | else | |
498 | if q[i].ClassName ~= "Humanoid" then | |
499 | q[i]:remove() | |
500 | end | |
501 | end | |
502 | end | |
503 | local chrclone = CLONE | |
504 | ||
505 | for _, c in pairs(Character2:GetChildren()) do | |
506 | if c.ClassName == "Accessory" then | |
507 | c:remove() | |
508 | end | |
509 | end | |
510 | ||
511 | local ch = chrclone:GetChildren() | |
512 | local i | |
513 | for i = 1,#ch do | |
514 | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then | |
515 | ch[i]:remove() | |
516 | end | |
517 | end | |
518 | local function Scan(ch) | |
519 | local e | |
520 | for e = 1,#ch do | |
521 | Scan(ch[e]:GetChildren()) | |
522 | if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then | |
523 | ch[e]:remove() | |
524 | end | |
525 | end | |
526 | end | |
527 | Scan(chrclone:GetChildren()) | |
528 | ||
529 | local ch = Character2:GetChildren() | |
530 | local i | |
531 | for i = 1,#ch do | |
532 | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then | |
533 | ch[i]:remove() | |
534 | end | |
535 | end | |
536 | ||
537 | local ch = Character2:GetChildren() | |
538 | local i | |
539 | for i = 1,#ch do | |
540 | if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then | |
541 | ch[i]:remove() | |
542 | end | |
543 | end | |
544 | Character2 = chrclone | |
545 | local Torso2 = Character2.Torso | |
546 | local movevector = Vector3.new() | |
547 | ||
548 | if Torso2 then | |
549 | movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector | |
550 | local Head = Character2:FindFirstChild("Head") | |
551 | if Head then | |
552 | local Neck = Instance.new("Weld") | |
553 | Neck.Name = "Neck" | |
554 | Neck.Part0 = Torso2 | |
555 | Neck.Part1 = Head | |
556 | Neck.C0 = CFrame.new(0, 1.5, 0) | |
557 | Neck.C1 = CFrame.new() | |
558 | Neck.Parent = Torso2 | |
559 | Head:ClearAllChildren() | |
560 | Head.Transparency = 1 | |
561 | ||
562 | end | |
563 | local Limb = Character2:FindFirstChild("Right Arm") | |
564 | if Limb then | |
565 | ||
566 | Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0) | |
567 | local Joint = Instance.new("Glue") | |
568 | Joint.Name = "RightShoulder" | |
569 | Joint.Part0 = Torso2 | |
570 | Joint.Part1 = Limb | |
571 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
572 | Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
573 | Joint.Parent = Torso2 | |
574 | ||
575 | local B = Instance.new("Part") | |
576 | B.TopSurface = 0 | |
577 | B.BottomSurface = 0 | |
578 | B.formFactor = "Symmetric" | |
579 | B.Size = Vector3.new(1, 1, 1) | |
580 | B.Transparency = 1 | |
581 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
582 | B.Parent = Character2 | |
583 | local W = Instance.new("Weld") | |
584 | W.Part0 = Limb | |
585 | W.Part1 = B | |
586 | W.C0 = CFrame.new(0, -0.5, 0) | |
587 | W.Parent = Limb | |
588 | ||
589 | end | |
590 | local Limb = Character2:FindFirstChild("Left Arm") | |
591 | if Limb then | |
592 | ||
593 | Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0) | |
594 | local Joint = Instance.new("Glue") | |
595 | Joint.Name = "LeftShoulder" | |
596 | Joint.Part0 = Torso2 | |
597 | Joint.Part1 = Limb | |
598 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
599 | Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
600 | Joint.Parent = Torso2 | |
601 | ||
602 | local B = Instance.new("Part") | |
603 | B.TopSurface = 0 | |
604 | B.BottomSurface = 0 | |
605 | B.formFactor = "Symmetric" | |
606 | B.Size = Vector3.new(1, 1, 1) | |
607 | B.Transparency = 1 | |
608 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
609 | B.Parent = Character2 | |
610 | local W = Instance.new("Weld") | |
611 | W.Part0 = Limb | |
612 | W.Part1 = B | |
613 | W.C0 = CFrame.new(0, -0.5, 0) | |
614 | W.Parent = Limb | |
615 | ||
616 | end | |
617 | local Limb = Character2:FindFirstChild("Right Leg") | |
618 | if Limb then | |
619 | ||
620 | Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0) | |
621 | local Joint = Instance.new("Glue") | |
622 | Joint.Name = "RightHip" | |
623 | Joint.Part0 = Torso2 | |
624 | Joint.Part1 = Limb | |
625 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
626 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
627 | Joint.Parent = Torso2 | |
628 | ||
629 | local B = Instance.new("Part") | |
630 | B.TopSurface = 0 | |
631 | B.BottomSurface = 0 | |
632 | B.formFactor = "Symmetric" | |
633 | B.Size = Vector3.new(1, 1, 1) | |
634 | B.Transparency = 1 | |
635 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
636 | B.Parent = Character2 | |
637 | local W = Instance.new("Weld") | |
638 | W.Part0 = Limb | |
639 | W.Part1 = B | |
640 | W.C0 = CFrame.new(0, -0.5, 0) | |
641 | W.Parent = Limb | |
642 | ||
643 | end | |
644 | local Limb = Character2:FindFirstChild("Left Leg") | |
645 | if Limb then | |
646 | ||
647 | Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0) | |
648 | local Joint = Instance.new("Glue") | |
649 | Joint.Name = "LeftHip" | |
650 | Joint.Part0 = Torso2 | |
651 | Joint.Part1 = Limb | |
652 | Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
653 | Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
654 | Joint.Parent = Torso2 | |
655 | ||
656 | local B = Instance.new("Part") | |
657 | B.TopSurface = 0 | |
658 | B.BottomSurface = 0 | |
659 | B.formFactor = "Symmetric" | |
660 | B.Size = Vector3.new(1, 1, 1) | |
661 | B.Transparency = 1 | |
662 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
663 | B.Parent = Character2 | |
664 | local W = Instance.new("Weld") | |
665 | W.Part0 = Limb | |
666 | W.Part1 = B | |
667 | W.C0 = CFrame.new(0, -0.5, 0) | |
668 | W.Parent = Limb | |
669 | ||
670 | end | |
671 | --[ | |
672 | local Bar = Instance.new("Part") | |
673 | Bar.TopSurface = 0 | |
674 | Bar.BottomSurface = 0 | |
675 | Bar.formFactor = "Symmetric" | |
676 | Bar.Size = Vector3.new(1, 1, 1) | |
677 | Bar.Transparency = 1 | |
678 | Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0) | |
679 | Bar.Parent = Character2 | |
680 | local Weld = Instance.new("Weld") | |
681 | Weld.Part0 = Torso2 | |
682 | Weld.Part1 = Bar | |
683 | Weld.C0 = CFrame.new(0, 0.5, 0) | |
684 | Weld.Parent = Torso2 | |
685 | --]] | |
686 | end | |
687 | Character2.Parent = Weapon | |
688 | if movevector ~= Vector3.new() then | |
689 | for i = 1,10 do | |
690 | Torso2.Velocity = movevector * 30 | |
691 | end | |
692 | end | |
693 | DummyHead.Name = "FakeHead" | |
694 | DummyHead.Parent = CLONE | |
695 | local BLOOD = CreatePart(3, DummyHead, "Glass", 0, 0, "Maroon", "Blood", VT(0.65,0.25,0.65),false) | |
696 | BLOOD.CFrame = DummyHead.CFrame*CF(0,-DummyHead.Size.Y/2,0) | |
697 | MakeForm(BLOOD,"Cyl") | |
698 | weldBetween(DummyHead,BLOOD) | |
699 | local BLOOD = CreatePart(3, Torso2, "Glass", 0, 0, "Maroon", "Blood", VT(0.65,0.2,0.65),false) | |
700 | BLOOD.CFrame = Torso2.CFrame*CF(0,Torso2.Size.Y/2,0) | |
701 | MakeForm(BLOOD,"Cyl") | |
702 | weldBetween(Torso2,BLOOD) | |
703 | Character2.Name = "Corpse" | |
704 | local hum2 = svch:findFirstChild("Humanoid") | |
705 | ||
706 | return Character2,Torso2,DummyHead | |
707 | end | |
708 | ||
709 | function PuddleOfBlood(Position,MaxDrop,Model,MaxSize) | |
710 | local HITFLOOR, HITPOS = Raycast(Position, (CF(Position, Position + VT(0, -1, 0))).lookVector, MaxDrop, Model) | |
711 | if HITFLOOR ~= nil then | |
712 | if HITFLOOR.Parent ~= Weapon and HITFLOOR.Parent ~= Character then | |
713 | if HITFLOOR.Name == "BloodPuddle" then | |
714 | local DIST = (Position - HITFLOOR.Position).Magnitude | |
715 | if (HITFLOOR.Size.Z <= 5 and HITFLOOR.Size.Z < MaxSize) or (HITFLOOR.Size.Z > 5 and HITFLOOR.Size.Z < MaxSize and DIST < HITFLOOR.Size.Z/3) then | |
716 | HITFLOOR.Size = HITFLOOR.Size + VT(0.1,0,0.1) | |
717 | end | |
718 | else | |
719 | if HITFLOOR.Anchored == true then | |
720 | local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(1,0,1)) | |
721 | BLOOD.CFrame = CF(HITPOS) | |
722 | MakeForm(BLOOD,"Cyl") | |
723 | coroutine.resume(coroutine.create(function() | |
724 | Swait(75) | |
725 | while true do | |
726 | Swait() | |
727 | BLOOD.Size = BLOOD.Size - VT(0.02,0,0.02) | |
728 | if BLOOD.Size.Z < 0.051 then | |
729 | BLOOD:remove() | |
730 | break | |
731 | end | |
732 | end | |
733 | end)) | |
734 | end | |
735 | end | |
736 | end | |
737 | end | |
738 | end | |
739 | ||
740 | function SprayBlood(POSITION,DIRECTION,BloodSize) | |
741 | local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(0.5,0.5,0.5),false) | |
742 | BLOOD.CFrame = CF(POSITION) | |
743 | MakeForm(BLOOD,"Ball") | |
744 | local bv = Instance.new("BodyVelocity",BLOOD) | |
745 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
746 | bv.velocity = CF(POSITION,DIRECTION+VT(MRANDOM(-3,3)/30,MRANDOM(-3,3)/30,MRANDOM(-3,3)/30)).lookVector*15 | |
747 | bv.Name = "MOVE" | |
748 | Debris:AddItem(bv,0.05) | |
749 | coroutine.resume(coroutine.create(function() | |
750 | local HASTOUCHEDGROUND = false | |
751 | local HIT = BLOOD.Touched:Connect(function(hit) | |
752 | if hit.Anchored == true then | |
753 | HASTOUCHEDGROUND = true | |
754 | PuddleOfBlood(BLOOD.Position+VT(0,1,0),2,BLOOD,BloodSize) | |
755 | end | |
756 | end) | |
757 | for i = 1, 50 do | |
758 | Swait() | |
759 | if HASTOUCHEDGROUND == true then | |
760 | break | |
761 | end | |
762 | BLOOD.Size = BLOOD.Size * 0.9 | |
763 | end | |
764 | BLOOD:remove() | |
765 | end)) | |
766 | end | |
767 | ||
768 | function Kill(Target) | |
769 | if Target.Parent ~= Weapon and Target:FindFirstChildOfClass("Humanoid") then | |
770 | Target:BreakJoints() | |
771 | local CFRAME = Target:FindFirstChild("Torso").CFrame or Target:FindFirstChild("UpperTorso") | |
772 | local CLONE,TORS2,DummyHead = Ragdoll(Target,Torso) | |
773 | getbloody(DummyHead,45) | |
774 | if TORS2 ~= nil then | |
775 | CreateSound("185688060", TORS2, 10, (math.random(8,12)/10)) | |
776 | CreateSound("337800380", DummyHead, 5, (math.random(8,18)/10)) | |
777 | local HUM = IT("Humanoid") | |
778 | HUM.MaxHealth = 0 | |
779 | HUM.Health = 0 | |
780 | HUM.Name = "CorpseHumanoid" | |
781 | HUM.PlatformStand = true | |
782 | HUM.Parent = CLONE | |
783 | KILLINSTINCT = KILLINSTINCT + 20 | |
784 | TORS2.CFrame = CFRAME | |
785 | coroutine.resume(coroutine.create(function() | |
786 | for i = 1, 450 do | |
787 | wait() | |
788 | SprayBlood(DummyHead.CFrame*CF(0,-0.25,0).p,DummyHead.CFrame*CF(0,-0.7,0).p,5) | |
789 | SprayBlood(TORS2.CFrame*CF(0,TORS2.Size.Y/2,0).p,TORS2.CFrame*CF(0,TORS2.Size.Y,0).p,10) | |
790 | --PuddleOfBlood(DummyHead.CFrame*CF(0,-0.25,0).p,4,CLONE,3) | |
791 | --PuddleOfBlood(TORS2.CFrame*CF(0,TORS2.Size.Y/2,0).p,8,CLONE,6) | |
792 | end | |
793 | CLONE:Remove() | |
794 | end)) | |
795 | end | |
796 | end | |
797 | end | |
798 | ||
799 | --//=================================\\ | |
800 | --|| ATTACK FUNCTIONS AND STUFF | |
801 | --\\=================================// | |
802 | ||
803 | function Swing() | |
804 | ATTACK = true | |
805 | Rooted = false | |
806 | for i=0, 1, 0.1 / Animation_Speed do | |
807 | Swait() | |
808 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-25)), 0.7 / Animation_Speed) | |
809 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 0.7 / Animation_Speed) | |
810 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
811 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
812 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
813 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
814 | HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.55, 0) * ANGLES(RAD(-125), RAD(0), RAD(180)), 0.5 / Animation_Speed) | |
815 | end | |
816 | Trail.Enabled = true | |
817 | HandlePart.CanCollide = true | |
818 | CreateSound("185687991", HandlePart, 1, (math.random(8,12)/10)) | |
819 | local HIT = HandlePart.Touched:Connect(function(hit) | |
820 | Kill(hit.Parent) | |
821 | end) | |
822 | for i=0, 0.8, 0.1 / Animation_Speed do | |
823 | Swait() | |
824 | if Speed == 25 and TORSOVELOCITY > 0.3 then | |
825 | RootPart.CFrame = RootPart.CFrame * CF(0,0,-1) | |
826 | end | |
827 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.7 / Animation_Speed) | |
828 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.7 / Animation_Speed) | |
829 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.7) * ANGLES(RAD(15), RAD(0), RAD(90)) * ANGLES(RAD(140), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
830 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
831 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
832 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
833 | HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.55, 0) * ANGLES(RAD(25), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
834 | end | |
835 | Trail.Enabled = false | |
836 | HandlePart.CanCollide = false | |
837 | HIT:disconnect() | |
838 | ATTACK = false | |
839 | Rooted = false | |
840 | end | |
841 | ||
842 | function Laugh() | |
843 | ATTACK = true | |
844 | Rooted = true | |
845 | CreateSound("1238240145", Torso, 6, 1) | |
846 | for i=0, 3.5, 0.1 / Animation_Speed do | |
847 | Swait() | |
848 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
849 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-35 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
850 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45 - 0.35 * COS(SINE / 2), 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
851 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
852 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
853 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
854 | HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.55, 0) * ANGLES(RAD(-125), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
855 | end | |
856 | ATTACK = false | |
857 | Rooted = false | |
858 | end | |
859 | ||
860 | --//=================================\\ | |
861 | --|| ASSIGN THINGS TO KEYS | |
862 | --\\=================================// | |
863 | ||
864 | function MouseDown(Mouse) | |
865 | if ATTACK == false then | |
866 | Swing() | |
867 | end | |
868 | end | |
869 | ||
870 | function MouseUp(Mouse) | |
871 | HOLD = false | |
872 | end | |
873 | ||
874 | function KeyDown(Key) | |
875 | KEYHOLD = true | |
876 | if Key == "b" and ATTACK == false then | |
877 | if Speed == 10 then | |
878 | Speed = 25 | |
879 | elseif Speed == 25 then | |
880 | Speed = 10 | |
881 | end | |
882 | end | |
883 | ||
884 | if Key == "t" and ATTACK == false then | |
885 | Laugh() | |
886 | end | |
887 | end | |
888 | ||
889 | function KeyUp(Key) | |
890 | KEYHOLD = false | |
891 | end | |
892 | ||
893 | Mouse.Button1Down:connect(function(NEWKEY) | |
894 | MouseDown(NEWKEY) | |
895 | end) | |
896 | Mouse.Button1Up:connect(function(NEWKEY) | |
897 | MouseUp(NEWKEY) | |
898 | end) | |
899 | Mouse.KeyDown:connect(function(NEWKEY) | |
900 | KeyDown(NEWKEY) | |
901 | end) | |
902 | Mouse.KeyUp:connect(function(NEWKEY) | |
903 | KeyUp(NEWKEY) | |
904 | end) | |
905 | ||
906 | --//=================================\\ | |
907 | --\\=================================// | |
908 | ||
909 | ||
910 | function unanchor() | |
911 | if UNANCHOR == true then | |
912 | g = Character:GetChildren() | |
913 | for i = 1, #g do | |
914 | if g[i].ClassName == "Part" then | |
915 | g[i].Anchored = false | |
916 | end | |
917 | end | |
918 | end | |
919 | end | |
920 | ||
921 | ||
922 | --//=================================\\ | |
923 | --|| WRAP THE WHOLE SCRIPT UP | |
924 | --\\=================================// | |
925 | ||
926 | Humanoid.Changed:connect(function(Jump) | |
927 | if Jump == "Jump" and (Disable_Jump == true) then | |
928 | Humanoid.Jump = false | |
929 | end | |
930 | end) | |
931 | ||
932 | Speed = 10 | |
933 | ||
934 | local naeeym2 = Instance.new("BillboardGui",Character) | |
935 | naeeym2.AlwaysOnTop = true | |
936 | naeeym2.Size = UDim2.new(5,35,2,35) | |
937 | naeeym2.StudsOffset = Vector3.new(0,1,0) | |
938 | naeeym2.Adornee = Character.Head | |
939 | naeeym2.Name = "Name" | |
940 | naeeym2.PlayerToHideFrom = Player | |
941 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
942 | tecks2.BackgroundTransparency = 1 | |
943 | tecks2.TextScaled = true | |
944 | tecks2.BorderSizePixel = 0 | |
945 | - | tecks2.Text = "PSYCHO" |
945 | + | tecks2.Text = "Robert.EXE" |
946 | tecks2.Font = "Antique" | |
947 | tecks2.TextSize = 30 | |
948 | tecks2.TextStrokeTransparency = 0 | |
949 | tecks2.TextColor3 = Color3.new(0.8,0,0) | |
950 | tecks2.TextStrokeColor3 = Color3.new(0.8,0,0) | |
951 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
952 | tecks2.Parent = naeeym2 | |
953 | ||
954 | while true do | |
955 | ANIMATE.Parent = nil | |
956 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
957 | IDLEANIMATION:Play() | |
958 | SINE = SINE + CHANGE | |
959 | TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
960 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
961 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
962 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
963 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
964 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
965 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
966 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
967 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
968 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
969 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
970 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
971 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
972 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
973 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
974 | end | |
975 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
976 | ANIM = "Jump" | |
977 | if ATTACK == false then | |
978 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
979 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
980 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
981 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
982 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
983 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
984 | HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.55, 0) * ANGLES(RAD(-165), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
985 | end | |
986 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
987 | ANIM = "Fall" | |
988 | if ATTACK == false then | |
989 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
990 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
991 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
992 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
993 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
994 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
995 | HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.55, 0) * ANGLES(RAD(-85), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
996 | end | |
997 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
998 | ANIM = "Idle" | |
999 | if ATTACK == false then | |
1000 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1001 | if VALUE1 == false then | |
1002 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1003 | end | |
1004 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1005 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1006 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1007 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1008 | HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.55, 0) * ANGLES(RAD(-125), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1009 | if VALUE1 == false and MRANDOM(1,200) == 1 then | |
1010 | coroutine.resume(coroutine.create(function() | |
1011 | VALUE1 = true | |
1012 | for i = 1, 25 do | |
1013 | Swait() | |
1014 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD((15+MRANDOM(-15,15)/15)), RAD(0)), 3 / Animation_Speed) | |
1015 | end | |
1016 | VALUE1 = false | |
1017 | end)) | |
1018 | end | |
1019 | end | |
1020 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
1021 | ANIM = "Walk" | |
1022 | WALK = WALK + 1 / Animation_Speed | |
1023 | if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then | |
1024 | WALK = 0 | |
1025 | if WALKINGANIM == true then | |
1026 | WALKINGANIM = false | |
1027 | elseif WALKINGANIM == false then | |
1028 | WALKINGANIM = true | |
1029 | end | |
1030 | end | |
1031 | --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1032 | --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1033 | if ATTACK == false then | |
1034 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE/2))) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1035 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(25), RAD(0)), 0.15 / Animation_Speed) | |
1036 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35 - 0.15 * COS(SINE / (WALKSPEEDVALUE / 2)), 0) * ANGLES(RAD(-20), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1037 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed) | |
1038 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
1039 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
1040 | HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.75 + 0.3 * COS(SINE / (WALKSPEEDVALUE/2)), 0) * ANGLES(RAD(-145), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1041 | end | |
1042 | end | |
1043 | unanchor() | |
1044 | Humanoid.MaxHealth = "inf" | |
1045 | Humanoid.Health = "inf" | |
1046 | if Rooted == false then | |
1047 | Disable_Jump = false | |
1048 | Humanoid.WalkSpeed = Speed | |
1049 | elseif Rooted == true then | |
1050 | Disable_Jump = true | |
1051 | Humanoid.WalkSpeed = 0 | |
1052 | end | |
1053 | if KILLINSTINCT > 0 then | |
1054 | PuddleOfBlood(HandlePart.CFrame*CF(0,1,0).p,3,HandlePart,2) | |
1055 | KILLINSTINCT = KILLINSTINCT - 0.1 | |
1056 | end | |
1057 | if Head:FindFirstChild("face") then | |
1058 | - | Head.face.Texture = "http://www.roblox.com/asset/?id=120463437" |
1058 | + | Head.face.Texture = "http://www.roblox.com/asset/?id=435233416" |
1059 | end | |
1060 | Trail.Color = ColorSequence.new(C3(1,1-KILLINSTINCT/70,1-KILLINSTINCT/70)) | |
1061 | local MATHS = {"0","1"} | |
1062 | Humanoid.Name = MATHS[MRANDOM(1,#MATHS)].."P"..MATHS[MRANDOM(1,#MATHS)].."S"..MATHS[MRANDOM(1,#MATHS)].."Y"..MATHS[MRANDOM(1,#MATHS)].."C"..MATHS[MRANDOM(1,#MATHS)].."H"..MATHS[MRANDOM(1,#MATHS)].."O"..MATHS[MRANDOM(1,#MATHS)] | |
1063 | Humanoid.PlatformStand = false | |
1064 | script.Name = Humanoid.Name | |
1065 | if math.random(1,70-Speed) == 1 then | |
1066 | tecks2.Text = "FAILURE" | |
1067 | elseif math.random(1,70-Speed) == 2 then | |
1068 | tecks2.Text = "WHY BOTHER" | |
1069 | elseif math.random(1,70-Speed) == 3 then | |
1070 | tecks2.Text = "WORTHLESS" | |
1071 | else | |
1072 | if KILLINSTINCT > 0 then | |
1073 | if KILLINSTINCT < 100 then | |
1074 | if MRANDOM(1,math.ceil(100-KILLINSTINCT)) == 1 then | |
1075 | - | tecks2.Text = "HA AH AHA HA HA HA HA" |
1075 | + | tecks2.Text = "HELLO!" |
1076 | else | |
1077 | - | tecks2.Text = "boss_kiddos the KILLER." |
1077 | + | tecks2.Text = "WORST NIGHTMARE!" |
1078 | end | |
1079 | elseif KILLINSTINCT >= 100 then | |
1080 | if MRANDOM(1,5) == 1 then | |
1081 | - | tecks2.Text = "ESFIJKDSFBBJDSFBUKJDSFKMD DA NUB" |
1081 | + | tecks2.Text = "YOU ARE DIED!" |
1082 | end | |
1083 | else | |
1084 | - | tecks2.Text = "boss_kiddos the KILLER." |
1084 | + | tecks2.Text = "HAHAHAHA!" |
1085 | end | |
1086 | else | |
1087 | - | tecks2.Text = "boss_kiddos the KILLER." |
1087 | + | tecks2.Text = "HAVE FUN!" |
1088 | end | |
1089 | end | |
1090 | DECAL.Transparency = 1-(KILLINSTINCT/25) | |
1091 | Swait() | |
1092 | if Head:FindFirstChildOfClass("Sound") then | |
1093 | Head:FindFirstChildOfClass("Sound"):remove() | |
1094 | end | |
1095 | if KILLINSTINCT > 100 then | |
1096 | KILLINSTINCT = 100 | |
1097 | end | |
1098 | sick.Parent = Character | |
1099 | Sky.Parent = game.Lighting | |
1100 | game.Lighting.ClockTime = 22 | |
1101 | script.Parent = PlayerGui | |
1102 | end | |
1103 | ||
1104 | --//=================================\\ | |
1105 | --\\=================================// | |
1106 | ||
1107 | ||
1108 | ||
1109 | ||
1110 | ||
1111 | --//====================================================\\-- | |
1112 | --|| END OF SCRIPT | |
1113 | --\\====================================================//-- |