SHOW:
|
|
- or go back to the newest paste.
1 | -- This script has been converted to FE by iPxter | |
2 | ||
3 | ||
4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
5 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
6 | do | |
7 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter") | |
8 | script.Parent = Player.Character | |
9 | ||
10 | --RemoteEvent for communicating | |
11 | local Event = Instance.new("RemoteEvent") | |
12 | Event.Name = "UserInput_Event" | |
13 | ||
14 | --Fake event to make stuff like Mouse.KeyDown work | |
15 | local function fakeEvent() | |
16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
17 | t.connect = t.Connect | |
18 | return t | |
19 | end | |
20 | ||
21 | --Creating fake input objects with fake variables | |
22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
26 | end} | |
27 | - | local plr = game:service'Players'.LocalPlayer |
27 | + | --Merged 2 functions into one by checking amount of arguments |
28 | CAS.UnbindAction = CAS.BindAction | |
29 | ||
30 | --This function will trigger the events that have been :Connect()'ed | |
31 | local function te(self,ev,...) | |
32 | local t = m[ev] | |
33 | if t and t._fakeEvent and t.Function then | |
34 | t.Function(...) | |
35 | end | |
36 | end | |
37 | m.TrigEvent = te | |
38 | UIS.TrigEvent = te | |
39 | - | local mouse = plr:GetMouse() |
39 | + | |
40 | Event.OnServerEvent:Connect(function(plr,io) | |
41 | if plr~=Player then return end | |
42 | if io.isMouse then | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | else | |
46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
49 | end | |
50 | for _,t in pairs(CAS.Actions) do | |
51 | for _,k in pairs(t.Keys) do | |
52 | if k==io.KeyCode then | |
53 | t.Function(t.Name,io.UserInputState,io) | |
54 | end | |
55 | end | |
56 | end | |
57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
59 | end | |
60 | end) | |
61 | Event.Parent = NLS([==[ | |
62 | local Player = game:GetService("Players").LocalPlayer | |
63 | local Event = script:WaitForChild("UserInput_Event") | |
64 | ||
65 | local UIS = game:GetService("UserInputService") | |
66 | local input = function(io,a) | |
67 | if a then return end | |
68 | --Since InputObject is a client-side instance, we create and pass table instead | |
69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
70 | end | |
71 | UIS.InputBegan:Connect(input) | |
72 | UIS.InputEnded:Connect(input) | |
73 | ||
74 | local Mouse = Player:GetMouse() | |
75 | local h,t | |
76 | --Give the server mouse data 30 times every second, but only if the values changed | |
77 | --If player is not moving their mouse, client won't fire events | |
78 | while wait(1/30) do | |
79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
80 | h,t=Mouse.Hit,Mouse.Target | |
81 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
82 | end | |
83 | end]==],Player.Character) | |
84 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
85 | end | |
86 | ||
87 | ----------------------- | |
88 | --Voodoo Child-- | |
89 | ------------------------------------------------------- | |
90 | --A script By makhail07 | |
91 | ||
92 | --Discord Creterisk#2958 | |
93 | ------------------------------------------------------- | |
94 | ||
95 | local FavIDs = { | |
96 | 340106355, --Nefl Crystals | |
97 | 927529620, --Dimension | |
98 | 876981900, --Fantasy | |
99 | 398987889, --Ordinary Days | |
100 | 1117396305, --Oh wait, it's you. | |
101 | 885996042, --Action Winter Journey | |
102 | 919231299, --Sprawling Idiot Effigy | |
103 | 743466274, --Good Day Sunshine | |
104 | 727411183, --Knife Fight | |
105 | 1402748531, --The Earth Is Counting On You! | |
106 | 595230126 --Robot Language | |
107 | } | |
108 | ||
109 | ||
110 | ||
111 | --The reality of my life isn't real but a Universe -makhail07 | |
112 | wait() | |
113 | local plr = game:service'Players'.hsdfsfsdfds | |
114 | print('Local User is '..plr.Name) | |
115 | local char = plr.Character | |
116 | local hum = char.Humanoid | |
117 | local ra = char["Right Arm"] | |
118 | local la= char["Left Arm"] | |
119 | local rl= char["Right Leg"] | |
120 | local ll = char["Left Leg"] | |
121 | local hed = char.Head | |
122 | local root = char.HumanoidRootPart | |
123 | local rootj = root.RootJoint | |
124 | local tors = char.Torso | |
125 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
126 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
127 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
128 | ||
129 | ||
130 | ------------------------------------------------------- | |
131 | --Start Good Stuff-- | |
132 | ------------------------------------------------------- | |
133 | CF = CFrame.new | |
134 | angles = CFrame.Angles | |
135 | attack = false | |
136 | Euler = CFrame.fromEulerAnglesXYZ | |
137 | Rad = math.rad | |
138 | IT = Instance.new | |
139 | BrickC = BrickColor.new | |
140 | Cos = math.cos | |
141 | Acos = math.acos | |
142 | Sin = math.sin | |
143 | Asin = math.asin | |
144 | Abs = math.abs | |
145 | Mrandom = math.random | |
146 | Floor = math.floor | |
147 | ------------------------------------------------------- | |
148 | --End Good Stuff-- | |
149 | ------------------------------------------------------- | |
150 | necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
151 | RSH, LSH = nil, nil | |
152 | RW = Instance.new("Weld") | |
153 | LW = Instance.new("Weld") | |
154 | RH = tors["Right Hip"] | |
155 | LH = tors["Left Hip"] | |
156 | RSH = tors["Right Shoulder"] | |
157 | LSH = tors["Left Shoulder"] | |
158 | RSH.Parent = nil | |
159 | LSH.Parent = nil | |
160 | RW.Name = "RW" | |
161 | RW.Part0 = tors | |
162 | RW.C0 = CF(1.5, 0.5, 0) | |
163 | RW.C1 = CF(0, 0.5, 0) | |
164 | RW.Part1 = ra | |
165 | RW.Parent = tors | |
166 | LW.Name = "LW" | |
167 | LW.Part0 = tors | |
168 | LW.C0 = CF(-1.5, 0.5, 0) | |
169 | LW.C1 = CF(0, 0.5, 0) | |
170 | LW.Part1 = la | |
171 | LW.Parent = tors | |
172 | Effects = {} | |
173 | ||
174 | ------------------------------------------------------- | |
175 | --Start HeartBeat-- | |
176 | ------------------------------------------------------- | |
177 | ArtificialHB = Instance.new("BindableEvent", script) | |
178 | ArtificialHB.Name = "Heartbeat" | |
179 | script:WaitForChild("Heartbeat") | |
180 | ||
181 | frame = 1 / 60 | |
182 | tf = 0 | |
183 | allowframeloss = false | |
184 | tossremainder = false | |
185 | ||
186 | ||
187 | lastframe = tick() | |
188 | script.Heartbeat:Fire() | |
189 | ||
190 | ||
191 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
192 | tf = tf + s | |
193 | if tf >= frame then | |
194 | if allowframeloss then | |
195 | script.Heartbeat:Fire() | |
196 | lastframe = tick() | |
197 | else | |
198 | for i = 1, math.floor(tf / frame) do | |
199 | script.Heartbeat:Fire() | |
200 | end | |
201 | lastframe = tick() | |
202 | end | |
203 | if tossremainder then | |
204 | tf = 0 | |
205 | else | |
206 | tf = tf - frame * math.floor(tf / frame) | |
207 | end | |
208 | end | |
209 | end) | |
210 | ------------------------------------------------------- | |
211 | --End HeartBeat-- | |
212 | ------------------------------------------------------- | |
213 | ||
214 | ------------------------------------------------------- | |
215 | --Start Important Functions-- | |
216 | ------------------------------------------------------- | |
217 | function swait(num) | |
218 | if num == 0 or num == nil then | |
219 | game:service("RunService").Stepped:wait(0) | |
220 | else | |
221 | for i = 0, num do | |
222 | game:service("RunService").Stepped:wait(0) | |
223 | end | |
224 | end | |
225 | end | |
226 | function thread(f) | |
227 | coroutine.resume(coroutine.create(f)) | |
228 | end | |
229 | function clerp(a, b, t) | |
230 | local qa = { | |
231 | QuaternionFromCFrame(a) | |
232 | } | |
233 | local qb = { | |
234 | QuaternionFromCFrame(b) | |
235 | } | |
236 | local ax, ay, az = a.x, a.y, a.z | |
237 | local bx, by, bz = b.x, b.y, b.z | |
238 | local _t = 1 - t | |
239 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
240 | end | |
241 | function QuaternionFromCFrame(cf) | |
242 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
243 | local trace = m00 + m11 + m22 | |
244 | if trace > 0 then | |
245 | local s = math.sqrt(1 + trace) | |
246 | local recip = 0.5 / s | |
247 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
248 | else | |
249 | local i = 0 | |
250 | if m00 < m11 then | |
251 | i = 1 | |
252 | end | |
253 | if m22 > (i == 0 and m00 or m11) then | |
254 | i = 2 | |
255 | end | |
256 | - | Value = game:service("Players").LocalPlayer, |
256 | + | |
257 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
258 | local recip = 0.5 / s | |
259 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
260 | elseif i == 1 then | |
261 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
262 | local recip = 0.5 / s | |
263 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
264 | elseif i == 2 then | |
265 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
266 | local recip = 0.5 / s | |
267 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
268 | end | |
269 | end | |
270 | end | |
271 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
272 | local xs, ys, zs = x + x, y + y, z + z | |
273 | local wx, wy, wz = w * xs, w * ys, w * zs | |
274 | local xx = x * xs | |
275 | local xy = x * ys | |
276 | local xz = x * zs | |
277 | local yy = y * ys | |
278 | local yz = y * zs | |
279 | local zz = z * zs | |
280 | return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) | |
281 | end | |
282 | function QuaternionSlerp(a, b, t) | |
283 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
284 | local startInterp, finishInterp | |
285 | if cosTheta >= 1.0E-4 then | |
286 | if 1 - cosTheta > 1.0E-4 then | |
287 | local theta = math.acos(cosTheta) | |
288 | local invSinTheta = 1 / Sin(theta) | |
289 | startInterp = Sin((1 - t) * theta) * invSinTheta | |
290 | finishInterp = Sin(t * theta) * invSinTheta | |
291 | else | |
292 | startInterp = 1 - t | |
293 | finishInterp = t | |
294 | end | |
295 | elseif 1 + cosTheta > 1.0E-4 then | |
296 | local theta = math.acos(-cosTheta) | |
297 | local invSinTheta = 1 / Sin(theta) | |
298 | startInterp = Sin((t - 1) * theta) * invSinTheta | |
299 | finishInterp = Sin(t * theta) * invSinTheta | |
300 | else | |
301 | startInterp = t - 1 | |
302 | finishInterp = t | |
303 | end | |
304 | return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp | |
305 | end | |
306 | function rayCast(Position, Direction, Range, Ignore) | |
307 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
308 | end | |
309 | local RbxUtility = LoadLibrary("RbxUtility") | |
310 | local Create = RbxUtility.Create | |
311 | ||
312 | ------------------------------------------------------- | |
313 | --Start Damage Function-- | |
314 | ------------------------------------------------------- | |
315 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
316 | if hit.Parent == nil then | |
317 | return | |
318 | end | |
319 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
320 | for _, v in pairs(hit.Parent:children()) do | |
321 | if v:IsA("Humanoid") then | |
322 | h = v | |
323 | end | |
324 | end | |
325 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then | |
326 | ||
327 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
328 | end | |
329 | ||
330 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
331 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
332 | if hit.Parent.DebounceHit.Value == true then | |
333 | return | |
334 | end | |
335 | end | |
336 | if insta == true then | |
337 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
338 | end | |
339 | local c = Create("ObjectValue"){ | |
340 | Name = "creator", | |
341 | Value = game:service("Players").hsdfsfsdfds, | |
342 | Parent = h, | |
343 | } | |
344 | game:GetService("Debris"):AddItem(c, .5) | |
345 | if HitSound ~= nil and HitPitch ~= nil then | |
346 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
347 | end | |
348 | local Damage = math.random(minim, maxim) | |
349 | local blocked = false | |
350 | local block = hit.Parent:findFirstChild("Block") | |
351 | if block ~= nil then | |
352 | if block.className == "IntValue" then | |
353 | if block.Value > 0 then | |
354 | blocked = true | |
355 | block.Value = block.Value - 1 | |
356 | print(block.Value) | |
357 | end | |
358 | end | |
359 | end | |
360 | if blocked == false then | |
361 | h.Health = h.Health - Damage | |
362 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
363 | else | |
364 | h.Health = h.Health - (Damage / 2) | |
365 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
366 | end | |
367 | if Type == "Knockdown" then | |
368 | local hum = hit.Parent.Humanoid | |
369 | hum.PlatformStand = true | |
370 | coroutine.resume(coroutine.create(function(HHumanoid) | |
371 | swait(1) | |
372 | HHumanoid.PlatformStand = false | |
373 | end), hum) | |
374 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
375 | local bodvol = Create("BodyVelocity"){ | |
376 | velocity = angle * knockback, | |
377 | P = 5000, | |
378 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
379 | Parent = hit, | |
380 | } | |
381 | local rl = Create("BodyAngularVelocity"){ | |
382 | P = 3000, | |
383 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
384 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
385 | Parent = hit, | |
386 | } | |
387 | game:GetService("Debris"):AddItem(bodvol, .5) | |
388 | game:GetService("Debris"):AddItem(rl, .5) | |
389 | elseif Type == "Normal" then | |
390 | local vp = Create("BodyVelocity"){ | |
391 | P = 500, | |
392 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
393 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
394 | } | |
395 | if knockback > 0 then | |
396 | vp.Parent = hit.Parent.Torso | |
397 | end | |
398 | game:GetService("Debris"):AddItem(vp, .5) | |
399 | elseif Type == "Up" then | |
400 | local bodyVelocity = Create("BodyVelocity"){ | |
401 | velocity = Vector3.new(0, 20, 0), | |
402 | P = 5000, | |
403 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
404 | Parent = hit, | |
405 | } | |
406 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
407 | elseif Type == "DarkUp" then | |
408 | coroutine.resume(coroutine.create(function() | |
409 | for i = 0, 1, 0.1 do | |
410 | swait() | |
411 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
412 | end | |
413 | end)) | |
414 | local bodyVelocity = Create("BodyVelocity"){ | |
415 | velocity = Vector3.new(0, 20, 0), | |
416 | P = 5000, | |
417 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
418 | Parent = hit, | |
419 | } | |
420 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
421 | elseif Type == "Snare" then | |
422 | local bp = Create("BodyPosition"){ | |
423 | P = 2000, | |
424 | D = 100, | |
425 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
426 | position = hit.Parent.Torso.Position, | |
427 | Parent = hit.Parent.Torso, | |
428 | } | |
429 | game:GetService("Debris"):AddItem(bp, 1) | |
430 | elseif Type == "Freeze" then | |
431 | local BodPos = Create("BodyPosition"){ | |
432 | P = 50000, | |
433 | D = 1000, | |
434 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
435 | position = hit.Parent.Torso.Position, | |
436 | Parent = hit.Parent.Torso, | |
437 | } | |
438 | local BodGy = Create("BodyGyro") { | |
439 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
440 | P = 20e+003, | |
441 | Parent = hit.Parent.Torso, | |
442 | cframe = hit.Parent.Torso.CFrame, | |
443 | } | |
444 | hit.Parent.Torso.Anchored = true | |
445 | coroutine.resume(coroutine.create(function(Part) | |
446 | swait(1.5) | |
447 | Part.Anchored = false | |
448 | end), hit.Parent.Torso) | |
449 | game:GetService("Debris"):AddItem(BodPos, 3) | |
450 | game:GetService("Debris"):AddItem(BodGy, 3) | |
451 | end | |
452 | local debounce = Create("BoolValue"){ | |
453 | Name = "DebounceHit", | |
454 | Parent = hit.Parent, | |
455 | Value = true, | |
456 | } | |
457 | game:GetService("Debris"):AddItem(debounce, Delay) | |
458 | c = Create("ObjectValue"){ | |
459 | Name = "creator", | |
460 | Value = Player, | |
461 | Parent = h, | |
462 | } | |
463 | game:GetService("Debris"):AddItem(c, .5) | |
464 | end | |
465 | end | |
466 | ------------------------------------------------------- | |
467 | --End Damage Function-- | |
468 | ------------------------------------------------------- | |
469 | ||
470 | ------------------------------------------------------- | |
471 | --Start Damage Function Customization-- | |
472 | ------------------------------------------------------- | |
473 | function ShowDamage(Pos, Text, Time, Color) | |
474 | local Rate = (1 / 30) | |
475 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
476 | local Text = (Text or "") | |
477 | local Time = (Time or 2) | |
478 | local Color = (Color or Color3.new(1, 0, 1)) | |
479 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
480 | EffectPart.Anchored = true | |
481 | local BillboardGui = Create("BillboardGui"){ | |
482 | Size = UDim2.new(3, 0, 3, 0), | |
483 | Adornee = EffectPart, | |
484 | Parent = EffectPart, | |
485 | } | |
486 | local TextLabel = Create("TextLabel"){ | |
487 | BackgroundTransparency = 1, | |
488 | Size = UDim2.new(1, 0, 1, 0), | |
489 | Text = Text, | |
490 | Font = "Bodoni", | |
491 | TextColor3 = Color, | |
492 | TextScaled = true, | |
493 | TextStrokeColor3 = Color3.fromRGB(0,0,0), | |
494 | Parent = BillboardGui, | |
495 | } | |
496 | game.Debris:AddItem(EffectPart, (Time)) | |
497 | EffectPart.Parent = game:GetService("Workspace") | |
498 | delay(0, function() | |
499 | local Frames = (Time / Rate) | |
500 | for Frame = 1, Frames do | |
501 | wait(Rate) | |
502 | local Percent = (Frame / Frames) | |
503 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
504 | TextLabel.TextTransparency = Percent | |
505 | end | |
506 | if EffectPart and EffectPart.Parent then | |
507 | EffectPart:Destroy() | |
508 | end | |
509 | end) | |
510 | end | |
511 | ------------------------------------------------------- | |
512 | --End Damage Function Customization-- | |
513 | ------------------------------------------------------- | |
514 | ||
515 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
516 | for _, c in pairs(workspace:children()) do | |
517 | local hum = c:findFirstChild("Humanoid") | |
518 | if hum ~= nil then | |
519 | local head = c:findFirstChild("Head") | |
520 | if head ~= nil then | |
521 | local targ = head.Position - Part.Position | |
522 | local mag = targ.magnitude | |
523 | if magni >= mag and c.Name ~= plr.Name then | |
524 | Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2) | |
525 | end | |
526 | end | |
527 | end | |
528 | end | |
529 | end | |
530 | ||
531 | ||
532 | CFuncs = { | |
533 | Part = { | |
534 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
535 | local Part = Create("Part")({ | |
536 | Parent = Parent, | |
537 | Reflectance = Reflectance, | |
538 | Transparency = Transparency, | |
539 | CanCollide = false, | |
540 | Locked = true, | |
541 | BrickColor = BrickColor.new(tostring(BColor)), | |
542 | Name = Name, | |
543 | Size = Size, | |
544 | Material = Material | |
545 | }) | |
546 | RemoveOutlines(Part) | |
547 | return Part | |
548 | end | |
549 | }, | |
550 | Mesh = { | |
551 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
552 | local Msh = Create(Mesh)({ | |
553 | Parent = Part, | |
554 | Offset = OffSet, | |
555 | Scale = Scale | |
556 | }) | |
557 | if Mesh == "SpecialMesh" then | |
558 | Msh.MeshType = MeshType | |
559 | Msh.MeshId = MeshId | |
560 | end | |
561 | return Msh | |
562 | end | |
563 | }, | |
564 | Mesh = { | |
565 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
566 | local Msh = Create(Mesh)({ | |
567 | Parent = Part, | |
568 | Offset = OffSet, | |
569 | Scale = Scale | |
570 | }) | |
571 | if Mesh == "SpecialMesh" then | |
572 | Msh.MeshType = MeshType | |
573 | Msh.MeshId = MeshId | |
574 | end | |
575 | return Msh | |
576 | end | |
577 | }, | |
578 | Weld = { | |
579 | Create = function(Parent, Part0, Part1, C0, C1) | |
580 | local Weld = Create("Weld")({ | |
581 | Parent = Parent, | |
582 | Part0 = Part0, | |
583 | Part1 = Part1, | |
584 | C0 = C0, | |
585 | C1 = C1 | |
586 | }) | |
587 | return Weld | |
588 | end | |
589 | }, | |
590 | Sound = { | |
591 | Create = function(id, par, vol, pit) | |
592 | coroutine.resume(coroutine.create(function() | |
593 | local S = Create("Sound")({ | |
594 | Volume = vol, | |
595 | Pitch = pit or 1, | |
596 | SoundId = id, | |
597 | Parent = par or workspace | |
598 | }) | |
599 | wait() | |
600 | S:play() | |
601 | game:GetService("Debris"):AddItem(S, 6) | |
602 | end)) | |
603 | end | |
604 | }, | |
605 | ParticleEmitter = { | |
606 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
607 | local fp = Create("ParticleEmitter")({ | |
608 | Parent = Parent, | |
609 | Color = ColorSequence.new(Color1, Color2), | |
610 | LightEmission = LightEmission, | |
611 | Size = Size, | |
612 | Texture = Texture, | |
613 | Transparency = Transparency, | |
614 | ZOffset = ZOffset, | |
615 | Acceleration = Accel, | |
616 | Drag = Drag, | |
617 | LockedToPart = LockedToPart, | |
618 | VelocityInheritance = VelocityInheritance, | |
619 | EmissionDirection = EmissionDirection, | |
620 | Enabled = Enabled, | |
621 | Lifetime = LifeTime, | |
622 | Rate = Rate, | |
623 | Rotation = Rotation, | |
624 | RotSpeed = RotSpeed, | |
625 | Speed = Speed, | |
626 | VelocitySpread = VelocitySpread | |
627 | }) | |
628 | return fp | |
629 | end | |
630 | } | |
631 | } | |
632 | function RemoveOutlines(part) | |
633 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
634 | end | |
635 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
636 | local Part = Create("Part")({ | |
637 | formFactor = FormFactor, | |
638 | Parent = Parent, | |
639 | Reflectance = Reflectance, | |
640 | Transparency = Transparency, | |
641 | CanCollide = false, | |
642 | Locked = true, | |
643 | BrickColor = BrickColor.new(tostring(BColor)), | |
644 | Name = Name, | |
645 | Size = Size, | |
646 | Material = Material | |
647 | }) | |
648 | RemoveOutlines(Part) | |
649 | return Part | |
650 | end | |
651 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
652 | local Msh = Create(Mesh)({ | |
653 | Parent = Part, | |
654 | Offset = OffSet, | |
655 | Scale = Scale | |
656 | }) | |
657 | if Mesh == "SpecialMesh" then | |
658 | Msh.MeshType = MeshType | |
659 | Msh.MeshId = MeshId | |
660 | end | |
661 | return Msh | |
662 | end | |
663 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
664 | local Weld = Create("Weld")({ | |
665 | Parent = Parent, | |
666 | Part0 = Part0, | |
667 | Part1 = Part1, | |
668 | C0 = C0, | |
669 | C1 = C1 | |
670 | }) | |
671 | return Weld | |
672 | end | |
673 | ||
674 | ||
675 | ------------------------------------------------------- | |
676 | --Start Effect Function-- | |
677 | ------------------------------------------------------- | |
678 | EffectModel = Instance.new("Model", char) | |
679 | Effects = { | |
680 | Block = { | |
681 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
682 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
683 | prt.Anchored = true | |
684 | prt.CFrame = cframe | |
685 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
686 | game:GetService("Debris"):AddItem(prt, 10) | |
687 | if Type == 1 or Type == nil then | |
688 | table.insert(Effects, { | |
689 | prt, | |
690 | "Block1", | |
691 | delay, | |
692 | x3, | |
693 | y3, | |
694 | z3, | |
695 | msh | |
696 | }) | |
697 | elseif Type == 2 then | |
698 | table.insert(Effects, { | |
699 | prt, | |
700 | "Block2", | |
701 | delay, | |
702 | x3, | |
703 | y3, | |
704 | z3, | |
705 | msh | |
706 | }) | |
707 | else | |
708 | table.insert(Effects, { | |
709 | prt, | |
710 | "Block3", | |
711 | delay, | |
712 | x3, | |
713 | y3, | |
714 | z3, | |
715 | msh | |
716 | }) | |
717 | end | |
718 | end | |
719 | }, | |
720 | Sphere = { | |
721 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
722 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
723 | prt.Anchored = true | |
724 | prt.CFrame = cframe | |
725 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
726 | game:GetService("Debris"):AddItem(prt, 10) | |
727 | table.insert(Effects, { | |
728 | prt, | |
729 | "Cylinder", | |
730 | delay, | |
731 | x3, | |
732 | y3, | |
733 | z3, | |
734 | msh | |
735 | }) | |
736 | end | |
737 | }, | |
738 | Cylinder = { | |
739 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
740 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
741 | prt.Anchored = true | |
742 | prt.CFrame = cframe | |
743 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
744 | game:GetService("Debris"):AddItem(prt, 10) | |
745 | table.insert(Effects, { | |
746 | prt, | |
747 | "Cylinder", | |
748 | delay, | |
749 | x3, | |
750 | y3, | |
751 | z3, | |
752 | msh | |
753 | }) | |
754 | end | |
755 | }, | |
756 | Wave = { | |
757 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
758 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
759 | prt.Anchored = true | |
760 | prt.CFrame = cframe | |
761 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60)) | |
762 | game:GetService("Debris"):AddItem(prt, 10) | |
763 | table.insert(Effects, { | |
764 | prt, | |
765 | "Cylinder", | |
766 | delay, | |
767 | x3 / 60, | |
768 | y3 / 60, | |
769 | z3 / 60, | |
770 | msh | |
771 | }) | |
772 | end | |
773 | }, | |
774 | Ring = { | |
775 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
776 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
777 | prt.Anchored = true | |
778 | prt.CFrame = cframe | |
779 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
780 | game:GetService("Debris"):AddItem(prt, 10) | |
781 | table.insert(Effects, { | |
782 | prt, | |
783 | "Cylinder", | |
784 | delay, | |
785 | x3, | |
786 | y3, | |
787 | z3, | |
788 | msh | |
789 | }) | |
790 | end | |
791 | }, | |
792 | Break = { | |
793 | Create = function(brickcolor, cframe, x1, y1, z1) | |
794 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
795 | prt.Anchored = true | |
796 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
797 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
798 | local num = math.random(10, 50) / 1000 | |
799 | game:GetService("Debris"):AddItem(prt, 10) | |
800 | table.insert(Effects, { | |
801 | prt, | |
802 | "Shatter", | |
803 | num, | |
804 | prt.CFrame, | |
805 | math.random() - math.random(), | |
806 | 0, | |
807 | math.random(50, 100) / 100 | |
808 | }) | |
809 | end | |
810 | }, | |
811 | Spiral = { | |
812 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
813 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
814 | prt.Anchored = true | |
815 | prt.CFrame = cframe | |
816 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
817 | game:GetService("Debris"):AddItem(prt, 10) | |
818 | table.insert(Effects, { | |
819 | prt, | |
820 | "Cylinder", | |
821 | delay, | |
822 | x3, | |
823 | y3, | |
824 | z3, | |
825 | msh | |
826 | }) | |
827 | end | |
828 | }, | |
829 | Push = { | |
830 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
831 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
832 | prt.Anchored = true | |
833 | prt.CFrame = cframe | |
834 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
835 | game:GetService("Debris"):AddItem(prt, 10) | |
836 | table.insert(Effects, { | |
837 | prt, | |
838 | "Cylinder", | |
839 | delay, | |
840 | x3, | |
841 | y3, | |
842 | z3, | |
843 | msh | |
844 | }) | |
845 | end | |
846 | } | |
847 | } | |
848 | ------------------------------------------------------- | |
849 | --End Effect Function-- | |
850 | ------------------------------------------------------- | |
851 | ||
852 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
853 | local NSound = nil | |
854 | coroutine.resume(coroutine.create(function() | |
855 | NSound = Instance.new("Sound", PARENT) | |
856 | NSound.Volume = VOLUME | |
857 | NSound.Pitch = PITCH | |
858 | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID | |
859 | swait() | |
860 | NSound:play() | |
861 | game:GetService("Debris"):AddItem(NSound, 10) | |
862 | end)) | |
863 | return NSound | |
864 | end | |
865 | ||
866 | --Very lazi from here to below except the animations but who cares /shrug | |
867 | function chatfunc(text) | |
868 | local chat = coroutine.wrap(function() | |
869 | if char:FindFirstChild("TalkingBillBoard")~= nil then | |
870 | char:FindFirstChild("TalkingBillBoard"):destroy() | |
871 | end | |
872 | local naeeym2 = Instance.new("BillboardGui",char) | |
873 | naeeym2.Size = UDim2.new(0,100,0,40) | |
874 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
875 | naeeym2.Adornee = char.Head | |
876 | naeeym2.Name = "TalkingBillBoard" | |
877 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
878 | tecks2.BackgroundTransparency = 1 | |
879 | tecks2.BorderSizePixel = 0 | |
880 | tecks2.Text = "" | |
881 | tecks2.Font = "Bodoni" | |
882 | tecks2.TextSize = 30 | |
883 | tecks2.TextStrokeTransparency = 0 | |
884 | tecks2.TextColor3 = Color3.new(255,0,0) | |
885 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
886 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
887 | local tecks3 = Instance.new("TextLabel",naeeym2) | |
888 | tecks3.BackgroundTransparency = 1 | |
889 | tecks3.BorderSizePixel = 0 | |
890 | tecks3.Text = "" | |
891 | tecks3.Font = "Bodoni" | |
892 | tecks3.TextSize = 30 | |
893 | tecks3.TextStrokeTransparency = 0 | |
894 | tecks3.TextColor3 = Color3.new(255,0,0) | |
895 | tecks3.TextStrokeColor3 = Color3.new(0,0,0) | |
896 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
897 | coroutine.resume(coroutine.create(function() | |
898 | while tecks3 ~= nil do | |
899 | swait() | |
900 | tecks3.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) | |
901 | tecks3.Rotation = math.random(-3,3) | |
902 | tecks3.TextColor3 = Color3.new(math.random(0, 255)/255,0,0) | |
903 | tecks3.TextStrokeColor3 = Color3.new(math.random(0, 255)/255,0,0) | |
904 | end | |
905 | end)) | |
906 | for i = 1,string.len(text),1 do | |
907 | tecks2.Text = string.sub(text,1,i) | |
908 | tecks3.Text = string.sub(text,1,i) | |
909 | wait(0.01) | |
910 | end | |
911 | wait(2) | |
912 | for i = 1, 50 do | |
913 | swait() | |
914 | tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
915 | tecks2.Rotation = tecks2.Rotation - .8 | |
916 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
917 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
918 | tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
919 | tecks3.Rotation = tecks2.Rotation + .8 | |
920 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
921 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
922 | end | |
923 | naeeym2:Destroy() | |
924 | end) | |
925 | chat() | |
926 | end | |
927 | function onChatted(msg) | |
928 | chatfunc(msg) | |
929 | end | |
930 | --plr.Chatted:connect(onChatted) | |
931 | ||
932 | abss = Instance.new("BillboardGui",char) | |
933 | abss.Size = UDim2.new(10,0,10,0) | |
934 | abss.Enabled = false | |
935 | imgl = Instance.new("ImageLabel",abss) | |
936 | imgl.Position = UDim2.new(0,0,0,0) | |
937 | imgl.Size = UDim2.new(1,0,1,0) | |
938 | imgl.Image = "rbxassetid://153485522" | |
939 | imgl.BackgroundTransparency = 1 | |
940 | imgl.ImageColor3 = Color3.new(.9,0,0) | |
941 | img2 = Instance.new("ImageLabel",abss) | |
942 | img2.Position = UDim2.new(0,0,0,0) | |
943 | img2.Size = UDim2.new(1,0,1,0) | |
944 | img2.Image = "rbxassetid://153485522" | |
945 | img2.BackgroundTransparency = 1 | |
946 | img2.ImageColor3 = Color3.new(.9,0,0) | |
947 | ||
948 | function TargetSelect(person) | |
949 | local dd=coroutine.wrap(function() | |
950 | if targetted ~= person then | |
951 | targetted = person | |
952 | img2.Size = UDim2.new(1,0,1,0) | |
953 | img2.ImageTransparency = 0 | |
954 | img2.Position = UDim2.new(0,0,0,0) | |
955 | for i = 0, 2, 0.1 do | |
956 | swait() | |
957 | img2.Size = img2.Size + UDim2.new(.05,0,.05,0) | |
958 | img2.Position = img2.Position + UDim2.new(-.025,0,-.025,0) | |
959 | img2.ImageTransparency = img2.ImageTransparency + 0.05 | |
960 | end | |
961 | end | |
962 | end) | |
963 | dd() | |
964 | end | |
965 | ||
966 | function dmg(dude) | |
967 | if dude.Name ~= char then | |
968 | dude:FindFirstChildOfClass("Humanoid").PlatformStand = true | |
969 | local bgf = Instance.new("BodyGyro",dude.Head) | |
970 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0) | |
971 | local val = Instance.new("BoolValue",dude) | |
972 | val.Name = "IsHit" | |
973 | local torsy = dude:FindFirstChild("UpperTorso") or dude:FindFirstChild("Torso") | |
974 | local partasdeff = Instance.new("ParticleEmitter",torsy) | |
975 | partasdeff.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0)) | |
976 | partasdeff.LightEmission = .1 | |
977 | partasdeff.Size = NumberSequence.new(0.2) | |
978 | partasdeff.Texture = "rbxassetid://771221224" | |
979 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)}) | |
980 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
981 | partasdeff.Transparency = bbb | |
982 | partasdeff.Size = aaa | |
983 | partasdeff.ZOffset = .9 | |
984 | partasdeff.Acceleration = Vector3.new(0, -5, 0) | |
985 | partasdeff.LockedToPart = false | |
986 | partasdeff.EmissionDirection = "Back" | |
987 | partasdeff.Lifetime = NumberRange.new(1, 2) | |
988 | partasdeff.Rate = 1000 | |
989 | partasdeff.Rotation = NumberRange.new(-100, 100) | |
990 | partasdeff.RotSpeed = NumberRange.new(-100, 100) | |
991 | partasdeff.Speed = NumberRange.new(6) | |
992 | partasdeff.VelocitySpread = 10000 | |
993 | partasdeff.Enabled=false | |
994 | partasdeff:Emit(30) | |
995 | coroutine.wrap(function() | |
996 | targetted = nil | |
997 | swait(30) | |
998 | dude:BreakJoints() | |
999 | swait(5) | |
1000 | dude:FindFirstChildOfClass("Humanoid"):Destroy() | |
1001 | for i=0,1,.05 do | |
1002 | for a,v in pairs(dude:GetChildren()) do | |
1003 | if v:IsA("BasePart") then | |
1004 | v.Transparency = i | |
1005 | end | |
1006 | end | |
1007 | swait() | |
1008 | end | |
1009 | for a,v in pairs(dude:GetChildren()) do | |
1010 | if v:IsA("BasePart") and v:FindFirstChild("ParticleEmitter") then | |
1011 | v.ParticleEmitter.Enabled = false | |
1012 | end | |
1013 | game:service'Debris':AddItem(v,2) | |
1014 | end | |
1015 | end)() | |
1016 | end | |
1017 | end | |
1018 | ||
1019 | --lazi | |
1020 | function kdown(dd) | |
1021 | if dd.Name ~= char then | |
1022 | dd.Humanoid.PlatformStand = true | |
1023 | local bgf = Instance.new("BodyGyro",dd.Head) | |
1024 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0) | |
1025 | local val = Instance.new("BoolValue",dd) | |
1026 | val.Name = "IsHit" | |
1027 | end | |
1028 | end | |
1029 | ||
1030 | function mdmg(Part, Magnitude)--, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch) | |
1031 | --local buddy | |
1032 | for _, c in pairs(workspace:children()) do | |
1033 | local hum = c:findFirstChild("Humanoid") | |
1034 | if hum ~= nil then | |
1035 | local head = c:findFirstChild("Torso") | |
1036 | if head ~= nil then | |
1037 | local targ = head.Position - Part.Position | |
1038 | local mag = targ.magnitude | |
1039 | if mag <= Magnitude and c.Name ~= plr.Name then | |
1040 | if c.Name ~= char then | |
1041 | if c.Name ~= "makhail07" and c.Name ~= "Nebula_Zorua" and c.Name ~= "KillerDarkness0105" and c.Name ~= "Salvo_Starly" then | |
1042 | local asd = Instance.new("ParticleEmitter",c.Torso) | |
1043 | asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0)) | |
1044 | asd.LightEmission = .1 | |
1045 | asd.Size = NumberSequence.new(0.2) | |
1046 | asd.Texture = "http://www.roblox.com/asset/?ID=771221224" | |
1047 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)}) | |
1048 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
1049 | asd.Transparency = bbb | |
1050 | asd.Size = aaa | |
1051 | asd.ZOffset = .9 | |
1052 | asd.Acceleration = Vector3.new(0, -5, 0) | |
1053 | asd.LockedToPart = false | |
1054 | asd.EmissionDirection = "Back" | |
1055 | asd.Lifetime = NumberRange.new(1, 2) | |
1056 | asd.Rate = 1000 | |
1057 | asd.Rotation = NumberRange.new(-100, 100) | |
1058 | asd.RotSpeed = NumberRange.new(-100, 100) | |
1059 | asd.Speed = NumberRange.new(6) | |
1060 | asd.VelocitySpread = 10000 | |
1061 | asd.Enabled=true | |
1062 | --Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch) | |
1063 | dmg(c) | |
1064 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=206082273", c.Torso, 1.2, .8) | |
1065 | coroutine.wrap(function() | |
1066 | wait(.2) | |
1067 | asd.Enabled = false | |
1068 | wait(2) | |
1069 | asd:Remove() | |
1070 | end)() | |
1071 | else | |
1072 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=240429289", c.Torso, 1.5, math.random(1,1.3)) | |
1073 | Effects.Sphere.Create(BrickColor.new("Bright red"), c.Torso.CFrame, 30, 30, 30, .5, .5, .5, 0.04) | |
1074 | ||
1075 | end | |
1076 | end | |
1077 | end | |
1078 | end | |
1079 | end | |
1080 | end | |
1081 | end | |
1082 | ||
1083 | ------------------------------------------------------- | |
1084 | --End Important Functions-- | |
1085 | ------------------------------------------------------- | |
1086 | ||
1087 | --[[ | |
1088 | Thanks for using Build-To-Lua by jarredbcv. | |
1089 | ]]-- | |
1090 | ||
1091 | New = function(Object, Parent, Name, Data) | |
1092 | local Object = Instance.new(Object) | |
1093 | for Index, Value in pairs(Data or {}) do | |
1094 | Object[Index] = Value | |
1095 | end | |
1096 | Object.Parent = Parent | |
1097 | Object.Name = Name | |
1098 | return Object | |
1099 | end | |
1100 | ||
1101 | Doll = New("Model",char,"Doll",{}) | |
1102 | Handle = New("Part",Doll,"Handle",{BrickColor = BrickColor.new("Beige"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.755005181, 0.52783519, 0.664805532),CFrame = CFrame.new(17.7066402, 4.04866695, 4.38868618, -0.408491671, 0.666965187, -0.623126268, 0.353551745, 0.745008111, 0.565648913, 0.841502249, 0.0107554942, -0.540138841),Color = Color3.new(0.792157, 0.74902, 0.639216),}) | |
1103 | Mesh = New("CylinderMesh",Handle,"Mesh",{}) | |
1104 | --Decal = New("Decal",Handle,"Decal",{Face = Enum.NormalId.Back,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1105 | --Decal = New("Decal",Handle,"Decal",{Face = Enum.NormalId.Left,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1106 | --Decal = New("Decal",Handle,"Decal",{Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1107 | --Decal = New("Decal",Handle,"Decal",{Face = Enum.NormalId.Right,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1108 | --Decal = New("Decal",Handle,"Decal",{Face = Enum.NormalId.Top,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1109 | --Decal = New("Decal",Handle,"Decal",{Face = Enum.NormalId.Bottom,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1110 | Part = New("Part",Doll,"Part",{BrickColor = BrickColor.new("Beige"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.354117572, 0.611353397, 0.337414026),CFrame = CFrame.new(17.8601875, 3.91987228, 3.94369364, 0.725253046, -0.0676794797, 0.685131192, -0.652452052, -0.385200739, 0.652613878, 0.219753951, -0.920328677, -0.3235268),Color = Color3.new(0.792157, 0.74902, 0.639216),}) | |
1111 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
1112 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Back,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1113 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Left,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1114 | --Decal = New("Decal",Part,"Decal",{Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1115 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Right,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1116 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Top,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1117 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Bottom,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1118 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.725257337, -0.652455866, 0.219753742, -0.0676780641, -0.385204077, -0.920336843, 0.685135007, 0.652616382, -0.323529661),C1 = CFrame.new(-0.482725382, 0.00167179108, 0.0718259811, -0.408491671, 0.353551745, 0.841502249, 0.666965187, 0.745008111, 0.0107554942, -0.623126268, 0.565648913, -0.540138841),}) | |
1119 | Part = New("Part",Doll,"Part",{BrickColor = BrickColor.new("Beige"),Shape = Enum.PartType.Ball,Size = Vector3.new(0.357458174, 0.357458174, 0.357458174),CFrame = CFrame.new(17.834486, 3.79168725, 3.64936543, 0.0676793754, -0.685130835, 0.725253344, 0.385200799, -0.652614176, -0.652451873, 0.920328736, 0.323526919, 0.219753981),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.792157, 0.74902, 0.639216),}) | |
1120 | --Decal = New("Decal",Part,"Decal",{Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1121 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Top,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1122 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Left,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1123 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Back,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1124 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Right,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1125 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Bottom,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1126 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0676779449, 0.385204136, 0.920336902, -0.685134649, -0.65261662, 0.32352975, 0.725257695, -0.652455688, 0.219753742),C1 = CFrame.new(-0.765227079, -0.114135742, 0.174312592, -0.408491671, 0.353551745, 0.841502249, 0.666965187, 0.745008111, 0.0107554942, -0.623126268, 0.565648913, -0.540138841),}) | |
1127 | Part = New("Part",Doll,"Part",{BrickColor = BrickColor.new("Beige"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.354117572, 0.611353397, 0.337414026),CFrame = CFrame.new(17.469902, 4.25766516, 4.74769306, 0.445832253, 0.789082885, 0.422561586, -0.410611928, -0.239177942, 0.879868925, 0.795366764, -0.565779567, 0.217372388),Color = Color3.new(0.792157, 0.74902, 0.639216),}) | |
1128 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
1129 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Back,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1130 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Left,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1131 | --Decal = New("Decal",Part,"Decal",{Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1132 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Right,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1133 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Top,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1134 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Bottom,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1135 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.445833862, -0.410613358, 0.795372128, 0.789088428, -0.239180744, -0.565785825, 0.422562867, 0.879873633, 0.217374772),C1 = CFrame.new(0.472706556, 0.0016708374, 0.0718240738, -0.408491671, 0.353551745, 0.841502249, 0.666965187, 0.745008111, 0.0107554942, -0.623126268, 0.565648913, -0.540138841),}) | |
1136 | Part = New("Part",Doll,"Part",{BrickColor = BrickColor.new("Beige"),Shape = Enum.PartType.Ball,Size = Vector3.new(0.357458174, 0.357458174, 0.357458174),CFrame = CFrame.new(17.1839867, 3.98582673, 3.75731707, 0.429396152, -0.706048965, 0.563108683, -0.389012426, -0.70731467, -0.590215027, 0.815025091, 0.0343795903, -0.578376234),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.792157, 0.74902, 0.639216),}) | |
1137 | --Decal = New("Decal",Part,"Decal",{Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1138 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Top,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1139 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Left,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1140 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Back,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1141 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Right,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1142 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Bottom,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1143 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.429397583, -0.389013648, 0.815030634, -0.706052482, -0.707317889, 0.0343799815, 0.563113213, -0.590219498, -0.57838279),C1 = CFrame.new(-0.340019703, -0.402200699, 0.631163597, -0.408491671, 0.353551745, 0.841502249, 0.666965187, 0.745008111, 0.0107554942, -0.623126268, 0.565648913, -0.540138841),}) | |
1144 | Part = New("Part",Doll,"Part",{BrickColor = BrickColor.new("Beige"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.354117572, 0.611353397, 0.337414026),CFrame = CFrame.new(17.3263435, 3.86502314, 4.01973581, 0.563109279, -0.429397821, 0.706047297, -0.590211987, 0.389013797, 0.707316399, -0.578378439, -0.815023482, -0.0343782082),Color = Color3.new(0.792157, 0.74902, 0.639216),}) | |
1145 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
1146 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Back,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1147 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Left,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1148 | --Decal = New("Decal",Part,"Decal",{Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1149 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Right,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1150 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Top,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1151 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Bottom,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1152 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.563113868, -0.590216458, -0.578384995, -0.429399252, 0.389015079, -0.815029025, 0.706050813, 0.707319558, -0.0343785957),C1 = CFrame.new(-0.220053911, -0.394431114, 0.332381248, -0.408491671, 0.353551745, 0.841502249, 0.666965187, 0.745008111, 0.0107554942, -0.623126268, 0.565648913, -0.540138841),}) | |
1153 | Part = New("Part",Doll,"Part",{BrickColor = BrickColor.new("Beige"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.354117572, 0.611353397, 0.337414026),CFrame = CFrame.new(17.1463699, 4.02708626, 4.39648008, 0.0949088037, -0.73499012, 0.671386242, -0.165235519, 0.653441608, 0.738708198, -0.981658518, -0.181056261, -0.0594294369),Color = Color3.new(0.792157, 0.74902, 0.639216),}) | |
1154 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
1155 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Back,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1156 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Left,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1157 | --Decal = New("Decal",Part,"Decal",{Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1158 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Right,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1159 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Top,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1160 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Bottom,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1161 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0949110687, -0.165237904, -0.981667101, -0.734994531, 0.653445482, -0.181055605, 0.67138958, 0.738711536, -0.0594298989),C1 = CFrame.new(0.227796555, -0.389676094, 0.33270359, -0.408491671, 0.353551745, 0.841502249, 0.666965187, 0.745008111, 0.0107554942, -0.623126268, 0.565648913, -0.540138841),}) | |
1162 | Part = New("Part",Doll,"Part",{BrickColor = BrickColor.new("Beige"),Shape = Enum.PartType.Ball,Size = Vector3.new(0.357458174, 0.357458174, 0.357458174),CFrame = CFrame.new(16.9056702, 4.23298216, 4.33822775, 0.734989643, -0.671386659, 0.0949084461, -0.65344131, -0.738707781, -0.165238559, 0.18105793, 0.0594319291, -0.981658101),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.792157, 0.74902, 0.639216),}) | |
1163 | --Decal = New("Decal",Part,"Decal",{Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1164 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Top,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1165 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Left,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1166 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Back,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1167 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Right,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1168 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Bottom,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1169 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.734994054, -0.653445184, 0.181057304, -0.671389878, -0.738711119, 0.0594324097, 0.0949106514, -0.165240943, -0.981666625),C1 = CFrame.new(0.349896908, -0.397447586, 0.630620956, -0.408491671, 0.353551745, 0.841502249, 0.666965187, 0.745008111, 0.0107554942, -0.623126268, 0.565648913, -0.540138841),}) | |
1170 | Part = New("Part",Doll,"Part",{BrickColor = BrickColor.new("Beige"),Shape = Enum.PartType.Ball,Size = Vector3.new(0.668146014, 0.668146014, 0.668146014),CFrame = CFrame.new(17.5317345, 3.8532939, 4.38586617, -0.408485681, -0.666960537, 0.62312144, 0.353546619, -0.745002985, -0.565644801, 0.841490149, -0.01075528, 0.540134549),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.792157, 0.74902, 0.639216),}) | |
1171 | --Decal = New("Decal",Part,"Decal",{Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1172 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Top,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1173 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Left,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1174 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Back,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1175 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Right,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1176 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Bottom,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1177 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.408489615, 0.353550047, 0.841498256, -0.666963577, -0.745006442, -0.0107553881, 0.623124659, -0.565647602, 0.540137351),C1 = CFrame.new(2.38418579e-07, -0.262242317, -9.53674316e-07, -0.408491671, 0.353551745, 0.841502249, 0.666965187, 0.745008111, 0.0107554942, -0.623126268, 0.565648913, -0.540138841),}) | |
1178 | Part = New("Part",Doll,"Part",{BrickColor = BrickColor.new("Beige"),Shape = Enum.PartType.Ball,Size = Vector3.new(0.357458174, 0.357458174, 0.357458174),CFrame = CFrame.new(17.2187252, 4.32988024, 4.93205738, 0.445832521, -0.422561586, 0.789083481, -0.410612077, -0.879869342, -0.239178166, 0.795367122, -0.217372417, -0.565779924),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.792157, 0.74902, 0.639216),}) | |
1179 | --Decal = New("Decal",Part,"Decal",{Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1180 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Top,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1181 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Left,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1182 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Back,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1183 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Right,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1184 | --Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Bottom,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1185 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.4458341, -0.410613567, 0.795372486, -0.422562897, -0.879873991, -0.217374831, 0.789088964, -0.239180893, -0.565786123),C1 = CFrame.new(0.755987883, -0.110072136, 0.169605255, -0.408491671, 0.353551745, 0.841502249, 0.666965187, 0.745008111, 0.0107554942, -0.623126268, 0.565648913, -0.540138841),}) | |
1186 | Part = New("Part",Doll,"Part",{FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.668145955, 0.668145835, 0.668145955),CFrame = CFrame.new(18.08988, 4.4767499, 4.39486742, 0.408485681, 0.666960537, 0.62312144, -0.353546619, 0.745002985, -0.565644801, -0.841490149, 0.01075528, 0.540134549),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
1187 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.267258376, 0.267258346, 0.267258376),MeshId = "rbxassetid://511959728",TextureId = "rbxassetid://511959832",MeshType = Enum.MeshType.FileMesh,}) | |
1188 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.408489615, -0.353550047, -0.841498256, 0.666963577, 0.745006442, 0.0107553881, 0.623124659, -0.565647602, 0.540137351),C1 = CFrame.new(7.15255737e-07, 0.574602127, -9.53674316e-07, -0.408491671, 0.353551745, 0.841502249, 0.666965187, 0.745008111, 0.0107554942, -0.623126268, 0.565648913, -0.540138841),}) | |
1189 | ConeMesh = New("Part",Doll,"ConeMesh",{Material = Enum.Material.SmoothPlastic,Elasticity = 0,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.200000003, 0.334072918, 0.200000003),CFrame = CFrame.new(17.9875202, 4.01644802, 3.77061558, -0.0676794201, -0.685131192, -0.725253105, -0.385200799, -0.652613878, 0.652452171, -0.920328856, 0.3235268, -0.219753891),CanCollide = false,}) | |
1190 | Mesh = New("SpecialMesh",ConeMesh,"Mesh",{Scale = Vector3.new(0.0100221895, 0.334072918, 0.0100221895),MeshId = "http://www.roblox.com/asset/?id=1033714",MeshType = Enum.MeshType.FileMesh,}) | |
1191 | mot = New("Motor",ConeMesh,"mot",{Part0 = ConeMesh,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.0676780194, -0.385204077, -0.920336962, -0.685135007, -0.652616382, 0.323529661, -0.725257397, 0.652455926, -0.219753653),C1 = CFrame.new(-0.646242142, 0.156686783, 0.14059639, -0.408491671, 0.353551745, 0.841502249, 0.666965187, 0.745008111, 0.0107554942, -0.623126268, 0.565648913, -0.540138841),}) | |
1192 | ConeMesh = New("Part",Doll,"ConeMesh",{Material = Enum.Material.SmoothPlastic,Elasticity = 0,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.200000003, 0.334072918, 0.200000003),CFrame = CFrame.new(17.5272255, 4.25228214, 4.19855928, 0.0679666698, 0.36827448, 0.927217185, -0.212974086, -0.902587652, 0.374107033, 0.974675775, -0.222893685, 0.017090857),CanCollide = false,}) | |
1193 | Mesh = New("SpecialMesh",ConeMesh,"Mesh",{Scale = Vector3.new(0.0100221895, 0.334072918, 0.0100221895),MeshId = "http://www.roblox.com/asset/?id=1033714",MeshType = Enum.MeshType.FileMesh,}) | |
1194 | mot = New("Motor",ConeMesh,"mot",{Part0 = ConeMesh,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0679656863, -0.212973878, 0.974683523, 0.368277669, -0.902593136, -0.22289744, 0.927222073, 0.374108285, 0.0170900673),C1 = CFrame.new(-0.0147144794, 0.0299873352, 0.329668999, -0.408491671, 0.353551745, 0.841502249, 0.666965187, 0.745008111, 0.0107554942, -0.623126268, 0.565648913, -0.540138841),}) | |
1195 | Part = New("Part",Doll,"Part",{BrickColor = BrickColor.new("Bright red"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Ball,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(18.0725803, 4.09775925, 3.73087263, 0.0676794201, 0.685131252, -0.725253105, 0.385200679, 0.652613938, 0.652452171, 0.920328856, -0.32352671, -0.219753891),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.768628, 0.156863, 0.109804),}) | |
1196 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.334072977, 0.334072918, 0.334072977),MeshType = Enum.MeshType.Sphere,}) | |
1197 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0676779896, 0.385204017, 0.920336962, 0.685135067, 0.652616382, -0.323529571, -0.725257397, 0.652455926, -0.219753653),C1 = CFrame.new(-0.685684681, 0.273569107, 0.155054092, -0.408491671, 0.353551745, 0.841502249, 0.666965187, 0.745008111, 0.0107554942, -0.623126268, 0.565648913, -0.540138841),}) | |
1198 | Part = New("Part",Doll,"Part",{BrickColor = BrickColor.new("Bright red"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Ball,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(17.4762096, 4.37637663, 4.2292285, 0.0679666698, 0.927216947, -0.368275285, -0.212974086, 0.374107838, 0.902587295, 0.974675775, 0.0170910954, 0.222893804),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.768628, 0.156863, 0.109804),}) | |
1199 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.334072977, 0.334072918, 0.334072977),MeshType = Enum.MeshType.Sphere,}) | |
1200 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0679656863, -0.212973878, 0.974683523, 0.927221835, 0.374109089, 0.0170903057, -0.368278474, 0.902592778, 0.22289747),C1 = CFrame.new(0.0758080482, 0.0887422562, 0.4150877, -0.408491671, 0.353551745, 0.841502249, 0.666965187, 0.745008111, 0.0107554942, -0.623126268, 0.565648913, -0.540138841),}) | |
1201 | ||
1202 | --lazi xd | |
1203 | Needle = New("Model",char,"Needle",{}) | |
1204 | Handle2 = New("Part",Needle,"Handle2",{FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1, 2.4000001, 1),CFrame = CFrame.new(16.3492584, 4.78270006, 4.07852173, 0.0870969296, 0.578728557, -0.810855865, 0.54097569, -0.710955501, -0.449318945, -0.836516261, -0.399518967, -0.375000119),BackSurface = Enum.SurfaceType.Weld,BottomSurface = Enum.SurfaceType.Weld,FrontSurface = Enum.SurfaceType.Weld,LeftSurface = Enum.SurfaceType.Weld,RightSurface = Enum.SurfaceType.Weld,TopSurface = Enum.SurfaceType.Weld,}) | |
1205 | Mesh = New("SpecialMesh",Handle2,"Mesh",{Scale = Vector3.new(0.100000001, 0.800000012, 0.100000001),MeshId = "http://www.roblox.com/asset/?id=1082802",MeshType = Enum.MeshType.FileMesh,}) | |
1206 | ||
1207 | ||
1208 | for _, v in pairs(Doll:GetChildren()) do | |
1209 | if v:IsA'BasePart' then | |
1210 | v.CanCollide = false | |
1211 | end | |
1212 | end | |
1213 | ||
1214 | for _, v in pairs(Needle:GetChildren()) do | |
1215 | if v:IsA'BasePart' then | |
1216 | v.CanCollide = false | |
1217 | end | |
1218 | end | |
1219 | ||
1220 | ||
1221 | local NewInstance = function(instance,parent,properties) | |
1222 | local inst = Instance.new(instance,parent) | |
1223 | if(properties)then | |
1224 | for i,v in next, properties do | |
1225 | pcall(function() inst[i] = v end) | |
1226 | end | |
1227 | end | |
1228 | return inst; | |
1229 | end | |
1230 | local HW = NewInstance('Weld',char,{Part0=ra,Part1=Handle,C0 = CFrame.new(-.2,-.8,-.4)*CFrame.Angles(math.rad(-30),math.rad(220),math.rad(65))}) | |
1231 | ||
1232 | local HW2 = NewInstance('Weld',char,{Part0=la,Part1=Handle2,C0 = CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(125),math.rad(90))}) | |
1233 | ||
1234 | ||
1235 | ||
1236 | ------------------------------------------------------- | |
1237 | --Start Music Option-- | |
1238 | ------------------------------------------------------- | |
1239 | local Music = Instance.new("Sound",tors) | |
1240 | Music.Volume = 2.5 | |
1241 | Music.SoundId = "rbxassetid://803936798" --536675558 1470848774 | |
1242 | Music.Looped = true | |
1243 | Music.Pitch = .9 --Pitcher | |
1244 | Music:Play() | |
1245 | ------------------------------------------------------- | |
1246 | --End Music Option-- | |
1247 | ------------------------------------------------------- | |
1248 | ||
1249 | ||
1250 | ------------------------------------------------------- | |
1251 | --Start Attacks N Stuff-- | |
1252 | ------------------------------------------------------- | |
1253 | local sine=0 | |
1254 | function LockOn() | |
1255 | if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then | |
1256 | TargetSelect(mouse.Target.Parent) | |
1257 | CreateSound("743521450", char, 1, .8) | |
1258 | end | |
1259 | end | |
1260 | ||
1261 | ||
1262 | ||
1263 | function Stab_Them_For_FUN() | |
1264 | attack = true | |
1265 | hum.WalkSpeed = 0 | |
1266 | if targetted.Name ~= "makhail07" and targetted.Name ~= "Salvo_Starly" and targetted.Name ~= "Nebula_Zorua" and targetted.Name ~= "KillerDarkness0105" then | |
1267 | local torsy = targetted:FindFirstChild("UpperTorso") or targetted:FindFirstChild("Torso") | |
1268 | local partasdeff = Instance.new("ParticleEmitter",torsy) | |
1269 | partasdeff.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0)) | |
1270 | partasdeff.LightEmission = .1 | |
1271 | partasdeff.Size = NumberSequence.new(0.2) | |
1272 | partasdeff.Texture = "http://www.roblox.com/asset/?ID=771221224" | |
1273 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)}) | |
1274 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
1275 | partasdeff.Transparency = bbb | |
1276 | partasdeff.Size = aaa | |
1277 | partasdeff.ZOffset = .9 | |
1278 | partasdeff.Acceleration = Vector3.new(0, -5, 0) | |
1279 | partasdeff.LockedToPart = false | |
1280 | partasdeff.EmissionDirection = "Back" | |
1281 | partasdeff.Lifetime = NumberRange.new(1, 2) | |
1282 | partasdeff.Rate = 1000 | |
1283 | partasdeff.Rotation = NumberRange.new(-100, 100) | |
1284 | partasdeff.RotSpeed = NumberRange.new(-100, 100) | |
1285 | partasdeff.Speed = NumberRange.new(6) | |
1286 | partasdeff.VelocitySpread = 10000 | |
1287 | partasdeff.Enabled=false | |
1288 | for i = 0, 1.4, 0.1 do | |
1289 | swait() | |
1290 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(0)), 0.15) | |
1291 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-15), Rad(0), Rad(-25)), 0.3) | |
1292 | if Mrandom(1,15) == 1 then | |
1293 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1294 | end | |
1295 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-10)), 0.15) | |
1296 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.2 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(-10)), 0.15) | |
1297 | RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(-15)), 0.1) | |
1298 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), -.3 + 0.025 * Cos(sine / 20)) * angles(Rad(175), Rad(0), Rad(20)), 0.1) | |
1299 | end | |
1300 | dmg(targetted) | |
1301 | partasdeff.Enabled=true | |
1302 | CreateSound("429400881", torsy, 10, .8) | |
1303 | for i = 0, 1.4, 0.1 do | |
1304 | swait() | |
1305 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(0)), 0.15) | |
1306 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(15), Rad(0), Rad(-25)), 0.3) | |
1307 | if Mrandom(1,15) == 1 then | |
1308 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1309 | end | |
1310 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-10)), 0.15) | |
1311 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.2 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(-10)), 0.15) | |
1312 | RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(-15)), 0.1) | |
1313 | LW.C0 = clerp(LW.C0, CF(-.4, 0.5 + 0.05 * Sin(sine / 30), -.3 + 0.025 * Cos(sine / 20)) * angles(Rad(75), Rad(0), Rad(65)), 0.1) | |
1314 | end | |
1315 | partasdeff.Enabled=false | |
1316 | for i = 0, 1.4, 0.1 do | |
1317 | swait() | |
1318 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(0)), 0.15) | |
1319 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-15), Rad(0), Rad(-25)), 0.3) | |
1320 | if Mrandom(1,15) == 1 then | |
1321 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1322 | end | |
1323 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-10)), 0.15) | |
1324 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.2 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(-10)), 0.15) | |
1325 | RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(-15)), 0.1) | |
1326 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), -.3 + 0.025 * Cos(sine / 20)) * angles(Rad(175), Rad(0), Rad(20)), 0.1) | |
1327 | end | |
1328 | attack = false | |
1329 | hum.WalkSpeed = 8 | |
1330 | elseif targetted.Name == "makhail07" then | |
1331 | for i = 0, 2.4, 0.1 do | |
1332 | swait() | |
1333 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(0)), 0.15) | |
1334 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(15), Rad(0), Rad(-25)), 0.3) | |
1335 | if Mrandom(1,15) == 1 then | |
1336 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1337 | end | |
1338 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-10)), 0.15) | |
1339 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.2 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(-10)), 0.15) | |
1340 | RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(-15)), 0.1) | |
1341 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), -.3 + 0.025 * Cos(sine / 20)) * angles(Rad(175), Rad(0), Rad(20)), 0.1) | |
1342 | end | |
1343 | for i = 0, 2.4, 0.1 do | |
1344 | swait() | |
1345 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(0)), 0.15) | |
1346 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(15), Rad(0), Rad(-25 * Cos(sine / 20))), 0.3) | |
1347 | if Mrandom(1,15) == 1 then | |
1348 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1349 | end | |
1350 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-10)), 0.15) | |
1351 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.2 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(-10)), 0.15) | |
1352 | RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(-15)), 0.1) | |
1353 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), -.3 + 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-10)), 0.1) | |
1354 | end | |
1355 | coroutine.wrap(function() | |
1356 | wait(2) | |
1357 | --partasdeff:Remove() | |
1358 | end)() | |
1359 | local sel = Mrandom(1,3) | |
1360 | if sel == 1 then | |
1361 | chatfunc("Hmhmhm, Why try?") | |
1362 | elseif sel == 2 then | |
1363 | chatfunc("Stop it that's my creator.") | |
1364 | elseif sel == 3 then | |
1365 | chatfunc("I can't do that...") | |
1366 | end | |
1367 | wait(2) | |
1368 | hum.WalkSpeed = 8 | |
1369 | attack = false | |
1370 | elseif targetted.Name == "Salvo_Starly" then | |
1371 | for i = 0, 2.4, 0.1 do | |
1372 | swait() | |
1373 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(0)), 0.15) | |
1374 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(15), Rad(0), Rad(-25)), 0.3) | |
1375 | if Mrandom(1,15) == 1 then | |
1376 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1377 | end | |
1378 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-10)), 0.15) | |
1379 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.2 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(-10)), 0.15) | |
1380 | RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(-15)), 0.1) | |
1381 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), -.3 + 0.025 * Cos(sine / 20)) * angles(Rad(175), Rad(0), Rad(20)), 0.1) | |
1382 | end | |
1383 | for i = 0, 2.4, 0.1 do | |
1384 | swait() | |
1385 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(0)), 0.15) | |
1386 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(15), Rad(0), Rad(-25 * Cos(sine / 20))), 0.3) | |
1387 | if Mrandom(1,15) == 1 then | |
1388 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1389 | end | |
1390 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-10)), 0.15) | |
1391 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.2 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(-10)), 0.15) | |
1392 | RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(-15)), 0.1) | |
1393 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), -.3 + 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-10)), 0.1) | |
1394 | end | |
1395 | coroutine.wrap(function() | |
1396 | wait(2) | |
1397 | --partasdeff:Remove() | |
1398 | end)() | |
1399 | local sel = Mrandom(1,3) | |
1400 | if sel == 1 then | |
1401 | chatfunc("Sorry about that.") | |
1402 | elseif sel == 2 then | |
1403 | chatfunc("H-Hello. I almost killed you.") | |
1404 | elseif sel == 3 then | |
1405 | chatfunc("OwO?") | |
1406 | end | |
1407 | wait(2) | |
1408 | hum.WalkSpeed = 8 | |
1409 | attack = false | |
1410 | elseif targetted.Name == "Nebula_Zorua" then | |
1411 | for i = 0, 2.4, 0.1 do | |
1412 | swait() | |
1413 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(0)), 0.15) | |
1414 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(15), Rad(0), Rad(-25)), 0.3) | |
1415 | if Mrandom(1,15) == 1 then | |
1416 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1417 | end | |
1418 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-10)), 0.15) | |
1419 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.2 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(-10)), 0.15) | |
1420 | RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(-15)), 0.1) | |
1421 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), -.3 + 0.025 * Cos(sine / 20)) * angles(Rad(175), Rad(0), Rad(20)), 0.1) | |
1422 | end | |
1423 | for i = 0, 2.4, 0.1 do | |
1424 | swait() | |
1425 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(0)), 0.15) | |
1426 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(15), Rad(0), Rad(-25 * Cos(sine / 20))), 0.3) | |
1427 | if Mrandom(1,15) == 1 then | |
1428 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1429 | end | |
1430 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-10)), 0.15) | |
1431 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.2 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(-10)), 0.15) | |
1432 | RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(-15)), 0.1) | |
1433 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), -.3 + 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-10)), 0.1) | |
1434 | end | |
1435 | coroutine.wrap(function() | |
1436 | wait(2) | |
1437 | --partasdeff:Remove() | |
1438 | end)() | |
1439 | local sel = Mrandom(1,3) | |
1440 | if sel == 1 then | |
1441 | chatfunc("Sorry, Nebula.") | |
1442 | elseif sel == 2 then | |
1443 | chatfunc("Theres no need to harm you. Yet...") | |
1444 | elseif sel == 3 then | |
1445 | chatfunc("My mistake.") | |
1446 | end | |
1447 | wait(2) | |
1448 | hum.WalkSpeed = 8 | |
1449 | attack = false | |
1450 | elseif targetted.Name == "KillerDarkness0105" then | |
1451 | for i = 0, 2.4, 0.1 do | |
1452 | swait() | |
1453 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(0)), 0.15) | |
1454 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(15), Rad(0), Rad(-25)), 0.3) | |
1455 | if Mrandom(1,15) == 1 then | |
1456 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1457 | end | |
1458 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-10)), 0.15) | |
1459 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.2 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(-10)), 0.15) | |
1460 | RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(-15)), 0.1) | |
1461 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), -.3 + 0.025 * Cos(sine / 20)) * angles(Rad(175), Rad(0), Rad(20)), 0.1) | |
1462 | end | |
1463 | for i = 0, 2.4, 0.1 do | |
1464 | swait() | |
1465 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(0)), 0.15) | |
1466 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(15), Rad(0), Rad(-25 * Cos(sine / 20))), 0.3) | |
1467 | if Mrandom(1,15) == 1 then | |
1468 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1469 | end | |
1470 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-10)), 0.15) | |
1471 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.2 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(-10)), 0.15) | |
1472 | RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(-15)), 0.1) | |
1473 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), -.3 + 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-10)), 0.1) | |
1474 | end | |
1475 | coroutine.wrap(function() | |
1476 | wait(2) | |
1477 | --partasdeff:Remove() | |
1478 | end)() | |
1479 | local sel = Mrandom(1,3) | |
1480 | if sel == 1 then | |
1481 | chatfunc("Hm, Killer it's been a while.") | |
1482 | elseif sel == 2 then | |
1483 | chatfunc("No need for this.") | |
1484 | elseif sel == 3 then | |
1485 | chatfunc("Hello, sorry.") | |
1486 | end | |
1487 | wait(2) | |
1488 | hum.WalkSpeed = 8 | |
1489 | attack = false | |
1490 | end | |
1491 | end | |
1492 | ||
1493 | function Oh_No_AN_ERROR_Has_OcccccccurrEEEED() | |
1494 | attack = true | |
1495 | hum.WalkSpeed = 0 | |
1496 | if targetted.Name ~= "makhail07" and targetted.Name ~= "Salvo_Starly" and targetted.Name ~= "Nebula_Zorua" and targetted.Name ~= "KillerDarkness0105" then | |
1497 | local torsy = targetted:FindFirstChild("UpperTorso") or targetted:FindFirstChild("Torso") | |
1498 | local partasdeff = Instance.new("ParticleEmitter",torsy) | |
1499 | partasdeff.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0)) | |
1500 | partasdeff.LightEmission = .1 | |
1501 | partasdeff.Size = NumberSequence.new(0.2) | |
1502 | partasdeff.Texture = "http://www.roblox.com/asset/?ID=771221224" | |
1503 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)}) | |
1504 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
1505 | partasdeff.Transparency = bbb | |
1506 | partasdeff.Size = aaa | |
1507 | partasdeff.ZOffset = .9 | |
1508 | partasdeff.Acceleration = Vector3.new(0, -5, 0) | |
1509 | partasdeff.LockedToPart = false | |
1510 | partasdeff.EmissionDirection = "Back" | |
1511 | partasdeff.Lifetime = NumberRange.new(1, 2) | |
1512 | partasdeff.Rate = 1000 | |
1513 | partasdeff.Rotation = NumberRange.new(-100, 100) | |
1514 | partasdeff.RotSpeed = NumberRange.new(-100, 100) | |
1515 | partasdeff.Speed = NumberRange.new(6) | |
1516 | partasdeff.VelocitySpread = 10000 | |
1517 | partasdeff.Enabled=false | |
1518 | for i = 0, 1.2, 0.1 do | |
1519 | swait() | |
1520 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1521 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-5), Rad(0), Rad(0)), 0.3) | |
1522 | if Mrandom(1,15) == 1 then | |
1523 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1524 | end | |
1525 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-0)), 0.15) | |
1526 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(-0)), 0.15) | |
1527 | RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(180), Rad(0), Rad(5)), 0.1) | |
1528 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
1529 | end | |
1530 | HW.Part0 = root | |
1531 | for i = 0, 1.8, 0.1 do | |
1532 | swait() | |
1533 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1534 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(15), Rad(0), Rad(0)), 0.3) | |
1535 | if Mrandom(1,15) == 1 then | |
1536 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1537 | end | |
1538 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-0)), 0.15) | |
1539 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(-0)), 0.15) | |
1540 | RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(35), Rad(0), Rad(5)), 0.1) | |
1541 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
1542 | HW.C0 = clerp(HW.C0, CF(1,-2.9,-.7) * angles(Rad(-90), Rad(0), Rad(0)), 0.1) | |
1543 | end | |
1544 | kdown(targetted) | |
1545 | for i = 0, 1.6, 0.1 do | |
1546 | swait() | |
1547 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1548 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(15), Rad(0), Rad(0)), 0.3) | |
1549 | if Mrandom(1,15) == 1 then | |
1550 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1551 | end | |
1552 | RH.C0 = clerp(RH.C0, CF(1, -0.4 - 0.1 * Cos(sine / 20), -.8 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-0)), 0.15) | |
1553 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(-0)), 0.15) | |
1554 | RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(5)), 0.1) | |
1555 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
1556 | end | |
1557 | for i = 1,7 do | |
1558 | partasdeff.Enabled = false | |
1559 | for i = 0, 1.6, 0.1 do | |
1560 | swait() | |
1561 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(5), Rad(0), Rad(0)), 0.15) | |
1562 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(25), Rad(0), Rad(0)), 0.3) | |
1563 | if Mrandom(1,15) == 1 then | |
1564 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1565 | end | |
1566 | RH.C0 = clerp(RH.C0, CF(1, -0.1 - 0.1 * Cos(sine / 20), -.8 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-10)), 0.15) | |
1567 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.2 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(-10)), 0.15) | |
1568 | RW.C0 = clerp(RW.C0, CF(1.5, 0.3 + 0.05 * Sin(sine / 7), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(15)), 0.1) | |
1569 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.3 + 0.05 * Sin(sine / 7), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-15)), 0.1) | |
1570 | end | |
1571 | CreateSound("429400881", torsy, 10, 1) | |
1572 | partasdeff.Enabled = true | |
1573 | for i = 0, 1.6, 0.1 do | |
1574 | swait() | |
1575 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(0)), 0.15) | |
1576 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(25), Rad(0), Rad(0)), 0.3) | |
1577 | if Mrandom(1,15) == 1 then | |
1578 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1579 | end | |
1580 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), -.5 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(10)), 0.15) | |
1581 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.2 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(-10)), 0.15) | |
1582 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 7), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(15)), 0.1) | |
1583 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 7), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-15)), 0.1) | |
1584 | end | |
1585 | end | |
1586 | partasdeff.Enabled = false | |
1587 | dmg(targetted) | |
1588 | attack = false | |
1589 | HW.Part0 = ra | |
1590 | HW.C0 = clerp(HW.C0, CF(-.2,-.8,-.4) * angles(Rad(-30), Rad(220), Rad(65)), 0.1) | |
1591 | hum.WalkSpeed = 8 | |
1592 | elseif targetted.Name == "makhail07" then | |
1593 | for i = 0, 3.2, 0.1 do | |
1594 | swait() | |
1595 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1596 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-5), Rad(0), Rad(0)), 0.3) | |
1597 | if Mrandom(1,15) == 1 then | |
1598 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1599 | end | |
1600 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-0)), 0.15) | |
1601 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(-0)), 0.15) | |
1602 | RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(180), Rad(0), Rad(5)), 0.1) | |
1603 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
1604 | end | |
1605 | for i = 0, 1.8, 0.1 do | |
1606 | swait() | |
1607 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1608 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(15), Rad(0), Rad(0)), 0.3) | |
1609 | if Mrandom(1,15) == 1 then | |
1610 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1611 | end | |
1612 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-0)), 0.15) | |
1613 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(-0)), 0.15) | |
1614 | RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(5)), 0.1) | |
1615 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
1616 | end | |
1617 | coroutine.wrap(function() | |
1618 | wait(2) | |
1619 | --partasdeff:Remove() | |
1620 | end)() | |
1621 | local sel = Mrandom(1,3) | |
1622 | if sel == 1 then | |
1623 | chatfunc("Hah you tried.") | |
1624 | elseif sel == 2 then | |
1625 | chatfunc("No,no that's wrong.") | |
1626 | elseif sel == 3 then | |
1627 | chatfunc("Oops, I almost smashed myself to pieces.") | |
1628 | end | |
1629 | wait(2) | |
1630 | hum.WalkSpeed = 8 | |
1631 | attack = false | |
1632 | elseif targetted.Name == "Salvo_Starly" then | |
1633 | for i = 0, 3.2, 0.1 do | |
1634 | swait() | |
1635 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1636 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-5), Rad(0), Rad(0)), 0.3) | |
1637 | if Mrandom(1,15) == 1 then | |
1638 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1639 | end | |
1640 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-0)), 0.15) | |
1641 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(-0)), 0.15) | |
1642 | RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(180), Rad(0), Rad(5)), 0.1) | |
1643 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
1644 | end | |
1645 | for i = 0, 1.8, 0.1 do | |
1646 | swait() | |
1647 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1648 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(15), Rad(0), Rad(0)), 0.3) | |
1649 | if Mrandom(1,15) == 1 then | |
1650 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1651 | end | |
1652 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-0)), 0.15) | |
1653 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(-0)), 0.15) | |
1654 | RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(5)), 0.1) | |
1655 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
1656 | end | |
1657 | coroutine.wrap(function() | |
1658 | wait(2) | |
1659 | --partasdeff:Remove() | |
1660 | end)() | |
1661 | local sel = Mrandom(1,3) | |
1662 | if sel == 1 then | |
1663 | chatfunc("Ooooopsy.") | |
1664 | elseif sel == 2 then | |
1665 | chatfunc("OOF I almost smashed you.") | |
1666 | elseif sel == 3 then | |
1667 | chatfunc("Give me, wait...Salvo?") | |
1668 | end | |
1669 | wait(2) | |
1670 | hum.WalkSpeed = 8 | |
1671 | attack = false | |
1672 | elseif targetted.Name == "Nebula_Zorua" then | |
1673 | for i = 0, 3.2, 0.1 do | |
1674 | swait() | |
1675 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1676 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-5), Rad(0), Rad(0)), 0.3) | |
1677 | if Mrandom(1,15) == 1 then | |
1678 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1679 | end | |
1680 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-0)), 0.15) | |
1681 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(-0)), 0.15) | |
1682 | RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(180), Rad(0), Rad(5)), 0.1) | |
1683 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
1684 | end | |
1685 | for i = 0, 1.8, 0.1 do | |
1686 | swait() | |
1687 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1688 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(15), Rad(0), Rad(0)), 0.3) | |
1689 | if Mrandom(1,15) == 1 then | |
1690 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1691 | end | |
1692 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-0)), 0.15) | |
1693 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(-0)), 0.15) | |
1694 | RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(5)), 0.1) | |
1695 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
1696 | end | |
1697 | coroutine.wrap(function() | |
1698 | wait(2) | |
1699 | --partasdeff:Remove() | |
1700 | end)() | |
1701 | local sel = Mrandom(1,3) | |
1702 | if sel == 1 then | |
1703 | chatfunc("Lucky I know you...") | |
1704 | elseif sel == 2 then | |
1705 | chatfunc("Nebu?") | |
1706 | elseif sel == 3 then | |
1707 | chatfunc("VSB = Bad, GSB = Good") | |
1708 | end | |
1709 | wait(2) | |
1710 | hum.WalkSpeed = 8 | |
1711 | attack = false | |
1712 | elseif targetted.Name == "KillerDarkness0105" then | |
1713 | for i = 0, 3.2, 0.1 do | |
1714 | swait() | |
1715 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1716 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-5), Rad(0), Rad(0)), 0.3) | |
1717 | if Mrandom(1,15) == 1 then | |
1718 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1719 | end | |
1720 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-0)), 0.15) | |
1721 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(-0)), 0.15) | |
1722 | RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(180), Rad(0), Rad(5)), 0.1) | |
1723 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
1724 | end | |
1725 | for i = 0, 1.8, 0.1 do | |
1726 | swait() | |
1727 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1728 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(15), Rad(0), Rad(0)), 0.3) | |
1729 | if Mrandom(1,15) == 1 then | |
1730 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1731 | end | |
1732 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-0)), 0.15) | |
1733 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(-0)), 0.15) | |
1734 | RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(5)), 0.1) | |
1735 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
1736 | end | |
1737 | coroutine.wrap(function() | |
1738 | wait(2) | |
1739 | --partasdeff:Remove() | |
1740 | end)() | |
1741 | local sel = Mrandom(1,3) | |
1742 | if sel == 1 then | |
1743 | chatfunc("AaaaAA Killer, what are you doing?") | |
1744 | elseif sel == 2 then | |
1745 | chatfunc("Are you finished with those touhou scripts?") | |
1746 | elseif sel == 3 then | |
1747 | chatfunc("Oh hi, sorry for that.") | |
1748 | end | |
1749 | wait(2) | |
1750 | hum.WalkSpeed = 8 | |
1751 | attack = false | |
1752 | end | |
1753 | end | |
1754 | ||
1755 | function Get_Over_Here_And_PERISH() | |
1756 | attack = true | |
1757 | hum.WalkSpeed = 0 | |
1758 | local torsy = targetted:FindFirstChild("UpperTorso") or targetted:FindFirstChild("Torso") | |
1759 | for i = 0, 2, 0.1 do | |
1760 | swait() | |
1761 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(25)), 0.15) | |
1762 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
1763 | if Mrandom(1,15) == 1 then | |
1764 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1765 | end | |
1766 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-10)), 0.15) | |
1767 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(-10)), 0.15) | |
1768 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(10)), 0.1) | |
1769 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-10)), 0.1) | |
1770 | end | |
1771 | coroutine.resume(coroutine.create(function() | |
1772 | for i = 1,10 do | |
1773 | swait() | |
1774 | local Pully = Create("BodyPosition")({ | |
1775 | P = 9000, | |
1776 | D = 1000, | |
1777 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1778 | position = ra.Position - ra.CFrame.lookVector * 6, | |
1779 | Parent = torsy | |
1780 | }) | |
1781 | game:GetService("Debris"):AddItem(Pully, 0.2) | |
1782 | wait() | |
1783 | end | |
1784 | end)) | |
1785 | CreateSound("541909814", torsy, 10, 1) | |
1786 | CreateSound("131228548", hed, 10, 1) | |
1787 | for i = 0, 2.2, 0.1 do | |
1788 | swait() | |
1789 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-35)), 0.15) | |
1790 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(35)), 0.3) | |
1791 | if Mrandom(1,15) == 1 then | |
1792 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1793 | end | |
1794 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(17), Rad(-10)), 0.15) | |
1795 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(-0)), 0.15) | |
1796 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1) | |
1797 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(40), Rad(0), Rad(-5)), 0.1) | |
1798 | end | |
1799 | attack = false | |
1800 | hum.WalkSpeed = 8 | |
1801 | end | |
1802 | ||
1803 | function The_End_offfff() | |
1804 | attack = true | |
1805 | hum.WalkSpeed = 0 | |
1806 | Music:Stop() | |
1807 | for _, v in pairs(Doll:GetChildren()) do | |
1808 | if v:IsA'BasePart' then | |
1809 | v:Remove() | |
1810 | end | |
1811 | end | |
1812 | for _, v in pairs(Needle:GetChildren()) do | |
1813 | if v:IsA'BasePart' then | |
1814 | v:Remove() | |
1815 | end | |
1816 | end | |
1817 | for i = 0,6,0.1 do | |
1818 | swait() | |
1819 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1820 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
1821 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1822 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1823 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(5)), 0.1) | |
1824 | LW.C0 = clerp(LW.C0, CF(-1.3, 0.8 + 0.05 * Sin(sine / 30), -0.025 * Cos(sine / 20)) * angles(Rad(140), Rad(0), Rad(15)), 0.1) | |
1825 | end | |
1826 | CreateSound("1093102664", hed, 10, 1) | |
1827 | for i = 0,4,0.1 do | |
1828 | swait() | |
1829 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(5), Rad(0), Rad(0)), 0.15) | |
1830 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(10), Rad(0), Rad(-90)), 0.4) | |
1831 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1832 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1833 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(5)), 0.1) | |
1834 | LW.C0 = clerp(LW.C0, CF(-1.3, 0.8 + 0.05 * Sin(sine / 30), -0.025 * Cos(sine / 20)) * angles(Rad(40), Rad(0), Rad(40)), 0.4) | |
1835 | end | |
1836 | for i = 0,6,0.1 do | |
1837 | swait() | |
1838 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -3 + 0.1) * angles(Rad(90), Rad(0), Rad(0)), 0.15) | |
1839 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-90)), 0.4) | |
1840 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-14), Rad(0), Rad(0)), 0.15) | |
1841 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6), Rad(0), Rad(0)), 0.15) | |
1842 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(155)), 0.1) | |
1843 | LW.C0 = clerp(LW.C0, CF(-1.3, 0.8 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-167)), 0.4) | |
1844 | end | |
1845 | wait(2) | |
1846 | dmg(char) | |
1847 | end | |
1848 | ||
1849 | ------------------------------------------------------- | |
1850 | --End Attacks N Stuff-- | |
1851 | ------------------------------------------------------- | |
1852 | mouse.Button1Down:connect(function() | |
1853 | if attack == false and targetted ~= nil then | |
1854 | Stab_Them_For_FUN() | |
1855 | end | |
1856 | end) | |
1857 | ||
1858 | ||
1859 | mouse.KeyDown:connect(function(key) | |
1860 | if attack == false then | |
1861 | if key == 'q' then | |
1862 | LockOn() | |
1863 | elseif key == 'f' then | |
1864 | chatfunc("Come on now child everythings okay...") | |
1865 | elseif key == 'e' and targetted ~= nil then | |
1866 | Oh_No_AN_ERROR_Has_OcccccccurrEEEED() | |
1867 | elseif key == 'x' and targetted ~= nil then | |
1868 | Get_Over_Here_And_PERISH() | |
1869 | elseif key == 'r' and targetted ~= nil then | |
1870 | CreateSound("289556450", hed, .4, math.random(5, 15) / 5) | |
1871 | root.CFrame = targetted.Head.CFrame * CFrame.new(0, 0, 6) | |
1872 | elseif key == 'p' then | |
1873 | The_End_offfff() | |
1874 | end | |
1875 | end | |
1876 | end) | |
1877 | ||
1878 | ||
1879 | ||
1880 | ||
1881 | ||
1882 | ||
1883 | ------------------------------------------------------- | |
1884 | --Start Animations-- | |
1885 | ------------------------------------------------------- | |
1886 | local equipped = false | |
1887 | hum.WalkSpeed = 8 | |
1888 | hed.face.Texture = "rbxassetid://1471407701" | |
1889 | local idle = 0 | |
1890 | local change = 1 | |
1891 | local val = 0 | |
1892 | local toim = 0 | |
1893 | local idleanim = 0.4 | |
1894 | hum.Animator.Parent = nil | |
1895 | while true do | |
1896 | swait() | |
1897 | game.Lighting.TimeOfDay = "00:00:00" | |
1898 | --game.Lighting.FogEnd = 50 | |
1899 | --game.Lighting.FogColor = Color3.fromRGB(0,0,0) | |
1900 | Music.Parent = tors | |
1901 | ||
1902 | imgl.Rotation = imgl.Rotation + 3 | |
1903 | img2.Rotation = img2.Rotation + 3 | |
1904 | if targetted ~= nil then | |
1905 | abss.Adornee = targetted:FindFirstChild("Torso") or targetted:FindFirstChild("UpperTorso") | |
1906 | abss.Enabled = true | |
1907 | elseif targetted == nil then | |
1908 | abss.Adornee = nil | |
1909 | abss.Enabled = false | |
1910 | end | |
1911 | ||
1912 | while true and imgl.Rotation >= 360 do | |
1913 | imgl.Rotation = 0 | |
1914 | img2.Rotation = 0 | |
1915 | end | |
1916 | ||
1917 | sine = sine + change | |
1918 | local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1919 | local velderp = root.Velocity.y | |
1920 | hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char) | |
1921 | if equipped == true or equipped == false then | |
1922 | if attack == false then | |
1923 | idle = idle + 1 | |
1924 | else | |
1925 | idle = 0 | |
1926 | end | |
1927 | if 1 < root.Velocity.y and hitfloor == nil then | |
1928 | Anim = "Jump" | |
1929 | if attack == false then | |
1930 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-10), Rad(0), Rad(0)), 0.3) | |
1931 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(0)), 0.3) | |
1932 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(Rad(30), Rad(0), Rad(20)), 0.3) | |
1933 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(-20), Rad(0), Rad(-30)), 0.3) | |
1934 | LH.C0=clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15) | |
1935 | RH.C0=clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3) | |
1936 | end | |
1937 | elseif -1 > root.Velocity.y and hitfloor == nil then | |
1938 | Anim = "Fall" | |
1939 | if attack == false then | |
1940 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(5), Rad(0), Rad(0)), 0.3) | |
1941 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(10), Rad(0), Rad(0)), 0.3) | |
1942 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(Rad(30), Rad(0), Rad(20)), 0.3) | |
1943 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(-20), Rad(0), Rad(-30)), 0.3) | |
1944 | LH.C0 = clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15) | |
1945 | RH.C0 = clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3) | |
1946 | end | |
1947 | elseif torvel < 1 and hitfloor ~= nil then | |
1948 | Anim = "Idle" | |
1949 | change = .6 | |
1950 | if attack == false then | |
1951 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(0)), 0.15) | |
1952 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(15), Rad(0), Rad(-25)), 0.3) | |
1953 | if Mrandom(1,15) == 1 then | |
1954 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1955 | end | |
1956 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-10)), 0.15) | |
1957 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.2 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(-10)), 0.15) | |
1958 | RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(-15)), 0.1) | |
1959 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), -.3 + 0.025 * Cos(sine / 20)) * angles(Rad(130), Rad(0), Rad(20)), 0.1) | |
1960 | HW.C0 = clerp(HW.C0, CF(-.2,-.8,-.4) * angles(Rad(-30), Rad(220), Rad(65)), 0.1) | |
1961 | end | |
1962 | elseif tors.Velocity.magnitude < 50 and hitfloor ~= nil then | |
1963 | Anim = "Walk" | |
1964 | change = .4 | |
1965 | if attack == false then | |
1966 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(9-2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(10 * Cos(sine / 7))), 0.15) | |
1967 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(30 * Cos(sine / 20)), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
1968 | RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.5 * Cos(sine / 7) / 2, 0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 - 35 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
1969 | LH.C0 = clerp(LH.C0, CF(-1, -0.925 + 0.5 * Cos(sine / 7) / 2, -0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 + 35 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
1970 | RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(-15) - ra.RotVelocity.Y / 75), 0.1) | |
1971 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-70) * Cos(sine / 7) , Rad(0) , Rad(-5) + la.RotVelocity.Y / 75), 0.1) | |
1972 | HW.C0 = clerp(HW.C0, CF(-.2,-.8,-.4) * angles(Rad(-30), Rad(220), Rad(65)), 0.1) | |
1973 | end | |
1974 | end | |
1975 | end | |
1976 | if 0 < #Effects then | |
1977 | for e = 1, #Effects do | |
1978 | if Effects[e] ~= nil then | |
1979 | local Thing = Effects[e] | |
1980 | if Thing ~= nil then | |
1981 | local Part = Thing[1] | |
1982 | local Mode = Thing[2] | |
1983 | local Delay = Thing[3] | |
1984 | local IncX = Thing[4] | |
1985 | local IncY = Thing[5] | |
1986 | local IncZ = Thing[6] | |
1987 | if 1 >= Thing[1].Transparency then | |
1988 | if Thing[2] == "Block1" then | |
1989 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1990 | local Mesh = Thing[1].Mesh | |
1991 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1992 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1993 | elseif Thing[2] == "Block2" then | |
1994 | Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0) | |
1995 | local Mesh = Thing[7] | |
1996 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1997 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1998 | elseif Thing[2] == "Block3" then | |
1999 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0) | |
2000 | local Mesh = Thing[7] | |
2001 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2002 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2003 | elseif Thing[2] == "Cylinder" then | |
2004 | local Mesh = Thing[1].Mesh | |
2005 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2006 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2007 | elseif Thing[2] == "Blood" then | |
2008 | local Mesh = Thing[7] | |
2009 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
2010 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2011 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2012 | elseif Thing[2] == "Elec" then | |
2013 | local Mesh = Thing[1].Mesh | |
2014 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
2015 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2016 | elseif Thing[2] == "Disappear" then | |
2017 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2018 | elseif Thing[2] == "Shatter" then | |
2019 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2020 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
2021 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
2022 | Thing[6] = Thing[6] + Thing[5] | |
2023 | end | |
2024 | else | |
2025 | Part.Parent = nil | |
2026 | table.remove(Effects, e) | |
2027 | end | |
2028 | end | |
2029 | end | |
2030 | end | |
2031 | end | |
2032 | end | |
2033 | ------------------------------------------------------- | |
2034 | --End Animations And Script-- | |
2035 | ------------------------------------------------------- |