SHOW:
|
|
- or go back to the newest paste.
1 | - | ------------------- |
1 | + | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end |
2 | - | --Brutal Overlord-- |
2 | + | local Player,game,owner = owner,game |
3 | - | --------------------------------- |
3 | + | local RealPlayer = Player |
4 | - | --By CKbackup (Sugarie Saffron)-- |
4 | + | do |
5 | - | --------------------------------- |
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(),Button2Up=fakeEvent(),Button2Down=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 | if io.UserInputType == Enum.UserInputType.MouseButton2 then | |
51 | return m:TrigEvent(b and "Button2Down" or "Button2Up") | |
52 | end | |
53 | for _,t in pairs(CAS.Actions) do | |
54 | for _,k in pairs(t.Keys) do | |
55 | if k==io.KeyCode then | |
56 | t.Function(t.Name,io.UserInputState,io) | |
57 | end | |
58 | end | |
59 | end | |
60 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
61 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
62 | end | |
63 | end) | |
64 | Event.Parent = NLS([==[ | |
65 | local Player = game:GetService("Players").LocalPlayer | |
66 | local Event = script:WaitForChild("UserInput_Event") | |
67 | local Mouse = Player:GetMouse() | |
68 | local UIS = game:GetService("UserInputService") | |
69 | local input = function(io,a) | |
70 | if a then return end | |
71 | --Since InputObject is a client-side instance, we create and pass table instead | |
72 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
73 | end | |
74 | UIS.InputBegan:Connect(input) | |
75 | UIS.InputEnded:Connect(input) | |
76 | local h,t | |
77 | --Give the server mouse data 30 times every second, but only if the values changed | |
78 | --If player is not moving their mouse, client won't fire events | |
79 | while wait(1/30) do | |
80 | if h~=Mouse.Hit or t~=Mouse.Target then | |
81 | h,t=Mouse.Hit,Mouse.Target | |
82 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
83 | end | |
84 | end]==],Player.Character) | |
85 | ||
86 | ----Sandboxed game object that allows the usage of client-side methods and services | |
87 | --Real game object | |
88 | local _rg = game | |
89 | ||
90 | --Metatable for fake service | |
91 | local fsmt = { | |
92 | __index = function(self,k) | |
93 | local s = rawget(self,"_RealService") | |
94 | if s then | |
95 | return typeof(s[k])=="function" | |
96 | and function(_,...)return s[k](s,...)end or s[k] | |
97 | end | |
98 | end, | |
99 | __newindex = function(self,k,v) | |
100 | local s = rawget(self,"_RealService") | |
101 | if s then s[k]=v 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 rawget(self,s) or _rg:GetService(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 | RunService = FakeService({ | |
120 | _btrs = {}, | |
121 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
122 | BindToRenderStep = function(self,name,_,fun) | |
123 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
124 | end, | |
125 | UnbindFromRenderStep = function(self,name) | |
126 | self._btrs[name]:Disconnect() | |
127 | end, | |
128 | },"RunService") | |
129 | } | |
130 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
131 | g.service = g.GetService | |
132 | FakeService(g,game) | |
133 | --Changing owner to fake player object to support owner:GetMouse() | |
134 | game,owner = g,g.Players.LocalPlayer | |
135 | end | |
136 | ||
137 | wait(1/60) | |
138 | Effects = { } | |
139 | local Player = game:service'Players'.localPlayer | |
140 | local chara = Player.Character | |
141 | local Humanoid = chara:FindFirstChildOfClass("Humanoid") | |
142 | local Mouse = Player:GetMouse() | |
143 | local LeftArm = chara["Left Arm"] | |
144 | local RightArm = chara["Right Arm"] | |
145 | local LeftLeg = chara["Left Leg"] | |
146 | local RightLeg = chara["Right Leg"] | |
147 | local Head = chara.Head | |
148 | local Torso = chara.Torso | |
149 | local RootPart = chara.HumanoidRootPart | |
150 | local RootJoint = RootPart.RootJoint | |
151 | local attack = false | |
152 | local Anim = 'Idle' | |
153 | local attacktype = 1 | |
154 | local delays = false | |
155 | local play = true | |
156 | local targetted = nil | |
157 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
158 | local velocity = RootPart.Velocity.y | |
159 | local sine = 0 | |
160 | local change = 1 | |
161 | local doe = 0 | |
162 | local heddo = nil | |
163 | local grabhead = false | |
164 | local armo = nil | |
165 | local grabhand = false | |
166 | local Create = LoadLibrary("RbxUtility").Create | |
167 | Humanoid.WalkSpeed = 8 | |
168 | ||
169 | ||
170 | ||
171 | Humanoid.Animator.Parent = nil | |
172 | chara.Animate.Parent = nil | |
173 | ||
174 | local newMotor = function(part0, part1, c0, c1) | |
175 | local w = Create('Motor'){ | |
176 | Parent = part0, | |
177 | Part0 = part0, | |
178 | Part1 = part1, | |
179 | C0 = c0, | |
180 | C1 = c1, | |
181 | } | |
182 | return w | |
183 | end | |
184 | ||
185 | function clerp(a, b, t) | |
186 | return a:lerp(b, t) | |
187 | end | |
188 | ||
189 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
190 | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
191 | ||
192 | local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
193 | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
194 | local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0)) | |
195 | local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0)) | |
196 | RootJoint.C1 = CFrame.new(0, 0, 0) | |
197 | RootJoint.C0 = CFrame.new(0, 0, 0) | |
198 | Torso.Neck.C1 = CFrame.new(0, 0, 0) | |
199 | Torso.Neck.C0 = CFrame.new(0, 1.5, 0) | |
200 | ||
201 | ||
202 | local rarmc1 = RW.C1 | |
203 | local larmc1 = LW.C1 | |
204 | local rlegc1 = RH.C1 | |
205 | local llegc1 = LH.C1 | |
206 | ||
207 | local resetc1 = false | |
208 | ||
209 | function PlayAnimationFromTable(table, speed, bool) | |
210 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
211 | Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) | |
212 | RW.C0 = clerp(RW.C0, table[3], speed) | |
213 | LW.C0 = clerp(LW.C0, table[4], speed) | |
214 | RH.C0 = clerp(RH.C0, table[5], speed) | |
215 | LH.C0 = clerp(LH.C0, table[6], speed) | |
216 | if bool == true then | |
217 | if resetc1 == false then | |
218 | resetc1 = true | |
219 | RootJoint.C1 = RootJoint.C1 | |
220 | Torso.Neck.C1 = Torso.Neck.C1 | |
221 | RW.C1 = rarmc1 | |
222 | LW.C1 = larmc1 | |
223 | RH.C1 = rlegc1 | |
224 | LH.C1 = llegc1 | |
225 | end | |
226 | end | |
227 | end | |
228 | ||
229 | ||
230 | ArtificialHB = Instance.new("BindableEvent", script) | |
231 | ArtificialHB.Name = "Heartbeat" | |
232 | script:WaitForChild("Heartbeat") | |
233 | frame = 0.03333333333333 | |
234 | tf = 0 | |
235 | allowframeloss = false | |
236 | tossremainder = false | |
237 | lastframe = tick() | |
238 | script.Heartbeat:Fire() | |
239 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
240 | tf = tf + s | |
241 | if tf >= frame then | |
242 | if allowframeloss then | |
243 | script.Heartbeat:Fire() | |
244 | lastframe = tick() | |
245 | else | |
246 | for i = 1, math.floor(tf / frame) do | |
247 | script.Heartbeat:Fire() | |
248 | end | |
249 | lastframe = tick() | |
250 | end | |
251 | if tossremainder then | |
252 | tf = 0 | |
253 | else | |
254 | tf = tf - frame * math.floor(tf / frame) | |
255 | end | |
256 | end | |
257 | end) | |
258 | function swait(num) | |
259 | if num == 0 or num == nil then | |
260 | ArtificialHB.Event:wait() | |
261 | else | |
262 | for i = 0, num do | |
263 | ArtificialHB.Event:wait() | |
264 | end | |
265 | end | |
266 | end | |
267 | ||
268 | function RemoveOutlines(part) | |
269 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
270 | end | |
271 | ||
272 | ||
273 | CFuncs = { | |
274 | ["Part"] = { | |
275 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
276 | local Part = Create("Part"){ | |
277 | Parent = Parent, | |
278 | Reflectance = Reflectance, | |
279 | Transparency = Transparency, | |
280 | CanCollide = false, | |
281 | Locked = true, | |
282 | BrickColor = BrickColor.new(tostring(BColor)), | |
283 | Name = Name, | |
284 | Size = Size, | |
285 | Material = Material, | |
286 | } | |
287 | RemoveOutlines(Part) | |
288 | return Part | |
289 | end; | |
290 | }; | |
291 | ||
292 | ["Mesh"] = { | |
293 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
294 | local Msh = Create(Mesh){ | |
295 | Parent = Part, | |
296 | Offset = OffSet, | |
297 | Scale = Scale, | |
298 | } | |
299 | if Mesh == "SpecialMesh" then | |
300 | Msh.MeshType = MeshType | |
301 | Msh.MeshId = MeshId | |
302 | end | |
303 | return Msh | |
304 | end; | |
305 | }; | |
306 | ||
307 | ["Mesh"] = { | |
308 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
309 | local Msh = Create(Mesh){ | |
310 | Parent = Part, | |
311 | Offset = OffSet, | |
312 | Scale = Scale, | |
313 | } | |
314 | if Mesh == "SpecialMesh" then | |
315 | Msh.MeshType = MeshType | |
316 | Msh.MeshId = MeshId | |
317 | end | |
318 | return Msh | |
319 | end; | |
320 | }; | |
321 | ||
322 | ["Weld"] = { | |
323 | Create = function(Parent, Part0, Part1, C0, C1) | |
324 | local Weld = Create("Weld"){ | |
325 | Parent = Parent, | |
326 | Part0 = Part0, | |
327 | Part1 = Part1, | |
328 | C0 = C0, | |
329 | C1 = C1, | |
330 | } | |
331 | return Weld | |
332 | end; | |
333 | }; | |
334 | ||
335 | ["ParticleEmitter"] = { | |
336 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
337 | local fp = Create("ParticleEmitter"){ | |
338 | Parent = Parent, | |
339 | Color = ColorSequence.new(Color1, Color2), | |
340 | LightEmission = LightEmission, | |
341 | Size = Size, | |
342 | Texture = Texture, | |
343 | Transparency = Transparency, | |
344 | ZOffset = ZOffset, | |
345 | Acceleration = Accel, | |
346 | Drag = Drag, | |
347 | LockedToPart = LockedToPart, | |
348 | VelocityInheritance = VelocityInheritance, | |
349 | EmissionDirection = EmissionDirection, | |
350 | Enabled = Enabled, | |
351 | Lifetime = LifeTime, | |
352 | Rate = Rate, | |
353 | Rotation = Rotation, | |
354 | RotSpeed = RotSpeed, | |
355 | Speed = Speed, | |
356 | VelocitySpread = VelocitySpread, | |
357 | } | |
358 | return fp | |
359 | end; | |
360 | }; | |
361 | ||
362 | CreateTemplate = { | |
363 | ||
364 | }; | |
365 | } | |
366 | ||
367 | ||
368 | function so(id,par,pit,vol) | |
369 | local sou = Instance.new("Sound", par or workspace) | |
370 | if par == chara then | |
371 | sou.Parent = chara.Torso | |
372 | end | |
373 | sou.Volume = vol | |
374 | sou.Pitch = pit or 1 | |
375 | sou.SoundId = "rbxassetid://" .. id | |
376 | sou.PlayOnRemove = true | |
377 | sou:Destroy() | |
378 | end | |
379 | ||
380 | New = function(Object, Parent, Name, Data) | |
381 | local Object = Instance.new(Object) | |
382 | for Index, Value in pairs(Data or {}) do | |
383 | Object[Index] = Value | |
384 | end | |
385 | Object.Parent = Parent | |
386 | Object.Name = Name | |
387 | return Object | |
388 | end | |
389 | ||
390 | function createrainbow(part,size,trans,life,face,speed,accel,velsp,lock,name) | |
391 | local fira = Instance.new("ParticleEmitter",part) | |
392 | fira.Name = name | |
393 | fira.Color = ColorSequence.new(Color3.new(0,0,0)) | |
394 | fira.Size = size | |
395 | fira.Texture = "rbxasset://textures/particles/fire_main.dds" | |
396 | fira.Transparency = trans | |
397 | fira.Lifetime = life | |
398 | fira.EmissionDirection = face | |
399 | fira.Rate = 10000 | |
400 | fira.RotSpeed = NumberRange.new(100) | |
401 | fira.Rotation = NumberRange.new(0,360) | |
402 | fira.Speed = speed | |
403 | fira.VelocitySpread = velsp | |
404 | fira.Acceleration = accel | |
405 | fira.LockedToPart = lock | |
406 | return fira | |
407 | end | |
408 | ||
409 | Wings = New("Model",chara,"Wings",{}) | |
410 | MainPart = New("Part",Wings,"MainPart",{Transparency = 1,Transparency = 1,Size = Vector3.new(2, 2, 1),CFrame = CFrame.new(67.400032, 1.00001299, -47.2999992, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
411 | Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = Torso,}) | |
412 | Wing1Part = New("Part",Wings,"Wing1Part",{Transparency = 1,CanCollide=true,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(68.2041626, 2.02130413, -46.7787056, 0.866025448, 0.35355404, 0.35355413, -0.353553772, 0.933016062, -0.0669873655, -0.353553891, -0.0669873059, 0.933015943),}) | |
413 | createrainbow(Wing1Part,NumberSequence.new(.5,1),NumberSequence.new(0),NumberRange.new(1),"Back",NumberRange.new(5),Vector3.new(0,10,0),0,true,"Firea") | |
414 | Weld = New("ManualWeld",Wing1Part,"Weld",{Part0 = Wing1Part,Part1 = MainPart,C0 = CFrame.new(0, 0, 0, 0.866025448, -0.353553772, -0.353553891, 0.35355404, 0.933016062, -0.0669873059, 0.35355413, -0.0669873655, 0.933015943),C1 = CFrame.new(0.804130554, 1.02129114, 0.52129364, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
415 | Wing2Part = New("Part",Wings,"Wing2Part",{Transparency = 1,CanCollide=true,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(70.4018326, 6.17824459, -42.6217613, 0.866025448, -0.433013618, 0.250000477, 0.353553772, 0.176777452, -0.918561935, 0.353553891, 0.883886695, 0.306187093),}) | |
416 | createrainbow(Wing2Part,NumberSequence.new(1,0),NumberSequence.new(0),NumberRange.new(1.5),"Back",NumberRange.new(10),Vector3.new(0,10,0),0,true,"Firea") | |
417 | Weld = New("ManualWeld",Wing2Part,"Weld",{Part0 = Wing2Part,Part1 = MainPart,C0 = CFrame.new(0, 0, 0, 0.866025448, 0.353553772, 0.353553891, -0.433013618, 0.176777452, 0.883886695, 0.250000477, -0.918561935, 0.306187093),C1 = CFrame.new(3.00180054, 5.17823172, 4.67823792, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
418 | Wing2Part = New("Part",Wings,"Wing2Part",{Transparency = 1,CanCollide=true,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(70.4018326, 6.17824459, -42.6217613, 0.866025448, -0.482963979, 0.12940979, 0.353553772, 0.408495188, -0.841509461, 0.353553891, 0.774522126, 0.524520695),}) | |
419 | createrainbow(Wing2Part,NumberSequence.new(1,0),NumberSequence.new(0),NumberRange.new(1.5),"Back",NumberRange.new(10),Vector3.new(0,10,0),0,true,"Firea") | |
420 | Weld = New("ManualWeld",Wing2Part,"Weld",{Part0 = Wing2Part,Part1 = MainPart,C0 = CFrame.new(0, 0, 0, 0.866025448, 0.353553772, 0.353553891, -0.482963979, 0.408495188, 0.774522126, 0.12940979, -0.841509461, 0.524520695),C1 = CFrame.new(3.00180054, 5.17823172, 4.67823792, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
421 | Wing2Part = New("Part",Wings,"Wing2Part",{Transparency = 1,CanCollide=true,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(70.4018326, 6.17824459, -42.6217613, 0.866025448, -0.500001192, 3.06954462e-12, 0.353553772, 0.612374902, -0.707109571, 0.353553891, 0.61237514, 0.707109332),}) | |
422 | createrainbow(Wing2Part,NumberSequence.new(1,0),NumberSequence.new(0),NumberRange.new(1.5),"Back",NumberRange.new(10),Vector3.new(0,10,0),0,true,"Firea") | |
423 | Weld = New("ManualWeld",Wing2Part,"Weld",{Part0 = Wing2Part,Part1 = MainPart,C0 = CFrame.new(0, 0, 0, 0.866025448, 0.353553772, 0.353553891, -0.500001192, 0.612374902, 0.61237514, 3.06954462e-12, -0.707109571, 0.707109332),C1 = CFrame.new(3.00180054, 5.17823172, 4.67823792, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
424 | ||
425 | Halo = New("Model",chara,"Halo",{}) | |
426 | AHaloPart = New("Part",Halo,"AHaloPart",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-18.7999973, 5.50001764, -16.4999981, 1.00000644, 0, 1.25170106e-06, 0, 1, 0, 1.22189874e-06, 0, 1.00000715),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
427 | HaWeld = New("ManualWeld",AHaloPart,"HaWeld",{Part0 = AHaloPart,Part1 = Head,C0 = CFrame.new(0, 0, 0, 1.00000644, 0, 1.22189874e-06, 0, 1, 0, 1.25170106e-06, 0, 1.00000715),C1 = CFrame.new(-1.90734863e-06, 1.00000906, 1.33514404e-05, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
428 | HaPart = New("Part",Halo,"HaPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.200000003, 0.200000003),CFrame = CFrame.new(-18.1071625, 5.50001764, -16.0999889, 0.500003397, 0, 0.866038799, 0, 1, 0, -0.866037428, 0, 0.500008583),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
429 | Weld = New("ManualWeld",HaPart,"Weld",{Part0 = HaPart,Part1 = AHaloPart,C0 = CFrame.new(0, 0, 0, 0.499999106, 0, -0.866026282, 0, 1, 0, 0.866026342, 0, 0.499999285),C1 = CFrame.new(0.692829132, 0, 0.400005341, 1.00000644, 0, 1.22189874e-06, 0, 1, 0, 1.25170106e-06, 0, 1.00000715),}) | |
430 | HaPart = New("Part",Halo,"HaPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.200000003, 0.200000003),CFrame = CFrame.new(-18.285759, 5.50001764, -15.8871527, 0.76605016, 0, 0.642795265, 0, 1, 0, -0.642793238, 0, 0.766053021),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
431 | Weld = New("ManualWeld",HaPart,"Weld",{Part0 = HaPart,Part1 = AHaloPart,C0 = CFrame.new(0, 0, 0, 0.766044378, 0, -0.642788231, 0, 1, 0, 0.642788351, 0, 0.766044497),C1 = CFrame.new(0.514234543, 0, 0.612840652, 1.00000238, 0, 3.57627869e-07, 0, 1, 0, 3.57627869e-07, 0, 1.00000262),}) | |
432 | HaPart = New("Part",Halo,"HaPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.200000003, 0.200000003),CFrame = CFrame.new(-19.0736217, 5.50001764, -17.2517643, 0.939700842, 0, 0.342024595, 0, 1, 0, -0.342021763, 0, 0.939702868),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
433 | Weld = New("ManualWeld",HaPart,"Weld",{Part0 = HaPart,Part1 = AHaloPart,C0 = CFrame.new(0, 0, 0, 0.939693093, 0, -0.342019916, 0, 1, 0, 0.342020094, 0, 0.939693153),C1 = CFrame.new(-0.273622513, 0, -0.751760483, 1.00000238, 0, 3.57627869e-07, 0, 1, 0, 3.57627869e-07, 0, 1.00000262),}) | |
434 | HaPart = New("Part",Halo,"HaPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.200000003, 0.200000003),CFrame = CFrame.new(-19.4928379, 5.50001764, -16.9000072, 0.500003397, 0, 0.866038799, 0, 1, 0, -0.866037428, 0, 0.500008583),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
435 | Weld = New("ManualWeld",HaPart,"Weld",{Part0 = HaPart,Part1 = AHaloPart,C0 = CFrame.new(0, 0, 0, 0.499999106, 0, -0.866026282, 0, 1, 0, 0.866026342, 0, 0.499999285),C1 = CFrame.new(-0.692834854, 0, -0.400005341, 1.00000644, 0, 1.22189874e-06, 0, 1, 0, 1.25170106e-06, 0, 1.00000715),}) | |
436 | HaPart = New("Part",Halo,"HaPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.200000003, 0.200000003),CFrame = CFrame.new(-19.4928265, 5.50001764, -16.0999737, -0.500008047, 0, 0.866034508, 0, 1, 0, -0.866037786, 0, -0.500004828),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
437 | Weld = New("ManualWeld",HaPart,"Weld",{Part0 = HaPart,Part1 = AHaloPart,C0 = CFrame.new(0, 0, 0, -0.500000477, 0, -0.866025746, 0, 1, 0, 0.866025627, 0, -0.500000358),C1 = CFrame.new(-0.692825317, 0, 0.400022507, 1.00000501, 0, 8.64267349e-07, 0, 1, 0, 8.94069672e-07, 0, 1.00000548),}) | |
438 | HaPart = New("Part",Halo,"HaPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.200000003, 0.200000003),CFrame = CFrame.new(-19.5878544, 5.50001764, -16.6389122, 0.173646897, 0, 0.984815121, 0, 1, 0, -0.984815359, 0, 0.173649639),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
439 | Weld = New("ManualWeld",HaPart,"Weld",{Part0 = HaPart,Part1 = AHaloPart,C0 = CFrame.new(0, 0, 0, 0.173647016, 0, -0.984808564, 0, 1, 0, 0.984808564, 0, 0.173647195),C1 = CFrame.new(-0.787851334, 0, -0.138912201, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
440 | HaPart = New("Part",Halo,"HaPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.200000003, 0.200000003),CFrame = CFrame.new(-18.5263824, 5.50001764, -17.2517605, -0.939701259, 0, 0.342020363, 0, 1, 0, -0.342023492, 0, -0.93970114),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
441 | Weld = New("ManualWeld",HaPart,"Weld",{Part0 = HaPart,Part1 = AHaloPart,C0 = CFrame.new(0, 0, 0, -0.93969363, 0, -0.34201926, 0, 1, 0, 0.342019081, 0, -0.93969363),C1 = CFrame.new(0.273614883, 0, -0.751756668, 1.00000119, 0, 1.78813934e-07, 0, 1, 0, 1.78813934e-07, 0, 1.00000131),}) | |
442 | HaPart = New("Part",Halo,"HaPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.200000003, 0.200000003),CFrame = CFrame.new(-18.0121346, 5.50001764, -16.6389122, -0.173651725, 0, 0.984817922, 0, 1, 0, -0.984819889, 0, -0.173648074),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
443 | Weld = New("ManualWeld",HaPart,"Weld",{Part0 = HaPart,Part1 = AHaloPart,C0 = CFrame.new(0, 0, 0, -0.173648179, 0, -0.984808624, 0, 1, 0, 0.984808445, 0, -0.17364794),C1 = CFrame.new(0.787857056, 0, -0.138914108, 1.00000358, 0, 5.81145287e-07, 0, 1, 0, 5.96046448e-07, 0, 1.00000393),}) | |
444 | HaPart = New("Part",Halo,"HaPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.200000003, 0.200000003),CFrame = CFrame.new(-18.0121384, 5.50001764, -16.3610725, 0.173646957, 0, 0.984817505, 0, 1, 0, -0.984817922, 0, 0.173650518),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
445 | Weld = New("ManualWeld",HaPart,"Weld",{Part0 = HaPart,Part1 = AHaloPart,C0 = CFrame.new(0, 0, 0, 0.173647016, 0, -0.984808624, 0, 1, 0, 0.984808564, 0, 0.173647255),C1 = CFrame.new(0.787853241, 0, 0.138923645, 1.00000238, 0, 3.57627869e-07, 0, 1, 0, 3.57627869e-07, 0, 1.00000262),}) | |
446 | HaPart = New("Part",Halo,"HaPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.200000003, 0.200000003),CFrame = CFrame.new(-18.2857647, 5.50001764, -17.1128464, -0.766056955, 0, 0.642793596, 0, 1, 0, -0.642798543, 0, -0.766054869),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
447 | Weld = New("ManualWeld",HaPart,"Weld",{Part0 = HaPart,Part1 = AHaloPart,C0 = CFrame.new(0, 0, 0, -0.766045511, 0, -0.642787457, 0, 1, 0, 0.642787278, 0, -0.766045451),C1 = CFrame.new(0.514230728, 0, -0.612844467, 1.00000644, 0, 1.22189874e-06, 0, 1, 0, 1.25170106e-06, 0, 1.00000715),}) | |
448 | HaPart = New("Part",Halo,"HaPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.200000003, 0.200000003),CFrame = CFrame.new(-18.1071663, 5.50001764, -16.9000053, -0.500009298, 0, 0.866035819, 0, 1, 0, -0.866039753, 0, -0.500005484),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
449 | Weld = New("ManualWeld",HaPart,"Weld",{Part0 = HaPart,Part1 = AHaloPart,C0 = CFrame.new(0, 0, 0, -0.500000715, 0, -0.866026103, 0, 1, 0, 0.866025865, 0, -0.500000477),C1 = CFrame.new(0.692827225, 0, -0.400005341, 1.00000644, 0, 1.22189874e-06, 0, 1, 0, 1.25170106e-06, 0, 1.00000715),}) | |
450 | HaPart = New("Part",Halo,"HaPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.200000003, 0.200000003),CFrame = CFrame.new(-19.3142319, 5.50001764, -15.8871336, -0.766055584, 0, 0.642793, 0, 1, 0, -0.642797172, 0, -0.766053736),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
451 | Weld = New("ManualWeld",HaPart,"Weld",{Part0 = HaPart,Part1 = AHaloPart,C0 = CFrame.new(0, 0, 0, -0.766045511, 0, -0.642787457, 0, 1, 0, 0.642787278, 0, -0.766045451),C1 = CFrame.new(-0.514232635, 0, 0.61286068, 1.00000501, 0, 8.64267349e-07, 0, 1, 0, 8.94069672e-07, 0, 1.00000548),}) | |
452 | HaPart = New("Part",Halo,"HaPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.200000003, 0.200000003),CFrame = CFrame.new(-19.0736103, 5.50001764, -15.7482185, -0.939703703, 0, 0.34202081, 0, 1, 0, -0.342024893, 0, -0.939703524),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
453 | Weld = New("ManualWeld",HaPart,"Weld",{Part0 = HaPart,Part1 = AHaloPart,C0 = CFrame.new(0, 0, 0, -0.939693749, 0, -0.342019379, 0, 1, 0, 0.342019081, 0, -0.939693689),C1 = CFrame.new(-0.273612976, 0, 0.751774788, 1.00000358, 0, 5.81145287e-07, 0, 1, 0, 5.96046448e-07, 0, 1.00000393),}) | |
454 | HaPart = New("Part",Halo,"HaPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.200000003, 0.200000003),CFrame = CFrame.new(-19.587862, 5.50001764, -16.3610744, -0.173652977, 0, 0.984820604, 0, 1, 0, -0.984823227, 0, -0.17364794),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
455 | Weld = New("ManualWeld",HaPart,"Weld",{Part0 = HaPart,Part1 = AHaloPart,C0 = CFrame.new(0, 0, 0, -0.173648298, 0, -0.984808683, 0, 1, 0, 0.984808445, 0, -0.17364791),C1 = CFrame.new(-0.787858963, 0, 0.138923645, 1.00000644, 0, 1.22189874e-06, 0, 1, 0, 1.25170106e-06, 0, 1.00000715),}) | |
456 | HaPart = New("Part",Halo,"HaPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.200000003, 0.200000003),CFrame = CFrame.new(-18.7999992, 5.50001764, -17.3000011, 1.00001216, 0, 2.29479861e-06, 0, 1, 0, 2.29479883e-06, 0, 1.00001347),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
457 | Weld = New("ManualWeld",HaPart,"Weld",{Part0 = HaPart,Part1 = AHaloPart,C0 = CFrame.new(0, 0, 0, 1.00000072, 0, 1.78813934e-07, 0, 1, 0, 1.78813934e-07, 0, 1.00000083),C1 = CFrame.new(0, 0, -0.79999733, 1.00000501, 0, 8.64267349e-07, 0, 1, 0, 8.94069672e-07, 0, 1.00000548),}) | |
458 | Horns = New("Part",Halo,"Horns",{FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.100000001, 0.100000001, 0.100000001),CFrame = CFrame.new(-18.7999992, 5.72899342, -16.4698296, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
459 | Mesh = New("SpecialMesh",Horns,"Mesh",{Scale = Vector3.new(1.08000004, 1, 1),VertexColor = Vector3.new(-1, -1, -1),MeshId = "http://www.roblox.com/asset/?id=71494804",TextureId = "http://www.roblox.com/asset/?id=71494779",MeshType = Enum.MeshType.FileMesh,}) | |
460 | Weld = New("ManualWeld",Horns,"Weld",{Part0 = Horns,Part1 = Head,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 1.22898483, -0.0301551819, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
461 | for i,v in pairs(Halo:children()) do | |
462 | if v:IsA("BasePart") then | |
463 | v.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0) | |
464 | end | |
465 | end | |
466 | coroutine.wrap(function() | |
467 | while true do | |
468 | swait() | |
469 | HaWeld.C0 = HaWeld.C0 * CFrame.Angles(0,math.rad(1),0) | |
470 | end | |
471 | end)() | |
472 | ||
473 | ||
474 | ||
475 | function CreateTrailObj(parent,color1,color2,ofsx,ofsz) | |
476 | local Att1 = New("Attachment",parent,"Att1",{Position = Vector3.new(ofsx,parent.Size.Y/2,ofsz)}) | |
477 | local Att2 = New("Attachment",parent,"Att2",{Position = Vector3.new(ofsx,-(parent.Size.Y/2),ofsz)}) | |
478 | local TEff = New("Trail",parent,"TrailEff",{Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new(color1).Color),ColorSequenceKeypoint.new(1,BrickColor.new(color2).Color)}),Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,.5),NumberSequenceKeypoint.new(1,1)}),Attachment0 = Att1,Attachment1 = Att2,Enabled = false,Lifetime = .5,MinLength = .001,LightEmission = 1}) | |
479 | return TEff | |
480 | end | |
481 | ||
482 | LLTr = CreateTrailObj(LeftLeg,"White","White",0,0) | |
483 | RLTr = CreateTrailObj(RightLeg,"White","White",0,0) | |
484 | LATr = CreateTrailObj(LeftArm,"White","White",0,0) | |
485 | RATR = CreateTrailObj(RightArm,"White","White",0,0) | |
486 | ||
487 | function rayCast(Position, Direction, Range, Ignore) | |
488 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
489 | end | |
490 | ||
491 | function killmortal(dude,faws) | |
492 | local hah = dude:FindFirstChildOfClass("Humanoid") | |
493 | if hah and dude:FindFirstChild("Debawns")==nil and dude.Name ~= "Salvo_Starly" and dude.Name ~= "NoobyGames12" and dude.Name ~= "CKbackup" and dude.Name ~= "Nebula_Zorua" then | |
494 | local torsy = dude:FindFirstChild("UpperTorso") or dude:FindFirstChild("Torso") | |
495 | if torsy then | |
496 | local val = Instance.new("BoolValue",dude) | |
497 | val.Name = "Debawns" | |
498 | game:service'Debris':AddItem(val,2) | |
499 | torsy.Velocity = RootPart.CFrame.lookVector*faws | |
500 | coroutine.wrap(function() | |
501 | for nn=1,math.random(4,6) do | |
502 | local bl = Instance.new("Part",dude) | |
503 | bl.CFrame = torsy.CFrame + Vector3.new(math.random(-1,1),0,math.random(-1,1)) | |
504 | local randd = math.random(6,20)/10 | |
505 | bl.Size = Vector3.new(randd,.2,randd) | |
506 | bl.BrickColor = BrickColor.new("Maroon") | |
507 | bl.Material = "Granite" | |
508 | local clm = Instance.new("CylinderMesh",bl) | |
509 | coroutine.wrap(function() | |
510 | swait(120) | |
511 | for i=0,1,.01 do | |
512 | clm.Scale = Vector3.new(1-i,1-i,1-i) | |
513 | swait() | |
514 | end | |
515 | bl:Destroy() | |
516 | end)() | |
517 | end | |
518 | end)() | |
519 | end | |
520 | hah:TakeDamage(math.random(30,35)) | |
521 | end | |
522 | end | |
523 | ||
524 | function mdmg(Part, Magnitude, HitType) | |
525 | for _, c in pairs(workspace:GetDescendants()) do | |
526 | local hum = c:FindFirstChildOfClass("Humanoid") | |
527 | if hum ~= nil then | |
528 | local head = c:FindFirstChild("UpperTorso") or c:FindFirstChild("Torso") | |
529 | if head ~= nil then | |
530 | local targ = head.Position - Part.Position | |
531 | local mag = targ.magnitude | |
532 | if mag <= Magnitude and c.Name ~= Player.Name and c:FindFirstChild("MagDmgd")==nil then | |
533 | if c.Name ~= chara then | |
534 | if c.Name ~= "CKbackup" or c.Name ~= "Nebula_Zorua" or c.Name ~= "Salvo_Starly" then | |
535 | local val = Instance.new("BoolValue",c) | |
536 | val.Name = "MagDmgd" | |
537 | --Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch) | |
538 | if HitType == "Blunt" then | |
539 | so(386946017,head,.95,3) | |
540 | elseif HitType == "Scream" then | |
541 | coroutine.wrap(function() | |
542 | local haed = c:FindFirstChild("Head") | |
543 | swait(3) | |
544 | so(206082327,haed,1,5) | |
545 | local passa = haed.Position | |
546 | haed:Destroy() | |
547 | createSplatter(passa) | |
548 | for i=1,15 do | |
549 | local bl = Instance.new("Part",head) | |
550 | bl.CFrame = CFrame.new(passa) + Vector3.new(math.random(-10,10)/10,0,math.random(-10,10)/10) | |
551 | local rand = math.random(2,7)/10 | |
552 | bl.Size = Vector3.new(rand,rand,rand) | |
553 | bl.BrickColor = BrickColor.new("Maroon") | |
554 | bl.Material = "Granite" | |
555 | end | |
556 | end)() | |
557 | elseif HitType == "Arm" then | |
558 | grabhand = false | |
559 | so(386946017,head,.95,3) | |
560 | armo:BreakJoints() | |
561 | local ar = armo | |
562 | coroutine.wrap(function() | |
563 | ar.Velocity = RootPart.CFrame.lookVector*-5 + RootPart.CFrame.rightVector*-5 + Vector3.new(0,60,0) | |
564 | swait(2) | |
565 | ar.CanCollide = true | |
566 | swait(60) | |
567 | for i=0,1,.05 do | |
568 | swait() | |
569 | ar.Transparency = i | |
570 | end | |
571 | ar.Parent:Destroy() | |
572 | end)() | |
573 | armo = nil | |
574 | elseif HitType == "Shot" then | |
575 | so(144884872,head,.9,3) | |
576 | game:service'Debris':AddItem(val,.05) | |
577 | end | |
578 | killmortal(c,10) | |
579 | else | |
580 | end | |
581 | end | |
582 | end | |
583 | end | |
584 | end | |
585 | end | |
586 | end | |
587 | ||
588 | --[[FindNearestTorso = function(pos) | |
589 | local list = (game.workspace:GetDescendants()) | |
590 | local torso = nil | |
591 | local dist = 1000 | |
592 | local temp, human, temp2 = nil, nil, nil | |
593 | for x = 1, #list do | |
594 | temp2 = list[x] | |
595 | if temp2.className == "Model" and temp2.Name ~= chara.Name then | |
596 | temp = temp2:findFirstChild("Torso") | |
597 | human = temp2:FindFirstChildOfClass("Humanoid") | |
598 | if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then | |
599 | local dohit = true | |
600 | if dohit == true then | |
601 | torso = temp | |
602 | dist = (temp.Position - pos).magnitude | |
603 | end | |
604 | end | |
605 | end | |
606 | end | |
607 | return torso, dist | |
608 | end]] | |
609 | ||
610 | ||
611 | function FindNearestTorso(Position, Distance, SinglePlayer) | |
612 | if SinglePlayer then | |
613 | return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance | |
614 | end | |
615 | local List = {} | |
616 | for i, v in pairs(workspace:GetDescendants()) do | |
617 | if v:IsA("Model") then | |
618 | if v:findFirstChild("Head") then | |
619 | if v ~= chara then | |
620 | if (v.Head.Position - Position).magnitude <= Distance then | |
621 | table.insert(List, v) | |
622 | end | |
623 | end | |
624 | end | |
625 | end | |
626 | end | |
627 | return List | |
628 | end | |
629 | ||
630 | ||
631 | --Chat Function-- | |
632 | function chatfunc(text) | |
633 | coroutine.wrap(function() | |
634 | if chara:FindFirstChild("TalkingBillBoard")~= nil then | |
635 | chara:FindFirstChild("TalkingBillBoard"):destroy() | |
636 | end | |
637 | local naeeym2 = Instance.new("BillboardGui",chara) | |
638 | naeeym2.Size = UDim2.new(0,100,0,40) | |
639 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
640 | naeeym2.Adornee = chara.Head | |
641 | naeeym2.Name = "TalkingBillBoard" | |
642 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
643 | tecks2.BackgroundTransparency = 1 | |
644 | tecks2.BorderSizePixel = 0 | |
645 | tecks2.Text = "" | |
646 | tecks2.Font = "Fantasy" | |
647 | tecks2.FontSize = "Size24" | |
648 | tecks2.TextStrokeTransparency = 0 | |
649 | tecks2.TextColor3 = Color3.new(.6,0,0) | |
650 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
651 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
652 | local shk = coroutine.wrap(function() | |
653 | while tecks2 ~= nil do | |
654 | swait(.05) | |
655 | tecks2.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3)) | |
656 | end | |
657 | end) | |
658 | shk() | |
659 | for i = 1,string.len(text),1 do | |
660 | tecks2.Text = string.sub(text,1,i) | |
661 | swait(0.01) | |
662 | end | |
663 | swait(30) | |
664 | for i = 1, 5 do | |
665 | swait() | |
666 | tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0) | |
667 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2 | |
668 | tecks2.TextTransparency = tecks2.TextTransparency + .2 | |
669 | end | |
670 | naeeym2:Destroy() | |
671 | end)() | |
672 | end | |
673 | ||
674 | ||
675 | ||
676 | ||
677 | EffectModel = Create("Model"){ | |
678 | Parent = chara, | |
679 | Name = "Effects", | |
680 | } | |
681 | ||
682 | ||
683 | Effects = { | |
684 | Block = { | |
685 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
686 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
687 | prt.Anchored = true | |
688 | prt.CFrame = cframe | |
689 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
690 | game:GetService("Debris"):AddItem(prt, 10) | |
691 | if Type == 1 or Type == nil then | |
692 | table.insert(Effects, { | |
693 | prt, | |
694 | "Block1", | |
695 | delay, | |
696 | x3, | |
697 | y3, | |
698 | z3, | |
699 | msh | |
700 | }) | |
701 | elseif Type == 2 then | |
702 | table.insert(Effects, { | |
703 | prt, | |
704 | "Block2", | |
705 | delay, | |
706 | x3, | |
707 | y3, | |
708 | z3, | |
709 | msh | |
710 | }) | |
711 | end | |
712 | end; | |
713 | }; | |
714 | ||
715 | Cylinder = { | |
716 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
717 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
718 | prt.Anchored = true | |
719 | prt.CFrame = cframe | |
720 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
721 | game:GetService("Debris"):AddItem(prt, 10) | |
722 | table.insert(Effects, { | |
723 | prt, | |
724 | "Cylinder", | |
725 | delay, | |
726 | x3, | |
727 | y3, | |
728 | z3, | |
729 | msh | |
730 | }) | |
731 | end; | |
732 | }; | |
733 | Head = { | |
734 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
735 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
736 | prt.Anchored = true | |
737 | prt.CFrame = cframe | |
738 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
739 | game:GetService("Debris"):AddItem(prt, 10) | |
740 | table.insert(Effects, { | |
741 | prt, | |
742 | "Cylinder", | |
743 | delay, | |
744 | x3, | |
745 | y3, | |
746 | z3, | |
747 | msh | |
748 | }) | |
749 | end; | |
750 | }; | |
751 | ||
752 | Sphere = { | |
753 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
754 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
755 | prt.Anchored = true | |
756 | prt.CFrame = cframe | |
757 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
758 | game:GetService("Debris"):AddItem(prt, 10) | |
759 | table.insert(Effects, { | |
760 | prt, | |
761 | "Cylinder", | |
762 | delay, | |
763 | x3, | |
764 | y3, | |
765 | z3, | |
766 | msh | |
767 | }) | |
768 | end; | |
769 | }; | |
770 | ||
771 | Elect = { | |
772 | Create = function(cff, x, y, z) | |
773 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1)) | |
774 | prt.Anchored = true | |
775 | prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z)) | |
776 | prt.CFrame = CFrame.new(prt.Position) | |
777 | game:GetService("Debris"):AddItem(prt, 2) | |
778 | local xval = math.random() / 2 | |
779 | local yval = math.random() / 2 | |
780 | local zval = math.random() / 2 | |
781 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval)) | |
782 | table.insert(Effects, { | |
783 | prt, | |
784 | "Elec", | |
785 | 0.1, | |
786 | x, | |
787 | y, | |
788 | z, | |
789 | xval, | |
790 | yval, | |
791 | zval | |
792 | }) | |
793 | end; | |
794 | ||
795 | }; | |
796 | ||
797 | Ring = { | |
798 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
799 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
800 | prt.Anchored = true | |
801 | prt.CFrame = cframe | |
802 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
803 | game:GetService("Debris"):AddItem(prt, 10) | |
804 | table.insert(Effects, { | |
805 | prt, | |
806 | "Cylinder", | |
807 | delay, | |
808 | x3, | |
809 | y3, | |
810 | z3, | |
811 | msh | |
812 | }) | |
813 | end; | |
814 | }; | |
815 | ||
816 | ||
817 | Wave = { | |
818 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
819 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
820 | prt.Anchored = true | |
821 | prt.CFrame = cframe | |
822 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
823 | game:GetService("Debris"):AddItem(prt, 10) | |
824 | table.insert(Effects, { | |
825 | prt, | |
826 | "Cylinder", | |
827 | delay, | |
828 | x3, | |
829 | y3, | |
830 | z3, | |
831 | msh | |
832 | }) | |
833 | end; | |
834 | }; | |
835 | ||
836 | Break = { | |
837 | Create = function(brickcolor, cframe, x1, y1, z1) | |
838 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
839 | prt.Anchored = true | |
840 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
841 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
842 | local num = math.random(10, 50) / 1000 | |
843 | game:GetService("Debris"):AddItem(prt, 10) | |
844 | table.insert(Effects, { | |
845 | prt, | |
846 | "Shatter", | |
847 | num, | |
848 | prt.CFrame, | |
849 | math.random() - math.random(), | |
850 | 0, | |
851 | math.random(50, 100) / 100 | |
852 | }) | |
853 | end; | |
854 | }; | |
855 | ||
856 | Fire = { | |
857 | Create = function(brickcolor, cframe, x1, y1, z1, delay) | |
858 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
859 | prt.Anchored = true | |
860 | prt.CFrame = cframe | |
861 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
862 | game:GetService("Debris"):AddItem(prt, 10) | |
863 | table.insert(Effects, { | |
864 | prt, | |
865 | "Fire", | |
866 | delay, | |
867 | 1, | |
868 | 1, | |
869 | 1, | |
870 | msh | |
871 | }) | |
872 | end; | |
873 | }; | |
874 | ||
875 | FireWave = { | |
876 | Create = function(brickcolor, cframe, x1, y1, z1) | |
877 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new()) | |
878 | prt.Anchored = true | |
879 | prt.CFrame = cframe | |
880 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
881 | local d = Create("Decal"){ | |
882 | Parent = prt, | |
883 | Texture = "rbxassetid://26356434", | |
884 | Face = "Top", | |
885 | } | |
886 | local d = Create("Decal"){ | |
887 | Parent = prt, | |
888 | Texture = "rbxassetid://26356434", | |
889 | Face = "Bottom", | |
890 | } | |
891 | game:GetService("Debris"):AddItem(prt, 10) | |
892 | table.insert(Effects, { | |
893 | prt, | |
894 | "FireWave", | |
895 | 1, | |
896 | 30, | |
897 | math.random(400, 600) / 100, | |
898 | msh | |
899 | }) | |
900 | end; | |
901 | }; | |
902 | ||
903 | Lightning = { | |
904 | Create = function(p0, p1, tym, ofs, col, th, tra, last) | |
905 | local magz = (p0 - p1).magnitude | |
906 | local curpos = p0 | |
907 | local trz = { | |
908 | -ofs, | |
909 | ofs | |
910 | } | |
911 | for i = 1, tym do | |
912 | local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym)) | |
913 | local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)]) | |
914 | local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz | |
915 | li.Material = "Neon" | |
916 | if tym == i then | |
917 | local magz2 = (curpos - p1).magnitude | |
918 | li.Size = Vector3.new(th, th, magz2) | |
919 | li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2) | |
920 | table.insert(Effects, { | |
921 | li, | |
922 | "Disappear", | |
923 | last | |
924 | }) | |
925 | else | |
926 | do | |
927 | do | |
928 | li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2) | |
929 | curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p | |
930 | game.Debris:AddItem(li, 10) | |
931 | table.insert(Effects, { | |
932 | li, | |
933 | "Disappear", | |
934 | last | |
935 | }) | |
936 | end | |
937 | end | |
938 | end | |
939 | end | |
940 | end | |
941 | }; | |
942 | ||
943 | EffectTemplate = { | |
944 | ||
945 | }; | |
946 | } | |
947 | ||
948 | ||
949 | local blpemit = Instance.new("ParticleEmitter") | |
950 | blpemit.Color = ColorSequence.new(Color3.new(.5,0,0)) | |
951 | blpemit.Texture = "rbxassetid://233069772" | |
952 | blpemit.Transparency = NumberSequence.new(0,1) | |
953 | blpemit.Lifetime = NumberRange.new(1,3) | |
954 | blpemit.Acceleration = Vector3.new(0,-10,0) | |
955 | blpemit.Enabled = true | |
956 | blpemit.EmissionDirection = "Front" | |
957 | blpemit.Speed = NumberRange.new(1,3) | |
958 | blpemit.Size = NumberSequence.new(.5) | |
959 | blpemit.Rate = 1000 | |
960 | blpemit.RotSpeed = NumberRange.new(50) | |
961 | blpemit.Rotation = NumberRange.new(0,360) | |
962 | ||
963 | function createSplatter(pos) | |
964 | local emit = Instance.new("Part",chara) | |
965 | emit.Anchored = true | |
966 | emit.CanCollide = false | |
967 | emit.Size = Vector3.new() | |
968 | emit.Transparency = 1 | |
969 | emit.CFrame = CFrame.new(pos) | |
970 | local blp = blpemit:Clone() | |
971 | blp.Parent = emit | |
972 | blp.Enabled = false | |
973 | blp.EmissionDirection = "Top" | |
974 | blp.VelocitySpread = 60 | |
975 | blp.Size = NumberSequence.new(2,0) | |
976 | blp.Lifetime = NumberRange.new(3) | |
977 | blp.Speed = NumberRange.new(10) | |
978 | blp.Acceleration = Vector3.new(0,-10,0) | |
979 | blp:Emit(math.random(35,40)) | |
980 | game:service'Debris':AddItem(emit,4) | |
981 | end | |
982 | ||
983 | function thenatsuki() | |
984 | attack = true | |
985 | Humanoid.WalkSpeed = 2 | |
986 | local grab = nil | |
987 | local torsy = nil | |
988 | for i, v in pairs(FindNearestTorso(Torso.Position, 5)) do | |
989 | if v:FindFirstChild('Head') and v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 1 and v.Name ~= "Salvo_Starly" and v.Name ~= "NoobyGames12" and v.Name ~= "CKbackup" and v.Name ~= "Nebula_Zorua" then | |
990 | torsy = v:FindFirstChild("UpperTorso") or v:FindFirstChild("Torso") | |
991 | grab = v | |
992 | end | |
993 | end | |
994 | if grab ~= nil and torsy ~= nil then | |
995 | Instance.new("BoolValue",grab).Name = "NATSUKID" | |
996 | so(200632136, RootPart, .8, 1) | |
997 | for i = 0,2,0.1 do | |
998 | swait() | |
999 | PlayAnimationFromTable({ | |
1000 | CFrame.new(0, 0.00182705373, -0.0581560358, 1, 0, 0, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661), | |
1001 | CFrame.new(0, 1.49941719, 0.0767186508, 1, 0, 0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661), | |
1002 | CFrame.new(1.1733681, 1.00347483, -0.438556999, 0.834721148, 0.546610475, 0.0667646676, 0.395648003, -0.510977745, -0.763128042, -0.383018494, 0.663414538, -0.642789304), | |
1003 | CFrame.new(-1.19234979, 1.02193367, -0.467352033, 0.879184604, -0.471780479, -0.0667649657, -0.349608243, -0.543515444, -0.763128519, 0.323741287, 0.694272459, -0.642788768), | |
1004 | CFrame.new(0.499997675, -1.9992758, -0.116536342, 0.965925872, 0, -0.258818984, -0.02255762, 0.996194661, -0.0841862038, 0.257834077, 0.087155968, 0.962250173), | |
1005 | CFrame.new(-0.50000006, -1.99927592, -0.116537228, 0.984807849, 0, 0.173647985, 0.0151344584, 0.996194661, -0.0858318806, -0.172987193, 0.087155968, 0.981060326), | |
1006 | }, .3, false) | |
1007 | torsy.CFrame = RootPart.CFrame*CFrame.new(0,0,-1.3) | |
1008 | torsy.Velocity = Vector3.new() | |
1009 | end | |
1010 | local wel = Instance.new("Weld",grab.Head) | |
1011 | wel.Part0 = torsy | |
1012 | wel.Part1 = grab.Head | |
1013 | wel.C0 = CFrame.new(0,1.5,0) | |
1014 | local bledp = Instance.new("Part",grab) | |
1015 | bledp.Size = Vector3.new(0,0,0) | |
1016 | bledp.Transparency = 1 | |
1017 | bledp.CanCollide = false | |
1018 | local blpe = blpemit:Clone() | |
1019 | blpe.Parent = bledp | |
1020 | blpe.EmissionDirection = "Top" | |
1021 | blpe.VelocitySpread = 5 | |
1022 | wel.C0 = CFrame.new(0,-1.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0) | |
1023 | local bledw = Instance.new("Weld",bledp) | |
1024 | bledw.Part0 = grab.Head | |
1025 | bledw.Part1 = bledp | |
1026 | bledw.C0 = CFrame.new(0,-.7,0) * CFrame.Angles(0,0,math.rad(45)) | |
1027 | so(314390675,torsy,.7,5) | |
1028 | for i = 0, 1, 0.25 do | |
1029 | swait() | |
1030 | PlayAnimationFromTable({ | |
1031 | CFrame.new(-0.37728107, 0.00182711286, -0.228351086, 0.707106352, 0.0616285279, -0.704416513, 0, 0.99619478, 0.0871558264, 0.707107365, -0.0616284423, 0.7044155), | |
1032 | CFrame.new(-9.90927219e-07, 1.49941754, 0.0767165273, 0.766044199, 0, 0.642788053, 0.0560227223, 0.99619478, -0.066765219, -0.640341938, 0.0871558264, 0.763129056), | |
1033 | CFrame.new(1.14925241, 0.936202288, -0.560600817, 0.834721982, 0.490812272, 0.249685481, 0.39564395, -0.219157442, -0.891872227, -0.383021295, 0.843251646, -0.377122372), | |
1034 | CFrame.new(-1.01654804, 1.22616923, -0.180458635, 0.525007069, -0.121539712, -0.8423751, -0.63483566, -0.715151966, -0.292475075, -0.566878796, 0.688320994, -0.452617407), | |
1035 | CFrame.new(0.499999106, -1.99927592, -0.116537355, 0.965925813, 0, -0.258819491, -0.0225576311, 0.99619478, -0.0841860622, 0.257834613, 0.0871558264, 0.962249994), | |
1036 | CFrame.new(-0.500003219, -1.99927604, -0.116538122, 0.984807849, 0, 0.173648447, 0.0151344724, 0.99619478, -0.0858317465, -0.17298761, 0.0871558264, 0.981060266), | |
1037 | }, .3, false) | |
1038 | wel.C0 = CFrame.new(.7*i,1.5,0) * CFrame.Angles(0,0,math.rad(-90*i)) | |
1039 | torsy.CFrame = RootPart.CFrame*CFrame.new(0,0,-2) | |
1040 | torsy.Velocity = Vector3.new() | |
1041 | end | |
1042 | for i=1,30 do | |
1043 | swait() | |
1044 | torsy.CFrame = RootPart.CFrame*CFrame.new(0,0,-2) | |
1045 | torsy.Velocity = Vector3.new() | |
1046 | end | |
1047 | killmortal(grab,20) | |
1048 | end | |
1049 | attack = false | |
1050 | Humanoid.WalkSpeed = 8 | |
1051 | end | |
1052 | ||
1053 | xhold = false | |
1054 | function thesurou() | |
1055 | attack = true | |
1056 | Humanoid.WalkSpeed = 2 | |
1057 | local grab = nil | |
1058 | local torsy = nil | |
1059 | local hum = nil | |
1060 | for i, v in pairs(FindNearestTorso(Torso.Position, 5)) do | |
1061 | if v:FindFirstChild('Head') and v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 1 and v.Name ~= "Salvo_Starly" and v.Name ~= "NoobyGames12" and v.Name ~= "CKbackup" and v.Name ~= "Nebula_Zorua" then | |
1062 | hum = v:FindFirstChildOfClass("Humanoid") | |
1063 | torsy = v:FindFirstChild("UpperTorso") or v:FindFirstChild("Torso") | |
1064 | grab = v | |
1065 | end | |
1066 | end | |
1067 | if grab ~= nil and torsy ~= nil then | |
1068 | so(200632136, RootPart, .8, 1) | |
1069 | for i = 0,1.5,0.1 do | |
1070 | swait() | |
1071 | PlayAnimationFromTable({ | |
1072 | CFrame.new(0, 0, 0, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388), | |
1073 | CFrame.new(0, 1.49999118, 0, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388), | |
1074 | CFrame.new(1.50000226, 0.492404312, 0.086825721, 0.642795563, -0.766037941, -8.04662704e-07, -0.133022025, -0.111620016, -0.98480767, 0.754399955, 0.633030057, -0.17364876), | |
1075 | CFrame.new(-1.49999845, 0, 0, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024), | |
1076 | CFrame.new(0.500000119, -2, 0, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024), | |
1077 | CFrame.new(-0.499997556, -2, 1.63912773e-07, 0.766044557, 0, 0.642787695, 0, 1, 0, -0.642787695, 0, 0.766044557), | |
1078 | }, .3, false) | |
1079 | torsy.CFrame = RootPart.CFrame*CFrame.new(0,0,-1.3) | |
1080 | torsy.Velocity = Vector3.new() | |
1081 | end | |
1082 | so(240429615, torsy, 1, 1) | |
1083 | for i = 0, 1.5, 0.1 do | |
1084 | swait() | |
1085 | PlayAnimationFromTable({ | |
1086 | CFrame.new(0, 0, 0, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388), | |
1087 | CFrame.new(0.0219391882, 1.50780332, -0.243838966, 0.852868617, 0.0296956748, -0.521280766, 0.173647985, 0.925416708, 0.336823881, 0.492404163, -0.377785802, 0.784102201), | |
1088 | CFrame.new(1.50000226, 0.469847411, -0.171007544, 0.939692974, -0.342019379, -5.81145287e-07, 0.116976947, 0.321393847, -0.939692736, 0.321393311, 0.883022606, 0.342019975), | |
1089 | CFrame.new(-1.50000036, 0, -3.81469818e-06, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024), | |
1090 | CFrame.new(0.500001073, -1.99999905, 7.15255737e-07, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388), | |
1091 | CFrame.new(-0.500000119, -1.99999905, -3.81469818e-06, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024), | |
1092 | }, .3, false) | |
1093 | torsy.CFrame = RootPart.CFrame*CFrame.new(0,0,-1.3) | |
1094 | torsy.Velocity = Vector3.new() | |
1095 | end | |
1096 | repeat | |
1097 | --for i = 0, 2, 0.1 do | |
1098 | swait() | |
1099 | PlayAnimationFromTable({ | |
1100 | CFrame.new(-0.00874902681, -4.76837158e-07, -0.101877891, 0.342019022, 0, -0.939693093, 0, 1, 0, 0.939693093, 0, 0.342018992), | |
1101 | CFrame.new(0.0987267792, 1.49999189, 0.0266250018, 0.342019022, 0, 0.939693093, 0, 1, 0, -0.939693093, 0, 0.342018992), | |
1102 | CFrame.new(1.49999821, 0.499999046, -0.399993986, 1.00000012, -2.98023224e-08, 0, 0, 0, -1, -2.98023224e-08, 1.00000012, 0), | |
1103 | CFrame.new(-1.54019761, 0.669612885, -6.12696294e-06, 0.499998331, 0.866026461, 1.87754631e-06, -0.866026402, 0.499998331, 2.13891599e-06, 8.94069672e-07, -2.71201134e-06, 1.00000012), | |
1104 | CFrame.new(0.500005782, -1.99999893, -3.82959888e-06, 1.00000012, 0, -2.98023224e-08, 0, 1, 0, -2.98023224e-08, 0, 1.00000012), | |
1105 | CFrame.new(-0.499995083, -1.99999893, -1.18389726e-05, 0.17364721, 0, 0.984808028, 0, 1, 0, -0.984808028, 0, 0.17364718), | |
1106 | }, .3, false) | |
1107 | torsy.CFrame = RightArm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(-90),0,0) | |
1108 | hum.PlatformStand = true | |
1109 | torsy.Velocity = Vector3.new() | |
1110 | --end | |
1111 | until xhold == false | |
1112 | so(200632136, RootPart, .9, 1) | |
1113 | local pato = Instance.new("Part",torsy) | |
1114 | pato.CFrame = torsy.CFrame | |
1115 | pato.Size = Vector3.new(4.1,6.1,1.1) | |
1116 | pato.Transparency = 1 | |
1117 | pato.CanCollide = false | |
1118 | pato.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0) | |
1119 | local werudo = Instance.new("Weld",pato) | |
1120 | werudo.Part0 = pato | |
1121 | werudo.Part1 = torsy | |
1122 | torsy.Velocity = (Mouse.Hit.p-torsy.Position).unit*100+Vector3.new(0,30,0) | |
1123 | torsy.RotVelocity = Vector3.new(10,10,10) | |
1124 | coroutine.wrap(function() | |
1125 | while true do | |
1126 | swait() | |
1127 | hum.PlatformStand = true | |
1128 | end | |
1129 | end) | |
1130 | pato.Touched:connect(function(hit) | |
1131 | if hit:IsDescendantOf(chara)==false then | |
1132 | pato:Destroy() | |
1133 | killmortal(grab,5) | |
1134 | so(260430079,torsy,1,5) | |
1135 | createSplatter(torsy.Position) | |
1136 | mdmg(torsy,3,"Blunt") | |
1137 | Effects.Wave.Create(BrickColor.new("White"), CFrame.new(torsy.Position), 0, 0, 0, 1, .2, 1, 0.1) | |
1138 | end | |
1139 | end) | |
1140 | end | |
1141 | for i = 0, 1, 0.1 do | |
1142 | swait() | |
1143 | PlayAnimationFromTable({ | |
1144 | CFrame.new(-0.0371780396, -4.76837158e-07, -0.0659790039, 0, 0, 1, 0, 1, 0, -1, 0, 0), | |
1145 | CFrame.new(0.0118849091, 1.43262982, -0.187934548, 0.716230929, -0.163175121, -0.678518414, 0.349525958, 0.92541784, 0.146401539, 0.604023933, -0.342017084, 0.719846845), | |
1146 | CFrame.new(1.05005264, 0.0782932937, -0.664391041, 0.766043901, 0.642788291, -5.71537271e-07, -0.321393967, 0.383021057, -0.866025865, -0.556670964, 0.663414121, 0.499999195), | |
1147 | CFrame.new(-1.59158015, 0.575855374, -7.62939453e-06, 0.64278698, 0.766044974, 0, -0.766044974, 0.64278698, 0, 0, 0, 1), | |
1148 | CFrame.new(0.500011563, -1.99999893, -2.07126141e-06, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388), | |
1149 | CFrame.new(-0.946406364, -1.97320735, -7.62939453e-06, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388, 0, 0, 0, 1), | |
1150 | }, .3, false) | |
1151 | end | |
1152 | attack = false | |
1153 | Humanoid.WalkSpeed = 8 | |
1154 | end | |
1155 | ||
1156 | function thehead() | |
1157 | attack = true | |
1158 | Humanoid.WalkSpeed = 2 | |
1159 | local grab = nil | |
1160 | local torsy = nil | |
1161 | for i, v in pairs(FindNearestTorso(Torso.Position, 5)) do | |
1162 | if v:FindFirstChild('Head') and v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 1 and v.Name ~= "Salvo_Starly" and v.Name ~= "NoobyGames12" and v.Name ~= "CKbackup" and v.Name ~= "Nebula_Zorua" then | |
1163 | torsy = v:FindFirstChild("UpperTorso") or v:FindFirstChild("Torso") | |
1164 | grab = v | |
1165 | end | |
1166 | end | |
1167 | if grab ~= nil and torsy ~= nil then | |
1168 | so(200632136, RootPart, .8, 1) | |
1169 | for i = 0,2,0.1 do | |
1170 | swait() | |
1171 | PlayAnimationFromTable({ | |
1172 | CFrame.new(0, 0.00182705373, -0.0581560358, 1, 0, 0, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661), | |
1173 | CFrame.new(0, 1.49941719, 0.0767186508, 1, 0, 0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661), | |
1174 | CFrame.new(1.1733681, 1.00347483, -0.438556999, 0.834721148, 0.546610475, 0.0667646676, 0.395648003, -0.510977745, -0.763128042, -0.383018494, 0.663414538, -0.642789304), | |
1175 | CFrame.new(-1.19234979, 1.02193367, -0.467352033, 0.879184604, -0.471780479, -0.0667649657, -0.349608243, -0.543515444, -0.763128519, 0.323741287, 0.694272459, -0.642788768), | |
1176 | CFrame.new(0.499997675, -1.9992758, -0.116536342, 0.965925872, 0, -0.258818984, -0.02255762, 0.996194661, -0.0841862038, 0.257834077, 0.087155968, 0.962250173), | |
1177 | CFrame.new(-0.50000006, -1.99927592, -0.116537228, 0.984807849, 0, 0.173647985, 0.0151344584, 0.996194661, -0.0858318806, -0.172987193, 0.087155968, 0.981060326), | |
1178 | }, .3, false) | |
1179 | torsy.CFrame = RootPart.CFrame*CFrame.new(0,0,-1.3) | |
1180 | torsy.Velocity = Vector3.new() | |
1181 | end | |
1182 | local armmod = Instance.new("Model",chara) | |
1183 | armmod.Name = grab.Name | |
1184 | Instance.new("Humanoid",armmod).Health = 0 | |
1185 | for i, v in pairs(grab:GetChildren()) do | |
1186 | if v:IsA("Accoutrement") then | |
1187 | if v:FindFirstChild("Handle"):FindFirstChild("AccessoryWeld") then | |
1188 | v.Handle.AccessoryWeld.Part1 = nil | |
1189 | end | |
1190 | end | |
1191 | end | |
1192 | local armp = grab:FindFirstChild("Head") | |
1193 | createSplatter(armp.Position) | |
1194 | killmortal(grab,5) | |
1195 | armp.Parent = armmod | |
1196 | for i, v in pairs(grab:GetChildren()) do | |
1197 | if v:IsA("Accoutrement") then | |
1198 | if v:FindFirstChild("Handle"):FindFirstChild("AccessoryWeld") then | |
1199 | v.Handle.AccessoryWeld.Part1 = armp | |
1200 | v.Parent = armmod | |
1201 | end | |
1202 | end | |
1203 | end | |
1204 | so(206082327,armp,1,5) | |
1205 | local bledp = Instance.new("Part",grab) | |
1206 | bledp.Size = Vector3.new(0,0,0) | |
1207 | bledp.Transparency = 1 | |
1208 | bledp.CanCollide = false | |
1209 | local blpe = blpemit:Clone() | |
1210 | blpe.Parent = bledp | |
1211 | blpe.EmissionDirection = "Top" | |
1212 | blpe.VelocitySpread = 20 | |
1213 | local wel = Instance.new("Weld",armp) | |
1214 | wel.Part0 = RightArm | |
1215 | wel.Part1 = armp | |
1216 | wel.C0 = CFrame.new(0,-1.5,0) * CFrame.Angles(math.rad(-90),0,0) | |
1217 | local blape = bledp:Clone() | |
1218 | blape.Parent = armmod | |
1219 | blape.ParticleEmitter.EmissionDirection = "Bottom" | |
1220 | local bledw = Instance.new("Weld",bledp) | |
1221 | bledw.Part0 = torsy | |
1222 | bledw.Part1 = bledp | |
1223 | bledw.C0 = CFrame.new(0,1,0) | |
1224 | local bledw2 = Instance.new("Weld",blape) | |
1225 | bledw2.Part0 = armp | |
1226 | bledw2.Part1 = blape | |
1227 | bledw2.C0 = CFrame.new(0,-.5,0) | |
1228 | grabhead = true | |
1229 | heddo = armp | |
1230 | for i = 0, 1, 0.25 do | |
1231 | swait() | |
1232 | PlayAnimationFromTable({ | |
1233 | CFrame.new(-0.37728107, 0.00182711286, -0.228351086, 0.707106352, 0.0616285279, -0.704416513, 0, 0.99619478, 0.0871558264, 0.707107365, -0.0616284423, 0.7044155), | |
1234 | CFrame.new(-9.90927219e-07, 1.49941754, 0.0767165273, 0.766044199, 0, 0.642788053, 0.0560227223, 0.99619478, -0.066765219, -0.640341938, 0.0871558264, 0.763129056), | |
1235 | CFrame.new(1.50000226, 0.492404312, 0.086825721, 0.642795563, -0.766037941, -8.04662704e-07, -0.133022025, -0.111620016, -0.98480767, 0.754399955, 0.633030057, -0.17364876), | |
1236 | CFrame.new(-1.01654804, 1.22616923, -0.180458635, 0.525007069, -0.121539712, -0.8423751, -0.63483566, -0.715151966, -0.292475075, -0.566878796, 0.688320994, -0.452617407), | |
1237 | CFrame.new(0.499999106, -1.99927592, -0.116537355, 0.965925813, 0, -0.258819491, -0.0225576311, 0.99619478, -0.0841860622, 0.257834613, 0.0871558264, 0.962249994), | |
1238 | CFrame.new(-0.500003219, -1.99927604, -0.116538122, 0.984807849, 0, 0.173648447, 0.0151344724, 0.99619478, -0.0858317465, -0.17298761, 0.0871558264, 0.981060266), | |
1239 | }, .3, false) | |
1240 | end | |
1241 | swait(30) | |
1242 | end | |
1243 | attack = false | |
1244 | Humanoid.WalkSpeed = 8 | |
1245 | end | |
1246 | ||
1247 | function headthrow() | |
1248 | attack = true | |
1249 | Humanoid.WalkSpeed = 2 | |
1250 | for i = 0, 2, 0.1 do | |
1251 | swait() | |
1252 | PlayAnimationFromTable({ | |
1253 | CFrame.new(-0.00874902681, -4.76837158e-07, -0.101877891, 0.342019022, 0, -0.939693093, 0, 1, 0, 0.939693093, 0, 0.342018992), | |
1254 | CFrame.new(0.0987267792, 1.49999189, 0.0266250018, 0.342019022, 0, 0.939693093, 0, 1, 0, -0.939693093, 0, 0.342018992), | |
1255 | CFrame.new(1.49999821, 0.499999046, -0.399993986, 1.00000012, -2.98023224e-08, 0, 0, 0, -1, -2.98023224e-08, 1.00000012, 0), | |
1256 | CFrame.new(-1.54019761, 0.669612885, -6.12696294e-06, 0.499998331, 0.866026461, 1.87754631e-06, -0.866026402, 0.499998331, 2.13891599e-06, 8.94069672e-07, -2.71201134e-06, 1.00000012), | |
1257 | CFrame.new(0.500005782, -1.99999893, -3.82959888e-06, 1.00000012, 0, -2.98023224e-08, 0, 1, 0, -2.98023224e-08, 0, 1.00000012), | |
1258 | CFrame.new(-0.499995083, -1.99999893, -1.18389726e-05, 0.17364721, 0, 0.984808028, 0, 1, 0, -0.984808028, 0, 0.17364718), | |
1259 | }, .3, false) | |
1260 | end | |
1261 | so(200632136, RootPart, .8, 1) | |
1262 | local haea = heddo | |
1263 | haea.Weld:Destroy() | |
1264 | haea.Velocity = (Mouse.Hit.p-haea.Position).unit*200+Vector3.new(0,30,0) | |
1265 | haea.RotVelocity = Vector3.new(10,10,10) | |
1266 | haea.Touched:connect(function(hit) | |
1267 | if hit:IsDescendantOf(chara)==false and hit.Parent:FindFirstChildOfClass("Humanoid") and haea:FindFirstChild("HITA")==nil then | |
1268 | print("BOOBIES") | |
1269 | Instance.new("BoolValue",haea).Name = "HITA" | |
1270 | Effects.Wave.Create(BrickColor.new("White"), CFrame.new(haea.Position), 0, 0, 0, 1, .2, 1, 0.1) | |
1271 | killmortal(hit.Parent,50) | |
1272 | so(386946017,haea,.95,5) | |
1273 | swait(120) | |
1274 | for i=0,1,.05 do | |
1275 | haea.Transparency = i | |
1276 | swait() | |
1277 | end | |
1278 | haea.Parent:Destroy() | |
1279 | end | |
1280 | end) | |
1281 | heddo = nil | |
1282 | grabhead = false | |
1283 | for i = 0, 1, 0.1 do | |
1284 | swait() | |
1285 | PlayAnimationFromTable({ | |
1286 | CFrame.new(-0.0371780396, -4.76837158e-07, -0.0659790039, 0, 0, 1, 0, 1, 0, -1, 0, 0), | |
1287 | CFrame.new(0.0118849091, 1.43262982, -0.187934548, 0.716230929, -0.163175121, -0.678518414, 0.349525958, 0.92541784, 0.146401539, 0.604023933, -0.342017084, 0.719846845), | |
1288 | CFrame.new(1.05005264, 0.0782932937, -0.664391041, 0.766043901, 0.642788291, -5.71537271e-07, -0.321393967, 0.383021057, -0.866025865, -0.556670964, 0.663414121, 0.499999195), | |
1289 | CFrame.new(-1.59158015, 0.575855374, -7.62939453e-06, 0.64278698, 0.766044974, 0, -0.766044974, 0.64278698, 0, 0, 0, 1), | |
1290 | CFrame.new(0.500011563, -1.99999893, -2.07126141e-06, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388), | |
1291 | CFrame.new(-0.946406364, -1.97320735, -7.62939453e-06, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388, 0, 0, 0, 1), | |
1292 | }, .3, false) | |
1293 | end | |
1294 | attack = false | |
1295 | Humanoid.WalkSpeed = 8 | |
1296 | end | |
1297 | ||
1298 | function therip() | |
1299 | attack = true | |
1300 | Humanoid.WalkSpeed = 2 | |
1301 | local grab = nil | |
1302 | local torsy = nil | |
1303 | local hum = nil | |
1304 | for i, v in pairs(FindNearestTorso(Torso.Position, 5)) do | |
1305 | if v:FindFirstChild('Head') and v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 1 and v.Name ~= "Salvo_Starly" and v.Name ~= "NoobyGames12" and v.Name ~= "CKbackup" and v.Name ~= "Nebula_Zorua" then | |
1306 | hum = v:FindFirstChildOfClass("Humanoid") | |
1307 | torsy = v:FindFirstChild("UpperTorso") or v:FindFirstChild("Torso") | |
1308 | grab = v | |
1309 | end | |
1310 | end | |
1311 | if grab ~= nil and torsy ~= nil then | |
1312 | so(200632136, RootPart, .8, 1) | |
1313 | for i = 0,1.5,0.1 do | |
1314 | swait() | |
1315 | PlayAnimationFromTable({ | |
1316 | CFrame.new(0, 0, 0, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388), | |
1317 | CFrame.new(0, 1.49999118, 0, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388), | |
1318 | CFrame.new(1.50000226, 0.492404312, 0.086825721, 0.642795563, -0.766037941, -8.04662704e-07, -0.133022025, -0.111620016, -0.98480767, 0.754399955, 0.633030057, -0.17364876), | |
1319 | CFrame.new(-1.49999845, 0, 0, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024), | |
1320 | CFrame.new(0.500000119, -2, 0, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024), | |
1321 | CFrame.new(-0.499997556, -2, 1.63912773e-07, 0.766044557, 0, 0.642787695, 0, 1, 0, -0.642787695, 0, 0.766044557), | |
1322 | }, .3, false) | |
1323 | torsy.CFrame = RootPart.CFrame*CFrame.new(0,0,-1.3) | |
1324 | torsy.Velocity = Vector3.new() | |
1325 | end | |
1326 | so(240429615, torsy, 1, 1) | |
1327 | for i = 0, 1.5, 0.1 do | |
1328 | swait() | |
1329 | PlayAnimationFromTable({ | |
1330 | CFrame.new(0, 0, 0, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388), | |
1331 | CFrame.new(0.0219391882, 1.50780332, -0.243838966, 0.852868617, 0.0296956748, -0.521280766, 0.173647985, 0.925416708, 0.336823881, 0.492404163, -0.377785802, 0.784102201), | |
1332 | CFrame.new(1.50000226, 0.469847411, -0.171007544, 0.939692974, -0.342019379, -5.81145287e-07, 0.116976947, 0.321393847, -0.939692736, 0.321393311, 0.883022606, 0.342019975), | |
1333 | CFrame.new(-1.50000036, 0, -3.81469818e-06, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024), | |
1334 | CFrame.new(0.500001073, -1.99999905, 7.15255737e-07, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388), | |
1335 | CFrame.new(-0.500000119, -1.99999905, -3.81469818e-06, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024), | |
1336 | }, .3, false) | |
1337 | torsy.CFrame = RootPart.CFrame*CFrame.new(0,0,-1.3) | |
1338 | torsy.Velocity = Vector3.new() | |
1339 | end | |
1340 | for i = 0, 3, 0.1 do | |
1341 | swait() | |
1342 | PlayAnimationFromTable({ | |
1343 | CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
1344 | CFrame.new(0, 1.4261663, 0.264408052, 1, 0, 0, 0, 0.76604414, -0.642788053, 0, 0.642788053, 0.76604414), | |
1345 | CFrame.new(1.45148087, 1.32618856, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1), | |
1346 | CFrame.new(-1.48567963, 1.22015762, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1), | |
1347 | CFrame.new(0.500001848, -1.99999988, 1.62422657e-06, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736), | |
1348 | CFrame.new(-0.500001848, -1.99999988, 1.62422657e-06, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736), | |
1349 | }, .3, false) | |
1350 | torsy.CFrame = clerp(torsy.CFrame,RootPart.CFrame*CFrame.new(0,3,0)*CFrame.Angles(math.rad(90),0,math.rad(90)),.3) | |
1351 | hum.PlatformStand = true | |
1352 | torsy.Velocity = Vector3.new() | |
1353 | end | |
1354 | so(206082327,torsy,1,5) | |
1355 | createSplatter(torsy.Position) | |
1356 | if hum.RigType == Enum.HumanoidRigType.R6 then | |
1357 | local lleg = grab:FindFirstChild("Left Leg") | |
1358 | local rleg = grab:FindFirstChild("Right Leg") | |
1359 | local mad = Instance.new("Model",workspace) | |
1360 | Instance.new("Humanoid",mad).Health = 0 | |
1361 | mad.Humanoid.MaxHealth = 0 | |
1362 | if grab:FindFirstChildOfClass("Pants") then grab:FindFirstChildOfClass("Pants"):Clone().Parent = mad end | |
1363 | killmortal(grab,0) | |
1364 | coroutine.wrap(function() | |
1365 | swait(4) | |
1366 | torsy.Velocity = RootPart.CFrame.rightVector*-30 | |
1367 | lleg.Parent = mad | |
1368 | rleg.Parent = mad | |
1369 | lleg.CanCollide = true | |
1370 | rleg.CanCollide = true | |
1371 | lleg:BreakJoints() | |
1372 | rleg:BreakJoints() | |
1373 | lleg.Velocity = RootPart.CFrame.rightVector*30 | |
1374 | rleg.Velocity = RootPart.CFrame.rightVector*30 | |
1375 | local bledp = Instance.new("Part",mad) | |
1376 | bledp.Size = Vector3.new(0,0,0) | |
1377 | bledp.Transparency = 1 | |
1378 | bledp.CanCollide = false | |
1379 | local blpe = blpemit:Clone() | |
1380 | blpe.Parent = bledp | |
1381 | blpe.EmissionDirection = "Top" | |
1382 | blpe.VelocitySpread = 20 | |
1383 | local bledp2 = bledp:Clone() | |
1384 | bledp2.Parent = mad | |
1385 | local blape = bledp:Clone() | |
1386 | blape.Parent = mad | |
1387 | blape.ParticleEmitter.EmissionDirection = "Bottom" | |
1388 | blape.Size = Vector3.new(1.5,0,0) | |
1389 | local bledw = Instance.new("Weld",bledp) | |
1390 | bledw.Part0 = lleg | |
1391 | bledw.Part1 = bledp | |
1392 | bledw.C0 = CFrame.new(0,1,0) | |
1393 | local bledw2 = Instance.new("Weld",blape) | |
1394 | bledw2.Part0 = torsy | |
1395 | bledw2.Part1 = blape | |
1396 | bledw2.C0 = CFrame.new(0,-.5,0) | |
1397 | local bledw3 = Instance.new("Weld",bledp2) | |
1398 | bledw.Part0 = rleg | |
1399 | bledw.Part1 = bledp2 | |
1400 | bledw.C0 = CFrame.new(0,1,0) | |
1401 | game:service'Debris':AddItem(mad,15) | |
1402 | end)() | |
1403 | elseif hum.RigType == Enum.HumanoidRigType.R15 then | |
1404 | local hip = grab:FindFirstChild("LowerTorso") | |
1405 | local lleg = grab:FindFirstChild("LeftUpperLeg") | |
1406 | local rleg = grab:FindFirstChild("RightUpperLeg") | |
1407 | --for i,v in pairs(grab:children()) do | |
1408 | --if v:IsA("BasePart") then blpemit:Clone().Parent = v end | |
1409 | --end | |
1410 | killmortal(grab,0) | |
1411 | coroutine.wrap(function() | |
1412 | swait(2) | |
1413 | hip:Destroy() | |
1414 | torsy.Velocity = RootPart.CFrame.rightVector*-60 | |
1415 | lleg.Velocity = RootPart.CFrame.rightVector*60 | |
1416 | rleg.Velocity = RootPart.CFrame.rightVector*60 | |
1417 | local bledp = Instance.new("Part",torsy.Parent) | |
1418 | bledp.Size = Vector3.new(0,0,0) | |
1419 | bledp.Transparency = 1 | |
1420 | bledp.CanCollide = false | |
1421 | local blpe = blpemit:Clone() | |
1422 | blpe.Parent = bledp | |
1423 | blpe.EmissionDirection = "Top" | |
1424 | blpe.VelocitySpread = 20 | |
1425 | local bledp2 = bledp:Clone() | |
1426 | bledp2.Parent = torsy.Parent | |
1427 | local blape = bledp:Clone() | |
1428 | blape.Parent = torsy.Parent | |
1429 | blape.ParticleEmitter.EmissionDirection = "Bottom" | |
1430 | blape.Size = Vector3.new(1.5,0,0) | |
1431 | local bledw = Instance.new("Weld",bledp) | |
1432 | bledw.Part0 = lleg | |
1433 | bledw.Part1 = bledp | |
1434 | bledw.C0 = CFrame.new(0,1,0) | |
1435 | local bledw2 = Instance.new("Weld",blape) | |
1436 | bledw2.Part0 = torsy | |
1437 | bledw2.Part1 = blape | |
1438 | bledw2.C0 = CFrame.new(0,-.5,0) | |
1439 | local bledw3 = Instance.new("Weld",bledp2) | |
1440 | bledw.Part0 = rleg | |
1441 | bledw.Part1 = bledp2 | |
1442 | bledw.C0 = CFrame.new(0,1,0) | |
1443 | end)() | |
1444 | --hip:BreakJoints() | |
1445 | --hip.Velocity = RootPart.CFrame.rightVector*-30 | |
1446 | end | |
1447 | for i = 0, 2, 0.1 do | |
1448 | swait() | |
1449 | PlayAnimationFromTable({ | |
1450 | CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
1451 | CFrame.new(0, 1.4261663, 0.264408052, 1, 0, 0, 0, 0.76604414, -0.642788053, 0, 0.642788053, 0.76604414), | |
1452 | CFrame.new(1.45148087, 0.22618866, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1), | |
1453 | CFrame.new(-1.48567963, 0.220157385, 0, 0, 1, 0, 1, 0, 0, 0, 0, -1), | |
1454 | CFrame.new(0.500001848, -1.99999988, 1.62422657e-06, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736), | |
1455 | CFrame.new(-0.499995321, -1.99999988, -2.78651714e-06, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736), | |
1456 | }, .3, false) | |
1457 | end | |
1458 | end | |
1459 | attack = false | |
1460 | Humanoid.WalkSpeed = 8 | |
1461 | end | |
1462 | ||
1463 | function thecrush() | |
1464 | attack = true | |
1465 | Humanoid.WalkSpeed = 0 | |
1466 | local grab = nil | |
1467 | local torsy = nil | |
1468 | local heddo = nil | |
1469 | local hum = nil | |
1470 | for i, v in pairs(FindNearestTorso(Torso.Position, 5)) do | |
1471 | if v:FindFirstChild('Head') and v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 1 and v.Name ~= "Salvo_Starly" and v.Name ~= "NoobyGames12" and v.Name ~= "CKbackup" and v.Name ~= "Nebula_Zorua" then | |
1472 | hum = v:FindFirstChildOfClass("Humanoid") | |
1473 | torsy = v:FindFirstChild("UpperTorso") or v:FindFirstChild("Torso") | |
1474 | heddo = v:FindFirstChild("Head") | |
1475 | grab = v | |
1476 | end | |
1477 | end | |
1478 | if grab ~= nil and torsy ~= nil then | |
1479 | so(200632136, RootPart, .8, 1) | |
1480 | for i = 0,1.5,0.1 do | |
1481 | swait() | |
1482 | PlayAnimationFromTable({ | |
1483 | CFrame.new(0, 0, 0, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388), | |
1484 | CFrame.new(0, 1.49999118, 0, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388), | |
1485 | CFrame.new(1.50000226, 0.492404312, 0.086825721, 0.642795563, -0.766037941, -8.04662704e-07, -0.133022025, -0.111620016, -0.98480767, 0.754399955, 0.633030057, -0.17364876), | |
1486 | CFrame.new(-1.49999845, 0, 0, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024), | |
1487 | CFrame.new(0.500000119, -2, 0, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024), | |
1488 | CFrame.new(-0.499997556, -2, 1.63912773e-07, 0.766044557, 0, 0.642787695, 0, 1, 0, -0.642787695, 0, 0.766044557), | |
1489 | }, .3, false) | |
1490 | torsy.CFrame = RootPart.CFrame*CFrame.new(0,0,-1.3) | |
1491 | torsy.Velocity = Vector3.new() | |
1492 | end | |
1493 | so(240429615, torsy, 1, 1) | |
1494 | if torsy.Name == "UpperTorso" then | |
1495 | heddo.CFrame = RootPart.CFrame*CFrame.new(-2,-3,-1)*CFrame.Angles(math.rad(90),0,math.rad(-90)) | |
1496 | else | |
1497 | heddo.CFrame = RootPart.CFrame*CFrame.new(-1,-3,-1)*CFrame.Angles(math.rad(90),0,math.rad(-90)) | |
1498 | end | |
1499 | heddo.Anchored = true | |
1500 | for i = 0, 1.5, 0.1 do | |
1501 | swait() | |
1502 | PlayAnimationFromTable({ | |
1503 | CFrame.new(0, 0, 0, 0.866025567, 3.5521316e-07, 0.500010252, 4.93042535e-06, 1.00000048, -7.94596781e-06, -0.50000006, -9.23901825e-06, 0.866042376), | |
1504 | CFrame.new(0.021950826, 1.50780511, -0.243860856, 0.852867603, 0.029702425, -0.521282434, 0.173647955, 0.925416946, 0.336825043, 0.492411494, -0.377797663, 0.784104764), | |
1505 | CFrame.new(0.956388712, -0.0409758762, -0.674532533, 0.766045928, 0.604021251, 0.219847187, -0.219834015, 0.567593455, -0.793417811, -0.604028642, 0.559465349, 0.567598879), | |
1506 | CFrame.new(-1.50000024, -1.14488239e-05, 8.18094031e-06, 1.00000012, 4.93042535e-06, 2.68220901e-07, 4.93042535e-06, 1.00000048, -7.94596781e-06, 2.68220901e-07, -7.94596781e-06, 1.00001991), | |
1507 | CFrame.new(0.499976635, -1.99998999, 3.24696302e-05, 0.866025567, 4.93042535e-06, -0.50000006, 3.5521316e-07, 1.00000048, -9.23901825e-06, 0.500010252, -7.94596781e-06, 0.866042376), | |
1508 | CFrame.new(-0.500013709, -2.00000167, 3.48316753e-05, 1.00000012, 4.93042535e-06, 2.68220901e-07, 4.93042535e-06, 1.00000048, -7.94596781e-06, 2.68220901e-07, -7.94596781e-06, 1.00001991), | |
1509 | }, .3, false) | |
1510 | --heddo.CFrame = RootPart.CFrame*CFrame.new(.5,-3,-2)*CFrame.Angles(math.rad(90),0,math.rad(90)) | |
1511 | --heddo.Velocity = Vector3.new() | |
1512 | --hum.PlatformStand = true | |
1513 | end | |
1514 | for i = 0, 3, 0.1 do | |
1515 | swait() | |
1516 | PlayAnimationFromTable({ | |
1517 | CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
1518 | CFrame.new(0, 1.46578956, -0.0939694047, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), | |
1519 | CFrame.new(1.52320564, 0.359808445, 0, 0.866025388, -0.500000238, 0, 0.500000238, 0.866025388, 0, 0, 0, 1), | |
1520 | CFrame.new(-1.52320766, 0.359808564, 0, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388, 0, 0, 0, 1), | |
1521 | CFrame.new(0.5, -1.19999838, -0.600002289, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
1522 | CFrame.new(-0.5, -1.9999994, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
1523 | }, .3, false) | |
1524 | --heddo.CFrame = RootPart.CFrame*CFrame.new(.5,-3,-2)*CFrame.Angles(math.rad(90),0,math.rad(90)) | |
1525 | --heddo.Velocity = Vector3.new() | |
1526 | --hum.PlatformStand = true | |
1527 | end | |
1528 | so(206082327,torsy,1,5) | |
1529 | killmortal(grab,0) | |
1530 | createSplatter(heddo.Position) | |
1531 | coroutine.wrap(function() | |
1532 | swait(3) | |
1533 | local passa = heddo.Position | |
1534 | heddo:Destroy() | |
1535 | for i=1,15 do | |
1536 | local bl = Instance.new("Part",torsy) | |
1537 | bl.CFrame = CFrame.new(passa) + Vector3.new(math.random(-10,10)/10,0,math.random(-10,10)/10) | |
1538 | local rand = math.random(2,7)/10 | |
1539 | bl.Size = Vector3.new(rand,rand,rand) | |
1540 | bl.BrickColor = BrickColor.new("Maroon") | |
1541 | bl.Material = "Granite" | |
1542 | end | |
1543 | end)() | |
1544 | for i = 0, 3, 0.1 do | |
1545 | swait() | |
1546 | PlayAnimationFromTable({ | |
1547 | CFrame.new(0, -0.115425974, -0.607762575, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), | |
1548 | CFrame.new(0, 1.46579063, -0.0939693749, 1, 0, 0, 0, 0.939692438, 0.342020929, 0, -0.342020959, 0.939692438), | |
1549 | CFrame.new(1.52320361, 0.359808356, 2.34974073e-06, 0.86602509, -0.500000656, -3.33671437e-07, 0.500000715, 0.86602509, 2.08616257e-07, 1.78813934e-07, -3.87430191e-07, 1), | |
1550 | CFrame.new(-1.5232048, 0.359810114, 2.34974073e-06, 0.86602509, 0.500000656, 3.33671437e-07, -0.500000715, 0.86602509, 2.08616257e-07, -1.78813934e-07, -3.87430191e-07, 1), | |
1551 | CFrame.new(0.5, -1.6025629, -1.10711849, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736), | |
1552 | CFrame.new(-0.5, -1.99999857, 3.87430191e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1), | |
1553 | }, .4, false) | |
1554 | end | |
1555 | end | |
1556 | attack = false | |
1557 | Humanoid.WalkSpeed = 8 | |
1558 | end | |
1559 | ||
1560 | function thehand() | |
1561 | attack = true | |
1562 | Humanoid.WalkSpeed = 2 | |
1563 | local grab = nil | |
1564 | local torsy = nil | |
1565 | local totear = nil | |
1566 | local hum = nil | |
1567 | for i, v in pairs(FindNearestTorso(Torso.Position, 5)) do | |
1568 | if v:FindFirstChild('Head') and (v:FindFirstChild("Right Arm") or v:FindFirstChild("RightUpperArm")) and v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 1 and v.Name ~= "Salvo_Starly" and v.Name ~= "NoobyGames12" and v.Name ~= "CKbackup" and v.Name ~= "Nebula_Zorua" then | |
1569 | torsy = v:FindFirstChild("UpperTorso") or v:FindFirstChild("Torso") | |
1570 | grab = v | |
1571 | totear = v:FindFirstChild("Right Arm") or v:FindFirstChild("RightUpperArm") | |
1572 | hum = v:FindFirstChildOfClass("Humanoid") | |
1573 | end | |
1574 | end | |
1575 | if grab ~= nil and torsy ~= nil and totear ~= nil and hum ~= nil then | |
1576 | so(200632136, RootPart, .8, 1) | |
1577 | for i = 0,2,0.1 do | |
1578 | swait() | |
1579 | PlayAnimationFromTable({ | |
1580 | CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
1581 | CFrame.new(0, 1.49999475, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
1582 | CFrame.new(1.0939827, 0.850001335, -0.515790701, 0, -0.342019916, 0.939692736, 1, 0, 0, 0, 0.939692736, 0.342019886), | |
1583 | CFrame.new(-0.900009155, 0.849995136, -0.549995422, 0, 0, -1, -1, 0, 0, 0, 1, 0), | |
1584 | CFrame.new(0.5, -1.99999952, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
1585 | CFrame.new(-0.5, -1.99999952, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
1586 | }, .3, false) | |
1587 | torsy.CFrame = RootPart.CFrame*CFrame.new(0,0,-1.3) | |
1588 | torsy.Velocity = Vector3.new() | |
1589 | end | |
1590 | so(206082327,totear,1,5) | |
1591 | local bledp = Instance.new("Part",grab) | |
1592 | bledp.Size = Vector3.new(0,0,0) | |
1593 | bledp.Transparency = 1 | |
1594 | bledp.CanCollide = false | |
1595 | local blpe = blpemit:Clone() | |
1596 | blpe.Parent = bledp | |
1597 | blpe.EmissionDirection = "Left" | |
1598 | local armmod = Instance.new("Model",chara) | |
1599 | armmod.Name = "TornArmdd" | |
1600 | Instance.new("Humanoid",armmod).MaxHealth = 0 | |
1601 | for _, v in pairs(grab:GetChildren()) do | |
1602 | if v:IsA("Shirt") or v:IsA("CharacterMesh") then | |
1603 | v:Clone().Parent = armmod | |
1604 | end | |
1605 | end | |
1606 | local armp = totear | |
1607 | createSplatter(totear.Position) | |
1608 | armp:BreakJoints() | |
1609 | armp.Parent = armmod | |
1610 | so("206082327",armp,1,1) | |
1611 | local wel = Instance.new("Weld",armp) | |
1612 | wel.Part0 = RightArm | |
1613 | wel.Part1 = armp | |
1614 | wel.C0 = CFrame.new(0,-1.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0) | |
1615 | local blape = bledp:Clone() | |
1616 | blape.Parent = armmod | |
1617 | local bledw = Instance.new("Weld",bledp) | |
1618 | bledw.Part0 = torsy | |
1619 | bledw.Part1 = bledp | |
1620 | local bledw2 = Instance.new("Weld",blape) | |
1621 | bledw2.Part0 = armp | |
1622 | bledw2.Part1 = blape | |
1623 | bledw.C0 = CFrame.new(1,.5,0) | |
1624 | bledw2.C0 = CFrame.new(-.5,.5,0) | |
1625 | blpe.EmissionDirection = "Right" | |
1626 | grabhand = true | |
1627 | armo = armp | |
1628 | coroutine.wrap(function() | |
1629 | local currhp = hum.Health | |
1630 | for i=1,currhp do | |
1631 | if hum.Health > 0 then | |
1632 | hum.Health = currhp - (i-1) | |
1633 | swait(3) | |
1634 | end | |
1635 | end | |
1636 | if hum.Health > 0 then | |
1637 | killmortal(grab,0) | |
1638 | end | |
1639 | end)() | |
1640 | for i = 0, 1, 0.25 do | |
1641 | swait() | |
1642 | PlayAnimationFromTable({ | |
1643 | CFrame.new(0, 0, 0, 0.866021276, 0, -0.499997795, 0, 1, 0, 0.499997914, 0, 0.866021156), | |
1644 | CFrame.new(0, 1.49999189, 0, 0.866021276, 0, 0.499997914, 0, 1, 0, -0.499997795, 0, 0.866021156), | |
1645 | CFrame.new(1.50001729, 0.492406696, 0.0868175104, 0.642792583, -0.766034186, -7.97212124e-07, -0.133019835, -0.111618251, -0.984808207, 0.754396439, 0.633027494, -0.173645109), | |
1646 | CFrame.new(-1.38039482, 0.919607162, -0.300003946, 0, 0.500000179, -0.866022646, -1, 0, 0, 0, 0.866022587, 0.500000119), | |
1647 | CFrame.new(0.500005305, -1.99999964, -7.61445699e-06, 0.99999541, 0, 2.98023224e-08, 0, 1, 0, 2.98023224e-08, 0, 0.999995232), | |
1648 | CFrame.new(-0.499997407, -1.99999964, -5.43892384e-06, 0.766040862, 0, 0.642784715, 0, 1, 0, -0.642784536, 0, 0.766040802), | |
1649 | }, .3, false) | |
1650 | end | |
1651 | swait(30) | |
1652 | end | |
1653 | attack = false | |
1654 | Humanoid.WalkSpeed = 8 | |
1655 | end | |
1656 | ||
1657 | function armthrow() | |
1658 | attack = true | |
1659 | Humanoid.WalkSpeed = 2 | |
1660 | for i = 0, 2, 0.1 do | |
1661 | swait() | |
1662 | PlayAnimationFromTable({ | |
1663 | CFrame.new(-0.00874902681, -4.76837158e-07, -0.101877891, 0.342019022, 0, -0.939693093, 0, 1, 0, 0.939693093, 0, 0.342018992), | |
1664 | CFrame.new(0.0987267792, 1.49999189, 0.0266250018, 0.342019022, 0, 0.939693093, 0, 1, 0, -0.939693093, 0, 0.342018992), | |
1665 | CFrame.new(1.49999821, 0.499999046, -0.399993986, 1.00000012, -2.98023224e-08, 0, 0, 0, -1, -2.98023224e-08, 1.00000012, 0), | |
1666 | CFrame.new(-1.54019761, 0.669612885, -6.12696294e-06, 0.499998331, 0.866026461, 1.87754631e-06, -0.866026402, 0.499998331, 2.13891599e-06, 8.94069672e-07, -2.71201134e-06, 1.00000012), | |
1667 | CFrame.new(0.500005782, -1.99999893, -3.82959888e-06, 1.00000012, 0, -2.98023224e-08, 0, 1, 0, -2.98023224e-08, 0, 1.00000012), | |
1668 | CFrame.new(-0.499995083, -1.99999893, -1.18389726e-05, 0.17364721, 0, 0.984808028, 0, 1, 0, -0.984808028, 0, 0.17364718), | |
1669 | }, .3, false) | |
1670 | end | |
1671 | so(200632136, RootPart, .8, 1) | |
1672 | local haea = armo | |
1673 | haea.Weld:Destroy() | |
1674 | haea.Velocity = (Mouse.Hit.p-haea.Position).unit*200+Vector3.new(0,30,0) | |
1675 | haea.RotVelocity = Vector3.new(10,10,10) | |
1676 | haea.Touched:connect(function(hit) | |
1677 | if hit:IsDescendantOf(chara)==false and hit.Parent:FindFirstChildOfClass("Humanoid") and haea:FindFirstChild("HITA")==nil then | |
1678 | print("BOOBIES") | |
1679 | Instance.new("BoolValue",haea).Name = "HITA" | |
1680 | Effects.Wave.Create(BrickColor.new("White"), CFrame.new(haea.Position), 0, 0, 0, 1, .2, 1, 0.1) | |
1681 | killmortal(hit.Parent,50) | |
1682 | so(386946017,haea,.95,5) | |
1683 | swait(120) | |
1684 | for i=0,1,.05 do | |
1685 | haea.Transparency = i | |
1686 | swait() | |
1687 | end | |
1688 | haea.Parent:Destroy() | |
1689 | end | |
1690 | end) | |
1691 | armo = nil | |
1692 | grabhand = false | |
1693 | for i = 0, 1, 0.1 do | |
1694 | swait() | |
1695 | PlayAnimationFromTable({ | |
1696 | CFrame.new(-0.0371780396, -4.76837158e-07, -0.0659790039, 0, 0, 1, 0, 1, 0, -1, 0, 0), | |
1697 | CFrame.new(0.0118849091, 1.43262982, -0.187934548, 0.716230929, -0.163175121, -0.678518414, 0.349525958, 0.92541784, 0.146401539, 0.604023933, -0.342017084, 0.719846845), | |
1698 | CFrame.new(1.05005264, 0.0782932937, -0.664391041, 0.766043901, 0.642788291, -5.71537271e-07, -0.321393967, 0.383021057, -0.866025865, -0.556670964, 0.663414121, 0.499999195), | |
1699 | CFrame.new(-1.59158015, 0.575855374, -7.62939453e-06, 0.64278698, 0.766044974, 0, -0.766044974, 0.64278698, 0, 0, 0, 1), | |
1700 | CFrame.new(0.500011563, -1.99999893, -2.07126141e-06, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388), | |
1701 | CFrame.new(-0.946406364, -1.97320735, -7.62939453e-06, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388, 0, 0, 0, 1), | |
1702 | }, .3, false) | |
1703 | end | |
1704 | attack = false | |
1705 | Humanoid.WalkSpeed = 8 | |
1706 | end | |
1707 | ||
1708 | function smek() | |
1709 | attack = true | |
1710 | for i=0,1,.2 do | |
1711 | swait() | |
1712 | PlayAnimationFromTable({ | |
1713 | CFrame.new(0, 0, 0, 0.499998987, 0, -0.866025984, 0, 1, 0, 0.866025984, 0, 0.499998987), | |
1714 | CFrame.new(0, 1.49999714, 0, 0.499998987, 0, 0.866025984, 0, 1, 0, -0.866025984, 0, 0.499998987), | |
1715 | CFrame.new(1.6195364, 0.256343663, -3.60019794e-06, 0.939692736, -0.342020124, -8.94069672e-08, 0.342020154, 0.939692676, -4.35416268e-07, 2.08616257e-07, 3.87430191e-07, 1), | |
1716 | CFrame.new(-1.65980804, 0.323206544, 5.72385352e-06, 0.866025329, 0.500000238, -2.98023224e-07, -0.500000179, 0.866025388, -1.34623383e-06, -4.47034836e-07, 1.29640102e-06, 1.00000012), | |
1717 | CFrame.new(0.500001073, -2.00000095, -1.57952309e-06, 0.939692616, 0, -0.342020184, 0, 1, 0, 0.342020184, 0, 0.939692616), | |
1718 | CFrame.new(-0.499998212, -2.00000095, 1.49011612e-06, 0.766043544, 0, 0.642788708, 0, 1, 0, -0.642788708, 0, 0.766043544), | |
1719 | }, .3, false) | |
1720 | end | |
1721 | Humanoid.WalkSpeed = 2 | |
1722 | so(536642316,armo,1,1) | |
1723 | for i=0,1,.1 do | |
1724 | swait() | |
1725 | PlayAnimationFromTable({ | |
1726 | CFrame.new(-0.0116844922, 0, -0.381816059, 0.342019022, 0, 0.939693093, 0, 1, 0, -0.939693093, 0, 0.342018992), | |
1727 | CFrame.new(-0.0728889629, 1.49999714, 0.038963601, 0.342019022, 0, -0.939693093, 0, 1, 0, 0.939693093, 0, 0.342018992), | |
1728 | CFrame.new(1.06065702, 1.09677029, -0.161810428, 0.400286436, 0.242276207, 0.88378346, 0.734158754, -0.661962748, -0.151050553, 0.548435688, 0.709300876, -0.442843854), | |
1729 | CFrame.new(-1.59605861, 0.10887894, 1.11486224e-06, 0.984807909, 0.173648059, -2.23517418e-06, -0.173648059, 0.984807849, 3.82394944e-07, 2.29477882e-06, 1.86264515e-08, 1), | |
1730 | CFrame.new(0.685087919, -1.96527183, 0.0673596561, 0.92541647, -0.163175598, -0.342020869, 0.173647985, 0.984807849, 2.90093368e-07, 0.336824894, -0.0593915246, 0.939692438), | |
1731 | CFrame.new(-0.499999702, -2.00000095, 8.68737698e-06, 0.766045451, 0, 0.642786503, 0, 1, 0, -0.642786503, 0, 0.766045511), | |
1732 | }, .3, false) | |
1733 | if armo ~= nil then | |
1734 | mdmg(armo,3,"Arm") | |
1735 | end | |
1736 | end | |
1737 | swait(5) | |
1738 | Humanoid.WalkSpeed = 8 | |
1739 | attack = false | |
1740 | end | |
1741 | ||
1742 | function dash() | |
1743 | attack = true | |
1744 | so("235097614",Torso,3,1) | |
1745 | so("75356820",Torso,2,1) | |
1746 | Effects.Ring.Create(BrickColor.new("Persimmon"),RootPart.CFrame, 1, 1, 0, 1, 1, .2, 0.05) | |
1747 | PlayAnimationFromTable({ | |
1748 | CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.999998331, 0, 0, 0, 0.999998331) * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-35), 0, 0), | |
1749 | CFrame.new(0, 1.49999368, 8.34463322E-7, 1, 0, 0, 0, 0.999998033, -2.38418579E-7, 0, 2.38418579E-7, 0.999998033) * CFrame.Angles(math.rad(15), 0, 0), | |
1750 | CFrame.new(0.663555026, 0.49231568, -0.850663185, 0.015370708, 0.692666352, 0.721096218, 0.999231637, 0.0153704779, -0.036063727, -0.0360642895, 0.721095979, -0.691897511) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),--CFrame.new(1.52564752, 0.0095030535, 0.16884166, 0.786316156, -0.464979529, -0.406817913, 0.489593357, 0.87058723, -0.0487444215, 0.376835734, -0.160846859, 0.912207723) * CFrame.new(0, 0.05 * math.cos(sine / 16), 0) * CFrame.Angles(0, 0, math.rad(3.5 * math.cos(sine / 16))), | |
1751 | CFrame.new(-1.57927585, 0.317291111, 0.397556216, 0.809802711, 0.208654553, 0.548345804, -0.517000973, 0.695623755, 0.498816311, -0.277362049, -0.687437952, 0.671192646) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1752 | CFrame.new(0.49999693, -1.99999774, -8.94069672E-8, 0.965925872, 3.7422879E-7, -0.258818924, 0.0449429974, 0.984807849, 0.167731062, 0.254886955, -0.173647881, 0.951251388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1753 | CFrame.new(-0.486001939, -1.31615341, 0.112926364, 1.00000167, 1.25169754E-6, -1.87754631E-6, 8.64267349E-7, 0.573579729, 0.819149494, -4.61935997E-7, -0.819151759, 0.573578417) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1754 | },1,false) | |
1755 | for i = 1, 5 do | |
1756 | for _, v in pairs(chara:children()) do | |
1757 | if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" then | |
1758 | do | |
1759 | local p = v:clone() | |
1760 | p.Name = "trail" | |
1761 | p.Parent = EffectModel | |
1762 | p.Transparency = 0.5 | |
1763 | p.Anchored = true | |
1764 | p.BrickColor = BrickColor.new("Really red") | |
1765 | p.Material = "Neon" | |
1766 | p:BreakJoints() | |
1767 | p.CanCollide = false | |
1768 | if v == Head then | |
1769 | for a, b in pairs(p:children()) do | |
1770 | if b:IsA("Sound") then | |
1771 | b:Destroy() | |
1772 | end | |
1773 | end | |
1774 | end | |
1775 | coroutine.resume(coroutine.create(function() | |
1776 | for i = 1, 50 do | |
1777 | swait() | |
1778 | p.Transparency = i / 50 | |
1779 | end | |
1780 | p:Destroy() | |
1781 | end)) | |
1782 | end | |
1783 | end | |
1784 | if v.className == "Accessory" then | |
1785 | end | |
1786 | end | |
1787 | RootPart.CFrame = RootPart.CFrame + RootPart.CFrame.lookVector*10 | |
1788 | swait() | |
1789 | end | |
1790 | attack = false | |
1791 | end | |
1792 | ||
1793 | function scream() | |
1794 | attack = true | |
1795 | Humanoid.WalkSpeed = 0 | |
1796 | for i=0,1,.1 do | |
1797 | swait() | |
1798 | PlayAnimationFromTable({ | |
1799 | CFrame.new(0, 0.0885660946, 0.326515794, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736), | |
1800 | CFrame.new(0, 1.43158889, 0.18794021, 1, 0, 0, 0, 0.939692438, -0.342020929, 0, 0.342020959, 0.939692438), | |
1801 | CFrame.new(1.5, 0.099998951, 9.56654503e-07, 0, -1, 0, -1, 0, -2.98023224e-08, -2.98023224e-08, 0, -1), | |
1802 | CFrame.new(-1.5, 0.099998951, 9.56654503e-07, 0, 1, 0, 1, 0, -2.98023224e-08, 2.98023224e-08, 0, -1), | |
1803 | CFrame.new(0.696960211, -2.04165077, 0.395629227, 0.984807849, -0.173647985, 0, 0.163175747, 0.925416768, 0.342019916, -0.0593910627, -0.336823881, 0.939692736), | |
1804 | CFrame.new(-0.696963668, -2.04164839, 0.395628393, 0.984807849, 0.173647985, 0, -0.163175747, 0.925416768, 0.342019916, 0.0593910627, -0.336823881, 0.939692736), | |
1805 | }, .3, false) | |
1806 | end | |
1807 | so(51322486,Torso,.5,5) | |
1808 | so(90696602,Torso,.5,5) | |
1809 | for i=1,120 do | |
1810 | mdmg(Torso,20,"Scream") | |
1811 | Effects.Ring.Create(BrickColor.new("Really black"),RootPart.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))), 1, 1, 0, 2, 2, .2, 0.05) | |
1812 | Effects.Wave.Create(BrickColor.new("Really black"),RootPart.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(0,math.random(-50,50),0), 1, 0, 1, 2, .1, 2, 0.05) | |
1813 | swait() | |
1814 | end | |
1815 | Humanoid.WalkSpeed = 8 | |
1816 | attack = false | |
1817 | end | |
1818 | ||
1819 | function handcrack() | |
1820 | attack = true | |
1821 | Humanoid.WalkSpeed = 0 | |
1822 | for i=0,1,.1 do | |
1823 | swait() | |
1824 | PlayAnimationFromTable({ | |
1825 | CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
1826 | CFrame.new(0, 1.4657917, -0.0939691663, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), | |
1827 | CFrame.new(0.849929154, 0.669377863, -0.285191476, 0.133021966, 0.754403889, 0.642790735, 0.989228785, -0.0610861331, -0.133022368, -0.0610869862, 0.65356195, -0.754403949), | |
1828 | CFrame.new(-0.949649334, 0.569002092, -0.378571123, -0, -0.866025269, -0.500000298, -0.984807849, 0.0868240297, -0.150383547, 0.173647985, 0.492404163, -0.852868497), | |
1829 | CFrame.new(0.499994665, -1.99999988, -9.83476639e-07, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736), | |
1830 | CFrame.new(-0.500002503, -1.99999988, -1.78813934e-07, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736), | |
1831 | }, .3, false) | |
1832 | end | |
1833 | so(240428955,Head,1,5) | |
1834 | swait(10) | |
1835 | Humanoid.WalkSpeed = 8 | |
1836 | attack = false | |
1837 | end | |
1838 | ||
1839 | function getoverhere() | |
1840 | attack = true | |
1841 | local dude = Mouse.Target.Parent | |
1842 | local torsy = dude:FindFirstChild("UpperTorso") or dude:FindFirstChild("Torso") | |
1843 | if dude~=nil and dude:FindFirstChildOfClass("Humanoid") and torsy~=nil then | |
1844 | Humanoid.WalkSpeed = 0 | |
1845 | for i=0,1,.1 do | |
1846 | swait() | |
1847 | PlayAnimationFromTable({ | |
1848 | CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)*CFrame.Angles(0,math.rad(360*i),0), | |
1849 | CFrame.new(0, 1.5255599, -0.222141176, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), | |
1850 | CFrame.new(0.200967461, 0.899999142, -0.749996543, 0, 0.866025984, 0.499998987, 1, 0, 0, 0, 0.499998987, -0.866025984), | |
1851 | CFrame.new(-1.52556288, 0.222140282, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1), | |
1852 | CFrame.new(0.499997377, -2, -9.01520252e-07, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849), | |
1853 | CFrame.new(-0.500002205, -2, 7.30156898e-07, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736), | |
1854 | }, .3, false) | |
1855 | end | |
1856 | so(743521497,RightArm,1,1) | |
1857 | coroutine.wrap(function() | |
1858 | for i=0,1,.1 do | |
1859 | swait() | |
1860 | PlayAnimationFromTable({ | |
1861 | CFrame.new(0.00389102311, 0, -0.0404044762, 2.68220901e-07, 0, 1.00000536, 0, 1, 0, -1.00000536, 0, 2.68220901e-07), | |
1862 | CFrame.new(1.78813934e-06, 1.52555692, -0.222144455, 0.342020005, -1.01929949e-08, -0.939692736, 0.321392, 0.939693451, 0.116977029, 0.883023024, -0.342018187, 0.321393877), | |
1863 | CFrame.new(1.50095332, 0.999999046, 0.0500030518, 0, -1, 0, 1, 0, 0, 0, 0, 1), | |
1864 | CFrame.new(-1.52557385, 0.222139984, 0, 0.939693272, 0.342018306, 0, -0.342018306, 0.939693332, 0, 0, 0, 1), | |
1865 | CFrame.new(0.500000775, -2, 1.69873238e-06, 0.984807789, 0, -0.173648104, 0, 1, 0, 0.173648089, 0, 0.984807789), | |
1866 | CFrame.new(-0.500008583, -2, 8.94069672e-08, 0.939692736, 0, 0.342020065, 0, 1, 0, -0.342020094, 0, 0.939692616), | |
1867 | }, .4, false) | |
1868 | end | |
1869 | end)() | |
1870 | so(138092011,Head,1,1) | |
1871 | local spikeh = Instance.new("Part",chara) | |
1872 | spikeh.CFrame = Torso.CFrame | |
1873 | spikeh.Size = Vector3.new(.5,.5,1) | |
1874 | spikeh.Material = "Metal" | |
1875 | spikeh.CanCollide = false | |
1876 | spikeh.Anchored = true | |
1877 | spikeh.BrickColor = BrickColor.new("Crimson") | |
1878 | local blast = Instance.new("Part",EffectModel) | |
1879 | blast.Size = Vector3.new(0,1,1) | |
1880 | blast.Transparency = 1 | |
1881 | blast.Anchored = true | |
1882 | blast.CanCollide = false | |
1883 | blast.CFrame = Torso.CFrame | |
1884 | local meh = Instance.new("SpecialMesh",spikeh) | |
1885 | meh.MeshType = "Wedge" | |
1886 | meh.Offset = Vector3.new(0,0,-1) | |
1887 | meh.Scale = Vector3.new(1,2,2) | |
1888 | local tex1 = Instance.new("Texture",blast) | |
1889 | tex1.Face = "Right" | |
1890 | tex1.Texture = "rbxassetid://187946416" | |
1891 | tex1.Color3 = Color3.new(1,0,0) | |
1892 | local tex2 = tex1:Clone() | |
1893 | tex2.Parent = blast | |
1894 | tex2.Face = "Left" | |
1895 | local origpos = Vector3.new() | |
1896 | for i=0,1,.1 do | |
1897 | swait() | |
1898 | local origpos = (RightArm.CFrame*CFrame.new(0,-1,0)).p | |
1899 | spikeh.CFrame = clerp(spikeh.CFrame,torsy.CFrame,.4) | |
1900 | spikeh.CFrame = CFrame.new(spikeh.Position,spikeh.Position+(torsy.Position-spikeh.Position).unit) | |
1901 | blast.Size = Vector3.new(0,1,(origpos-spikeh.Position).magnitude) | |
1902 | blast.CFrame = CFrame.new((origpos + spikeh.Position)/2,spikeh.Position) | |
1903 | end | |
1904 | local staypos = torsy.CFrame | |
1905 | so(154965973,spikeh,.7,2) | |
1906 | createSplatter(torsy.Position) | |
1907 | for i=1,30 do | |
1908 | swait() | |
1909 | torsy.CFrame = staypos | |
1910 | end | |
1911 | coroutine.wrap(function() | |
1912 | for i=0,1,.1 do | |
1913 | swait() | |
1914 | PlayAnimationFromTable({ | |
1915 | CFrame.new(-0.0371780396, -4.76837158e-07, -0.0659790039, 0, 0, 1, 0, 1, 0, -1, 0, 0), | |
1916 | CFrame.new(0.0118849091, 1.43262982, -0.187934548, 0.716230929, -0.163175121, -0.678518414, 0.349525958, 0.92541784, 0.146401539, 0.604023933, -0.342017084, 0.719846845), | |
1917 | CFrame.new(1.05005264, 0.0782932937, -0.664391041, 0.766043901, 0.642788291, -5.71537271e-07, -0.321393967, 0.383021057, -0.866025865, -0.556670964, 0.663414121, 0.499999195), | |
1918 | CFrame.new(-1.59158015, 0.575855374, -7.62939453e-06, 0.64278698, 0.766044974, 0, -0.766044974, 0.64278698, 0, 0, 0, 1), | |
1919 | CFrame.new(0.500011563, -1.99999893, -2.07126141e-06, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388), | |
1920 | CFrame.new(-0.946406364, -1.97320735, -7.62939453e-06, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388, 0, 0, 0, 1), | |
1921 | }, .4, false) | |
1922 | end | |
1923 | end)() | |
1924 | so(28144425,RightArm,.265,2) | |
1925 | for i=0,3,.1 do | |
1926 | swait() | |
1927 | local origpos = (RightArm.CFrame*CFrame.new(0,-1,0)).p | |
1928 | torsy.CFrame = clerp(torsy.CFrame,RootPart.CFrame*CFrame.new(0,0,-2),.1) | |
1929 | torsy.Velocity = Vector3.new(0,0,0) | |
1930 | spikeh.CFrame = torsy.CFrame | |
1931 | blast.Size = Vector3.new(0,1,(origpos-spikeh.Position).magnitude) | |
1932 | blast.CFrame = CFrame.new((origpos + spikeh.Position)/2,spikeh.Position) | |
1933 | end | |
1934 | spikeh:Destroy() | |
1935 | blast:Destroy() | |
1936 | Humanoid.WalkSpeed = 8 | |
1937 | end | |
1938 | attack = false | |
1939 | end | |
1940 | ||
1941 | local notallowed={ | |
1942 | "Right Arm", | |
1943 | "Left Arm", | |
1944 | "Right Leg", | |
1945 | "Left Leg", | |
1946 | "Head", | |
1947 | "HumanoidRootPart", | |
1948 | "Torso", | |
1949 | "LeftFoot", | |
1950 | "LeftHand", | |
1951 | "LeftLowerArm", | |
1952 | "LeftUpperArm", | |
1953 | "LeftUpperLeg", | |
1954 | "LeftLowerLeg", | |
1955 | "RightFoot", | |
1956 | "RightHand", | |
1957 | "RightLowerArm", | |
1958 | "RightUpperArm", | |
1959 | "RightUpperLeg", | |
1960 | "RightLowerLeg", | |
1961 | "LowerTorso", | |
1962 | "UpperTorso", | |
1963 | } | |
1964 | ||
1965 | function grabobj() | |
1966 | attack = true | |
1967 | Humanoid.WalkSpeed = 2 | |
1968 | local grab = nil | |
1969 | local torsy = nil | |
1970 | local totear = nil | |
1971 | local hum = nil | |
1972 | local targ = Mouse.Target | |
1973 | if targ ~= nil and targ:IsA("BasePart") and targ.Anchored == false and (targ.Position-RightArm.Position).magnitude<=5 then | |
1974 | for i,v in pairs(notallowed) do | |
1975 | if targ.Name == v then | |
1976 | Humanoid.WalkSpeed = 8 | |
1977 | attack = false | |
1978 | return | |
1979 | end | |
1980 | end | |
1981 | totear = targ | |
1982 | end | |
1983 | --for i, v in pairs(FindNearestObject(Torso.Position, 5)) do | |
1984 | --if totear ~= nil then | |
1985 | --totear = v | |
1986 | --end | |
1987 | --end | |
1988 | if totear ~= nil then | |
1989 | so(200632136, RootPart, .8, 1) | |
1990 | for i = 0,1,.1 do | |
1991 | swait() | |
1992 | PlayAnimationFromTable({ | |
1993 | CFrame.new(0, 0, 0, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388), | |
1994 | CFrame.new(0, 1.49999118, 0, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388), | |
1995 | CFrame.new(1.50000226, 0.492404312, 0.086825721, 0.642795563, -0.766037941, -8.04662704e-07, -0.133022025, -0.111620016, -0.98480767, 0.754399955, 0.633030057, -0.17364876), | |
1996 | CFrame.new(-1.49999845, 0, 0, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024), | |
1997 | CFrame.new(0.500000119, -2, 0, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024), | |
1998 | CFrame.new(-0.499997556, -2, 1.63912773e-07, 0.766044557, 0, 0.642787695, 0, 1, 0, -0.642787695, 0, 0.766044557), | |
1999 | }, .3, false) | |
2000 | end | |
2001 | so(200632136, RootPart, .8, 1) | |
2002 | for i = 0,1,.1 do | |
2003 | swait() | |
2004 | PlayAnimationFromTable({ | |
2005 | CFrame.new(0, 0, 0, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388), | |
2006 | CFrame.new(0.0219391882, 1.50780332, -0.243838966, 0.852868617, 0.0296956748, -0.521280766, 0.173647985, 0.925416708, 0.336823881, 0.492404163, -0.377785802, 0.784102201), | |
2007 | CFrame.new(1.50000226, 0.469847411, -0.171007544, 0.939692974, -0.342019379, -5.81145287e-07, 0.116976947, 0.321393847, -0.939692736, 0.321393311, 0.883022606, 0.342019975), | |
2008 | CFrame.new(-1.50000036, 0, -3.81469818e-06, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024), | |
2009 | CFrame.new(0.500001073, -1.99999905, 7.15255737e-07, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388), | |
2010 | CFrame.new(-0.500000119, -1.99999905, -3.81469818e-06, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024), | |
2011 | }, .3, false) | |
2012 | end | |
2013 | so(200632136, RootPart, .8, 1) | |
2014 | local armmod = Instance.new("Model",chara) | |
2015 | armmod.Name = "PickedUp" | |
2016 | local armp = totear | |
2017 | armp:BreakJoints() | |
2018 | armp.Parent = armmod | |
2019 | local wel = Instance.new("Weld",armp) | |
2020 | wel.Part0 = RightArm | |
2021 | wel.Part1 = armp | |
2022 | wel.C0 = CFrame.new(0,-1.5,0) | |
2023 | grabhand = true | |
2024 | armo = armp | |
2025 | end | |
2026 | attack = false | |
2027 | Humanoid.WalkSpeed = 8 | |
2028 | end | |
2029 | ||
2030 | ||
2031 | ||
2032 | Mouse.Button1Down:connect(function() | |
2033 | if attack == false then | |
2034 | if grabhead == true then | |
2035 | headthrow() | |
2036 | elseif grabhand == true then | |
2037 | smek() | |
2038 | -- else | |
2039 | -- if Anim == "Jump" or Anim == "Fall" then | |
2040 | -- --asmek() | |
2041 | -- else | |
2042 | -- --smek() | |
2043 | -- end | |
2044 | end | |
2045 | end | |
2046 | end) | |
2047 | ||
2048 | local sprintt = 0 | |
2049 | ||
2050 | ||
2051 | Mouse.KeyDown:connect(function(k) | |
2052 | k = k:lower() | |
2053 | if attack == false then | |
2054 | if k == 'z' and grabhead == false and grabhand == false then | |
2055 | thenatsuki() | |
2056 | elseif k == 'x' and grabhead == false and grabhand == false then | |
2057 | xhold = true | |
2058 | thesurou() | |
2059 | elseif k == 'c' and grabhead == false and grabhand == false then | |
2060 | therip() | |
2061 | elseif k == 'v' and grabhead == false and grabhand == false then | |
2062 | thecrush() | |
2063 | elseif k == 'b' then | |
2064 | if grabhead == true then | |
2065 | headthrow() | |
2066 | else | |
2067 | thehead() | |
2068 | end | |
2069 | elseif k == 'n' then | |
2070 | if grabhand == true then | |
2071 | armthrow() | |
2072 | else | |
2073 | thehand() | |
2074 | end | |
2075 | elseif k == 'e' then | |
2076 | dash() | |
2077 | elseif k == 'q' then | |
2078 | getoverhere() | |
2079 | elseif k == 'g' then | |
2080 | handcrack() | |
2081 | elseif k == 'h' then | |
2082 | scream() | |
2083 | elseif k == 'r' then | |
2084 | if grabhand == true then | |
2085 | armthrow() | |
2086 | else | |
2087 | grabobj() | |
2088 | end | |
2089 | end | |
2090 | end | |
2091 | end) | |
2092 | ||
2093 | Mouse.KeyUp:connect(function(k) | |
2094 | k = k:lower() | |
2095 | if k == 'x' then | |
2096 | xhold = false | |
2097 | end | |
2098 | end) | |
2099 | ||
2100 | ||
2101 | coroutine.wrap(function() | |
2102 | while 1 do | |
2103 | swait() | |
2104 | if doe <= 360 then | |
2105 | doe = doe + 2 | |
2106 | else | |
2107 | doe = 0 | |
2108 | end | |
2109 | end | |
2110 | end)() | |
2111 | while true do | |
2112 | swait() | |
2113 | for i, v in pairs(chara:GetChildren()) do | |
2114 | if v:IsA("Part") then | |
2115 | v.Material = "SmoothPlastic" | |
2116 | elseif v:IsA("Accessory") then | |
2117 | v:WaitForChild("Handle").Material = "SmoothPlastic" | |
2118 | end | |
2119 | end | |
2120 | while true do | |
2121 | swait() | |
2122 | if sprintt >= 1 then | |
2123 | sprintt = sprintt - 1 | |
2124 | end | |
2125 | ||
2126 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
2127 | velocity = RootPart.Velocity.y | |
2128 | sine = sine + change | |
2129 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, chara) | |
2130 | if RootPart.Velocity.y > 1 and hit == nil then | |
2131 | Anim = "Jump" | |
2132 | if attack == false then | |
2133 | PlayAnimationFromTable({ | |
2134 | CFrame.new(0, 0.0382082276, -0.0403150208, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849), | |
2135 | CFrame.new(0, 1.46579528, 0.0939689279, 1, 0, 0, 0, 0.939692855, -0.342019796, 0, 0.342019796, 0.939692855), | |
2136 | CFrame.new(1.20945489, -0.213504896, 3.55388607e-07, 0.939692736, 0.342019916, 1.53461215e-07, -0.342019945, 0.939692736, 1.93715096e-07, -8.56816769e-08, -2.23517418e-07, 1.00000012), | |
2137 | CFrame.new(-1.20945573, -0.213503733, 5.0439985e-07, 0.939692736, -0.342019916, -1.53461215e-07, 0.342019945, 0.939692736, 1.93715096e-07, 8.56816769e-08, -2.23517418e-07, 1.00000012), | |
2138 | CFrame.new(0.5, -1.99739456, -0.0180913229, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012), | |
2139 | CFrame.new(-0.5, -1.30000103, -0.39999947, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676), | |
2140 | }, .3, false) | |
2141 | end | |
2142 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
2143 | Anim = "Fall" | |
2144 | if attack == false then | |
2145 | PlayAnimationFromTable({ | |
2146 | CFrame.new(0, -0.0646628663, 0.0399149321, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849), | |
2147 | CFrame.new(0, 1.4913609, -0.128171027, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855), | |
2148 | CFrame.new(1.55285025, 0.466259956, -9.26282269e-08, 0.766043842, -0.642788351, -6.46188241e-08, 0.642788291, 0.766043961, -7.4505806e-08, 1.04308128e-07, 1.49011612e-08, 1.00000012), | |
2149 | CFrame.new(-1.5605253, 0.475036323, -2.10609159e-07, 0.766043842, 0.642788351, 6.46188241e-08, -0.642788291, 0.766043961, -7.4505806e-08, -1.04308128e-07, 1.49011612e-08, 1.00000012), | |
2150 | CFrame.new(0.500000954, -1.9973948, -0.0180922765, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012), | |
2151 | CFrame.new(-0.499999046, -1.30000043, -0.400000483, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855), | |
2152 | }, .3, false) | |
2153 | end | |
2154 | elseif Torsovelocity < 1 and hit ~= nil then | |
2155 | Anim = "Idle" | |
2156 | if attack == false then | |
2157 | change = 1 | |
2158 | PlayAnimationFromTable({ | |
2159 | CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0,.05 * math.cos((sine)/10), 0), | |
2160 | CFrame.new(0, 1.4657923, -0.0939692855, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), | |
2161 | CFrame.new(1.20945823, -0.213502824, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1), | |
2162 | CFrame.new(-1.20945406, -0.213503301, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736, 0, 0, 0, 1), | |
2163 | CFrame.new(0.499998242, -1.99999988, 3.12924385e-07, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736) * CFrame.new(0,-.05 * math.cos((sine)/10), 0), | |
2164 | CFrame.new(-0.500002503, -1.99999988, -1.78813934e-07, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736) * CFrame.new(0,-.05 * math.cos((sine)/10), 0), | |
2165 | }, .3, false) | |
2166 | end | |
2167 | elseif Torsovelocity > 2 and hit ~= nil then | |
2168 | Anim = "Walk" | |
2169 | if attack == false then | |
2170 | PlayAnimationFromTable({ | |
2171 | CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0- .08 * math.cos((sine) / 5), 0) * CFrame.Angles(0, 0, 0), | |
2172 | CFrame.new(0, 1.48263013, -0.0984808952, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849), | |
2173 | CFrame.new(1.5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, -.5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 10)), 0, 0), | |
2174 | CFrame.new(-1.5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, .5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 10)), 0, 0), | |
2175 | CFrame.new(0.540300786, -1.99793816, -9.82598067e-07, 0.998698533, -0.0510031395, 6.36324955e-07, 0.0510031395, 0.998698533, -1.00461093e-05, -8.35937328e-08, 1.08393433e-05, 1.00000024) * CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 10)), 0, 0), | |
2176 | CFrame.new(-0.539563596, -1.99794078, 1.12228372e-06, 0.998635888, 0.0523072146, -1.77852357e-07, -0.0523072146, 0.998635888, -1.00715051e-05, -3.89727461e-07, 1.08406466e-05, 1.00000024) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 10)), 0, 0), | |
2177 | }, .3, false) | |
2178 | end | |
2179 | end | |
2180 | if 0 < #Effects then | |
2181 | for e = 1, #Effects do | |
2182 | if Effects[e] ~= nil then | |
2183 | local Thing = Effects[e] | |
2184 | if Thing ~= nil then | |
2185 | local Part = Thing[1] | |
2186 | local Mode = Thing[2] | |
2187 | local Delay = Thing[3] | |
2188 | local IncX = Thing[4] | |
2189 | local IncY = Thing[5] | |
2190 | local IncZ = Thing[6] | |
2191 | if Thing[2] == "Shoot" then | |
2192 | local Look = Thing[1] | |
2193 | local move = 30 | |
2194 | if Thing[8] == 3 then | |
2195 | move = 10 | |
2196 | end | |
2197 | local hit, pos = rayCast(Thing[4], Thing[1], move, m) | |
2198 | if Thing[10] ~= nil then | |
2199 | da = pos | |
2200 | cf2 = CFrame.new(Thing[4], Thing[10].Position) | |
2201 | cfa = CFrame.new(Thing[4], pos) | |
2202 | tehCF = cfa:lerp(cf2, 0.2) | |
2203 | Thing[1] = tehCF.lookVector | |
2204 | end | |
2205 | local mag = (Thing[4] - pos).magnitude | |
2206 | Effects["Head"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2) | |
2207 | if Thing[8] == 2 then | |
2208 | Effects["Ring"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0), 1, 1, 0.1, 0.5, 0.5, 0.1, 0.1, 1) | |
2209 | end | |
2210 | Thing[4] = Thing[4] + Look * move | |
2211 | Thing[3] = Thing[3] - 1 | |
2212 | if 2 < Thing[5] then | |
2213 | Thing[5] = Thing[5] - 0.3 | |
2214 | Thing[6] = Thing[6] - 0.3 | |
2215 | end | |
2216 | if hit ~= nil then | |
2217 | Thing[3] = 0 | |
2218 | if Thing[8] == 1 or Thing[8] == 3 then | |
2219 | Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1) | |
2220 | else | |
2221 | if Thing[8] == 2 then | |
2222 | Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1) | |
2223 | if (hit.Parent:FindFirstChildOfClass("Humanoid")) ~= nil or (hit.Parent.Parent:FindFirstChildOfClass("Humanoid")) ~= nil then | |
2224 | ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new()) | |
2225 | ref.Anchored = true | |
2226 | ref.CFrame = CFrame.new(pos) | |
2227 | CFuncs["Sound"].Create("161006093", ref, 1, 1.2) | |
2228 | game:GetService("Debris"):AddItem(ref, 0.2) | |
2229 | Effects["Block"].Create(Torso.BrickColor, CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 10, 10, 10, 0.1, 2) | |
2230 | Effects["Ring"].Create(BrickColor.new("Bright yellow"), CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 4, 4, 0.1, 0.1) | |
2231 | MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1) | |
2232 | end | |
2233 | end | |
2234 | end | |
2235 | ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new()) | |
2236 | ref.Anchored = true | |
2237 | ref.CFrame = CFrame.new(pos) | |
2238 | Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07) | |
2239 | game:GetService("Debris"):AddItem(ref, 1) | |
2240 | end | |
2241 | if Thing[3] <= 0 then | |
2242 | table.remove(Effects, e) | |
2243 | end | |
2244 | end | |
2245 | do | |
2246 | do | |
2247 | if Thing[2] == "FireWave" then | |
2248 | if Thing[3] <= Thing[4] then | |
2249 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0) | |
2250 | Thing[3] = Thing[3] + 1 | |
2251 | Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5]) | |
2252 | else | |
2253 | Part.Parent = nil | |
2254 | table.remove(Effects, e) | |
2255 | end | |
2256 | end | |
2257 | if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then | |
2258 | if Thing[1].Transparency <= 1 then | |
2259 | if Thing[2] == "Block1" then | |
2260 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
2261 | Mesh = Thing[7] | |
2262 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2263 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2264 | else | |
2265 | if Thing[2] == "Block2" then | |
2266 | Thing[1].CFrame = Thing[1].CFrame | |
2267 | Mesh = Thing[7] | |
2268 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2269 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2270 | else | |
2271 | if Thing[2] == "Fire" then | |
2272 | Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0) | |
2273 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
2274 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2275 | else | |
2276 | if Thing[2] == "Cylinder" then | |
2277 | Mesh = Thing[7] | |
2278 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2279 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2280 | else | |
2281 | if Thing[2] == "Blood" then | |
2282 | Mesh = Thing[7] | |
2283 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0) | |
2284 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2285 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2286 | else | |
2287 | if Thing[2] == "Elec" then | |
2288 | Mesh = Thing[10] | |
2289 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
2290 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2291 | else | |
2292 | if Thing[2] == "Disappear" then | |
2293 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2294 | else | |
2295 | if Thing[2] == "Shatter" then | |
2296 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2297 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
2298 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
2299 | Thing[6] = Thing[6] + Thing[5] | |
2300 | end | |
2301 | end | |
2302 | end | |
2303 | end | |
2304 | end | |
2305 | end | |
2306 | end | |
2307 | end | |
2308 | else | |
2309 | Part.Parent = nil | |
2310 | table.remove(Effects, e) | |
2311 | end | |
2312 | end | |
2313 | end | |
2314 | end | |
2315 | end | |
2316 | end | |
2317 | end | |
2318 | end | |
2319 | end | |
2320 | end |