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