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