SHOW:
|
|
- or go back to the newest paste.
1 | print("when finishing this i was lazy lol") | |
2 | ----------------------- | |
3 | --[[ Name : Voodoo Child ]]-- | |
4 | ------------------------------------------------------- | |
5 | --A script By Creterisk | |
6 | ||
7 | --Discord Creterisk#2958 | |
8 | ||
9 | --NOTE THIS SCRIPT WAS PURELY MADE FROM MY FUCKING IMAGINATION | |
10 | --IF IT HAPPENS TO LOOK LIKE ANOTHER SCRIPT | |
11 | --DONT CALL IT A FUCKING BOOTLEG THANK YOU AND ENJOY THE SCRIPT | |
12 | --YOU FUCKING SKIDS, | |
13 | --For Those who log/decompile this, If you sell or trade this, | |
14 | --and I find out who you are, i will take massive action. | |
15 | warn("iTs iMpOsSiBlE tO sEpArAtE tHe TrUtH fRoM tHe FaLsE") | |
16 | ------------------------------------------------------- | |
17 | ||
18 | local FavIDs = { | |
19 | 340106355, --Nefl Crystals | |
20 | 927529620, --Dimension | |
21 | 876981900, --Fantasy | |
22 | 398987889, --Ordinary Days | |
23 | 1117396305, --Oh wait, it's you. | |
24 | 885996042, --Action Winter Journey | |
25 | 919231299, --Sprawling Idiot Effigy | |
26 | 743466274, --Good Day Sunshine | |
27 | 727411183, --Knife Fight | |
28 | 1402748531, --The Earth Is Counting On You! | |
29 | 595230126, --Robot Language | |
30 | 478890315 --Death Road to Canada: Rotten Shotgun | |
31 | } | |
32 | ||
33 | ||
34 | ||
35 | --[[ | |
36 | SUBJECT NAME : Micheal Lahen | |
37 | SUBJECT INFO : | |
38 | He has some kind of doll around him at all time, he doesn't talk much, but when he does he tends to harm others. It is because of a witch that he escaped, and IT IS also because of that witch that he kills. | |
39 | He seems to have a horn of some kind, which appeared when he transformed into his "voodoo form" as we call it... Seems it controls his brain, and emotions by consequences. | |
40 | There is absolutely nothing we can do to save him, | |
41 | He'd have to kill himself, or we'd have to kill him. | |
42 | He is a threat to humanity. | |
43 | SUBJECT STATUS : KILL ON SIGHT! NO HESITATION! | |
44 | ...Nothing can save him... | |
45 | ]]-- | |
46 | --The reality of my life isn't real but a Universe -Creterisk | |
47 | wait(0.2) | |
48 | - | local plr = game:service'Players'.LocalPlayer |
48 | + | local plr = owner |
49 | print('Local User is '..plr.Name..', Mister, You will not regret this~') | |
50 | print('Voodoo Child Loaded') | |
51 | print[[ | |
52 | No please not again, the curse haunts me | |
53 | I cannot control my actions or care for others harm, | |
54 | because of that damn horn. If it were to be removed I'd die, but... | |
55 | The witch says if I do her deeds she will free me, but... | |
56 | I cannot do these deeds as my body forcefully moves away from my objective. | |
57 | Please, PLEASE, HELP ME. | |
58 | I DON'T WANT TO BE ALONE AGAIN I JUST WISH TO SEE MY FAMILY, PLEASE! | |
59 | ||
60 | I.. can't.. I just can't.. the witch is too powerful.. send.. help.. | ??? | |
61 | ]] | |
62 | -- This script has been converted to FE by iPxter | |
63 | ||
64 | ||
65 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
66 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
67 | do | |
68 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter") | |
69 | script.Parent = Player.Character | |
70 | ||
71 | --RemoteEvent for communicating | |
72 | local Event = Instance.new("RemoteEvent") | |
73 | - | local mouse = plr:GetMouse() |
73 | + | Event.Name = "UserInput_Event" |
74 | ||
75 | --Fake event to make stuff like Mouse.KeyDown work | |
76 | local function fakeEvent() | |
77 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
78 | t.connect = t.Connect | |
79 | return t | |
80 | end | |
81 | ||
82 | --Creating fake input objects with fake variables | |
83 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
84 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
85 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
86 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
87 | end} | |
88 | --Merged 2 functions into one by checking amount of arguments | |
89 | CAS.UnbindAction = CAS.BindAction | |
90 | ||
91 | --This function will trigger the events that have been :Connect()'ed | |
92 | local function te(self,ev,...) | |
93 | local t = m[ev] | |
94 | if t and t._fakeEvent and t.Function then | |
95 | t.Function(...) | |
96 | end | |
97 | end | |
98 | m.TrigEvent = te | |
99 | UIS.TrigEvent = te | |
100 | ||
101 | Event.OnServerEvent:Connect(function(plr,io) | |
102 | if plr~=Player then return end | |
103 | if io.isMouse then | |
104 | m.Target = io.Target | |
105 | m.Hit = io.Hit | |
106 | else | |
107 | local b = io.UserInputState == Enum.UserInputState.Begin | |
108 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
109 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
110 | end | |
111 | for _,t in pairs(CAS.Actions) do | |
112 | for _,k in pairs(t.Keys) do | |
113 | if k==io.KeyCode then | |
114 | t.Function(t.Name,io.UserInputState,io) | |
115 | end | |
116 | end | |
117 | end | |
118 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
119 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
120 | end | |
121 | end) | |
122 | Event.Parent = NLS([==[ | |
123 | local Player = game:GetService("Players").LocalPlayer | |
124 | local Event = script:WaitForChild("UserInput_Event") | |
125 | ||
126 | local UIS = game:GetService("UserInputService") | |
127 | local input = function(io,a) | |
128 | if a then return end | |
129 | --Since InputObject is a client-side instance, we create and pass table instead | |
130 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
131 | end | |
132 | UIS.InputBegan:Connect(input) | |
133 | UIS.InputEnded:Connect(input) | |
134 | ||
135 | local Mouse = Player:GetMouse() | |
136 | local h,t | |
137 | --Give the server mouse data 30 times every second, but only if the values changed | |
138 | --If player is not moving their mouse, client won't fire events | |
139 | while wait(1/30) do | |
140 | if h~=Mouse.Hit or t~=Mouse.Target then | |
141 | h,t=Mouse.Hit,Mouse.Target | |
142 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
143 | end | |
144 | end]==],Player.Character) | |
145 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
146 | end | |
147 | ||
148 | local char = plr.Character | |
149 | local hum = char.Humanoid | |
150 | local hed = char.Head | |
151 | local root = char.HumanoidRootPart | |
152 | local rootj = root.RootJoint | |
153 | local tors = char.Torso | |
154 | local ra = char["Right Arm"] | |
155 | local la = char["Left Arm"] | |
156 | local rl = char["Right Leg"] | |
157 | local ll = char["Left Leg"] | |
158 | local neck = tors["Neck"] | |
159 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
160 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
161 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
162 | local maincolor = BrickColor.new("Institutional white") | |
163 | ||
164 | function Anchor() | |
165 | ra.Anchored = true | |
166 | la.Anchored = true | |
167 | tors.Anchored = true | |
168 | ll.Anchored = true | |
169 | rl.Anchored = true | |
170 | hed.Anchored = true | |
171 | end | |
172 | ||
173 | ------------------------------------------------------- | |
174 | --Start Good Stuff-- | |
175 | ------------------------------------------------------- | |
176 | cam = game.Workspace.CurrentCamera | |
177 | CF = CFrame.new | |
178 | angles = CFrame.Angles | |
179 | attack = false | |
180 | Euler = CFrame.fromEulerAnglesXYZ | |
181 | Rad = math.rad | |
182 | IT = Instance.new | |
183 | BrickC = BrickColor.new | |
184 | Cos = math.cos | |
185 | Acos = math.acos | |
186 | Sin = math.sin | |
187 | Asin = math.asin | |
188 | Abs = math.abs | |
189 | Mrandom = math.random | |
190 | Floor = math.floor | |
191 | ------------------------------------------------------- | |
192 | --End Good Stuff-- | |
193 | ------------------------------------------------------- | |
194 | necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
195 | RSH, LSH = nil, nil | |
196 | RW = Instance.new("Weld") | |
197 | LW = Instance.new("Weld") | |
198 | RH = tors["Right Hip"] | |
199 | LH = tors["Left Hip"] | |
200 | RSH = tors["Right Shoulder"] | |
201 | LSH = tors["Left Shoulder"] | |
202 | RSH.Parent = nil | |
203 | LSH.Parent = nil | |
204 | RW.Name = "RW" | |
205 | RW.Part0 = tors | |
206 | RW.C0 = CF(1.5, 0.5, 0) | |
207 | RW.C1 = CF(0, 0.5, 0) | |
208 | RW.Part1 = ra | |
209 | RW.Parent = tors | |
210 | LW.Name = "LW" | |
211 | LW.Part0 = tors | |
212 | LW.C0 = CF(-1.5, 0.5, 0) | |
213 | LW.C1 = CF(0, 0.5, 0) | |
214 | LW.Part1 = la | |
215 | LW.Parent = tors | |
216 | Effects = {} | |
217 | ------------------------------------------------------- | |
218 | --Start HeartBeat-- | |
219 | ------------------------------------------------------- | |
220 | ArtificialHB = Instance.new("BindableEvent", script) | |
221 | ArtificialHB.Name = "Heartbeat" | |
222 | script:WaitForChild("Heartbeat") | |
223 | ||
224 | frame = 1 / 60 | |
225 | tf = 0 | |
226 | allowframeloss = false | |
227 | tossremainder = false | |
228 | ||
229 | ||
230 | lastframe = tick() | |
231 | script.Heartbeat:Fire() | |
232 | ||
233 | ||
234 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
235 | tf = tf + s | |
236 | if tf >= frame then | |
237 | if allowframeloss then | |
238 | script.Heartbeat:Fire() | |
239 | lastframe = tick() | |
240 | else | |
241 | for i = 1, math.floor(tf / frame) do | |
242 | script.Heartbeat:Fire() | |
243 | end | |
244 | lastframe = tick() | |
245 | end | |
246 | if tossremainder then | |
247 | tf = 0 | |
248 | else | |
249 | tf = tf - frame * math.floor(tf / frame) | |
250 | end | |
251 | end | |
252 | end) | |
253 | ------------------------------------------------------- | |
254 | --End HeartBeat-- | |
255 | ------------------------------------------------------- | |
256 | ||
257 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
258 | local NSound = nil | |
259 | coroutine.resume(coroutine.create(function() | |
260 | NSound = Instance.new("Sound", PARENT) | |
261 | NSound.Volume = VOLUME | |
262 | NSound.Pitch = PITCH | |
263 | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID | |
264 | swait() | |
265 | NSound:play() | |
266 | game:GetService("Debris"):AddItem(NSound, 10) | |
267 | end)) | |
268 | return NSound | |
269 | end | |
270 | ||
271 | --Very lazi from here to below except the animations but who cares /shrug | |
272 | function chatfunc(text) | |
273 | local chat = coroutine.wrap(function() | |
274 | if char:FindFirstChild("TalkingBillBoard")~= nil then | |
275 | char:FindFirstChild("TalkingBillBoard"):destroy() | |
276 | end | |
277 | local naeeym2 = Instance.new("BillboardGui",char) | |
278 | naeeym2.Size = UDim2.new(0,100,0,40) | |
279 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
280 | naeeym2.Adornee = char.Head | |
281 | naeeym2.Name = "TalkingBillBoard" | |
282 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
283 | tecks2.BackgroundTransparency = 1 | |
284 | tecks2.BorderSizePixel = 0 | |
285 | tecks2.Text = "" | |
286 | tecks2.Font = "Fantasy" | |
287 | tecks2.TextSize = 30 | |
288 | tecks2.TextStrokeTransparency = 0 | |
289 | tecks2.TextColor3 = Color3.new(255,0,0) | |
290 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
291 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
292 | local tecks3 = Instance.new("TextLabel",naeeym2) | |
293 | tecks3.BackgroundTransparency = 1 | |
294 | tecks3.BorderSizePixel = 0 | |
295 | tecks3.Text = "" | |
296 | tecks3.Font = "Fantasy" | |
297 | tecks3.TextSize = 30 | |
298 | tecks3.TextStrokeTransparency = 0 | |
299 | tecks3.TextColor3 = Color3.new(255,0,0) | |
300 | tecks3.TextStrokeColor3 = Color3.new(0,0,0) | |
301 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
302 | coroutine.resume(coroutine.create(function() | |
303 | while tecks3 ~= nil do | |
304 | swait() | |
305 | tecks3.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) | |
306 | tecks3.Rotation = math.random(-3,3) | |
307 | tecks3.TextColor3 = Color3.new(math.random(0, 255)/255,0,0) | |
308 | tecks3.TextStrokeColor3 = Color3.new(math.random(0, 255)/255,0,0) | |
309 | end | |
310 | end)) | |
311 | for i = 1,string.len(text),1 do | |
312 | tecks2.Text = string.sub(text,1,i) | |
313 | tecks3.Text = string.sub(text,1,i) | |
314 | wait(0.01) | |
315 | end | |
316 | wait(2) | |
317 | for i = 1, 50 do | |
318 | swait() | |
319 | tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-10,10),.05,math.random(-10,10)) | |
320 | tecks2.Rotation = tecks2.Rotation - 2 | |
321 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
322 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
323 | tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-10,10),.05,math.random(-10,10)) | |
324 | tecks3.Rotation = tecks2.Rotation + 2 | |
325 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
326 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
327 | end | |
328 | naeeym2:Destroy() | |
329 | end) | |
330 | chat() | |
331 | end | |
332 | function onChatted(msg) | |
333 | chatfunc(msg) | |
334 | end | |
335 | --plr.Chatted:connect(onChatted) | |
336 | ||
337 | GlowParticle = Instance.new("ParticleEmitter",ra) | |
338 | GlowParticle.LightEmission = 0 | |
339 | GlowParticle.Color = ColorSequence.new(Color3.new(0,0,0),Color3.new(0,0,0)) | |
340 | GlowParticle.Size = NumberSequence.new(0,0.6) | |
341 | GlowParticle.Rotation = NumberRange.new(0, 360) | |
342 | GlowParticle.Texture = "http://www.roblox.com/asset/?id=1523916715" | |
343 | GlowParticle.Transparency = NumberSequence.new(0,1) | |
344 | GlowParticle.LockedToPart = true | |
345 | GlowParticle.Lifetime = NumberRange.new(1) | |
346 | GlowParticle.Rate = 999 | |
347 | GlowParticle.Speed = NumberRange.new(0) | |
348 | GlowParticle.VelocitySpread = 500 | |
349 | ||
350 | function TargetSelect(person) | |
351 | local dd=coroutine.wrap(function() | |
352 | if targetted ~= person then | |
353 | targetted = person | |
354 | GlowParticle.Enabled = true | |
355 | end | |
356 | end) | |
357 | dd() | |
358 | end | |
359 | ||
360 | if targetted == nil then | |
361 | GlowParticle.Enabled = false | |
362 | end | |
363 | ------------------------------------------------------- | |
364 | --Start Important Functions-- | |
365 | ------------------------------------------------------- | |
366 | function swait(num) | |
367 | if num == 0 or num == nil then | |
368 | game:service("RunService").Stepped:wait(0) | |
369 | else | |
370 | for i = 0, num do | |
371 | game:service("RunService").Stepped:wait(0) | |
372 | end | |
373 | end | |
374 | end | |
375 | function thread(f) | |
376 | coroutine.resume(coroutine.create(f)) | |
377 | end | |
378 | function clerp(a, b, t) | |
379 | local qa = { | |
380 | QuaternionFromCFrame(a) | |
381 | } | |
382 | local qb = { | |
383 | QuaternionFromCFrame(b) | |
384 | } | |
385 | local ax, ay, az = a.x, a.y, a.z | |
386 | local bx, by, bz = b.x, b.y, b.z | |
387 | local _t = 1 - t | |
388 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
389 | end | |
390 | function QuaternionFromCFrame(cf) | |
391 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
392 | local trace = m00 + m11 + m22 | |
393 | if trace > 0 then | |
394 | local s = math.sqrt(1 + trace) | |
395 | local recip = 0.5 / s | |
396 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
397 | else | |
398 | local i = 0 | |
399 | if m00 < m11 then | |
400 | i = 1 | |
401 | end | |
402 | if m22 > (i == 0 and m00 or m11) then | |
403 | i = 2 | |
404 | end | |
405 | if i == 0 then | |
406 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
407 | local recip = 0.5 / s | |
408 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
409 | elseif i == 1 then | |
410 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
411 | local recip = 0.5 / s | |
412 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
413 | elseif i == 2 then | |
414 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
415 | local recip = 0.5 / s | |
416 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
417 | end | |
418 | end | |
419 | end | |
420 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
421 | local xs, ys, zs = x + x, y + y, z + z | |
422 | local wx, wy, wz = w * xs, w * ys, w * zs | |
423 | local xx = x * xs | |
424 | local xy = x * ys | |
425 | local xz = x * zs | |
426 | local yy = y * ys | |
427 | local yz = y * zs | |
428 | local zz = z * zs | |
429 | 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)) | |
430 | end | |
431 | function QuaternionSlerp(a, b, t) | |
432 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
433 | local startInterp, finishInterp | |
434 | if cosTheta >= 1.0E-4 then | |
435 | if 1 - cosTheta > 1.0E-4 then | |
436 | local theta = math.acos(cosTheta) | |
437 | local invSinTheta = 1 / Sin(theta) | |
438 | startInterp = Sin((1 - t) * theta) * invSinTheta | |
439 | finishInterp = Sin(t * theta) * invSinTheta | |
440 | else | |
441 | startInterp = 1 - t | |
442 | finishInterp = t | |
443 | end | |
444 | elseif 1 + cosTheta > 1.0E-4 then | |
445 | local theta = math.acos(-cosTheta) | |
446 | local invSinTheta = 1 / Sin(theta) | |
447 | startInterp = Sin((t - 1) * theta) * invSinTheta | |
448 | finishInterp = Sin(t * theta) * invSinTheta | |
449 | else | |
450 | startInterp = t - 1 | |
451 | finishInterp = t | |
452 | end | |
453 | 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 | |
454 | end | |
455 | function rayCast(Position, Direction, Range, Ignore) | |
456 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
457 | end | |
458 | local RbxUtility = LoadLibrary("RbxUtility") | |
459 | local Create = RbxUtility.Create | |
460 | ||
461 | ------------------------------------------------------- | |
462 | --Start Damage Function-- | |
463 | ------------------------------------------------------- | |
464 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
465 | if hit.Parent == nil then | |
466 | return | |
467 | end | |
468 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
469 | for _, v in pairs(hit.Parent:children()) do | |
470 | if v:IsA("Humanoid") then | |
471 | h = v | |
472 | end | |
473 | end | |
474 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then | |
475 | ||
476 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
477 | end | |
478 | ||
479 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
480 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
481 | if hit.Parent.DebounceHit.Value == true then | |
482 | return | |
483 | end | |
484 | end | |
485 | if insta == true then | |
486 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
487 | end | |
488 | local c = Create("ObjectValue"){ | |
489 | Name = "creator", | |
490 | Value = game:service("Players").LocalPlayer, | |
491 | Parent = h, | |
492 | } | |
493 | game:GetService("Debris"):AddItem(c, .5) | |
494 | if HitSound ~= nil and HitPitch ~= nil then | |
495 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
496 | end | |
497 | local Damage = math.random(minim, maxim) | |
498 | local blocked = false | |
499 | local block = hit.Parent:findFirstChild("Block") | |
500 | if block ~= nil then | |
501 | if block.className == "IntValue" then | |
502 | if block.Value > 0 then | |
503 | blocked = true | |
504 | block.Value = block.Value - 1 | |
505 | print(block.Value) | |
506 | end | |
507 | end | |
508 | end | |
509 | if blocked == false then | |
510 | h.Health = h.Health - Damage | |
511 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
512 | else | |
513 | h.Health = h.Health - (Damage / 2) | |
514 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
515 | end | |
516 | if Type == "Knockdown" then | |
517 | local hum = hit.Parent.Humanoid | |
518 | hum.PlatformStand = true | |
519 | coroutine.resume(coroutine.create(function(HHumanoid) | |
520 | swait(1) | |
521 | HHumanoid.PlatformStand = false | |
522 | end), hum) | |
523 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
524 | local bodvol = Create("BodyVelocity"){ | |
525 | velocity = angle * knockback, | |
526 | P = 5000, | |
527 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
528 | Parent = hit, | |
529 | } | |
530 | local rl = Create("BodyAngularVelocity"){ | |
531 | P = 3000, | |
532 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
533 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
534 | Parent = hit, | |
535 | } | |
536 | game:GetService("Debris"):AddItem(bodvol, .5) | |
537 | game:GetService("Debris"):AddItem(rl, .5) | |
538 | elseif Type == "Normal" then | |
539 | local vp = Create("BodyVelocity"){ | |
540 | P = 500, | |
541 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
542 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
543 | } | |
544 | if knockback > 0 then | |
545 | vp.Parent = hit.Parent.Torso | |
546 | end | |
547 | game:GetService("Debris"):AddItem(vp, .5) | |
548 | elseif Type == "Up" then | |
549 | local bodyVelocity = Create("BodyVelocity"){ | |
550 | velocity = Vector3.new(0, 20, 0), | |
551 | P = 5000, | |
552 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
553 | Parent = hit, | |
554 | } | |
555 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
556 | elseif Type == "DarkUp" then | |
557 | coroutine.resume(coroutine.create(function() | |
558 | for i = 0, 1, 0.1 do | |
559 | swait() | |
560 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
561 | end | |
562 | end)) | |
563 | local bodyVelocity = Create("BodyVelocity"){ | |
564 | velocity = Vector3.new(0, 20, 0), | |
565 | P = 5000, | |
566 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
567 | Parent = hit, | |
568 | } | |
569 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
570 | elseif Type == "Snare" then | |
571 | local bp = Create("BodyPosition"){ | |
572 | P = 2000, | |
573 | D = 100, | |
574 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
575 | position = hit.Parent.Torso.Position, | |
576 | Parent = hit.Parent.Torso, | |
577 | } | |
578 | game:GetService("Debris"):AddItem(bp, 1) | |
579 | elseif Type == "Freeze" then | |
580 | local BodPos = Create("BodyPosition"){ | |
581 | P = 50000, | |
582 | D = 1000, | |
583 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
584 | position = hit.Parent.Torso.Position, | |
585 | Parent = hit.Parent.Torso, | |
586 | } | |
587 | local BodGy = Create("BodyGyro") { | |
588 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
589 | P = 20e+003, | |
590 | Parent = hit.Parent.Torso, | |
591 | cframe = hit.Parent.Torso.CFrame, | |
592 | } | |
593 | hit.Parent.Torso.Anchored = true | |
594 | coroutine.resume(coroutine.create(function(Part) | |
595 | swait(1.5) | |
596 | Part.Anchored = false | |
597 | end), hit.Parent.Torso) | |
598 | game:GetService("Debris"):AddItem(BodPos, 3) | |
599 | game:GetService("Debris"):AddItem(BodGy, 3) | |
600 | end | |
601 | local debounce = Create("BoolValue"){ | |
602 | Name = "DebounceHit", | |
603 | Parent = hit.Parent, | |
604 | Value = true, | |
605 | } | |
606 | game:GetService("Debris"):AddItem(debounce, Delay) | |
607 | c = Create("ObjectValue"){ | |
608 | Name = "creator", | |
609 | Value = Player, | |
610 | Parent = h, | |
611 | } | |
612 | game:GetService("Debris"):AddItem(c, .5) | |
613 | end | |
614 | end | |
615 | ------------------------------------------------------- | |
616 | --End Damage Function-- | |
617 | ------------------------------------------------------- | |
618 | ||
619 | ------------------------------------------------------- | |
620 | --Start Damage Function Customization-- | |
621 | ------------------------------------------------------- | |
622 | function ShowDamage(Pos, Text, Time, Color) | |
623 | local Rate = (1 / 30) | |
624 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
625 | local Text = (Text or "") | |
626 | local Time = (Time or 2) | |
627 | local Color = (Color or Color3.new(1, 0, 1)) | |
628 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
629 | EffectPart.Anchored = true | |
630 | local BillboardGui = Create("BillboardGui"){ | |
631 | Size = UDim2.new(3, 0, 3, 0), | |
632 | Adornee = EffectPart, | |
633 | Parent = EffectPart, | |
634 | } | |
635 | local TextLabel = Create("TextLabel"){ | |
636 | BackgroundTransparency = 1, | |
637 | Size = UDim2.new(1, 0, 1, 0), | |
638 | Text = Text, | |
639 | Font = "Bodoni", | |
640 | TextColor3 = Color, | |
641 | TextScaled = true, | |
642 | TextStrokeColor3 = Color3.fromRGB(0,0,0), | |
643 | Parent = BillboardGui, | |
644 | } | |
645 | game.Debris:AddItem(EffectPart, (Time)) | |
646 | EffectPart.Parent = game:GetService("Workspace") | |
647 | delay(0, function() | |
648 | local Frames = (Time / Rate) | |
649 | for Frame = 1, Frames do | |
650 | wait(Rate) | |
651 | local Percent = (Frame / Frames) | |
652 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
653 | TextLabel.TextTransparency = Percent | |
654 | end | |
655 | if EffectPart and EffectPart.Parent then | |
656 | EffectPart:Destroy() | |
657 | end | |
658 | end) | |
659 | end | |
660 | ------------------------------------------------------- | |
661 | --End Damage Function Customization-- | |
662 | ------------------------------------------------------- | |
663 | ||
664 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
665 | for _, c in pairs(workspace:children()) do | |
666 | local hum = c:findFirstChild("Humanoid") | |
667 | if hum ~= nil then | |
668 | local head = c:findFirstChild("Head") | |
669 | if head ~= nil then | |
670 | local targ = head.Position - Part.Position | |
671 | local mag = targ.magnitude | |
672 | if magni >= mag and c.Name ~= plr.Name then | |
673 | Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2) | |
674 | end | |
675 | end | |
676 | end | |
677 | end | |
678 | end | |
679 | ||
680 | ||
681 | CFuncs = { | |
682 | Part = { | |
683 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
684 | local Part = Create("Part")({ | |
685 | Parent = Parent, | |
686 | Reflectance = Reflectance, | |
687 | Transparency = Transparency, | |
688 | CanCollide = false, | |
689 | Locked = true, | |
690 | BrickColor = BrickColor.new(tostring(BColor)), | |
691 | Name = Name, | |
692 | Size = Size, | |
693 | Material = Material | |
694 | }) | |
695 | RemoveOutlines(Part) | |
696 | return Part | |
697 | end | |
698 | }, | |
699 | Mesh = { | |
700 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
701 | local Msh = Create(Mesh)({ | |
702 | Parent = Part, | |
703 | Offset = OffSet, | |
704 | Scale = Scale | |
705 | }) | |
706 | if Mesh == "SpecialMesh" then | |
707 | Msh.MeshType = MeshType | |
708 | Msh.MeshId = MeshId | |
709 | end | |
710 | return Msh | |
711 | end | |
712 | }, | |
713 | Mesh = { | |
714 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
715 | local Msh = Create(Mesh)({ | |
716 | Parent = Part, | |
717 | Offset = OffSet, | |
718 | Scale = Scale | |
719 | }) | |
720 | if Mesh == "SpecialMesh" then | |
721 | Msh.MeshType = MeshType | |
722 | Msh.MeshId = MeshId | |
723 | end | |
724 | return Msh | |
725 | end | |
726 | }, | |
727 | Weld = { | |
728 | Create = function(Parent, Part0, Part1, C0, C1) | |
729 | local Weld = Create("Weld")({ | |
730 | Parent = Parent, | |
731 | Part0 = Part0, | |
732 | Part1 = Part1, | |
733 | C0 = C0, | |
734 | C1 = C1 | |
735 | }) | |
736 | return Weld | |
737 | end | |
738 | }, | |
739 | Sound = { | |
740 | Create = function(id, par, vol, pit) | |
741 | coroutine.resume(coroutine.create(function() | |
742 | local S = Create("Sound")({ | |
743 | Volume = vol, | |
744 | Pitch = pit or 1, | |
745 | SoundId = id, | |
746 | Parent = par or workspace | |
747 | }) | |
748 | wait() | |
749 | S:play() | |
750 | game:GetService("Debris"):AddItem(S, 6) | |
751 | end)) | |
752 | end | |
753 | }, | |
754 | ParticleEmitter = { | |
755 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
756 | local fp = Create("ParticleEmitter")({ | |
757 | Parent = Parent, | |
758 | Color = ColorSequence.new(Color1, Color2), | |
759 | LightEmission = LightEmission, | |
760 | Size = Size, | |
761 | Texture = Texture, | |
762 | Transparency = Transparency, | |
763 | ZOffset = ZOffset, | |
764 | Acceleration = Accel, | |
765 | Drag = Drag, | |
766 | LockedToPart = LockedToPart, | |
767 | VelocityInheritance = VelocityInheritance, | |
768 | EmissionDirection = EmissionDirection, | |
769 | Enabled = Enabled, | |
770 | Lifetime = LifeTime, | |
771 | Rate = Rate, | |
772 | Rotation = Rotation, | |
773 | RotSpeed = RotSpeed, | |
774 | Speed = Speed, | |
775 | VelocitySpread = VelocitySpread | |
776 | }) | |
777 | return fp | |
778 | end | |
779 | } | |
780 | } | |
781 | function RemoveOutlines(part) | |
782 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
783 | end | |
784 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
785 | local NEWWELD = IT(TYPE) | |
786 | NEWWELD.Part0 = PART0 | |
787 | NEWWELD.Part1 = PART1 | |
788 | NEWWELD.C0 = C0 | |
789 | NEWWELD.C1 = C1 | |
790 | NEWWELD.Parent = PARENT | |
791 | return NEWWELD | |
792 | end | |
793 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
794 | local Part = Create("Part")({ | |
795 | formFactor = FormFactor, | |
796 | Parent = Parent, | |
797 | Reflectance = Reflectance, | |
798 | Transparency = Transparency, | |
799 | CanCollide = false, | |
800 | Locked = true, | |
801 | BrickColor = BrickColor.new(tostring(BColor)), | |
802 | Name = Name, | |
803 | Size = Size, | |
804 | Material = Material | |
805 | }) | |
806 | RemoveOutlines(Part) | |
807 | return Part | |
808 | end | |
809 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
810 | local Msh = Create(Mesh)({ | |
811 | Parent = Part, | |
812 | Offset = OffSet, | |
813 | Scale = Scale | |
814 | }) | |
815 | if Mesh == "SpecialMesh" then | |
816 | Msh.MeshType = MeshType | |
817 | Msh.MeshId = MeshId | |
818 | end | |
819 | return Msh | |
820 | end | |
821 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
822 | local Weld = Create("Weld")({ | |
823 | Parent = Parent, | |
824 | Part0 = Part0, | |
825 | Part1 = Part1, | |
826 | C0 = C0, | |
827 | C1 = C1 | |
828 | }) | |
829 | return Weld | |
830 | end | |
831 | ||
832 | ||
833 | ------------------------------------------------------- | |
834 | --Start Effect Function-- | |
835 | ------------------------------------------------------- | |
836 | EffectModel = Instance.new("Model", char) | |
837 | Effects = { | |
838 | Block = { | |
839 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
840 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
841 | prt.Anchored = true | |
842 | prt.CFrame = cframe | |
843 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
844 | game:GetService("Debris"):AddItem(prt, 10) | |
845 | if Type == 1 or Type == nil then | |
846 | table.insert(Effects, { | |
847 | prt, | |
848 | "Block1", | |
849 | delay, | |
850 | x3, | |
851 | y3, | |
852 | z3, | |
853 | msh | |
854 | }) | |
855 | elseif Type == 2 then | |
856 | table.insert(Effects, { | |
857 | prt, | |
858 | "Block2", | |
859 | delay, | |
860 | x3, | |
861 | y3, | |
862 | z3, | |
863 | msh | |
864 | }) | |
865 | else | |
866 | table.insert(Effects, { | |
867 | prt, | |
868 | "Block3", | |
869 | delay, | |
870 | x3, | |
871 | y3, | |
872 | z3, | |
873 | msh | |
874 | }) | |
875 | end | |
876 | end | |
877 | }, | |
878 | Sphere = { | |
879 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
880 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
881 | prt.Anchored = true | |
882 | prt.CFrame = cframe | |
883 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
884 | game:GetService("Debris"):AddItem(prt, 10) | |
885 | table.insert(Effects, { | |
886 | prt, | |
887 | "Cylinder", | |
888 | delay, | |
889 | x3, | |
890 | y3, | |
891 | z3, | |
892 | msh | |
893 | }) | |
894 | end | |
895 | }, | |
896 | Cylinder = { | |
897 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
898 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
899 | prt.Anchored = true | |
900 | prt.CFrame = cframe | |
901 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
902 | game:GetService("Debris"):AddItem(prt, 10) | |
903 | table.insert(Effects, { | |
904 | prt, | |
905 | "Cylinder", | |
906 | delay, | |
907 | x3, | |
908 | y3, | |
909 | z3, | |
910 | msh | |
911 | }) | |
912 | end | |
913 | }, | |
914 | Wave = { | |
915 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
916 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
917 | prt.Anchored = true | |
918 | prt.CFrame = cframe | |
919 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60)) | |
920 | game:GetService("Debris"):AddItem(prt, 10) | |
921 | table.insert(Effects, { | |
922 | prt, | |
923 | "Cylinder", | |
924 | delay, | |
925 | x3 / 60, | |
926 | y3 / 60, | |
927 | z3 / 60, | |
928 | msh | |
929 | }) | |
930 | end | |
931 | }, | |
932 | Ring = { | |
933 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
934 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
935 | prt.Anchored = true | |
936 | prt.CFrame = cframe | |
937 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
938 | game:GetService("Debris"):AddItem(prt, 10) | |
939 | table.insert(Effects, { | |
940 | prt, | |
941 | "Cylinder", | |
942 | delay, | |
943 | x3, | |
944 | y3, | |
945 | z3, | |
946 | msh | |
947 | }) | |
948 | end | |
949 | }, | |
950 | Break = { | |
951 | Create = function(brickcolor, cframe, x1, y1, z1) | |
952 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
953 | prt.Anchored = true | |
954 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
955 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
956 | local num = math.random(10, 50) / 1000 | |
957 | game:GetService("Debris"):AddItem(prt, 10) | |
958 | table.insert(Effects, { | |
959 | prt, | |
960 | "Shatter", | |
961 | num, | |
962 | prt.CFrame, | |
963 | math.random() - math.random(), | |
964 | 0, | |
965 | math.random(50, 100) / 100 | |
966 | }) | |
967 | end | |
968 | }, | |
969 | Spiral = { | |
970 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
971 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
972 | prt.Anchored = true | |
973 | prt.CFrame = cframe | |
974 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
975 | game:GetService("Debris"):AddItem(prt, 10) | |
976 | table.insert(Effects, { | |
977 | prt, | |
978 | "Cylinder", | |
979 | delay, | |
980 | x3, | |
981 | y3, | |
982 | z3, | |
983 | msh | |
984 | }) | |
985 | end | |
986 | }, | |
987 | Push = { | |
988 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
989 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
990 | prt.Anchored = true | |
991 | prt.CFrame = cframe | |
992 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
993 | game:GetService("Debris"):AddItem(prt, 10) | |
994 | table.insert(Effects, { | |
995 | prt, | |
996 | "Cylinder", | |
997 | delay, | |
998 | x3, | |
999 | y3, | |
1000 | z3, | |
1001 | msh | |
1002 | }) | |
1003 | end | |
1004 | } | |
1005 | } | |
1006 | function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size) | |
1007 | local fp = IT("Part") | |
1008 | fp.formFactor = formfactor | |
1009 | fp.Parent = parent | |
1010 | fp.Reflectance = reflectance | |
1011 | fp.Transparency = transparency | |
1012 | fp.CanCollide = false | |
1013 | fp.Locked = true | |
1014 | fp.BrickColor = brickcolor | |
1015 | fp.Name = name | |
1016 | fp.Size = size | |
1017 | fp.Position = tors.Position | |
1018 | RemoveOutlines(fp) | |
1019 | fp.Material = "SmoothPlastic" | |
1020 | fp:BreakJoints() | |
1021 | return fp | |
1022 | end | |
1023 | ||
1024 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
1025 | local mesh = IT(Mesh) | |
1026 | mesh.Parent = part | |
1027 | if Mesh == "SpecialMesh" then | |
1028 | mesh.MeshType = meshtype | |
1029 | if meshid ~= "nil" then | |
1030 | mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid | |
1031 | end | |
1032 | end | |
1033 | mesh.Offset = offset | |
1034 | mesh.Scale = scale | |
1035 | return mesh | |
1036 | end | |
1037 | ||
1038 | function Magic(bonuspeed, type, pos, scale, value, color, MType) | |
1039 | local type = type | |
1040 | local rng = Instance.new("Part", char) | |
1041 | rng.Anchored = true | |
1042 | rng.BrickColor = color | |
1043 | rng.CanCollide = false | |
1044 | rng.FormFactor = 3 | |
1045 | rng.Name = "Ring" | |
1046 | rng.Material = "Neon" | |
1047 | rng.Size = Vector3.new(1, 1, 1) | |
1048 | rng.Transparency = 0 | |
1049 | rng.TopSurface = 0 | |
1050 | rng.BottomSurface = 0 | |
1051 | rng.CFrame = pos | |
1052 | local rngm = Instance.new("SpecialMesh", rng) | |
1053 | rngm.MeshType = MType | |
1054 | rngm.Scale = scale | |
1055 | local scaler2 = 1 | |
1056 | if type == "Add" then | |
1057 | scaler2 = 1 * value | |
1058 | elseif type == "Divide" then | |
1059 | scaler2 = 1 / value | |
1060 | end | |
1061 | coroutine.resume(coroutine.create(function() | |
1062 | for i = 0, 10 / bonuspeed, 0.1 do | |
1063 | swait() | |
1064 | if type == "Add" then | |
1065 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
1066 | elseif type == "Divide" then | |
1067 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
1068 | end | |
1069 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
1070 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed) | |
1071 | end | |
1072 | rng:Destroy() | |
1073 | end)) | |
1074 | end | |
1075 | ||
1076 | function Eviscerate(dude) | |
1077 | if dude.Name ~= char then | |
1078 | local bgf = IT("BodyGyro", dude.Head) | |
1079 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
1080 | local val = IT("BoolValue", dude) | |
1081 | val.Name = "IsHit" | |
1082 | local ds = coroutine.wrap(function() | |
1083 | dude:WaitForChild("Head"):BreakJoints() | |
1084 | wait(0.5) | |
1085 | target = nil | |
1086 | coroutine.resume(coroutine.create(function() | |
1087 | for i, v in pairs(dude:GetChildren()) do | |
1088 | if v:IsA("Accessory") then | |
1089 | v:Destroy() | |
1090 | end | |
1091 | if v:IsA("Humanoid") then | |
1092 | v:Destroy() | |
1093 | end | |
1094 | if v:IsA("CharacterMesh") then | |
1095 | v:Destroy() | |
1096 | end | |
1097 | if v:IsA("Model") then | |
1098 | v:Destroy() | |
1099 | end | |
1100 | if v:IsA("Part") or v:IsA("MeshPart") then | |
1101 | for x, o in pairs(v:GetChildren()) do | |
1102 | if o:IsA("Decal") then | |
1103 | o:Destroy() | |
1104 | end | |
1105 | end | |
1106 | coroutine.resume(coroutine.create(function() | |
1107 | v.Material = "Neon" | |
1108 | v.CanCollide = false | |
1109 | local PartEmmit1 = IT("ParticleEmitter", v) | |
1110 | PartEmmit1.LightEmission = 1 | |
1111 | PartEmmit1.Texture = "rbxassetid://284205403" | |
1112 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1113 | PartEmmit1.Rate = 150 | |
1114 | PartEmmit1.Lifetime = NumberRange.new(1) | |
1115 | PartEmmit1.Size = NumberSequence.new({ | |
1116 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
1117 | NumberSequenceKeypoint.new(1, 0, 0) | |
1118 | }) | |
1119 | PartEmmit1.Transparency = NumberSequence.new({ | |
1120 | NumberSequenceKeypoint.new(0, 0, 0), | |
1121 | NumberSequenceKeypoint.new(1, 1, 0) | |
1122 | }) | |
1123 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
1124 | PartEmmit1.VelocitySpread = 30000 | |
1125 | PartEmmit1.Rotation = NumberRange.new(-500, 500) | |
1126 | PartEmmit1.RotSpeed = NumberRange.new(-500, 500) | |
1127 | local BodPoss = IT("BodyPosition", v) | |
1128 | BodPoss.P = 3000 | |
1129 | BodPoss.D = 1000 | |
1130 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
1131 | BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
1132 | v.Color = maincolor.Color | |
1133 | coroutine.resume(coroutine.create(function() | |
1134 | for i = 0, 49 do | |
1135 | swait(1) | |
1136 | v.Transparency = v.Transparency + 0.08 | |
1137 | end | |
1138 | wait(0.5) | |
1139 | PartEmmit1.Enabled = false | |
1140 | wait(3) | |
1141 | v:Destroy() | |
1142 | dude:Destroy() | |
1143 | end)) | |
1144 | end)) | |
1145 | end | |
1146 | end | |
1147 | end)) | |
1148 | end) | |
1149 | ds() | |
1150 | end | |
1151 | end | |
1152 | ||
1153 | function FindNearestHead(Position, Distance, SinglePlayer) | |
1154 | if SinglePlayer then | |
1155 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
1156 | end | |
1157 | local List = {} | |
1158 | for i, v in pairs(workspace:GetChildren()) do | |
1159 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then | |
1160 | table.insert(List, v) | |
1161 | end | |
1162 | end | |
1163 | return List | |
1164 | end | |
1165 | ||
1166 | function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType) | |
1167 | local type = type | |
1168 | local rng = Instance.new("Part", char) | |
1169 | rng.Anchored = true | |
1170 | rng.BrickColor = color | |
1171 | rng.CanCollide = false | |
1172 | rng.FormFactor = 3 | |
1173 | rng.Name = "Ring" | |
1174 | rng.Material = "Neon" | |
1175 | rng.Size = Vector3.new(1, 1, 1) | |
1176 | rng.Transparency = 0 | |
1177 | rng.TopSurface = 0 | |
1178 | rng.BottomSurface = 0 | |
1179 | rng.CFrame = pos | |
1180 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
1181 | local rngm = Instance.new("SpecialMesh", rng) | |
1182 | rngm.MeshType = MType | |
1183 | rngm.Scale = Vector3.new(x1, y1, z1) | |
1184 | local scaler2 = 1 | |
1185 | local speeder = FastSpeed | |
1186 | if type == "Add" then | |
1187 | scaler2 = 1 * value | |
1188 | elseif type == "Divide" then | |
1189 | scaler2 = 1 / value | |
1190 | end | |
1191 | coroutine.resume(coroutine.create(function() | |
1192 | for i = 0, 10 / bonuspeed, 0.1 do | |
1193 | swait() | |
1194 | if type == "Add" then | |
1195 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
1196 | elseif type == "Divide" then | |
1197 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
1198 | end | |
1199 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
1200 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
1201 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
1202 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
1203 | end | |
1204 | rng:Destroy() | |
1205 | end)) | |
1206 | end | |
1207 | ||
1208 | function SoulSteal(dude) | |
1209 | if dude.Name ~= char then | |
1210 | local bgf = IT("BodyGyro", dude.Head) | |
1211 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
1212 | local val = IT("BoolValue", dude) | |
1213 | val.Name = "IsHit" | |
1214 | local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart') | |
1215 | local soulst = coroutine.wrap(function() | |
1216 | local soul = Instance.new("Part",dude) | |
1217 | soul.Size = Vector3.new(1,1,1) | |
1218 | soul.CanCollide = false | |
1219 | soul.Anchored = false | |
1220 | soul.Position = torso.Position | |
1221 | soul.Transparency = 1 | |
1222 | local PartEmmit1 = IT("ParticleEmitter", soul) | |
1223 | PartEmmit1.LightEmission = 1 | |
1224 | PartEmmit1.Texture = "rbxassetid://569507414" | |
1225 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1226 | PartEmmit1.Rate = 250 | |
1227 | PartEmmit1.Lifetime = NumberRange.new(1.6) | |
1228 | PartEmmit1.Size = NumberSequence.new({ | |
1229 | NumberSequenceKeypoint.new(0, 1, 0), | |
1230 | NumberSequenceKeypoint.new(1, 0, 0) | |
1231 | }) | |
1232 | PartEmmit1.Transparency = NumberSequence.new({ | |
1233 | NumberSequenceKeypoint.new(0, 0, 0), | |
1234 | NumberSequenceKeypoint.new(1, 1, 0) | |
1235 | }) | |
1236 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
1237 | PartEmmit1.VelocitySpread = 30000 | |
1238 | PartEmmit1.Rotation = NumberRange.new(-360, 360) | |
1239 | PartEmmit1.RotSpeed = NumberRange.new(-360, 360) | |
1240 | local BodPoss = IT("BodyPosition", soul) | |
1241 | BodPoss.P = 3000 | |
1242 | BodPoss.D = 1000 | |
1243 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
1244 | BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
1245 | wait(1.6) | |
1246 | soul.Touched:connect(function(hit) | |
1247 | if hit.Parent == char then | |
1248 | soul:Destroy() | |
1249 | end | |
1250 | end) | |
1251 | wait(1.2) | |
1252 | while soul do | |
1253 | swait() | |
1254 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1255 | BodPoss.Position = tors.Position | |
1256 | end | |
1257 | end) | |
1258 | soulst() | |
1259 | end | |
1260 | end | |
1261 | function FaceMouse() | |
1262 | local Cam = workspace.CurrentCamera | |
1263 | return { | |
1264 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
1265 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
1266 | } | |
1267 | end | |
1268 | ------------------------------------------------------- | |
1269 | --End Effect Function-- | |
1270 | ------------------------------------------------------- | |
1271 | function Cso(ID, PARENT, VOLUME, PITCH) | |
1272 | local NSound = nil | |
1273 | coroutine.resume(coroutine.create(function() | |
1274 | NSound = IT("Sound", PARENT) | |
1275 | NSound.Volume = VOLUME | |
1276 | NSound.Pitch = PITCH | |
1277 | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID | |
1278 | swait() | |
1279 | NSound:play() | |
1280 | game:GetService("Debris"):AddItem(NSound, 10) | |
1281 | end)) | |
1282 | return NSound | |
1283 | end | |
1284 | function CameraEnshaking(Length, Intensity) | |
1285 | coroutine.resume(coroutine.create(function() | |
1286 | local intensity = 1 * Intensity | |
1287 | local rotM = 0.01 * Intensity | |
1288 | for i = 0, Length, 0.1 do | |
1289 | swait() | |
1290 | intensity = intensity - 0.05 * Intensity / Length | |
1291 | rotM = rotM - 5.0E-4 * Intensity / Length | |
1292 | hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) | |
1293 | cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM) | |
1294 | end | |
1295 | hum.CameraOffset = Vector3.new(0, 0, 0) | |
1296 | end)) | |
1297 | end | |
1298 | ------------------------------------------------------- | |
1299 | --End Important Functions-- | |
1300 | ------------------------------------------------------- | |
1301 | ||
1302 | ||
1303 | ||
1304 | ||
1305 | New = function(Object, Parent, Name, Data) | |
1306 | local Object = Instance.new(Object) | |
1307 | for Index, Value in pairs(Data or {}) do | |
1308 | Object[Index] = Value | |
1309 | end | |
1310 | Object.Parent = Parent | |
1311 | Object.Name = Name | |
1312 | return Object | |
1313 | end | |
1314 | ||
1315 | Doll = New("Model",char,"Doll",{}) | |
1316 | 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),}) | |
1317 | Mesh = New("CylinderMesh",Handle,"Mesh",{}) | |
1318 | Decal = New("Decal",Handle,"Decal",{Face = Enum.NormalId.Back,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1319 | Decal = New("Decal",Handle,"Decal",{Face = Enum.NormalId.Left,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1320 | Decal = New("Decal",Handle,"Decal",{Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1321 | Decal = New("Decal",Handle,"Decal",{Face = Enum.NormalId.Right,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1322 | Decal = New("Decal",Handle,"Decal",{Face = Enum.NormalId.Top,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1323 | Decal = New("Decal",Handle,"Decal",{Face = Enum.NormalId.Bottom,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1324 | 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),}) | |
1325 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
1326 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Back,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1327 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Left,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1328 | Decal = New("Decal",Part,"Decal",{Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1329 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Right,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1330 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Top,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1331 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Bottom,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1332 | 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),}) | |
1333 | 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),}) | |
1334 | Decal = New("Decal",Part,"Decal",{Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1335 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Top,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1336 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Left,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1337 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Back,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1338 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Right,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1339 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Bottom,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1340 | 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),}) | |
1341 | 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),}) | |
1342 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
1343 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Back,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1344 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Left,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1345 | Decal = New("Decal",Part,"Decal",{Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1346 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Right,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1347 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Top,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1348 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Bottom,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1349 | 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),}) | |
1350 | 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),}) | |
1351 | Decal = New("Decal",Part,"Decal",{Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1352 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Top,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1353 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Left,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1354 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Back,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1355 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Right,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1356 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Bottom,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1357 | 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),}) | |
1358 | 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),}) | |
1359 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
1360 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Back,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1361 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Left,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1362 | Decal = New("Decal",Part,"Decal",{Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1363 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Right,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1364 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Top,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1365 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Bottom,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1366 | 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),}) | |
1367 | 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),}) | |
1368 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
1369 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Back,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1370 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Left,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1371 | Decal = New("Decal",Part,"Decal",{Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1372 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Right,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1373 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Top,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1374 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Bottom,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1375 | 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),}) | |
1376 | 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),}) | |
1377 | Decal = New("Decal",Part,"Decal",{Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1378 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Top,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1379 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Left,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1380 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Back,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1381 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Right,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1382 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Bottom,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1383 | 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),}) | |
1384 | 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),}) | |
1385 | Decal = New("Decal",Part,"Decal",{Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1386 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Top,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1387 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Left,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1388 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Back,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1389 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Right,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1390 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Bottom,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1391 | 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),}) | |
1392 | 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),}) | |
1393 | Decal = New("Decal",Part,"Decal",{Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1394 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Top,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1395 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Left,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1396 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Back,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1397 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Right,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1398 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Bottom,Texture = "http://www.roblox.com/asset/?id=512493661",}) | |
1399 | 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),}) | |
1400 | 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,}) | |
1401 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.267258376, 0.267258346, 0.267258376),MeshId = "rbxassetid://511959728",TextureId = "rbxassetid://511959832",MeshType = Enum.MeshType.FileMesh,}) | |
1402 | 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),}) | |
1403 | 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,}) | |
1404 | 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,}) | |
1405 | 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),}) | |
1406 | 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,}) | |
1407 | 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,}) | |
1408 | 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),}) | |
1409 | Part = New("Part",Doll,"Part",{BrickColor = BrickColor.new("Crimson"),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),}) | |
1410 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.334072977, 0.334072918, 0.334072977),MeshType = Enum.MeshType.Sphere,}) | |
1411 | 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),}) | |
1412 | Part = New("Part",Doll,"Part",{BrickColor = BrickColor.new("Crimson"),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),}) | |
1413 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.334072977, 0.334072918, 0.334072977),MeshType = Enum.MeshType.Sphere,}) | |
1414 | 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),}) | |
1415 | ||
1416 | --lazi xd | |
1417 | Needle = New("Model",char,"Needle",{}) | |
1418 | 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,}) | |
1419 | 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,}) | |
1420 | ||
1421 | ||
1422 | for _, v in pairs(Doll:GetChildren()) do | |
1423 | if v:IsA'BasePart' then | |
1424 | v.CanCollide = false | |
1425 | end | |
1426 | end | |
1427 | ||
1428 | for _, v in pairs(Needle:GetChildren()) do | |
1429 | if v:IsA'BasePart' then | |
1430 | v.CanCollide = false | |
1431 | end | |
1432 | end | |
1433 | ||
1434 | ||
1435 | local NewInstance = function(instance,parent,properties) | |
1436 | local inst = Instance.new(instance,parent) | |
1437 | if(properties)then | |
1438 | for i,v in next, properties do | |
1439 | pcall(function() inst[i] = v end) | |
1440 | end | |
1441 | end | |
1442 | return inst; | |
1443 | end | |
1444 | 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))}) | |
1445 | ||
1446 | 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))}) | |
1447 | ||
1448 | ------------------------------------------------------- | |
1449 | --Start Customization-- | |
1450 | ------------------------------------------------------- | |
1451 | local Player_Size = 1 | |
1452 | if Player_Size ~= 1 then | |
1453 | root.Size = root.Size * Player_Size | |
1454 | tors.Size = tors.Size * Player_Size | |
1455 | hed.Size = hed.Size * Player_Size | |
1456 | ra.Size = ra.Size * Player_Size | |
1457 | la.Size = la.Size * Player_Size | |
1458 | rl.Size = rl.Size * Player_Size | |
1459 | ll.Size = ll.Size * Player_Size | |
1460 | ---------------------------------------------------------------------------------- | |
1461 | rootj.Parent = root | |
1462 | neck.Parent = tors | |
1463 | RW.Parent = tors | |
1464 | LW.Parent = tors | |
1465 | RH.Parent = tors | |
1466 | LH.Parent = tors | |
1467 | ---------------------------------------------------------------------------------- | |
1468 | rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
1469 | rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
1470 | neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0)) | |
1471 | neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180)) | |
1472 | RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0 | |
1473 | LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0 | |
1474 | ---------------------------------------------------------------------------------- | |
1475 | RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
1476 | LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
1477 | RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
1478 | LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
1479 | --hat.Parent = Character | |
1480 | end | |
1481 | ---------------------------------------------------------------------------------- | |
1482 | local SONG = 486598641 | |
1483 | local SONG2 = 0 | |
1484 | local Music = Instance.new("Sound",tors) | |
1485 | Music.Volume = 5 | |
1486 | Music.Looped = true | |
1487 | Music.Pitch = 1 --Pitcher | |
1488 | ---------------------------------------------------------------------------------- | |
1489 | local equipped = false | |
1490 | local idle = 0 | |
1491 | local change = 1 | |
1492 | local val = 0 | |
1493 | local toim = 0 | |
1494 | local idleanim = 0.4 | |
1495 | local sine = 0 | |
1496 | local Sit = 1 | |
1497 | ---------------------------------------------------------------------------------- | |
1498 | hum.WalkSpeed = 8 | |
1499 | hum.JumpPower = 57 | |
1500 | hum.Animator.Parent = nil | |
1501 | hed.face.Texture = "rbxassetid://138140944" | |
1502 | ---------------------------------------------------------------------------------- | |
1503 | for i = 1, 35 do | |
1504 | local FACE = CreatePart(3, char, "Fabric", 0, 0+(i-1)/35.2, "Dark stone grey", "FaceGradient", Vector3.new(1.01,0.5,1.01),false) | |
1505 | FACE.Color = Color3.new(0,0,0) | |
1506 | hed:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE | |
1507 | CreateWeldOrSnapOrMotor("Weld", hed, hed, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0)) | |
1508 | end | |
1509 | local LASTPART = hed | |
1510 | for i = 1, 42 do | |
1511 | local MATH = (1-(i/30)) | |
1512 | if LASTPART == hed then | |
1513 | local Horn = CreatePart(3, char, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", Vector3.new(0.15*MATH,0.15,0.15*MATH),false) | |
1514 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * angles(Rad(25), Rad(15), Rad(-15)), CF(0, 0, 0)) | |
1515 | LASTPART = Horn | |
1516 | Horn.Color = Color3.new((i*2-2)/140,0,0) | |
1517 | else | |
1518 | local Horn = CreatePart(3, char, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", Vector3.new(0.15*MATH,0.15,0.15*MATH),false) | |
1519 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * angles(Rad(6), Rad(-0.3), Rad(0)), CF(0, 0, 0)) | |
1520 | LASTPART = Horn | |
1521 | Horn.Color = Color3.new((i*2-4)/140,0,0) | |
1522 | end | |
1523 | end | |
1524 | ||
1525 | ------------------------------------------------------- | |
1526 | --End Customization-- | |
1527 | ------------------------------------------------------- | |
1528 | ||
1529 | ||
1530 | ------------------------------------------------------- | |
1531 | --Start Attacks N Stuff-- | |
1532 | ------------------------------------------------------- | |
1533 | ||
1534 | function dmg(dude) | |
1535 | if dude.Name ~= char then | |
1536 | dude:FindFirstChildOfClass("Humanoid").PlatformStand = true | |
1537 | local bgf = Instance.new("BodyGyro",dude.Head) | |
1538 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0) | |
1539 | local val = Instance.new("BoolValue",dude) | |
1540 | val.Name = "IsHit" | |
1541 | local torsy = dude:FindFirstChild("UpperTorso") or dude:FindFirstChild("Torso") | |
1542 | local partasdeff = Instance.new("ParticleEmitter",torsy) | |
1543 | partasdeff.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0)) | |
1544 | partasdeff.LightEmission = .1 | |
1545 | partasdeff.Size = NumberSequence.new(0.2) | |
1546 | partasdeff.Texture = "rbxassetid://771221224" | |
1547 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)}) | |
1548 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
1549 | partasdeff.Transparency = bbb | |
1550 | partasdeff.Size = aaa | |
1551 | partasdeff.ZOffset = .9 | |
1552 | partasdeff.Acceleration = Vector3.new(0, -5, 0) | |
1553 | partasdeff.LockedToPart = false | |
1554 | partasdeff.EmissionDirection = "Back" | |
1555 | partasdeff.Lifetime = NumberRange.new(1, 2) | |
1556 | partasdeff.Rate = 1000 | |
1557 | partasdeff.Rotation = NumberRange.new(-100, 100) | |
1558 | partasdeff.RotSpeed = NumberRange.new(-100, 100) | |
1559 | partasdeff.Speed = NumberRange.new(6) | |
1560 | partasdeff.VelocitySpread = 10000 | |
1561 | partasdeff.Enabled=false | |
1562 | partasdeff:Emit(30) | |
1563 | coroutine.wrap(function() | |
1564 | targetted = nil | |
1565 | swait(30) | |
1566 | dude:BreakJoints() | |
1567 | Effects.Sphere.Create(BrickColor.new("Crimson"), dude.Torso.CFrame, 30, 30, 30, .5, .5, .5, 0.04) | |
1568 | swait(5) | |
1569 | dude:FindFirstChildOfClass("Humanoid"):Destroy() | |
1570 | for i=0,1,.05 do | |
1571 | for a,v in pairs(dude:GetChildren()) do | |
1572 | if v:IsA("BasePart") then | |
1573 | v.Transparency = 1 | |
1574 | end | |
1575 | end | |
1576 | swait() | |
1577 | end | |
1578 | for a,v in pairs(dude:GetChildren()) do | |
1579 | if v:IsA("BasePart") and v:FindFirstChild("ParticleEmitter") then | |
1580 | v.ParticleEmitter.Enabled = false | |
1581 | end | |
1582 | game:service'Debris':AddItem(v,2) | |
1583 | end | |
1584 | end)() | |
1585 | end | |
1586 | end | |
1587 | ||
1588 | --lazi | |
1589 | function kdown(dd) | |
1590 | if dd.Name ~= char then | |
1591 | dd.Humanoid.PlatformStand = true | |
1592 | local bgf = Instance.new("BodyGyro",dd.Head) | |
1593 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0) | |
1594 | local val = Instance.new("BoolValue",dd) | |
1595 | val.Name = "IsHit" | |
1596 | end | |
1597 | end | |
1598 | ||
1599 | function mdmg(Part, Magnitude)--, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch) | |
1600 | --local buddy | |
1601 | for _, c in pairs(workspace:children()) do | |
1602 | local hum = c:findFirstChild("Humanoid") | |
1603 | if hum ~= nil then | |
1604 | local head = c:findFirstChild("Torso") | |
1605 | if head ~= nil then | |
1606 | local targ = head.Position - Part.Position | |
1607 | local mag = targ.magnitude | |
1608 | if mag <= Magnitude and c.Name ~= plr.Name then | |
1609 | if c.Name ~= char then | |
1610 | if c.Name ~= "Creterisk" and c.Name ~= "Nebula_Zorua" and c.Name ~= "KillerDarkness0105" and c.Name ~= "XXUNORIBOASXX" then | |
1611 | local asd = Instance.new("ParticleEmitter",c.Torso) | |
1612 | asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0)) | |
1613 | asd.LightEmission = .1 | |
1614 | asd.Size = NumberSequence.new(0.2) | |
1615 | asd.Texture = "http://www.roblox.com/asset/?ID=771221224" | |
1616 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)}) | |
1617 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
1618 | asd.Transparency = bbb | |
1619 | asd.Size = aaa | |
1620 | asd.ZOffset = .9 | |
1621 | asd.Acceleration = Vector3.new(0, -5, 0) | |
1622 | asd.LockedToPart = false | |
1623 | asd.EmissionDirection = "Back" | |
1624 | asd.Lifetime = NumberRange.new(1, 2) | |
1625 | asd.Rate = 1000 | |
1626 | asd.Rotation = NumberRange.new(-100, 100) | |
1627 | asd.RotSpeed = NumberRange.new(-100, 100) | |
1628 | asd.Speed = NumberRange.new(6) | |
1629 | asd.VelocitySpread = 10000 | |
1630 | asd.Enabled=true | |
1631 | --Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch) | |
1632 | dmg(c) | |
1633 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=206082273", c.Torso, 1.2, .8) | |
1634 | coroutine.wrap(function() | |
1635 | wait(.2) | |
1636 | asd.Enabled = false | |
1637 | wait(2) | |
1638 | asd:Remove() | |
1639 | end)() | |
1640 | else | |
1641 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=240429289", c.Torso, 1.5, math.random(1,1.3)) | |
1642 | Effects.Sphere.Create(BrickColor.new("Crimson"), c.Torso.CFrame, 30, 30, 30, .5, .5, .5, 0.04) | |
1643 | ||
1644 | end | |
1645 | end | |
1646 | end | |
1647 | end | |
1648 | end | |
1649 | end | |
1650 | end | |
1651 | ||
1652 | local sine=0 | |
1653 | function targett() | |
1654 | if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then | |
1655 | TargetSelect(mouse.Target.Parent) | |
1656 | CreateSound("743521450", char, 1, .8) | |
1657 | end | |
1658 | end | |
1659 | ||
1660 | function HAAH() | |
1661 | attack = true | |
1662 | hum.WalkSpeed = 0 | |
1663 | Cso("300208779", hed, 10, 1) | |
1664 | for i = 0,9,0.1 do | |
1665 | swait() | |
1666 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 2)) * angles(Rad(-30), Rad(0), Rad(0)), 0.15) | |
1667 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-30 - 2.5 * Sin(sine / 2)), Rad(0), Rad(0)), 0.3) | |
1668 | if Mrandom(1,15) == 1 then | |
1669 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(Mrandom(-15,15)), Rad(Mrandom(-15,15)), Rad(Mrandom(-15,15))), 1) | |
1670 | end | |
1671 | RH.C0 = clerp(RH.C0, CF(1, -1 - 0.1 * Cos(sine / 2), 0.025 * Cos(sine / 2)) * RHCF * angles(Rad(-4.5 - 7.5 * Sin(sine / 2)), Rad(0), Rad(-30)), 0.15) | |
1672 | LH.C0 = clerp(LH.C0, CF(-1, -1 - 0.1 * Cos(sine / 2), 0.025 * Cos(sine / 2)) * LHCF * angles(Rad(-6.5 - 7.5 * Sin(sine / 2)), Rad(0), Rad(30)), 0.15) | |
1673 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 2), 0.025 * Cos(sine / 2)) * angles(Rad(-35 - 7.5 * Sin(sine / 2)), Rad(0), Rad(15 - 7.5 * Sin(sine / 2))), 0.1) | |
1674 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 2), 0.025 * Cos(sine / 2)) * angles(Rad(-35 - 7.5 * Sin(sine / 2)), Rad(0), Rad(-15 - 7.5 * Sin(sine / 2))), 0.1) | |
1675 | end | |
1676 | attack = false | |
1677 | hum.WalkSpeed = 10 | |
1678 | end | |
1679 | ||
1680 | function doot_n_die() | |
1681 | attack = true | |
1682 | hum.WalkSpeed = 0 | |
1683 | if targetted.Name ~= "Creterisk" and targetted.Name ~= "XXUNORIBOASXX" and targetted.Name ~= "Nebula_Zorua" and targetted.Name ~= "KillerDarkness0105" then | |
1684 | local torsy = targetted:FindFirstChild("UpperTorso") or targetted:FindFirstChild("Torso") | |
1685 | local partasdeff = Instance.new("ParticleEmitter",torsy) | |
1686 | partasdeff.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0)) | |
1687 | partasdeff.LightEmission = .1 | |
1688 | partasdeff.Size = NumberSequence.new(0.2) | |
1689 | partasdeff.Texture = "http://www.roblox.com/asset/?ID=771221224" | |
1690 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)}) | |
1691 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
1692 | partasdeff.Transparency = bbb | |
1693 | partasdeff.Size = aaa | |
1694 | partasdeff.ZOffset = .9 | |
1695 | partasdeff.Acceleration = Vector3.new(0, -5, 0) | |
1696 | partasdeff.LockedToPart = false | |
1697 | partasdeff.EmissionDirection = "Back" | |
1698 | partasdeff.Lifetime = NumberRange.new(1, 2) | |
1699 | partasdeff.Rate = 1000 | |
1700 | partasdeff.Rotation = NumberRange.new(-100, 100) | |
1701 | partasdeff.RotSpeed = NumberRange.new(-100, 100) | |
1702 | partasdeff.Speed = NumberRange.new(6) | |
1703 | partasdeff.VelocitySpread = 10000 | |
1704 | partasdeff.Enabled=false | |
1705 | for i = 0, 2.4, 0.1 do | |
1706 | swait() | |
1707 | 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) | |
1708 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(15), Rad(0), Rad(-25)), 0.3) | |
1709 | if Mrandom(1,15) == 1 then | |
1710 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1711 | end | |
1712 | 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) | |
1713 | 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) | |
1714 | 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) | |
1715 | 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) | |
1716 | end | |
1717 | for i = 0, 1.4, 0.1 do | |
1718 | swait() | |
1719 | 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) | |
1720 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-15), Rad(0), Rad(-25)), 0.3) | |
1721 | if Mrandom(1,15) == 1 then | |
1722 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-50,50)), Rad(Mrandom(-50,50)), Rad(Mrandom(-50,50))), 0.3) | |
1723 | end | |
1724 | 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) | |
1725 | 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) | |
1726 | RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(85), Rad(0), Rad(-15)), 0.1) | |
1727 | 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) | |
1728 | end | |
1729 | dmg(targetted) | |
1730 | partasdeff.Enabled=true | |
1731 | CreateSound("429400881", torsy, 10, .8) | |
1732 | for i = 0, 1.4, 0.1 do | |
1733 | swait() | |
1734 | 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) | |
1735 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(15), Rad(0), Rad(-25)), 0.3) | |
1736 | if Mrandom(1,15) == 1 then | |
1737 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1738 | end | |
1739 | 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) | |
1740 | 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) | |
1741 | 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) | |
1742 | 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) | |
1743 | end | |
1744 | partasdeff.Enabled=false | |
1745 | for i = 0, 1.4, 0.1 do | |
1746 | swait() | |
1747 | 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) | |
1748 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-15), Rad(0), Rad(-25)), 0.3) | |
1749 | if Mrandom(1,15) == 1 then | |
1750 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1751 | end | |
1752 | 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) | |
1753 | 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) | |
1754 | 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) | |
1755 | 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) | |
1756 | end | |
1757 | attack = false | |
1758 | hum.WalkSpeed = 8 | |
1759 | elseif targetted.Name == "Creterisk" then | |
1760 | for i = 0, 2.4, 0.1 do | |
1761 | swait() | |
1762 | 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) | |
1763 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(15), Rad(0), Rad(-25)), 0.3) | |
1764 | if Mrandom(1,15) == 1 then | |
1765 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1766 | end | |
1767 | 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) | |
1768 | 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) | |
1769 | 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) | |
1770 | 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) | |
1771 | end | |
1772 | for i = 0, 2.4, 0.1 do | |
1773 | swait() | |
1774 | 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) | |
1775 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(15), Rad(0), Rad(-25 * Cos(sine / 20))), 0.3) | |
1776 | if Mrandom(1,15) == 1 then | |
1777 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1778 | end | |
1779 | 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) | |
1780 | 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) | |
1781 | 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) | |
1782 | 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) | |
1783 | end | |
1784 | coroutine.wrap(function() | |
1785 | wait(2) | |
1786 | --partasdeff:Remove() | |
1787 | end)() | |
1788 | local sel = Mrandom(1,3) | |
1789 | if sel == 1 then | |
1790 | chatfunc("Damn, I am dumb.") | |
1791 | elseif sel == 2 then | |
1792 | chatfunc("CREATOR, HELP ME.") | |
1793 | elseif sel == 3 then | |
1794 | chatfunc("Senpai, notice me.") | |
1795 | end | |
1796 | wait(2) | |
1797 | hum.WalkSpeed = 8 | |
1798 | attack = false | |
1799 | elseif targetted.Name == "XXUNORIBOASXX" then | |
1800 | for i = 0, 2.4, 0.1 do | |
1801 | swait() | |
1802 | 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) | |
1803 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(15), Rad(0), Rad(-25)), 0.3) | |
1804 | if Mrandom(1,15) == 1 then | |
1805 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1806 | end | |
1807 | 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) | |
1808 | 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) | |
1809 | 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) | |
1810 | 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) | |
1811 | end | |
1812 | for i = 0, 2.4, 0.1 do | |
1813 | swait() | |
1814 | 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) | |
1815 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(15), Rad(0), Rad(-25 * Cos(sine / 20))), 0.3) | |
1816 | if Mrandom(1,15) == 1 then | |
1817 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1818 | end | |
1819 | 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) | |
1820 | 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) | |
1821 | 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) | |
1822 | 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) | |
1823 | end | |
1824 | coroutine.wrap(function() | |
1825 | wait(2) | |
1826 | --partasdeff:Remove() | |
1827 | end)() | |
1828 | local sel = Mrandom(1,3) | |
1829 | if sel == 1 then | |
1830 | chatfunc("HEHEHEHEHEHEHE") | |
1831 | elseif sel == 2 then | |
1832 | chatfunc("ducc.") | |
1833 | elseif sel == 3 then | |
1834 | chatfunc("Excuse me what?") | |
1835 | end | |
1836 | wait(2) | |
1837 | hum.WalkSpeed = 8 | |
1838 | attack = false | |
1839 | elseif targetted.Name == "Nebula_Zorua" then | |
1840 | for i = 0, 2.4, 0.1 do | |
1841 | swait() | |
1842 | 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) | |
1843 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(15), Rad(0), Rad(-25)), 0.3) | |
1844 | if Mrandom(1,15) == 1 then | |
1845 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1846 | end | |
1847 | 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) | |
1848 | 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) | |
1849 | 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) | |
1850 | 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) | |
1851 | end | |
1852 | for i = 0, 2.4, 0.1 do | |
1853 | swait() | |
1854 | 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) | |
1855 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(15), Rad(0), Rad(-25 * Cos(sine / 20))), 0.3) | |
1856 | if Mrandom(1,15) == 1 then | |
1857 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1858 | end | |
1859 | 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) | |
1860 | 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) | |
1861 | 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) | |
1862 | 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) | |
1863 | end | |
1864 | coroutine.wrap(function() | |
1865 | wait(2) | |
1866 | --partasdeff:Remove() | |
1867 | end)() | |
1868 | local sel = Mrandom(1,3) | |
1869 | if sel == 1 then | |
1870 | chatfunc("floof.") | |
1871 | elseif sel == 2 then | |
1872 | chatfunc("Wh-what?") | |
1873 | elseif sel == 3 then | |
1874 | chatfunc("I have mistaken..") | |
1875 | end | |
1876 | wait(2) | |
1877 | hum.WalkSpeed = 8 | |
1878 | attack = false | |
1879 | elseif targetted.Name == "KillerDarkness0105" then | |
1880 | for i = 0, 2.4, 0.1 do | |
1881 | swait() | |
1882 | 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) | |
1883 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(15), Rad(0), Rad(-25)), 0.3) | |
1884 | if Mrandom(1,15) == 1 then | |
1885 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1886 | end | |
1887 | 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) | |
1888 | 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) | |
1889 | 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) | |
1890 | 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) | |
1891 | end | |
1892 | for i = 0, 2.4, 0.1 do | |
1893 | swait() | |
1894 | 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) | |
1895 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(15), Rad(0), Rad(-25 * Cos(sine / 20))), 0.3) | |
1896 | if Mrandom(1,15) == 1 then | |
1897 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1898 | end | |
1899 | 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) | |
1900 | 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) | |
1901 | 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) | |
1902 | 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) | |
1903 | end | |
1904 | coroutine.wrap(function() | |
1905 | wait(2) | |
1906 | --partasdeff:Remove() | |
1907 | end)() | |
1908 | local sel = Mrandom(1,3) | |
1909 | if sel == 1 then | |
1910 | chatfunc("Gale Fighter was a nice script, after all.") | |
1911 | elseif sel == 2 then | |
1912 | chatfunc("Ding dong, bing bong.") | |
1913 | elseif sel == 3 then | |
1914 | chatfunc("hehe.. hehehe..") | |
1915 | end | |
1916 | wait(2) | |
1917 | hum.WalkSpeed = 8 | |
1918 | attack = false | |
1919 | end | |
1920 | end | |
1921 | ||
1922 | function doot_die_pls() | |
1923 | attack = true | |
1924 | hum.WalkSpeed = 0 | |
1925 | local torsy = targetted:FindFirstChild("UpperTorso") or targetted:FindFirstChild("Torso") | |
1926 | for i = 0, 2, 0.1 do | |
1927 | swait() | |
1928 | 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) | |
1929 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
1930 | if Mrandom(1,15) == 1 then | |
1931 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1932 | end | |
1933 | 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) | |
1934 | 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) | |
1935 | 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) | |
1936 | 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) | |
1937 | end | |
1938 | coroutine.resume(coroutine.create(function() | |
1939 | for i = 1,10 do | |
1940 | swait() | |
1941 | local Pully = Create("BodyPosition")({ | |
1942 | P = 9000, | |
1943 | D = 1000, | |
1944 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1945 | position = ra.Position - ra.CFrame.lookVector * 6, | |
1946 | Parent = torsy | |
1947 | }) | |
1948 | game:GetService("Debris"):AddItem(Pully, 0.2) | |
1949 | wait() | |
1950 | end | |
1951 | end)) | |
1952 | CreateSound("541909814", torsy, 10, 1) | |
1953 | CreateSound("131228548", hed, 10, 1) | |
1954 | for i = 0, 2.2, 0.1 do | |
1955 | swait() | |
1956 | 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) | |
1957 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(35)), 0.3) | |
1958 | if Mrandom(1,15) == 1 then | |
1959 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(Mrandom(-20,20))), 0.3) | |
1960 | end | |
1961 | 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) | |
1962 | 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) | |
1963 | 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) | |
1964 | 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) | |
1965 | end | |
1966 | attack = false | |
1967 | hum.WalkSpeed = 8 | |
1968 | end | |
1969 | ||
1970 | code = 1678 --jk it doesnt work | |
1971 | ||
1972 | function abc() | |
1973 | thing = true | |
1974 | chatfunc("WHY...") | |
1975 | wait(0.85) | |
1976 | chatfunc("WHY?!") | |
1977 | wait(1) | |
1978 | chatfunc("WHY MUST MY LIFE BE LIKE THIS?! I can't.. take it anymore...") | |
1979 | wait(1) | |
1980 | Music:Stop() | |
1981 | attack = true | |
1982 | hum.WalkSpeed = 0 | |
1983 | hum.JumpPower = 0 | |
1984 | for i = 0,6,0.1 do | |
1985 | swait() | |
1986 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1987 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
1988 | 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) | |
1989 | 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) | |
1990 | 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) | |
1991 | 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) | |
1992 | end | |
1993 | CreateSound("1093102664", hed, 10, 1) | |
1994 | for _, v in pairs(Needle:GetChildren()) do | |
1995 | if v:IsA'BasePart' then | |
1996 | v:Remove() | |
1997 | end | |
1998 | end | |
1999 | for i = 0,4,0.1 do | |
2000 | swait() | |
2001 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(5), Rad(0), Rad(0)), 0.15) | |
2002 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(5), Rad(0), Rad(0)), 0.4) | |
2003 | 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) | |
2004 | 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) | |
2005 | 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) | |
2006 | 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) | |
2007 | end | |
2008 | for i = 0,6,0.1 do | |
2009 | swait() | |
2010 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1.4 + 0.1 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 0.15) | |
2011 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(0)), 0.3) | |
2012 | RH.C0 = clerp(RH.C0, CF(1, .4 - 0.1 * Cos(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(45)), 0.15) | |
2013 | LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15) | |
2014 | RW.C0 = clerp(RW.C0, CF(1.5, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(25)), 0.1) | |
2015 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(-25)), 0.1) | |
2016 | end | |
2017 | for i = 0,6,0.1 do | |
2018 | swait() | |
2019 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -3 + 0.1) * angles(Rad(90), Rad(0), Rad(0)), 0.15) | |
2020 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-30 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
2021 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(80), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08) | |
2022 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-80), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08) | |
2023 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(200), Rad(0), Rad(25 - 2.5 * Sin(sine / 20))), 0.1) | |
2024 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(20), Rad(0 - 4.5 * Sin(sine / 20)), Rad(-13)), 0.1) | |
2025 | end | |
2026 | Anchor() | |
2027 | wait(2) | |
2028 | chatfunc("I hope I never see you again..") | |
2029 | wait(1) | |
2030 | dmg(char) | |
2031 | print("It seems you've died! CONGRATS!") | |
2032 | for _, v in pairs(Doll:GetChildren()) do | |
2033 | if v:IsA'BasePart' then | |
2034 | v:Remove() | |
2035 | end | |
2036 | end | |
2037 | thing = false | |
2038 | end | |
2039 | ||
2040 | csosoundyi = Instance.new("Sound", hed) | |
2041 | csosoundyi.SoundId = "rbxassetid://178038408" | |
2042 | csosoundyi.Volume = 10 | |
2043 | csosoundyi.Pitch = 1 | |
2044 | ||
2045 | function HAAH() | |
2046 | attack = true | |
2047 | hum.WalkSpeed = 0 | |
2048 | csosoundyi:Play() | |
2049 | repeat | |
2050 | swait() | |
2051 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 2)) * angles(Rad(-30), Rad(0), Rad(0)), 0.15) | |
2052 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-30 - 2.5 * Sin(sine / 2)), Rad(0), Rad(0)), 0.3) | |
2053 | if Mrandom(1,15) == 1 then | |
2054 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(Mrandom(-15,15)), Rad(Mrandom(-15,15)), Rad(Mrandom(-15,15))), 1) | |
2055 | end | |
2056 | RH.C0 = clerp(RH.C0, CF(1, -1 - 0.1 * Cos(sine / 2), 0.025 * Cos(sine / 2)) * RHCF * angles(Rad(-4.5 - 7.5 * Sin(sine / 2)), Rad(0), Rad(-30)), 0.15) | |
2057 | LH.C0 = clerp(LH.C0, CF(-1, -1 - 0.1 * Cos(sine / 2), 0.025 * Cos(sine / 2)) * LHCF * angles(Rad(-6.5 - 7.5 * Sin(sine / 2)), Rad(0), Rad(30)), 0.15) | |
2058 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 2), 0.025 * Cos(sine / 2)) * angles(Rad(-35 - 7.5 * Sin(sine / 2)), Rad(0), Rad(15 - 7.5 * Sin(sine / 2))), 0.1) | |
2059 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 2), 0.025 * Cos(sine / 2)) * angles(Rad(-35 - 7.5 * Sin(sine / 2)), Rad(0), Rad(-15 - 7.5 * Sin(sine / 2))), 0.1) | |
2060 | until csosoundyi.Playing == false | |
2061 | attack = false | |
2062 | hum.WalkSpeed = 10 | |
2063 | end | |
2064 | ||
2065 | thing = false | |
2066 | ||
2067 | mouse.Button1Down:connect(function() | |
2068 | if attack == false and targetted ~= nil and thing == false then | |
2069 | doot_n_die() | |
2070 | GlowParticle.Enabled = false | |
2071 | end | |
2072 | end) | |
2073 | ||
2074 | mouse.KeyDown:connect(function(key) | |
2075 | if attack == false then | |
2076 | if key == 'q' and thing == false then | |
2077 | targett() | |
2078 | elseif key == 'x' and targetted ~= nil and thing == false then | |
2079 | doot_die_pls() | |
2080 | elseif key == 'r' and targetted ~= nil and thing == false then | |
2081 | CreateSound("174271590", hed, .4, math.random(5, 15) / 5) | |
2082 | root.CFrame = targetted.Head.CFrame * CFrame.new(0, 0, 6) | |
2083 | elseif key == 'p' then | |
2084 | abc() | |
2085 | elseif key == 't' and thing == false then | |
2086 | HAAH() | |
2087 | end | |
2088 | end | |
2089 | end) | |
2090 | ||
2091 | ------------------------------------------------------- | |
2092 | --End Attacks N Stuff-- | |
2093 | ------------------------------------------------------- | |
2094 | ||
2095 | ||
2096 | ||
2097 | ||
2098 | ||
2099 | ||
2100 | ||
2101 | ||
2102 | ||
2103 | ------------------------------------------------------- | |
2104 | --Start Animations-- | |
2105 | ------------------------------------------------------- | |
2106 | print("By Makhail07, FINISHED BY XXUNORIBOASXX >:D") | |
2107 | Music.SoundId = "rbxassetid://"..SONG | |
2108 | Music.Looped = true | |
2109 | Music.Pitch = 1 | |
2110 | Music.Volume = 2 | |
2111 | Music.Parent = char | |
2112 | Music:Resume() | |
2113 | --AAAAAAAAAAAAAAAA | |
2114 | while true do | |
2115 | swait() | |
2116 | sine = sine + change | |
2117 | local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude | |
2118 | local velderp = root.Velocity.y | |
2119 | hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char) | |
2120 | if equipped == true or equipped == false then | |
2121 | if attack == false then | |
2122 | idle = idle + 1 | |
2123 | else | |
2124 | idle = 0 | |
2125 | end | |
2126 | if 1 < root.Velocity.y and hitfloor == nil then | |
2127 | Anim = "Jump" | |
2128 | if attack == false then | |
2129 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(10), Rad(0), Rad(0)), 0.15) | |
2130 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
2131 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20), -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
2132 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20), 0* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
2133 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1) | |
2134 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1) | |
2135 | end | |
2136 | elseif -1 > root.Velocity.y and hitfloor == nil then | |
2137 | Anim = "Fall" | |
2138 | if attack == false then | |
2139 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-10), Rad(0), Rad(0)), 0.15) | |
2140 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(35 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
2141 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15) | |
2142 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-8.5), Rad(0), Rad(0)), 0.15) | |
2143 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(165 + 4.5 * Sin(sine / 20))), 0.1) | |
2144 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-165 - 4.5 * Sin(sine / 20))), 0.1) | |
2145 | end | |
2146 | elseif torvel < 1 and hitfloor ~= nil then | |
2147 | Anim = "Idle" | |
2148 | change = 1 | |
2149 | if attack == false then | |
2150 | HeadTwitch = false | |
2151 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.15) | |
2152 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 2.5 * Sin(sine / 30)), Rad(0), Rad(-20 + 2 * Cos(sine / .25))), 0.3) | |
2153 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -0.1* Player_Size) * angles(Rad(0), Rad(85), Rad(0)) * angles(Rad(-9.5), Rad(0), Rad(20)), 0.15) | |
2154 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -0.1* Player_Size) * angles(Rad(0), Rad(-85), Rad(0)) * angles(Rad(-9.5), Rad(0), Rad(-20)), 0.15) | |
2155 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(75), Rad(5), Rad(13)), 0.1) | |
2156 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(20), Rad(0 - 4.5 * Sin(sine / 20)), Rad(-13)), 0.1) | |
2157 | if HeadTwitch == false and Mrandom(1, 25) == 1 then | |
2158 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(Mrandom(-90, 90)), Rad(Mrandom(-90, 90)), Rad(Mrandom(-90, 90))), 0.15) | |
2159 | end | |
2160 | end | |
2161 | elseif torvel < 50 and hitfloor ~= nil then | |
2162 | Anim = "Walk" | |
2163 | change = 1 | |
2164 | if attack == false then | |
2165 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15) | |
2166 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
2167 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-10 - 25 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
2168 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.8 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-10 + 25 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
2169 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(75) , Rad(8 * Cos(sine / 7)), Rad(6) - ra.RotVelocity.Y / 75), 0.1) | |
2170 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(-37) * Cos(sine / 7) , Rad(8 * Cos(sine / 7)) , Rad(-6) + la.RotVelocity.Y / 75), 0.1) | |
2171 | end | |
2172 | end | |
2173 | end | |
2174 | if 0 < #Effects then | |
2175 | for e = 1, #Effects do | |
2176 | if Effects[e] ~= nil then | |
2177 | local Thing = Effects[e] | |
2178 | if Thing ~= nil then | |
2179 | local Part = Thing[1] | |
2180 | local Mode = Thing[2] | |
2181 | local Delay = Thing[3] | |
2182 | local IncX = Thing[4] | |
2183 | local IncY = Thing[5] | |
2184 | local IncZ = Thing[6] | |
2185 | if 1 >= Thing[1].Transparency then | |
2186 | if Thing[2] == "Block1" then | |
2187 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
2188 | local Mesh = Thing[1].Mesh | |
2189 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2190 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2191 | elseif Thing[2] == "Block2" then | |
2192 | Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0) | |
2193 | local Mesh = Thing[7] | |
2194 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2195 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2196 | elseif Thing[2] == "Block3" then | |
2197 | 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) | |
2198 | local Mesh = Thing[7] | |
2199 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2200 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2201 | elseif Thing[2] == "Cylinder" then | |
2202 | local Mesh = Thing[1].Mesh | |
2203 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2204 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2205 | elseif Thing[2] == "Blood" then | |
2206 | local Mesh = Thing[7] | |
2207 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
2208 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2209 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2210 | elseif Thing[2] == "Elec" then | |
2211 | local Mesh = Thing[1].Mesh | |
2212 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
2213 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2214 | elseif Thing[2] == "Disappear" then | |
2215 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2216 | elseif Thing[2] == "Shatter" then | |
2217 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2218 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
2219 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
2220 | Thing[6] = Thing[6] + Thing[5] | |
2221 | end | |
2222 | else | |
2223 | Part.Parent = nil | |
2224 | table.remove(Effects, e) | |
2225 | end | |
2226 | end | |
2227 | end | |
2228 | end | |
2229 | end | |
2230 | end | |
2231 | --[[ | |
2232 | A bit of lore for those who are wondering : | |
2233 | ||
2234 | Micheal (Voodoo Child) was born in a lone village with his sister, father, and mother | |
2235 | his mother died when he was age 6 and felt that it was his fault she died, as though it was not. | |
2236 | The village whereabouts was in a forest that some named "The Dead Woods" for whoever went in there, | |
2237 | never came back. | |
2238 | A few years past after the death and funeral of his mother, his sister caught a deadly disease, the guilt he felt | |
2239 | like he did from his mother came upon him once again, for this time was his fault, as they were playing near the oaks of hell, | |
2240 | which can give others an un-curable sickness or instant death, his sister got the worse fate. | |
2241 | The only cure known is to get herbs from the witch of the dead woods and do her deeds, but as others know | |
2242 | those who enter never return, but he was a brave boy and set out to find the witch, his father worried forced him not to go, | |
2243 | But during the night he snuck out of his home and went... | |
2244 | His adventure began but not for long as he already saw a hut above, he knocks on the door and waits for a respond, | |
2245 | nothing. | |
2246 | After some time the door finally opened and there she was the horrible wrinkle faced creature, he spoke | |
2247 | "Ma-May I have some of your herbs so I may heal my sister?" | |
2248 | The witch replied, "Yes you may my little child, but only on one condition, you must do 5 ta-" Micheal cuts her off. | |
2249 | "I DON'T WANT TO DO ANY TASK I JUST WISH TO SAVE MY SISTER, so please only this once?" | |
2250 | The witches anger grew, she's never been interrupted, and she knew what she must do. | |
2251 | "YOU DARE CUT OFF THE SACRED WORDS OF ME? I SHALL CURSE YOU WITH THE SOULS OF THE INNOCENT!" She screamed. | |
2252 | Micheal terrified, a storm brew, and the witches words could be heard from echoes from every angle, lightning strikes trees and rain pours down, | |
2253 | covering his head, closing his eyes, and putting himself into a ball, after time everything stopped. | |
2254 | He looked up cautiously, looking around up and finally down, he sees a pin, and a doll. He bends down and grabs them both, | |
2255 | looking at them he remembers that he didn't get any herbs but he didn't have enough time he quickly ran back to the village and put both the pin and doll into his pockets... | |
2256 | ||
2257 | He was already to late. His sister passed away he bent to his knees and cried, some sang and others left and cried. | |
2258 | He pulled the doll and pin, from his pocket and laid it on her body and went to his room. | |
2259 | Moving he gets pinned and looks behind him, the doll and pin... he was terrified, he couldn't say a word and couldn't scream, he passes out. | |
2260 | Waking up he notices his home and village into shambles, dead ones laying everywhere. | |
2261 | T O B E C O N T I N U E D ! | |
2262 | also there's a code in the script which i have hidden, if you say it in chat it'll say something | |
2263 | --]] | |
2264 | ------------------------------------------------------- | |
2265 | --End Animations And Script-- | |
2266 | ------------------------------------------------------- |