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,game,owner = owner,game | |
3 | local RealPlayer = Player | |
4 | do | |
5 | print("FE Compatibility code by Mokiros") | |
6 | local rp = RealPlayer | |
7 | script.Parent = rp.Character | |
8 | ||
9 | --RemoteEvent for communicating | |
10 | local Event = Instance.new("RemoteEvent") | |
11 | Event.Name = "UserInput_Event" | |
12 | ||
13 | --Fake event to make stuff like Mouse.KeyDown work | |
14 | local function fakeEvent() | |
15 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
16 | t.connect = t.Connect | |
17 | return t | |
18 | end | |
19 | ||
20 | --Creating fake input objects with fake variables | |
21 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
22 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
23 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
24 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
25 | end} | |
26 | --Merged 2 functions into one by checking amount of arguments | |
27 | CAS.UnbindAction = CAS.BindAction | |
28 | ||
29 | --This function will trigger the events that have been :Connect()'ed | |
30 | local function te(self,ev,...) | |
31 | local t = m[ev] | |
32 | if t and t._fakeEvent then | |
33 | for _,f in pairs(t.Functions) do | |
34 | f(...) | |
35 | end | |
36 | end | |
37 | end | |
38 | m.TrigEvent = te | |
39 | UIS.TrigEvent = te | |
40 | ||
41 | Event.OnServerEvent:Connect(function(plr,io) | |
42 | if plr~=rp then return end | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | if not io.isMouse then | |
46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
49 | end | |
50 | for _,t in pairs(CAS.Actions) do | |
51 | for _,k in pairs(t.Keys) do | |
52 | if k==io.KeyCode then | |
53 | t.Function(t.Name,io.UserInputState,io) | |
54 | end | |
55 | end | |
56 | end | |
57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
59 | end | |
60 | end) | |
61 | Event.Parent = NLS([==[ | |
62 | local Player = game:GetService("Players").LocalPlayer | |
63 | local Event = script:WaitForChild("UserInput_Event") | |
64 | ||
65 | local Mouse = Player:GetMouse() | |
66 | local UIS = game:GetService("UserInputService") | |
67 | local input = function(io,a) | |
68 | if a then return end | |
69 | --Since InputObject is a client-side instance, we create and pass table instead | |
70 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
71 | end | |
72 | UIS.InputBegan:Connect(input) | |
73 | UIS.InputEnded:Connect(input) | |
74 | ||
75 | local h,t | |
76 | --Give the server mouse data 30 times every second, but only if the values changed | |
77 | --If player is not moving their mouse, client won't fire events | |
78 | while wait(1/30) do | |
79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
80 | h,t=Mouse.Hit,Mouse.Target | |
81 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
82 | end | |
83 | end]==],Player.Character) | |
84 | ||
85 | ----Sandboxed game object that allows the usage of client-side methods and services | |
86 | --Real game object | |
87 | local _rg = game | |
88 | ||
89 | --Metatable for fake service | |
90 | local fsmt = { | |
91 | __index = function(self,k) | |
92 | local s = rawget(self,"_RealService") | |
93 | if s then return s[k] end | |
94 | end, | |
95 | __newindex = function(self,k,v) | |
96 | local s = rawget(self,"_RealService") | |
97 | if s then s[k]=v end | |
98 | end, | |
99 | __call = function(self,...) | |
100 | local s = rawget(self,"_RealService") | |
101 | if s then return s(...) end | |
102 | end | |
103 | } | |
104 | local function FakeService(t,RealService) | |
105 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
106 | return setmetatable(t,fsmt) | |
107 | end | |
108 | ||
109 | --Fake game object | |
110 | local g = { | |
111 | GetService = function(self,s) | |
112 | return self[s] | |
113 | end, | |
114 | Players = FakeService({ | |
115 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
116 | },"Players"), | |
117 | UserInputService = FakeService(UIS,"UserInputService"), | |
118 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
119 | } | |
120 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
121 | g.service = g.GetService | |
122 | ||
123 | g.RunService = FakeService({ | |
124 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
125 | BindToRenderStep = function(self,name,_,fun) | |
126 | ||
127 | end, | |
128 | UnbindFromRenderStep = function(self,name) | |
129 | self._btrs[name]:Disconnect() | |
130 | end, | |
131 | },"RunService") | |
132 | ||
133 | setmetatable(g,{ | |
134 | __index=function(self,s) | |
135 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
136 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
137 | end, | |
138 | __newindex = fsmt.__newindex, | |
139 | __call = fsmt.__call | |
140 | }) | |
141 | --Changing owner to fake player object to support owner:GetMouse() | |
142 | game,owner = g,g.Players.LocalPlayer | |
143 | end | |
144 | ----------------------------- | |
145 | ||
146 | --V for antideath V-- | |
147 | Player = owner | |
148 | PlayerGui = Player.PlayerGui | |
149 | Cam = workspace.CurrentCamera | |
150 | Backpack = Player.Backpack | |
151 | Character = Player.Character | |
152 | oid = Character.Humanoid | |
153 | Mouse = Player:GetMouse() | |
154 | RootPart = Character["HumanoidRootPart"] | |
155 | Torso = Character["Torso"] | |
156 | Head = Character["Head"] | |
157 | RightArm = Character["Right Arm"] | |
158 | LeftArm = Character["Left Arm"] | |
159 | RightLeg = Character["Right Leg"] | |
160 | LeftLeg = Character["Left Leg"] | |
161 | RootJoint = RootPart["RootJoint"] | |
162 | Neck = Torso["Neck"] | |
163 | RightShoulder = Torso["Right Shoulder"] | |
164 | LeftShoulder = Torso["Left Shoulder"] | |
165 | RightHip = Torso["Right Hip"] | |
166 | LeftHip = Torso["Left Hip"] | |
167 | --End for antideath-- | |
168 | ||
169 | local plr = owner | |
170 | local char = plr.Character | |
171 | local hum = char.Humanoid | |
172 | local hed = char.Head | |
173 | local Character = plr.Character | |
174 | local Torso = Character.Torso | |
175 | local root = char.HumanoidRootPart | |
176 | local rootj = root.RootJoint | |
177 | local tors = char.Torso | |
178 | local ra = char["Right Arm"] | |
179 | local la = char["Left Arm"] | |
180 | local rl = char["Right Leg"] | |
181 | local ll = char["Left Leg"] | |
182 | local neck = tors["Neck"] | |
183 | local mouse = plr:GetMouse() | |
184 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
185 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
186 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
187 | local maincolor = BrickColor.new("Persimmon") | |
188 | exploitable = true | |
189 | combo=1 | |
190 | sin=0 | |
191 | cha=1 | |
192 | choice=1 | |
193 | lal=1 | |
194 | lal2=1 | |
195 | haa=nil | |
196 | aaa=false | |
197 | unleashed=false | |
198 | local Player = game:GetService("Players").LocalPlayer | |
199 | local Character = Player.Character | |
200 | local Humanoid = Character.Humanoid | |
201 | local Mouse = Player:GetMouse() | |
202 | local LeftArm = Character["Left Arm"] | |
203 | local RightArm = Character["Right Arm"] | |
204 | local LeftLeg = Character["Left Leg"] | |
205 | local RightLeg = Character["Right Leg"] | |
206 | local Head = Character.Head | |
207 | local Torso = Character.Torso | |
208 | ------------------------------------------------------- | |
209 | --Start Whitelist and Invincibility-- | |
210 | ------------------------------------------------------- | |
211 | ff = Instance.new("ForceField",char) | |
212 | ff.Visible = false | |
213 | hum.Name = "Base" | |
214 | hum.MaxHealth = 1.0E298 | |
215 | hum.Health = 1.0E298 | |
216 | game:GetService("RunService"):BindToRenderStep("Bbae", 0, function() | |
217 | if hum.Health > 0.1 and hum.Health < 1.0E298 then | |
218 | hum.MaxHealth = 1.0E298 | |
219 | hum.Health = 1.0E298 | |
220 | end | |
221 | end) | |
222 | IT = Instance.new | |
223 | ------------------------------------------------------- | |
224 | --End Whitelist and Invincibility-- | |
225 | ------------------------------------------------------- | |
226 | ||
227 | ------------------------------------------------------- | |
228 | --Start Good Stuff-- | |
229 | ------------------------------------------------------- | |
230 | cam = game.Workspace.CurrentCamera | |
231 | CF = CFrame.new | |
232 | VT = Vector3.new | |
233 | angles = CFrame.Angles | |
234 | attack = false | |
235 | Euler = CFrame.fromEulerAnglesXYZ | |
236 | Rad = math.rad | |
237 | IT = Instance.new | |
238 | BrickC = BrickColor.new | |
239 | Cos = math.cos | |
240 | Acos = math.acos | |
241 | Sin = math.sin | |
242 | Asin = math.asin | |
243 | Abs = math.abs | |
244 | Mrandom = math.random | |
245 | Floor = math.floor | |
246 | cf = CFrame.new | |
247 | ------------------------------------------------------- | |
248 | --End Good Stuff-- | |
249 | ------------------------------------------------------- | |
250 | necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
251 | RSH, LSH = nil, nil | |
252 | RW = Instance.new("Weld") | |
253 | LW = Instance.new("Weld") | |
254 | RH = tors["Right Hip"] | |
255 | LH = tors["Left Hip"] | |
256 | RSH = tors["Right Shoulder"] | |
257 | LSH = tors["Left Shoulder"] | |
258 | RSH.Parent = nil | |
259 | LSH.Parent = nil | |
260 | RW.Name = "RW" | |
261 | RW.Part0 = tors | |
262 | RW.C0 = CF(1.5, 0.5, 0) | |
263 | RW.C1 = CF(0, 0.5, 0) | |
264 | RW.Part1 = ra | |
265 | RW.Parent = tors | |
266 | LW.Name = "LW" | |
267 | LW.Part0 = tors | |
268 | LW.C0 = CF(-1.5, 0.5, 0) | |
269 | LW.C1 = CF(0, 0.5, 0) | |
270 | LW.Part1 = la | |
271 | LW.Parent = tors | |
272 | Effects = {} | |
273 | ------------------------------------------------------- | |
274 | --Start HeartBeat-- | |
275 | ------------------------------------------------------- | |
276 | Player_Size = 1 --Size of the player. | |
277 | ArtificialHB = Instance.new("BindableEvent", script) | |
278 | ArtificialHB.Name = "Heartbeat" | |
279 | script:WaitForChild("Heartbeat") | |
280 | ||
281 | frame = 1 / 60 | |
282 | tf = 0 | |
283 | allowframeloss = false | |
284 | tossremainder = false | |
285 | ||
286 | ||
287 | lastframe = tick() | |
288 | script.Heartbeat:Fire() | |
289 | ||
290 | ||
291 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
292 | tf = tf + s | |
293 | if tf >= frame then | |
294 | if allowframeloss then | |
295 | script.Heartbeat:Fire() | |
296 | lastframe = tick() | |
297 | else | |
298 | for i = 1, math.floor(tf / frame) do | |
299 | script.Heartbeat:Fire() | |
300 | end | |
301 | lastframe = tick() | |
302 | end | |
303 | if tossremainder then | |
304 | tf = 0 | |
305 | else | |
306 | tf = tf - frame * math.floor(tf / frame) | |
307 | end | |
308 | end | |
309 | end) | |
310 | ||
311 | function Eviscerate(dude) | |
312 | if dude.Name ~= char then | |
313 | local bgf = IT("BodyGyro", dude.Head) | |
314 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
315 | local val = IT("BoolValue", dude) | |
316 | val.Name = "IsHit" | |
317 | local ds = coroutine.wrap(function() | |
318 | dude:WaitForChild("Head"):BreakJoints() | |
319 | wait(0.5) | |
320 | target = nil | |
321 | coroutine.resume(coroutine.create(function() | |
322 | for i, v in pairs(dude:GetChildren()) do | |
323 | if v:IsA("Accessory") then | |
324 | v:Destroy() | |
325 | end | |
326 | if v:IsA("Humanoid") then | |
327 | v:Destroy() | |
328 | end | |
329 | if v:IsA("CharacterMesh") then | |
330 | v:Destroy() | |
331 | end | |
332 | if v:IsA("Model") then | |
333 | v:Destroy() | |
334 | end | |
335 | if v:IsA("Part") or v:IsA("MeshPart") then | |
336 | for x, o in pairs(v:GetChildren()) do | |
337 | if o:IsA("Decal") then | |
338 | o:Destroy() | |
339 | end | |
340 | end | |
341 | coroutine.resume(coroutine.create(function() | |
342 | v.Material = "Neon" | |
343 | v.CanCollide = false | |
344 | local PartEmmit1 = IT("ParticleEmitter", v) | |
345 | PartEmmit1.LightEmission = 1 | |
346 | PartEmmit1.Texture = "rbxassetid://284205403" | |
347 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
348 | PartEmmit1.Rate = 150 | |
349 | PartEmmit1.Lifetime = NumberRange.new(1) | |
350 | PartEmmit1.Size = NumberSequence.new({ | |
351 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
352 | NumberSequenceKeypoint.new(1, 0, 0) | |
353 | }) | |
354 | PartEmmit1.Transparency = NumberSequence.new({ | |
355 | NumberSequenceKeypoint.new(0, 0, 0), | |
356 | NumberSequenceKeypoint.new(1, 1, 0) | |
357 | }) | |
358 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
359 | PartEmmit1.VelocitySpread = 30000 | |
360 | PartEmmit1.Rotation = NumberRange.new(-500, 500) | |
361 | PartEmmit1.RotSpeed = NumberRange.new(-500, 500) | |
362 | local BodPoss = IT("BodyPosition", v) | |
363 | BodPoss.P = 3000 | |
364 | BodPoss.D = 1000 | |
365 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
366 | BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
367 | v.Color = maincolor.Color | |
368 | coroutine.resume(coroutine.create(function() | |
369 | for i = 0, 49 do | |
370 | swait(1) | |
371 | v.Transparency = v.Transparency + 0.08 | |
372 | end | |
373 | wait(0.5) | |
374 | PartEmmit1.Enabled = false | |
375 | wait(3) | |
376 | v:Destroy() | |
377 | dude:Destroy() | |
378 | end)) | |
379 | end)) | |
380 | end | |
381 | end | |
382 | end)) | |
383 | end) | |
384 | ds() | |
385 | end | |
386 | end | |
387 | ||
388 | function Magic(bonuspeed, type, pos, scale, value, color, MType) | |
389 | local type = type | |
390 | local rng = Instance.new("Part", char) | |
391 | rng.Anchored = true | |
392 | rng.BrickColor = color | |
393 | rng.CanCollide = false | |
394 | rng.FormFactor = 3 | |
395 | rng.Name = "Ring" | |
396 | rng.Material = "Neon" | |
397 | rng.Size = Vector3.new(1, 1, 1) | |
398 | rng.Transparency = 0 | |
399 | rng.TopSurface = 0 | |
400 | rng.BottomSurface = 0 | |
401 | rng.CFrame = pos | |
402 | local rngm = Instance.new("SpecialMesh", rng) | |
403 | rngm.MeshType = MType | |
404 | rngm.Scale = scale | |
405 | local scaler2 = 1 | |
406 | if type == "Add" then | |
407 | scaler2 = 1 * value | |
408 | elseif type == "Divide" then | |
409 | scaler2 = 1 / value | |
410 | end | |
411 | coroutine.resume(coroutine.create(function() | |
412 | for i = 0, 10 / bonuspeed, 0.1 do | |
413 | swait() | |
414 | if type == "Add" then | |
415 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
416 | elseif type == "Divide" then | |
417 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
418 | end | |
419 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
420 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed) | |
421 | end | |
422 | rng:Destroy() | |
423 | end)) | |
424 | end | |
425 | ||
426 | ||
427 | function FindNearestHead(Position, Distance, SinglePlayer) | |
428 | if SinglePlayer then | |
429 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
430 | end | |
431 | local List = {} | |
432 | for i, v in pairs(workspace:GetChildren()) do | |
433 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then | |
434 | table.insert(List, v) | |
435 | end | |
436 | end | |
437 | return List | |
438 | end | |
439 | ||
440 | function CameraEnshaking(Length, Intensity) | |
441 | coroutine.resume(coroutine.create(function() | |
442 | local intensity = 1 * Intensity | |
443 | local rotM = 0.01 * Intensity | |
444 | for i = 0, Length, 0.1 do | |
445 | swait() | |
446 | intensity = intensity - 0.05 * Intensity / Length | |
447 | rotM = rotM - 5.0E-4 * Intensity / Length | |
448 | hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) | |
449 | cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM) | |
450 | end | |
451 | hum.CameraOffset = Vector3.new(0, 0, 0) | |
452 | end)) | |
453 | end | |
454 | ||
455 | function Cso(ID, PARENT, VOLUME, PITCH) | |
456 | local NSound = nil | |
457 | coroutine.resume(coroutine.create(function() | |
458 | NSound = IT("Sound", PARENT) | |
459 | NSound.Volume = VOLUME | |
460 | NSound.Pitch = PITCH | |
461 | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID | |
462 | swait() | |
463 | NSound:play() | |
464 | game:GetService("Debris"):AddItem(NSound, 10) | |
465 | end)) | |
466 | return NSound | |
467 | end | |
468 | ||
469 | function sun_is_a_deadly_laser() | |
470 | attack = true | |
471 | Magic(50, "Add", mouse.Hit * CFrame.new(0, -2.9, 20), Vector3.new(0, 0, 0), 1, maincolor, "Prism") | |
472 | Magic(10, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, maincolor, "Torso") | |
473 | Magic(1, "Add", mouse.Hit, Vector3.new(1, 100000, 20), 0.34, maincolor, "Torso") | |
474 | Magic(1, "Add", mouse.Hit, Vector3.new(1, 200, 1), 0.75, maincolor, "Torso") | |
475 | CameraEnshaking(4, 5) | |
476 | Cso("675172759", char, 10, 1) | |
477 | for i, v in pairs(FindNearestHead(mouse.Hit.p, 14.5)) do | |
478 | if v:FindFirstChild("Head") then | |
479 | Eviscerate(v) | |
480 | end | |
481 | end | |
482 | attack = false | |
483 | end | |
484 | ||
485 | function ohshitimangry() | |
486 | attack = true | |
487 | angery = true | |
488 | MoreTaunts = true | |
489 | attack = false | |
490 | end | |
491 | ||
492 | function swait(num) | |
493 | if num == 0 or num == nil then | |
494 | game:service("RunService").Stepped:wait(0) | |
495 | else | |
496 | for i = 0, num do | |
497 | game:service("RunService").Stepped:wait(0) | |
498 | end | |
499 | end | |
500 | end | |
501 | ||
502 | local sine=0 | |
503 | local change = 1 | |
504 | local Player_Size = 1 | |
505 | if Player_Size ~= 1 then | |
506 | root.Size = root.Size * Player_Size | |
507 | tors.Size = tors.Size * Player_Size | |
508 | hed.Size = hed.Size * Player_Size | |
509 | ra.Size = ra.Size * Player_Size | |
510 | la.Size = la.Size * Player_Size | |
511 | rl.Size = rl.Size * Player_Size | |
512 | ll.Size = ll.Size * Player_Size | |
513 | ---------------------------------------------------------------------------------- | |
514 | rootj.Parent = root | |
515 | neck.Parent = tors | |
516 | RW.Parent = tors | |
517 | LW.Parent = tors | |
518 | RH.Parent = tors | |
519 | LH.Parent = tors | |
520 | ---------------------------------------------------------------------------------- | |
521 | rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
522 | rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
523 | neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0)) | |
524 | neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180)) | |
525 | RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0 | |
526 | LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0 | |
527 | ---------------------------------------------------------------------------------- | |
528 | RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
529 | LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
530 | RH.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)) | |
531 | LH.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)) | |
532 | --hat.Parent = Character | |
533 | end | |
534 | ---------------------------------------------------------------------------------- | |
535 | local SONG = 183142252 | |
536 | local SONG2 = 0 | |
537 | local Music = Instance.new("Sound",tors) | |
538 | Music.Volume = 2.5 | |
539 | Music.Looped = true | |
540 | Music.Pitch = 1 --Pitcher | |
541 | ---------------------------------------------------------------------------------- | |
542 | local equipped = false | |
543 | local idle = 0 | |
544 | local change = 1 | |
545 | local val = 0 | |
546 | local toim = 0 | |
547 | local idleanim = 0.4 | |
548 | local sine = 0 | |
549 | --------------------------------------------------------------- | |
550 | function clerp(a, b, t) | |
551 | local qa = { | |
552 | QuaternionFromCFrame(a) | |
553 | } | |
554 | local qb = { | |
555 | QuaternionFromCFrame(b) | |
556 | } | |
557 | local ax, ay, az = a.x, a.y, a.z | |
558 | local bx, by, bz = b.x, b.y, b.z | |
559 | local _t = 1 - t | |
560 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
561 | end | |
562 | ||
563 | function swait(num) | |
564 | if num == 0 or num == nil then | |
565 | game:service("RunService").Stepped:wait(0) | |
566 | else | |
567 | for i = 0, num do | |
568 | game:service("RunService").Stepped:wait(0) | |
569 | end | |
570 | end | |
571 | end | |
572 | ||
573 | function QuaternionFromCFrame(cf) | |
574 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
575 | local trace = m00 + m11 + m22 | |
576 | if trace > 0 then | |
577 | local s = math.sqrt(1 + trace) | |
578 | local recip = 0.5 / s | |
579 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
580 | else | |
581 | local i = 0 | |
582 | if m00 < m11 then | |
583 | i = 1 | |
584 | end | |
585 | if m22 > (i == 0 and m00 or m11) then | |
586 | i = 2 | |
587 | end | |
588 | if i == 0 then | |
589 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
590 | local recip = 0.5 / s | |
591 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
592 | elseif i == 1 then | |
593 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
594 | local recip = 0.5 / s | |
595 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
596 | elseif i == 2 then | |
597 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
598 | local recip = 0.5 / s | |
599 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
600 | end | |
601 | end | |
602 | end | |
603 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
604 | local xs, ys, zs = x + x, y + y, z + z | |
605 | local wx, wy, wz = w * xs, w * ys, w * zs | |
606 | local xx = x * xs | |
607 | local xy = x * ys | |
608 | local xz = x * zs | |
609 | local yy = y * ys | |
610 | local yz = y * zs | |
611 | local zz = z * zs | |
612 | 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)) | |
613 | end | |
614 | ||
615 | function CreatePart2(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
616 | local NEWPART = IT("Part") | |
617 | NEWPART.formFactor = FORMFACTOR | |
618 | NEWPART.Reflectance = REFLECTANCE | |
619 | NEWPART.Transparency = TRANSPARENCY | |
620 | NEWPART.CanCollide = false | |
621 | NEWPART.Locked = true | |
622 | NEWPART.Anchored = true | |
623 | if ANCHOR == false then | |
624 | NEWPART.Anchored = false | |
625 | end | |
626 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
627 | NEWPART.Name = NAME | |
628 | NEWPART.Size = SIZE | |
629 | NEWPART.Position = Torso.Position | |
630 | NEWPART.Material = MATERIAL | |
631 | NEWPART:BreakJoints() | |
632 | NEWPART.Parent = PARENT | |
633 | return NEWPART | |
634 | end | |
635 | ||
636 | function MakeForm(PART,TYPE) | |
637 | if TYPE == "Cyl" then | |
638 | local MSH = IT("CylinderMesh",PART) | |
639 | elseif TYPE == "Ball" then | |
640 | local MSH = IT("SpecialMesh",PART) | |
641 | MSH.MeshType = "Sphere" | |
642 | elseif TYPE == "Wedge" then | |
643 | local MSH = IT("SpecialMesh",PART) | |
644 | MSH.MeshType = "Wedge" | |
645 | end | |
646 | end | |
647 | ||
648 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
649 | local NEWWELD = IT(TYPE) | |
650 | NEWWELD.Part0 = PART0 | |
651 | NEWWELD.Part1 = PART1 | |
652 | NEWWELD.C0 = C0 | |
653 | NEWWELD.C1 = C1 | |
654 | NEWWELD.Parent = PARENT | |
655 | return NEWWELD | |
656 | end | |
657 | ||
658 | local Drink = "onebearnakedwoman" | |
659 | ||
660 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
661 | ||
662 | ArtificialHB = Instance.new("BindableEvent", script) | |
663 | ArtificialHB.Name = "ArtificialHB" | |
664 | ||
665 | script:WaitForChild("ArtificialHB") | |
666 | ||
667 | frame = Frame_Speed | |
668 | tf = 0 | |
669 | allowframeloss = false | |
670 | tossremainder = false | |
671 | lastframe = tick() | |
672 | script.ArtificialHB:Fire() | |
673 | ||
674 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
675 | tf = tf + s | |
676 | if tf >= frame then | |
677 | if allowframeloss then | |
678 | script.ArtificialHB:Fire() | |
679 | lastframe = tick() | |
680 | else | |
681 | for i = 1, math.floor(tf / frame) do | |
682 | script.ArtificialHB:Fire() | |
683 | end | |
684 | lastframe = tick() | |
685 | end | |
686 | if tossremainder then | |
687 | tf = 0 | |
688 | else | |
689 | tf = tf - frame * math.floor(tf / frame) | |
690 | end | |
691 | end | |
692 | end) | |
693 | ||
694 | ||
695 | function Swait(NUMBER) | |
696 | if NUMBER == 0 or NUMBER == nil then | |
697 | ArtificialHB.Event:wait() | |
698 | else | |
699 | for i = 1, NUMBER do | |
700 | ArtificialHB.Event:wait() | |
701 | end | |
702 | end | |
703 | end | |
704 | -------------------- | |
705 | local RbxUtility = LoadLibrary("RbxUtility") | |
706 | local Create = RbxUtility.Create | |
707 | ---------------------------- | |
708 | function QuaternionSlerp(a, b, t) | |
709 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
710 | local startInterp, finishInterp | |
711 | if cosTheta >= 1.0E-4 then | |
712 | if 1 - cosTheta > 1.0E-4 then | |
713 | local theta = math.acos(cosTheta) | |
714 | local invSinTheta = 1 / Sin(theta) | |
715 | startInterp = Sin((1 - t) * theta) * invSinTheta | |
716 | finishInterp = Sin(t * theta) * invSinTheta | |
717 | else | |
718 | startInterp = 1 - t | |
719 | finishInterp = t | |
720 | end | |
721 | elseif 1 + cosTheta > 1.0E-4 then | |
722 | local theta = math.acos(-cosTheta) | |
723 | local invSinTheta = 1 / Sin(theta) | |
724 | startInterp = Sin((t - 1) * theta) * invSinTheta | |
725 | finishInterp = Sin(t * theta) * invSinTheta | |
726 | else | |
727 | startInterp = t - 1 | |
728 | finishInterp = t | |
729 | end | |
730 | 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 | |
731 | end | |
732 | --------------------------------------------------------------- | |
733 | local naeeym2 = Instance.new("BillboardGui",char) | |
734 | naeeym2.AlwaysOnTop = true | |
735 | naeeym2.Size = UDim2.new(5,35,2,35) | |
736 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
737 | naeeym2.Adornee = hed | |
738 | naeeym2.Name = "Name" | |
739 | ||
740 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
741 | tecks2.BackgroundTransparency = 1 | |
742 | tecks2.TextScaled = true | |
743 | tecks2.BorderSizePixel = 0 | |
744 | tecks2.Text = "" | |
745 | tecks2.Font = "Antique" | |
746 | tecks2.TextSize = 30 | |
747 | tecks2.TextStrokeTransparency = 0 | |
748 | tecks2.TextColor3 = BrickColor.new('Persimmon').Color | |
749 | tecks2.TextStrokeColor3 = BrickColor.new('Dark indigo').Color | |
750 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
751 | tecks2.Parent = naeeym2 | |
752 | - | textfag = tecks2 |
752 | + | |
753 | - | tecks2.Text = "..." |
753 | + | |
754 | - | wait(2) |
754 | + | |
755 | - | tecks2.Text = "Edit by IMAPUG3." |
755 | + | |
756 | - | wait(1) |
756 | + | |
757 | textfag.Rotation = math.random(-50,30) | |
758 | end | |
759 | end)) | |
760 | ------------------------------------------ | |
761 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
762 | local NEWWELD = IT(TYPE) | |
763 | NEWWELD.Part0 = PART0 | |
764 | NEWWELD.Part1 = PART1 | |
765 | NEWWELD.C0 = C0 | |
766 | NEWWELD.C1 = C1 | |
767 | NEWWELD.Parent = PARENT | |
768 | return NEWWELD | |
769 | end | |
770 | ||
771 | function MakeForm(PART,TYPE) | |
772 | if TYPE == "Cyl" then | |
773 | local MSH = IT("CylinderMesh",PART) | |
774 | elseif TYPE == "Ball" then | |
775 | local MSH = IT("SpecialMesh",PART) | |
776 | MSH.MeshType = "Sphere" | |
777 | elseif TYPE == "Wedge" then | |
778 | local MSH = IT("SpecialMesh",PART) | |
779 | MSH.MeshType = "Wedge" | |
780 | end | |
781 | end | |
782 | -------------------------- | |
783 | IT = Instance.new | |
784 | CF = CFrame.new | |
785 | VT = Vector3.new | |
786 | RAD = math.rad | |
787 | C3 = Color3.new | |
788 | UD2 = UDim2.new | |
789 | BRICKC = BrickColor.new | |
790 | ANGLES = CFrame.Angles | |
791 | EULER = CFrame.fromEulerAnglesXYZ | |
792 | COS = math.cos | |
793 | ACOS = math.acos | |
794 | SIN = math.sin | |
795 | ASIN = math.asin | |
796 | ABS = math.abs | |
797 | MRANDOM = math.random | |
798 | FLOOR = math.floor | |
799 | ------------------- | |
800 | local Weapon = IT("Model") | |
801 | ------------------------------------ | |
802 | local function weldBetween(a, b) | |
803 | local weldd = Instance.new("ManualWeld") | |
804 | - | -------------------------------------------------------- |
804 | + | |
805 | - | shirt = Instance.new("Shirt", char) |
805 | + | |
806 | - | shirt.Name = "Shirt" |
806 | + | |
807 | - | pants = Instance.new("Pants", char) |
807 | + | |
808 | - | pants.Name = "Pants" |
808 | + | |
809 | - | char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=192192797" |
809 | + | |
810 | - | char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=192193028" |
810 | + | |
811 | - | local BC = char["Body Colors"] |
811 | + | |
812 | - | BC.HeadColor = BrickColor.new("White") |
812 | + | |
813 | - | BC.LeftArmColor = BrickColor.new("Really black") |
813 | + | |
814 | - | BC.LeftLegColor = BrickColor.new("Really black") |
814 | + | |
815 | - | BC.RightArmColor = BrickColor.new("Really black") |
815 | + | |
816 | - | BC.RightLegColor = BrickColor.new("Really black") |
816 | + | |
817 | - | BC.TorsoColor = BrickColor.new("White") |
817 | + | |
818 | particle.Parent = art | |
819 | particle.Acceleration = accel | |
820 | if type == "Fire" then | |
821 | local EyeSizes={ | |
822 | NumberSequenceKeypoint.new(0,size,size/2), | |
823 | NumberSequenceKeypoint.new(1,size/4,size/8) | |
824 | } | |
825 | particle.Size = NumberSequence.new(EyeSizes) | |
826 | elseif type == "Smoke" then | |
827 | local EyeSizes={ | |
828 | NumberSequenceKeypoint.new(0,0.5,0), | |
829 | NumberSequenceKeypoint.new(1,5,0.5) | |
830 | } | |
831 | particle.Size = NumberSequence.new(EyeSizes) | |
832 | elseif type == "Solid" then | |
833 | local EyeSizes={ | |
834 | NumberSequenceKeypoint.new(0,0.5,0), | |
835 | NumberSequenceKeypoint.new(1,0.5,0) | |
836 | } | |
837 | particle.Size = NumberSequence.new(EyeSizes) | |
838 | end | |
839 | particle.Lifetime=NumberRange.new(lifetime) | |
840 | particle.Drag = drag | |
841 | if locked == true then | |
842 | particle.LockedToPart = true | |
843 | end | |
844 | particle.Speed = NumberRange.new(speed,speed,speed) | |
845 | particle.Texture = "http://www.roblox.com/asset/?id=296874871" | |
846 | particle.Enabled = isenabledbydefault | |
847 | particle.Color = ColorSequence.new(Color3.new(255/255, 176/255, 0)) | |
848 | end)) | |
849 | return particle | |
850 | end | |
851 | ------------------------- | |
852 | for i = 1, 15 do | |
853 | local FACE = CreatePart2(3, Character, "Fabric", 0, 0+(i-1)/15.2, "Dark stone grey", "FaceGradient", VT(1.01,0.58,1.01),false) | |
854 | FACE.Color = C3(0,0,0) | |
855 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE | |
856 | CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/35,0), CF(0, 0, 0)) | |
857 | end | |
858 | --------------------------------------------------------------- | |
859 | BTAUNT = Instance.new("Sound", tors) | |
860 | BTAUNT.SoundId = "http://www.roblox.com/asset/?id=1625448638" | |
861 | BTAUNT.Volume = 10 | |
862 | BTAUNT.Pitch = 1 | |
863 | BTAUNT.Looped = false | |
864 | BTAUNT.TimePosition = 0.2 | |
865 | ------------------------------------------- | |
866 | Animation_Speed = 3 | |
867 | ----------------------------------- | |
868 | function Taunt() | |
869 | attack = true | |
870 | hum.WalkSpeed = 0 | |
871 | BTAUNT:Play() | |
872 | repeat | |
873 | swait() | |
874 | BTAUNT.Parent = tors | |
875 | rootj.C0 = clerp(rootj.C0,RootCF * CF(0, 0, -0.03 + 0.05 * Cos(sine / 12)) * angles(Rad(0), Rad(0), Rad(-35)), 0.1) | |
876 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1) - 1)) * angles(Rad(15 - 2.5 * Sin(sine / 12)), Rad(0), Rad(35)), 0.1) | |
877 | RW.C0 = clerp(RW.C0, CF(0.75, 0.5 + 0.05 * Sin(sine / 12), -0.7) * angles(Rad(0), Rad(0), Rad(-95)) * angles(Rad(5), Rad(0), Rad(0)), 0.1) | |
878 | LW.C0 = clerp(LW.C0, CF(-1.3, 0.5 + 0.05 * Sin(sine / 12), -0.3) * angles(Rad(90), Rad(0), Rad(-35)), 0.1) | |
879 | RH.C0 = clerp(RH.C0, CF(1, -1 - 0.05 * Cos(sine / 12), 0) * angles(Rad(0), Rad(95), Rad(0)) * angles(Rad(-15), Rad(0), Rad(0)), 0.1) | |
880 | LH.C0 = clerp(LH.C0, CF(-1, -1 - 0.05 * Cos(sine / 12), 0) * angles(Rad(0), Rad(-55), Rad(0)) * angles(Rad(-12), Rad(0), Rad(0)), 0.1) | |
881 | until BTAUNT.Playing == false | |
882 | attack = false | |
883 | hum.WalkSpeed = 30 | |
884 | end | |
885 | function welp() | |
886 | attack = true | |
887 | SONG = 904882921 | |
888 | attack = false | |
889 | end | |
890 | function welp2() | |
891 | attack = true | |
892 | SONG = 919270364 | |
893 | attack = false | |
894 | end | |
895 | function welp3() | |
896 | attack = true | |
897 | SONG = 1829136614 | |
898 | attack = false | |
899 | end | |
900 | ------------------------------------------- | |
901 | MoreTaunts = false | |
902 | ||
903 | mouse.Button1Down:connect(function(key) | |
904 | if attack == false then | |
905 | sun_is_a_deadly_laser() | |
906 | end | |
907 | end) | |
908 | mouse.KeyDown:connect(function(key) | |
909 | if attack == false then | |
910 | if key == "t" then | |
911 | Taunt() | |
912 | elseif key == "z" then | |
913 | welp() | |
914 | elseif key == "x" then | |
915 | welp2() | |
916 | elseif key == "c" then | |
917 | welp3() | |
918 | end | |
919 | end | |
920 | end) | |
921 | ||
922 | ||
923 | function rayCast(Position, Direction, Range, Ignore) | |
924 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
925 | end | |
926 | ||
927 | local GodMode = {} | |
928 | ||
929 | for _, c in pairs(Character:GetDescendants()) do | |
930 | if c:IsA("BasePart") and c.Name ~= "Handle" then | |
931 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
932 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
933 | end | |
934 | table.insert(GodMode,{c,c.Parent,c.Material,c.Transparency}) | |
935 | elseif c:IsA("JointInstance") then | |
936 | table.insert(GodMode,{c,c.Parent,nil,nil,nil}) | |
937 | end | |
938 | end | |
939 | ||
940 | for e = 1, #GodMode do | |
941 | if GodMode[e] ~= nil then | |
942 | local STUFF = GodMode[e] | |
943 | local PART = STUFF[1] | |
944 | local PARENT = STUFF[2] | |
945 | local MATERIAL = STUFF[3] | |
946 | local COLOR = STUFF[4] | |
947 | local TRANSPARENCY = STUFF[5] | |
948 | if PART.ClassName == "Part" and PART ~= RootPart then | |
949 | PART.Material = MATERIAL | |
950 | ||
951 | PART.Transparency = TRANSPARENCY | |
952 | end | |
953 | PART.AncestryChanged:Connect(function() | |
954 | PART.Parent = PARENT | |
955 | end) | |
956 | end | |
957 | end | |
958 | ||
959 | function RestoreAllBodyParts() | |
960 | Character.Parent = workspace | |
961 | for e = 1, #GodMode do | |
962 | if GodMode[e] ~= nil then | |
963 | local STUFF = GodMode[e] | |
964 | local PART = STUFF[1] | |
965 | local PARENT = STUFF[2] | |
966 | local MATERIAL = STUFF[3] | |
967 | local TRANSPARENCY = STUFF[5] | |
968 | if PART.ClassName == "Part" and PART ~= RootPart then | |
969 | PART.Material = MATERIAL | |
970 | --- Restore() | |
971 | --- Also Regen All Effects | |
972 | --- Get full script Regen | |
973 | --- Procceed with Restore function | |
974 | PART.Transparency = TRANSPARENCY | |
975 | end | |
976 | if PART.Parent ~= PARENT then | |
977 | Humanoid:remove() | |
978 | Humanoid:restore() | |
979 | PART.Parent = PARENT | |
980 | PART.Parent:restore() | |
981 | Humanoid = IT("Humanoid",Character) | |
982 | end | |
983 | end | |
984 | end | |
985 | end | |
986 | ||
987 | ||
988 | function AntiDeath() | |
989 | Character.Parent = workspace | |
990 | for e = 1, #GodMode do | |
991 | if GodMode[e] ~= nil then | |
992 | local STUFF = GodMode[e] | |
993 | local PART = STUFF[1] | |
994 | local PARENT = STUFF[2] | |
995 | local MATERIAL = STUFF[3] | |
996 | local COLOR = STUFF[4] | |
997 | local TRANSPARENCY = STUFF[5] | |
998 | if PART.ClassName == "Part" and PART ~= RootPart then | |
999 | PART.Material = MATERIAL | |
1000 | ||
1001 | PART.Transparency = TRANSPARENCY | |
1002 | end | |
1003 | if PART.Parent ~= PARENT then | |
1004 | Humanoid:remove() | |
1005 | PART.Parent = PARENT | |
1006 | Humanoid = IT("Humanoid",Character) | |
1007 | end | |
1008 | end | |
1009 | end | |
1010 | end | |
1011 | ||
1012 | ||
1013 | Humanoid.Died:connect(function() | |
1014 | AntiDeath() | |
1015 | RestoreAllBodyParts() | |
1016 | Humanoid.MaxHealth = 1e9999 | |
1017 | Humanoid.Health = 1e9999 | |
1018 | end) | |
1019 | ||
1020 | ------------------------------------------------------- | |
1021 | --Start Animations-- | |
1022 | ------------------------------------------------------- | |
1023 | local equipped = false | |
1024 | local idle = 0 | |
1025 | local change = 1 | |
1026 | local val = 0 | |
1027 | local toim = 0 | |
1028 | local idleanim = 0.4 | |
1029 | hum.Animator.Parent = nil | |
1030 | while true do | |
1031 | swait() | |
1032 | AntiDeath() | |
1033 | RestoreAllBodyParts() | |
1034 | sine = sine + change | |
1035 | Music.Parent = char | |
1036 | local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1037 | local velderp = root.Velocity.y | |
1038 | hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char) | |
1039 | if equipped == true or equipped == false then | |
1040 | if attack == false then | |
1041 | idle = idle + 1 | |
1042 | else | |
1043 | idle = 0 | |
1044 | end | |
1045 | if 1 < root.Velocity.y and hitfloor == nil then | |
1046 | Anim = "Jump" | |
1047 | if attack == false then | |
1048 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15) | |
1049 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
1050 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1051 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1052 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1) | |
1053 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1) | |
1054 | end | |
1055 | elseif -1 > root.Velocity.y and hitfloor == nil then | |
1056 | Anim = "Fall" | |
1057 | if attack == false then | |
1058 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.15) | |
1059 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
1060 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15) | |
1061 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15) | |
1062 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1) | |
1063 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1) | |
1064 | end | |
1065 | elseif torvel < 1 and hitfloor ~= nil then | |
1066 | Anim = "Idle" | |
1067 | change = 1 | |
1068 | if attack == false then | |
1069 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-7 - 2 * math.cos(sine / 32))),.2) | |
1070 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(30 - 1 * math.cos(sine / 56)),math.rad(5 + 2 * math.cos(sine / 32))),.2) | |
1071 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.01 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-56)),.2) | |
1072 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(10 + 2 * math.cos(sine / 58)),math.rad(45)),.2) | |
1073 | RW.C0=clerp(RW.C0,cf(1.2,1.25 + 0.025 * math.cos(sine / 45),-0.2)*angles(math.rad(148 + 3 * math.cos(sine / 53)),math.rad(0 - 4 * math.cos(sine / 60)),math.rad(-35 + 4 * math.cos(sine / 45))),.2) | |
1074 | LW.C0=clerp(LW.C0,cf(-1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(81 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.2) | |
1075 | end | |
1076 | elseif tors.Velocity.magnitude < 50 and hitfloor ~= nil then | |
1077 | Anim = "Walk" | |
1078 | change = 1 | |
1079 | if attack == false then | |
1080 | RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1) | |
1081 | LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1) | |
1082 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 - 0.05 * math.cos(sine / 4))*angles(math.rad(5 + 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1) | |
1083 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 5 * math.cos(sine / 8))),.1) | |
1084 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 50 * math.cos(sine / 8)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 4))),.1) | |
1085 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 50 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 4))),.1) | |
1086 | end | |
1087 | end | |
1088 | end | |
1089 | Music.SoundId = "rbxassetid://1182934124" | |
1090 | Music.Looped = true | |
1091 | Music.Pitch = 1 | |
1092 | Music.Volume = 3 | |
1093 | Music.Parent = tors | |
1094 | Music:Resume() | |
1095 | if 0 < #Effects then | |
1096 | for e = 1, #Effects do | |
1097 | if Effects[e] ~= nil then | |
1098 | local Thing = Effects[e] | |
1099 | if Thing ~= nil then | |
1100 | local Part = Thing[1] | |
1101 | local Mode = Thing[2] | |
1102 | local Delay = Thing[3] | |
1103 | local IncX = Thing[4] | |
1104 | local IncY = Thing[5] | |
1105 | local IncZ = Thing[6] | |
1106 | if 1 >= Thing[1].Transparency then | |
1107 | if Thing[2] == "Block1" then | |
1108 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1109 | local Mesh = Thing[1].Mesh | |
1110 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1111 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1112 | elseif Thing[2] == "Block2" then | |
1113 | Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0) | |
1114 | local Mesh = Thing[7] | |
1115 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1116 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1117 | elseif Thing[2] == "Block3" then | |
1118 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0) | |
1119 | local Mesh = Thing[7] | |
1120 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1121 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1122 | elseif Thing[2] == "Cylinder" then | |
1123 | local Mesh = Thing[1].Mesh | |
1124 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1125 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1126 | elseif Thing[2] == "Blood" then | |
1127 | local Mesh = Thing[7] | |
1128 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
1129 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1130 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1131 | elseif Thing[2] == "Elec" then | |
1132 | local Mesh = Thing[1].Mesh | |
1133 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
1134 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1135 | elseif Thing[2] == "Disappear" then | |
1136 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1137 | elseif Thing[2] == "Shatter" then | |
1138 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1139 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
1140 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
1141 | Thing[6] = Thing[6] + Thing[5] | |
1142 | end | |
1143 | else | |
1144 | Part.Parent = nil | |
1145 | table.remove(Effects, e) | |
1146 | end | |
1147 | end | |
1148 | end | |
1149 | end | |
1150 | end | |
1151 | AntiDeath() | |
1152 | RestoreAllBodyParts() | |
1153 | end | |
1154 | ------------------------------------------------------- | |
1155 | --End Animations And Script-- | |
1156 | ------------------------------------------------------- |