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