SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {} | |
2 | do | |
3 | script.Parent = owner.Character | |
4 | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput" | |
5 | local function NewFakeEvent() | |
6 | local Bind = Instance.new("BindableEvent") | |
7 | local Fake;Fake = {Connections = {}, | |
8 | fakeEvent=true; | |
9 | Connect=function(self,Func) | |
10 | Bind.Event:connect(Func) | |
11 | self.Connections[Bind] = true | |
12 | return setmetatable({Connected = true},{ | |
13 | __index = function (self,Index) | |
14 | if Index:lower() == "disconnect" then | |
15 | return function() Fake.Connections[Bind] = false;self.Connected = false end | |
16 | end | |
17 | return Fake[Index] | |
18 | end; | |
19 | __tostring = function() return "Connection" end; | |
20 | }) | |
21 | end} | |
22 | Fake.connect = Fake.Connect;return Fake; | |
23 | end | |
24 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} | |
25 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} | |
26 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) | |
27 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil | |
28 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
29 | local function TriggerEvent(self,Event,...) | |
30 | local Trigger = Mouse[Event] | |
31 | if Trigger and Trigger.fakeEvent and Trigger.Connections then | |
32 | for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end | |
33 | end | |
34 | end | |
35 | Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent | |
36 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
37 | if FiredBy.Name ~= owner.Name then return end | |
38 | if Input.MouseEvent then | |
39 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
40 | else | |
41 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
42 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end | |
43 | for _,Action in pairs(ContextActionService.Actions) do | |
44 | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end | |
45 | end | |
46 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
47 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
48 | end | |
49 | end) | |
50 | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService | |
51 | Event.Parent = NLS([[ | |
52 | local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse() | |
53 | local Input = function(Input,gameProcessedEvent) | |
54 | if gameProcessedEvent then return end | |
55 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) | |
56 | end | |
57 | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) | |
58 | local Hit,Target | |
59 | while wait(1/30) do | |
60 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
61 | Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) | |
62 | end | |
63 | end | |
64 | ]],owner.Character) | |
65 | end | |
66 | RealGame = game;game = setmetatable({},{ | |
67 | __index = function (self,Index) | |
68 | local Sandbox = function (Thing) | |
69 | if Thing:IsA("Player") then | |
70 | local RealPlayer = Thing | |
71 | return setmetatable({},{ | |
72 | __index = function (self,Index) | |
73 | local Type = type(RealPlayer[Index]) | |
74 | if Type == "function" then | |
75 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
76 | return function (self)return InternalData["Mouse"] end | |
77 | end | |
78 | return function (self,...)return RealPlayer[Index](RealPlayer,...) end | |
79 | end | |
80 | return RealPlayer[Index] | |
81 | end; | |
82 | __tostring = function(self) return RealPlayer.Name end | |
83 | }) | |
84 | end | |
85 | end | |
86 | if RealGame[Index] then | |
87 | local Type = type(RealGame[Index]) | |
88 | if Type == "function" then | |
89 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
90 | return function (self,Service) | |
91 | local FakeServices = { | |
92 | ["players"] = function() | |
93 | return setmetatable({},{ | |
94 | __index = function (self2,Index2) | |
95 | local RealService = RealGame:GetService(Service) | |
96 | local Type2 = type(Index2) | |
97 | if Type2 == "function" then | |
98 | return function (self,...) return RealService[Index2](RealService,...)end | |
99 | else | |
100 | if Index2:lower() == "localplayer" then return Sandbox(owner) end | |
101 | return RealService[Index2] | |
102 | end | |
103 | end; | |
104 | __tostring = function(self) return RealGame:GetService(Service).Name end | |
105 | }) | |
106 | end; | |
107 | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; | |
108 | ["userinputservice"] = function() return InternalData["UserInputService"] end; | |
109 | ["runservice"] = function() | |
110 | return setmetatable({},{ | |
111 | __index = function(self2,Index2) | |
112 | local RealService = RealGame:GetService(Service) | |
113 | local Type2 = type(Index2) | |
114 | if Type2 == "function" then | |
115 | return function (self,...) return RealService[Index2](RealService,...) end | |
116 | else | |
117 | local RunServices = { | |
118 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end; | |
119 | ["renderstepped"] = function() return RealService["Stepped"] end | |
120 | } | |
121 | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end | |
122 | return RealService[Index2] | |
123 | end | |
124 | end | |
125 | }) | |
126 | end | |
127 | } | |
128 | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end | |
129 | return RealGame:GetService(Service) | |
130 | end | |
131 | end | |
132 | return function (self,...) return RealGame[Index](RealGame,...) end | |
133 | else | |
134 | if game:GetService(Index) then return game:GetService(Index) end | |
135 | return RealGame[Index] | |
136 | end | |
137 | end | |
138 | return nil | |
139 | end | |
140 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...") | |
141 | ||
142 | --//Paste script below this line. | |
143 | ----------------------- | |
144 | --XEvent Chara-- | |
145 | ----------------------- | |
146 | ||
147 | ------------------------------------------------------- | |
148 | --A script By makhail07 and KillerDarkness0105 | |
149 | --Effect Smoothing By OblivionCreature | |
150 | --Discords Creterisk#2958, Codex#6685, and [L]ewd#2941 | |
151 | ------------------------------------------------------- | |
152 | -----------------------Variable------ | |
153 | player = game.Players.LocalPlayer | |
154 | char = player.Character | |
155 | hum = char.Humanoid | |
156 | mouse = player:GetMouse() | |
157 | amo = 1 | |
158 | ||
159 | ------------------Main---------------------------- | |
160 | mouse.KeyDown:connect(function(key) | |
161 | ||
162 | key = key:lower() | |
163 | ||
164 | if key == "e" and amo >= 0 then | |
165 | local x = Instance.new("Part") | |
166 | x.Shape = "Ball" | |
167 | x.CanCollide = true | |
168 | x.BrickColor = BrickColor.new("Royal purple") | |
169 | x.TopSurface = "Smooth" | |
170 | x.BottomSurface = "Smooth" | |
171 | x.Size = Vector3.new(500,70,30) | |
172 | local v = Instance.new("BodyVelocity" , x) | |
173 | v.Velocity = char.Torso.CFrame.lookVector * 90 | |
174 | v.MaxForce = Vector3.new(math.huge , math.huge,math.huge) | |
175 | x.CFrame = char.Torso.CFrame * CFrame.new(0,0,-5) | |
176 | x.Parent = game.Workspace | |
177 | amo = amo -1 | |
178 | ||
179 | wait(1) | |
180 | amo = 1 | |
181 | end | |
182 | end) | |
183 | ||
184 | ----------end of shoot------- | |
185 | ||
186 | local FavIDs = {340106355,927529620,876981900,398987889,1117396305} | |
187 | ||
188 | function swait(num) | |
189 | if num==0 or num==nil then | |
190 | game:service'RunService'.Stepped:wait(0) | |
191 | else | |
192 | for i=0,num do | |
193 | game:service'RunService'.Stepped:wait(0) | |
194 | end | |
195 | end | |
196 | end | |
197 | function thread(f) | |
198 | coroutine.resume(coroutine.create(f)) | |
199 | end | |
200 | ||
201 | --Needed to add this for a good reason, thank me later mak. | |
202 | so = function(id,par,vol,pit) | |
203 | coroutine.resume(coroutine.create(function() | |
204 | local sou = Instance.new("Sound",par or workspace) | |
205 | sou.Volume=vol | |
206 | sou.Pitch=pit or 1 | |
207 | sou.SoundId=id | |
208 | swait() | |
209 | sou:play() | |
210 | game:GetService("Debris"):AddItem(sou,8) | |
211 | end)) | |
212 | end | |
213 | ||
214 | ||
215 | function clerp(a, b, t) | |
216 | local qa = { | |
217 | QuaternionFromCFrame(a) | |
218 | } | |
219 | local qb = { | |
220 | QuaternionFromCFrame(b) | |
221 | } | |
222 | local ax, ay, az = a.x, a.y, a.z | |
223 | local bx, by, bz = b.x, b.y, b.z | |
224 | local _t = 1 - t | |
225 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
226 | end | |
227 | function QuaternionFromCFrame(cf) | |
228 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
229 | local trace = m00 + m11 + m22 | |
230 | if trace > 0 then | |
231 | local s = math.sqrt(1 + trace) | |
232 | local recip = 0.5 / s | |
233 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
234 | else | |
235 | local i = 0 | |
236 | if m00 < m11 then | |
237 | i = 1 | |
238 | end | |
239 | if m22 > (i == 0 and m00 or m11) then | |
240 | i = 2 | |
241 | end | |
242 | if i == 0 then | |
243 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
244 | local recip = 0.5 / s | |
245 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
246 | elseif i == 1 then | |
247 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
248 | local recip = 0.5 / s | |
249 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
250 | elseif i == 2 then | |
251 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
252 | local recip = 0.5 / s | |
253 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
254 | end | |
255 | end | |
256 | end | |
257 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
258 | local xs, ys, zs = x + x, y + y, z + z | |
259 | local wx, wy, wz = w * xs, w * ys, w * zs | |
260 | local xx = x * xs | |
261 | local xy = x * ys | |
262 | local xz = x * zs | |
263 | local yy = y * ys | |
264 | local yz = y * zs | |
265 | local zz = z * zs | |
266 | 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)) | |
267 | end | |
268 | function QuaternionSlerp(a, b, t) | |
269 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
270 | local startInterp, finishInterp | |
271 | if cosTheta >= 1.0E-4 then | |
272 | if 1 - cosTheta > 1.0E-4 then | |
273 | local theta = math.acos(cosTheta) | |
274 | local invSinTheta = 1 / math.sin(theta) | |
275 | startInterp = math.sin((1 - t) * theta) * invSinTheta | |
276 | finishInterp = math.sin(t * theta) * invSinTheta | |
277 | else | |
278 | startInterp = 1 - t | |
279 | finishInterp = t | |
280 | end | |
281 | elseif 1 + cosTheta > 1.0E-4 then | |
282 | local theta = math.acos(-cosTheta) | |
283 | local invSinTheta = 1 / math.sin(theta) | |
284 | startInterp = math.sin((t - 1) * theta) * invSinTheta | |
285 | finishInterp = math.sin(t * theta) * invSinTheta | |
286 | else | |
287 | startInterp = t - 1 | |
288 | finishInterp = t | |
289 | end | |
290 | 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 | |
291 | end | |
292 | function rayCast(Position, Direction, Range, Ignore) | |
293 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
294 | end | |
295 | --Wait what okay | |
296 | wait() | |
297 | local plr = game:service'Players'.LocalPlayer | |
298 | local char = plr.Character | |
299 | local hum = char.Humanoid | |
300 | local ra = char["Right Arm"] | |
301 | local la= char["Left Arm"] | |
302 | local rl= char["Right Leg"] | |
303 | local ll = char["Left Leg"] | |
304 | local hed = char.Head | |
305 | local root = char.HumanoidRootPart | |
306 | local rootj = root.RootJoint | |
307 | local tors = char.Torso | |
308 | local mouse = plr:GetMouse() | |
309 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
310 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
311 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
312 | local maincolor = BrickColor.new("Dark indigo") | |
313 | cf = CFrame.new | |
314 | angles = CFrame.Angles | |
315 | attack = false | |
316 | euler=CFrame.fromEulerAnglesXYZ | |
317 | equipped = false | |
318 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
319 | RSH, LSH = nil, nil | |
320 | RW = Instance.new("Weld") | |
321 | LW = Instance.new("Weld") | |
322 | RH = tors["Right Hip"] | |
323 | LH = tors["Left Hip"] | |
324 | RSH = tors["Right Shoulder"] | |
325 | LSH = tors["Left Shoulder"] | |
326 | RSH.Parent = nil | |
327 | LSH.Parent = nil | |
328 | RW.Name = "RW" | |
329 | RW.Part0 = tors | |
330 | RW.C0 = CFrame.new(1.5, 0.5, 0) | |
331 | RW.C1 = CFrame.new(0, 0.5, 0) | |
332 | RW.Part1 = ra | |
333 | RW.Parent = tors | |
334 | LW.Name = "LW" | |
335 | LW.Part0 = tors | |
336 | LW.C0 = CFrame.new(-1.5, 0.5, 0) | |
337 | LW.C1 = CFrame.new(0, 0.5, 0) | |
338 | LW.Part1 = la | |
339 | LW.Parent = tors | |
340 | print('User is '..plr.Name) | |
341 | Effects = {} | |
342 | ||
343 | ArtificialHB = Instance.new("BindableEvent", script) | |
344 | ArtificialHB.Name = "Heartbeat" | |
345 | ||
346 | script:WaitForChild("Heartbeat") | |
347 | ||
348 | frame = 1 / 60 | |
349 | tf = 0 | |
350 | allowframeloss = false | |
351 | tossremainder = false | |
352 | lastframe = tick() | |
353 | script.Heartbeat:Fire() | |
354 | ||
355 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
356 | tf = tf + s | |
357 | if tf >= frame then | |
358 | if allowframeloss then | |
359 | script.Heartbeat:Fire() | |
360 | lastframe = tick() | |
361 | else | |
362 | for i = 1, math.floor(tf / frame) do | |
363 | script.Heartbeat:Fire() | |
364 | end | |
365 | lastframe = tick() | |
366 | end | |
367 | if tossremainder then | |
368 | tf = 0 | |
369 | else | |
370 | tf = tf - frame * math.floor(tf / frame) | |
371 | end | |
372 | end | |
373 | end) | |
374 | local RbxUtility = LoadLibrary("RbxUtility") | |
375 | local Create = RbxUtility.Create | |
376 | ||
377 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
378 | if hit.Parent == nil then | |
379 | return | |
380 | end | |
381 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
382 | for _, v in pairs(hit.Parent:children()) do | |
383 | if v:IsA("Humanoid") then | |
384 | h = v | |
385 | end | |
386 | end | |
387 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then | |
388 | warn'No R15 allowed' | |
389 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
390 | end | |
391 | ||
392 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
393 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
394 | if hit.Parent.DebounceHit.Value == true then | |
395 | return | |
396 | end | |
397 | end | |
398 | if insta == true then | |
399 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
400 | end | |
401 | local c = Create("ObjectValue"){ | |
402 | Name = "creator", | |
403 | Value = game:service("Players").LocalPlayer, | |
404 | Parent = h, | |
405 | } | |
406 | game:GetService("Debris"):AddItem(c, .5) | |
407 | if HitSound ~= nil and HitPitch ~= nil then | |
408 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
409 | end | |
410 | local Damage = math.random(minim, maxim) | |
411 | local blocked = false | |
412 | local block = hit.Parent:findFirstChild("Block") | |
413 | if block ~= nil then | |
414 | if block.className == "IntValue" then | |
415 | if block.Value > 0 then | |
416 | blocked = true | |
417 | block.Value = block.Value - 1 | |
418 | print(block.Value) | |
419 | end | |
420 | end | |
421 | end | |
422 | if blocked == false then | |
423 | h.Health = h.Health - Damage | |
424 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
425 | else | |
426 | h.Health = h.Health - (Damage / 2) | |
427 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
428 | end | |
429 | if Type == "Knockdown" then | |
430 | local hum = hit.Parent.Humanoid | |
431 | hum.PlatformStand = true | |
432 | coroutine.resume(coroutine.create(function(HHumanoid) | |
433 | swait(1) | |
434 | HHumanoid.PlatformStand = false | |
435 | end), hum) | |
436 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
437 | local bodvol = Create("BodyVelocity"){ | |
438 | velocity = angle * knockback, | |
439 | P = 5000, | |
440 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
441 | Parent = hit, | |
442 | } | |
443 | local rl = Create("BodyAngularVelocity"){ | |
444 | P = 3000, | |
445 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
446 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
447 | Parent = hit, | |
448 | } | |
449 | game:GetService("Debris"):AddItem(bodvol, .5) | |
450 | game:GetService("Debris"):AddItem(rl, .5) | |
451 | elseif Type == "Normal" then | |
452 | local vp = Create("BodyVelocity"){ | |
453 | P = 500, | |
454 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
455 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
456 | } | |
457 | if knockback > 0 then | |
458 | vp.Parent = hit.Parent.Torso | |
459 | end | |
460 | game:GetService("Debris"):AddItem(vp, .5) | |
461 | elseif Type == "Up" then | |
462 | local bodyVelocity = Create("BodyVelocity"){ | |
463 | velocity = Vector3.new(0, 20, 0), | |
464 | P = 5000, | |
465 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
466 | Parent = hit, | |
467 | } | |
468 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
469 | elseif Type == "DarkUp" then | |
470 | coroutine.resume(coroutine.create(function() | |
471 | for i = 0, 1, 0.1 do | |
472 | swait() | |
473 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
474 | end | |
475 | end)) | |
476 | local bodyVelocity = Create("BodyVelocity"){ | |
477 | velocity = Vector3.new(0, 20, 0), | |
478 | P = 5000, | |
479 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
480 | Parent = hit, | |
481 | } | |
482 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
483 | elseif Type == "Snare" then | |
484 | local bp = Create("BodyPosition"){ | |
485 | P = 2000, | |
486 | D = 100, | |
487 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
488 | position = hit.Parent.Torso.Position, | |
489 | Parent = hit.Parent.Torso, | |
490 | } | |
491 | game:GetService("Debris"):AddItem(bp, 1) | |
492 | elseif Type == "Freeze" then | |
493 | local BodPos = Create("BodyPosition"){ | |
494 | P = 50000, | |
495 | D = 1000, | |
496 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
497 | position = hit.Parent.Torso.Position, | |
498 | Parent = hit.Parent.Torso, | |
499 | } | |
500 | local BodGy = Create("BodyGyro") { | |
501 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
502 | P = 20e+003, | |
503 | Parent = hit.Parent.Torso, | |
504 | cframe = hit.Parent.Torso.CFrame, | |
505 | } | |
506 | hit.Parent.Torso.Anchored = true | |
507 | coroutine.resume(coroutine.create(function(Part) | |
508 | swait(1.5) | |
509 | Part.Anchored = false | |
510 | end), hit.Parent.Torso) | |
511 | game:GetService("Debris"):AddItem(BodPos, 3) | |
512 | game:GetService("Debris"):AddItem(BodGy, 3) | |
513 | end | |
514 | local debounce = Create("BoolValue"){ | |
515 | Name = "DebounceHit", | |
516 | Parent = hit.Parent, | |
517 | Value = true, | |
518 | } | |
519 | game:GetService("Debris"):AddItem(debounce, Delay) | |
520 | c = Create("ObjectValue"){ | |
521 | Name = "creator", | |
522 | Value = Player, | |
523 | Parent = h, | |
524 | } | |
525 | game:GetService("Debris"):AddItem(c, .5) | |
526 | end | |
527 | end | |
528 | ||
529 | function ShowDamage(Pos, Text, Time, Color) | |
530 | local Rate = (1 / 30) | |
531 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
532 | local Text = (Text or "") | |
533 | local Time = (Time or 2) | |
534 | local Color = (Color or Color3.new(1, 0, 1)) | |
535 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
536 | EffectPart.Anchored = true | |
537 | local BillboardGui = Create("BillboardGui"){ | |
538 | Size = UDim2.new(3, 0, 3, 0), | |
539 | Adornee = EffectPart, | |
540 | Parent = EffectPart, | |
541 | } | |
542 | local TextLabel = Create("TextLabel"){ | |
543 | BackgroundTransparency = 1, | |
544 | Size = UDim2.new(1, 0, 1, 0), | |
545 | Text = Text, | |
546 | Font = "Highway", | |
547 | TextColor3 = Color, | |
548 | TextScaled = true, | |
549 | Parent = BillboardGui, | |
550 | } | |
551 | game.Debris:AddItem(EffectPart, (Time)) | |
552 | EffectPart.Parent = game:GetService("Workspace") | |
553 | delay(0, function() | |
554 | local Frames = (Time / Rate) | |
555 | for Frame = 1, Frames do | |
556 | wait(Rate) | |
557 | local Percent = (Frame / Frames) | |
558 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
559 | TextLabel.TextTransparency = Percent | |
560 | end | |
561 | if EffectPart and EffectPart.Parent then | |
562 | EffectPart:Destroy() | |
563 | end | |
564 | end) | |
565 | end | |
566 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
567 | for _, c in pairs(workspace:children()) do | |
568 | local hum = c:findFirstChild("Humanoid") | |
569 | if hum ~= nil then | |
570 | local head = c:findFirstChild("Head") | |
571 | if head ~= nil then | |
572 | local targ = head.Position - Part.Position | |
573 | local mag = targ.magnitude | |
574 | if magni >= mag and c.Name ~= plr.Name then | |
575 | Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=623904185", 5.2) | |
576 | end | |
577 | end | |
578 | end | |
579 | end | |
580 | end | |
581 | function MagniKILL(Part, magni, knock, Type) | |
582 | for _, c in pairs(workspace:children()) do | |
583 | local hum = c:findFirstChild("Humanoid") | |
584 | if hum ~= nil then | |
585 | local head = c:findFirstChild("Head") | |
586 | if head ~= nil then | |
587 | local targ = head.Position - Part.Position | |
588 | local mag = targ.magnitude | |
589 | if magni >= mag and c.Name ~= plr.Name then | |
590 | hum.Health = 0 | |
591 | end | |
592 | end | |
593 | end | |
594 | end | |
595 | end | |
596 | CFuncs = { | |
597 | Part = { | |
598 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
599 | local Part = Create("Part")({ | |
600 | Parent = Parent, | |
601 | Reflectance = Reflectance, | |
602 | Transparency = Transparency, | |
603 | CanCollide = false, | |
604 | Locked = true, | |
605 | BrickColor = BrickColor.new(tostring(BColor)), | |
606 | Name = Name, | |
607 | Size = Size, | |
608 | Material = Material | |
609 | }) | |
610 | RemoveOutlines(Part) | |
611 | return Part | |
612 | end | |
613 | }, | |
614 | Mesh = { | |
615 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
616 | local Msh = Create(Mesh)({ | |
617 | Parent = Part, | |
618 | Offset = OffSet, | |
619 | Scale = Scale | |
620 | }) | |
621 | if Mesh == "SpecialMesh" then | |
622 | Msh.MeshType = MeshType | |
623 | Msh.MeshId = MeshId | |
624 | end | |
625 | return Msh | |
626 | end | |
627 | }, | |
628 | Mesh = { | |
629 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
630 | local Msh = Create(Mesh)({ | |
631 | Parent = Part, | |
632 | Offset = OffSet, | |
633 | Scale = Scale | |
634 | }) | |
635 | if Mesh == "SpecialMesh" then | |
636 | Msh.MeshType = MeshType | |
637 | Msh.MeshId = MeshId | |
638 | end | |
639 | return Msh | |
640 | end | |
641 | }, | |
642 | Weld = { | |
643 | Create = function(Parent, Part0, Part1, C0, C1) | |
644 | local Weld = Create("Weld")({ | |
645 | Parent = Parent, | |
646 | Part0 = Part0, | |
647 | Part1 = Part1, | |
648 | C0 = C0, | |
649 | C1 = C1 | |
650 | }) | |
651 | return Weld | |
652 | end | |
653 | }, | |
654 | Sound = { | |
655 | Create = function(id, par, vol, pit) | |
656 | coroutine.resume(coroutine.create(function() | |
657 | local S = Create("Sound")({ | |
658 | Volume = vol, | |
659 | Pitch = pit or 1, | |
660 | SoundId = id, | |
661 | Parent = par or workspace | |
662 | }) | |
663 | wait() | |
664 | S:play() | |
665 | game:GetService("Debris"):AddItem(S, 6) | |
666 | end)) | |
667 | end | |
668 | }, | |
669 | ParticleEmitter = { | |
670 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
671 | local fp = Create("ParticleEmitter")({ | |
672 | Parent = Parent, | |
673 | Color = ColorSequence.new(Color1, Color2), | |
674 | LightEmission = LightEmission, | |
675 | Size = Size, | |
676 | Texture = Texture, | |
677 | Transparency = Transparency, | |
678 | ZOffset = ZOffset, | |
679 | Acceleration = Accel, | |
680 | Drag = Drag, | |
681 | LockedToPart = LockedToPart, | |
682 | VelocityInheritance = VelocityInheritance, | |
683 | EmissionDirection = EmissionDirection, | |
684 | Enabled = Enabled, | |
685 | Lifetime = LifeTime, | |
686 | Rate = Rate, | |
687 | Rotation = Rotation, | |
688 | RotSpeed = RotSpeed, | |
689 | Speed = Speed, | |
690 | VelocitySpread = VelocitySpread | |
691 | }) | |
692 | return fp | |
693 | end | |
694 | } | |
695 | } | |
696 | function RemoveOutlines(part) | |
697 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
698 | end | |
699 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
700 | local Part = Create("Part")({ | |
701 | formFactor = FormFactor, | |
702 | Parent = Parent, | |
703 | Reflectance = Reflectance, | |
704 | Transparency = Transparency, | |
705 | CanCollide = false, | |
706 | Locked = true, | |
707 | BrickColor = BrickColor.new(tostring(BColor)), | |
708 | Name = Name, | |
709 | Size = Size, | |
710 | Material = Material | |
711 | }) | |
712 | RemoveOutlines(Part) | |
713 | return Part | |
714 | end | |
715 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
716 | local Msh = Create(Mesh)({ | |
717 | Parent = Part, | |
718 | Offset = OffSet, | |
719 | Scale = Scale | |
720 | }) | |
721 | if Mesh == "SpecialMesh" then | |
722 | Msh.MeshType = MeshType | |
723 | Msh.MeshId = MeshId | |
724 | end | |
725 | return Msh | |
726 | end | |
727 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
728 | local Weld = Create("Weld")({ | |
729 | Parent = Parent, | |
730 | Part0 = Part0, | |
731 | Part1 = Part1, | |
732 | C0 = C0, | |
733 | C1 = C1 | |
734 | }) | |
735 | return Weld | |
736 | end | |
737 | EffectModel = Instance.new("Model", char) | |
738 | Effects = { | |
739 | Block = { | |
740 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
741 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
742 | prt.Anchored = true | |
743 | prt.CFrame = cframe | |
744 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
745 | game:GetService("Debris"):AddItem(prt, 10) | |
746 | if Type == 1 or Type == nil then | |
747 | table.insert(Effects, { | |
748 | prt, | |
749 | "Block1", | |
750 | delay, | |
751 | x3, | |
752 | y3, | |
753 | z3, | |
754 | msh | |
755 | }) | |
756 | elseif Type == 2 then | |
757 | table.insert(Effects, { | |
758 | prt, | |
759 | "Block2", | |
760 | delay, | |
761 | x3, | |
762 | y3, | |
763 | z3, | |
764 | msh | |
765 | }) | |
766 | else | |
767 | table.insert(Effects, { | |
768 | prt, | |
769 | "Block3", | |
770 | delay, | |
771 | x3, | |
772 | y3, | |
773 | z3, | |
774 | msh | |
775 | }) | |
776 | end | |
777 | end | |
778 | }, | |
779 | Sphere = { | |
780 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
781 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
782 | prt.Anchored = true | |
783 | prt.CFrame = cframe | |
784 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
785 | game:GetService("Debris"):AddItem(prt, 10) | |
786 | table.insert(Effects, { | |
787 | prt, | |
788 | "Cylinder", | |
789 | delay, | |
790 | x3, | |
791 | y3, | |
792 | z3, | |
793 | msh | |
794 | }) | |
795 | end | |
796 | }, | |
797 | Cylinder = { | |
798 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
799 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
800 | prt.Anchored = true | |
801 | prt.CFrame = cframe | |
802 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
803 | game:GetService("Debris"):AddItem(prt, 10) | |
804 | table.insert(Effects, { | |
805 | prt, | |
806 | "Cylinder", | |
807 | delay, | |
808 | x3, | |
809 | y3, | |
810 | z3, | |
811 | msh | |
812 | }) | |
813 | end | |
814 | }, | |
815 | Wave = { | |
816 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
817 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
818 | prt.Anchored = true | |
819 | prt.CFrame = cframe | |
820 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://431164262", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60)) | |
821 | game:GetService("Debris"):AddItem(prt, 10) | |
822 | table.insert(Effects, { | |
823 | prt, | |
824 | "Cylinder", | |
825 | delay, | |
826 | x3 / 60, | |
827 | y3 / 60, | |
828 | z3 / 60, | |
829 | msh | |
830 | }) | |
831 | end | |
832 | }, | |
833 | Ring = { | |
834 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
835 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
836 | prt.Anchored = true | |
837 | prt.CFrame = cframe | |
838 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
839 | game:GetService("Debris"):AddItem(prt, 10) | |
840 | table.insert(Effects, { | |
841 | prt, | |
842 | "Cylinder", | |
843 | delay, | |
844 | x3, | |
845 | y3, | |
846 | z3, | |
847 | msh | |
848 | }) | |
849 | end | |
850 | }, | |
851 | Break = { | |
852 | Create = function(brickcolor, cframe, x1, y1, z1) | |
853 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
854 | prt.Anchored = true | |
855 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
856 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
857 | local num = math.random(10, 50) / 1000 | |
858 | game:GetService("Debris"):AddItem(prt, 10) | |
859 | table.insert(Effects, { | |
860 | prt, | |
861 | "Shatter", | |
862 | num, | |
863 | prt.CFrame, | |
864 | math.random() - math.random(), | |
865 | 0, | |
866 | math.random(50, 100) / 100 | |
867 | }) | |
868 | end | |
869 | } | |
870 | } | |
871 | function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
872 | local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
873 | prt.Anchored = true | |
874 | prt.CFrame = cframe | |
875 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
876 | game:GetService("Debris"):AddItem(prt, 10) | |
877 | if Type == 1 or Type == nil then | |
878 | table.insert(Effects, { | |
879 | prt, | |
880 | "Block1", | |
881 | delay, | |
882 | x3, | |
883 | y3, | |
884 | z3, | |
885 | msh | |
886 | }) | |
887 | elseif Type == 2 then | |
888 | table.insert(Effects, { | |
889 | prt, | |
890 | "Block2", | |
891 | delay, | |
892 | x3, | |
893 | y3, | |
894 | z3, | |
895 | msh | |
896 | }) | |
897 | elseif Type == 3 then | |
898 | table.insert(Effects, { | |
899 | prt, | |
900 | "Block3", | |
901 | delay, | |
902 | x3, | |
903 | y3, | |
904 | z3, | |
905 | msh | |
906 | }) | |
907 | end | |
908 | end | |
909 | function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
910 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
911 | prt.Anchored = true | |
912 | prt.CFrame = cframe | |
913 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
914 | game:GetService("Debris"):AddItem(prt, 10) | |
915 | table.insert(Effects, { | |
916 | prt, | |
917 | "Cylinder", | |
918 | delay, | |
919 | x3, | |
920 | y3, | |
921 | z3, | |
922 | msh | |
923 | }) | |
924 | end | |
925 | function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
926 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
927 | prt.Anchored = true | |
928 | prt.CFrame = cframe * CFrame.new(x1, y1, z1) | |
929 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
930 | game:GetService("Debris"):AddItem(prt, 10) | |
931 | table.insert(Effects, { | |
932 | prt, | |
933 | "Cylinder", | |
934 | delay, | |
935 | x3, | |
936 | y3, | |
937 | z3, | |
938 | msh | |
939 | }) | |
940 | end | |
941 | function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
942 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
943 | prt.Anchored = true | |
944 | prt.CFrame = cframe | |
945 | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
946 | game:GetService("Debris"):AddItem(prt, 10) | |
947 | table.insert(Effects, { | |
948 | prt, | |
949 | "Cylinder", | |
950 | delay, | |
951 | x3, | |
952 | y3, | |
953 | z3, | |
954 | msh | |
955 | }) | |
956 | end | |
957 | function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
958 | local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
959 | prt.Anchored = true | |
960 | prt.CFrame = cframe | |
961 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
962 | game:GetService("Debris"):AddItem(prt, 10) | |
963 | table.insert(Effects, { | |
964 | prt, | |
965 | "Cylinder", | |
966 | delay, | |
967 | x3, | |
968 | y3, | |
969 | z3, | |
970 | msh | |
971 | }) | |
972 | end | |
973 | function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
974 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
975 | prt.Anchored = true | |
976 | prt.CFrame = cframe | |
977 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
978 | game:GetService("Debris"):AddItem(prt, 10) | |
979 | table.insert(Effects, { | |
980 | prt, | |
981 | "Cylinder", | |
982 | delay, | |
983 | x3, | |
984 | y3, | |
985 | z3, | |
986 | msh | |
987 | }) | |
988 | end | |
989 | function BreakEffect(brickcolor, cframe, x1, y1, z1) | |
990 | local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
991 | prt.Anchored = true | |
992 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
993 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
994 | local num = math.random(10, 50) / 1000 | |
995 | game:GetService("Debris"):AddItem(prt, 10) | |
996 | table.insert(Effects, { | |
997 | prt, | |
998 | "Shatter", | |
999 | num, | |
1000 | prt.CFrame, | |
1001 | math.random() - math.random(), | |
1002 | 0, | |
1003 | math.random(50, 100) / 100 | |
1004 | }) | |
1005 | end | |
1006 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
1007 | local NEWSOUND = nil | |
1008 | coroutine.resume(coroutine.create(function() | |
1009 | NEWSOUND = Instance.new("Sound", PARENT) | |
1010 | NEWSOUND.Volume = VOLUME | |
1011 | NEWSOUND.Pitch = PITCH | |
1012 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
1013 | swait() | |
1014 | NEWSOUND:play() | |
1015 | game:GetService("Debris"):AddItem(NEWSOUND, 10) | |
1016 | end)) | |
1017 | return NEWSOUND | |
1018 | end | |
1019 | ||
1020 | ||
1021 | --[[ | |
1022 | Thanks for using Build-To-Lua by jarredbcv. | |
1023 | ]]-- | |
1024 | ||
1025 | New = function(Object, Parent, Name, Data) | |
1026 | local Object = Instance.new(Object) | |
1027 | for Index, Value in pairs(Data or {}) do | |
1028 | Object[Index] = Value | |
1029 | end | |
1030 | Object.Parent = Parent | |
1031 | Object.Name = Name | |
1032 | return Object | |
1033 | end | |
1034 | ||
1035 | XBlade = New("Model",char,"XBlade",{}) | |
1036 | Handle = New("Part",XBlade,"Handle",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(2, 0.119999982, 0.119999982),CFrame = CFrame.new(-44.0486794, 1.89940667, 173.921341, 0.99009043, -0.134159163, -0.0414969474, 0.0418755226, -2.00014849e-09, 0.999122798, -0.134041354, -0.990959466, 0.00561797712),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1037 | Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.0500000156),CFrame = CFrame.new(-41.3519974, 0.784493208, 173.553787, 0.134159118, 0.931669831, -0.337627381, -1.78345172e-10, 0.340707511, 0.940169215, 0.990959346, -0.126132146, 0.0457089804),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),}) | |
1038 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.93166995, 0.340707511, -0.12613225, -0.337627441, 0.940169275, 0.0457090214),C1 = CFrame.new(2.67253876, 0.00244140625, -1.22790456, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),}) | |
1039 | Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1.92999995, 0.0500000156),CFrame = CFrame.new(-44.0702477, 1.93928599, 173.921783, 0.134159118, 0.99009037, -0.0414969437, -1.78345172e-10, 0.0418755226, 0.999122798, 0.990959346, -0.13404125, 0.00561797526),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),}) | |
1040 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.990090549, 0.0418755226, -0.134041384, -0.0414969586, 0.999122858, 0.00561798085),C1 = CFrame.new(-0.019744873, 0.00245666504, 0.0407419205, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),}) | |
1041 | Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.0500000156),CFrame = CFrame.new(-40.7464447, 1.01027775, 173.471802, 0.134159118, 0.903306067, -0.407478601, -1.78345172e-10, 0.411195904, 0.911546826, 0.990959346, -0.122292183, 0.0551656336),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),}) | |
1042 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.903306186, 0.411195934, -0.122292288, -0.40747866, 0.911546886, 0.0551656857),C1 = CFrame.new(3.29253769, 0.00245666504, -1.02790737, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),}) | |
1043 | Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.130000025),CFrame = CFrame.new(-39.0396805, 1.93485165, 173.240723, 0.134159118, 0.86384666, -0.48556143, -1.78345172e-10, 0.489991099, 0.871727467, 0.990959346, -0.116950043, 0.065736711),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1044 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.863846779, 0.489991099, -0.116950139, -0.48556149, 0.871727467, 0.0657367632),C1 = CFrame.new(5.05207825, 0.00245666504, -0.176268101, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),}) | |
1045 | Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.0500000156),CFrame = CFrame.new(-40.2101974, 1.23313034, 173.3992, 0.134159118, 0.88381362, -0.448190004, -1.78345172e-10, 0.452278793, 0.891876459, 0.990959346, -0.119653247, 0.0606772564),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),}) | |
1046 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.883813798, 0.452278793, -0.119653352, -0.448190093, 0.891876578, 0.0606773123),C1 = CFrame.new(3.84253311, 0.00245666504, -0.827910662, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),}) | |
1047 | Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.0500000156),CFrame = CFrame.new(-41.9794464, 0.607830167, 173.638718, 0.134159118, 0.966715217, -0.217858434, -1.78345172e-10, 0.219845936, 0.975534439, 0.990959346, -0.130876735, 0.0294943117),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),}) | |
1048 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.966715395, 0.219845951, -0.130876839, -0.217858493, 0.975534499, 0.0294943396),C1 = CFrame.new(2.03252411, 0.00245666504, -1.37789822, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),}) | |
1049 | Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1.08000004, 0.0500000156),CFrame = CFrame.new(-42.5497932, 0.498351336, 173.715927, 0.134159118, 0.975934744, -0.171907738, -1.78345172e-10, 0.17347604, 0.984838009, 0.990959346, -0.132124841, 0.0232733674),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),}) | |
1050 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.975934923, 0.17347604, -0.132124975, -0.171907783, 0.984838068, 0.0232733898),C1 = CFrame.new(1.45289612, 0.00247192383, -1.46317959, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),}) | |
1051 | Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1.92999995, 0.0500000156),CFrame = CFrame.new(-44.0665131, 1.84935343, 173.92128, 0.134159118, 0.99009037, -0.0414969437, -1.78345172e-10, 0.0418755226, 0.999122798, 0.990959346, -0.13404125, 0.00561797526),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),}) | |
1052 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.990090549, 0.0418755226, -0.134041384, -0.0414969586, 0.999122858, 0.00561798085),C1 = CFrame.new(-0.019744873, 0.00245666504, -0.0492696762, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),}) | |
1053 | Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.360000014),CFrame = CFrame.new(-42.5316505, 0.708744168, 173.713501, 0.134159118, 0.975934744, -0.171907738, -1.78345172e-10, 0.17347604, 0.984838009, 0.990959346, -0.132124841, 0.0232733674),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1054 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.975934923, 0.17347604, -0.132124975, -0.171907783, 0.984838068, 0.0232733898),C1 = CFrame.new(1.47999573, 0.00244140625, -1.25373793, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),}) | |
1055 | Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.079999879, 0.149999917, 0.100000016),CFrame = CFrame.new(-45.0332489, 1.85846865, 174.05719, 0.134159118, -0.0414969884, -0.99009037, -1.78345172e-10, 0.999122798, -0.0418755673, 0.990959346, 0.00561798224, 0.13404125),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),}) | |
1056 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, -0.0414970033, 0.999122858, 0.00561798783, -0.990090549, -0.0418755673, 0.134041384),C1 = CFrame.new(-0.994735718, -0.00253295898, 0.000717639923, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),}) | |
1057 | Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1.52999997, 0.0500000156),CFrame = CFrame.new(-43.0991249, 1.12461293, 173.790329, 0.134159118, -0.041496899, -0.99009037, -1.78345172e-10, 0.999122798, -0.0418754779, 0.990959346, 0.0056179706, 0.13404125),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),}) | |
1058 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 1.60021901e-16, 0.990959764, -0.0414969139, 0.999122858, 0.00561797619, -0.990090549, -0.0418754779, 0.134041384),C1 = CFrame.new(0.925262451, 0.00244140625, -0.814253807, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),}) | |
1059 | Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.360000014),CFrame = CFrame.new(-41.8233681, 0.848814011, 173.617599, 0.134159118, 0.949757814, -0.282773912, -1.78345172e-10, 0.285353601, 0.958422184, 0.990959346, -0.128580973, 0.0382827483),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1060 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.949757874, 0.285353601, -0.128581077, -0.282773942, 0.958422303, 0.0382827818),C1 = CFrame.new(2.19998169, 0.00245666504, -1.14372134, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),}) | |
1061 | Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 0.0799999386, 0.0500000156),CFrame = CFrame.new(-43.1370964, 2.03881836, 173.795456, 0.134159118, -0.041496899, -0.99009037, -1.78345172e-10, 0.999122798, -0.0418754779, 0.990959346, 0.0056179706, 0.13404125),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),}) | |
1062 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 1.60021901e-16, 0.990959764, -0.0414969139, 0.999122858, 0.00561797619, -0.990090549, -0.0418754779, 0.134041384),C1 = CFrame.new(0.925262451, 0.00245666504, 0.100754261, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),}) | |
1063 | Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.0500000156),CFrame = CFrame.new(-38.9191017, 1.90829134, 173.224411, 0.134159118, 0.863252759, -0.486616373, -1.78345172e-10, 0.491055667, 0.871128023, 0.990959346, -0.116869673, 0.0658795312),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),}) | |
1064 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.863252878, 0.491055697, -0.11686977, -0.486616433, 0.871128082, 0.0658795834),C1 = CFrame.new(5.17253876, 0.00245666504, -0.207900524, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),}) | |
1065 | Wedge = New("WedgePart",XBlade,"Wedge",{BrickColor = BrickColor.new("Pearl"),Material = Enum.Material.Neon,Size = Vector3.new(0.0799999461, 4.97000027, 1.66999996),CFrame = CFrame.new(-40.6379662, 1.33008528, 173.459518, 0.134159088, 0.990090489, -0.0414969511, -3.48056417e-10, 0.0418755226, 0.999122798, 0.990959585, -0.134041339, 0.00561797852),BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1066 | mot = New("Motor",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.990090549, 0.0418755226, -0.134041384, -0.0414969586, 0.999122858, 0.00561798085),C1 = CFrame.new(3.41497803, 7.62939453e-05, -0.712950706, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),}) | |
1067 | Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.360000014),CFrame = CFrame.new(-40.5334549, 1.31371856, 173.442963, 0.134159118, 0.888382077, -0.439065397, -1.78345172e-10, 0.443070978, 0.89648658, 0.990959346, -0.120271713, 0.059441939),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1068 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.888382196, 0.443070978, -0.120271817, -0.439065516, 0.89648664, 0.0594419949),C1 = CFrame.new(3.51998901, 0.00245666504, -0.733733177, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),}) | |
1069 | Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.360000014),CFrame = CFrame.new(-39.8037491, 1.65485072, 173.344177, 0.134159118, 0.879470766, -0.456653416, -1.78345172e-10, 0.460819334, 0.887493968, 0.990959346, -0.1190653, 0.0618230514),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1070 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.879470944, 0.460819364, -0.119065404, -0.456653476, 0.887494028, 0.0618231073),C1 = CFrame.new(4.26998901, 0.00245666504, -0.423735619, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),}) | |
1071 | Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1.02999997, 0.0500000156),CFrame = CFrame.new(-38.633503, 2.03729534, 173.18576, 0.134159118, 0.863252759, -0.486616373, -1.78345172e-10, 0.491055667, 0.871128023, 0.990959346, -0.116869673, 0.0658795312),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),}) | |
1072 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.863252878, 0.491055697, -0.11686977, -0.486616433, 0.871128082, 0.0658795834),C1 = CFrame.new(5.46588898, 0.00244140625, -0.0910782814, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),}) | |
1073 | Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.0500000156),CFrame = CFrame.new(-39.5588799, 1.55094099, 173.311005, 0.134159118, 0.863252759, -0.486616373, -1.78345172e-10, 0.491055667, 0.871128023, 0.990959346, -0.116869673, 0.0658795312),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),}) | |
1074 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.863252878, 0.491055697, -0.11686977, -0.486616433, 0.871128082, 0.0658795834),C1 = CFrame.new(4.51252747, 0.00247192383, -0.537901878, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),}) | |
1075 | Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 5, 0.0500000156),CFrame = CFrame.new(-40.6833267, 2.18262863, 173.463257, 0.134159118, 0.99009037, -0.0414969437, -1.78345172e-10, 0.0418755226, 0.999122798, 0.990959346, -0.13404125, 0.00561797526),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),}) | |
1076 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.990090549, 0.0418755226, -0.134041384, -0.0414969586, 0.999122858, 0.00561798085),C1 = CFrame.new(3.40526581, 0.00245666504, 0.140748024, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),}) | |
1077 | Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.360000014),CFrame = CFrame.new(-41.1286964, 1.07836723, 173.523544, 0.134159118, 0.920541048, -0.36688596, -1.78345172e-10, 0.37023294, 0.928938925, 0.990959346, -0.124625482, 0.0496700779),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1078 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.920541227, 0.37023297, -0.124625586, -0.36688602, 0.928938985, 0.0496701226),C1 = CFrame.new(2.9099884, 0.00245666504, -0.943724632, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),}) | |
1079 | ||
1080 | ||
1081 | HeartLocket = New("Model",char,"Heart Locket",{}) | |
1082 | Heart = New("Hat",HeartLocket,"Heart",{}) | |
1083 | Handle2 = New("Part",Heart,"Handle2",{BrickColor = BrickColor.new("Gold"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.0500000007, 0.0500000007, 0.25),CFrame = CFrame.new(-42.7335167, 3.20922303, 175.050156, 0.14691636, -0.00137452304, -0.989146531, 0.00403097179, 0.999989152, -0.00079088629, 0.98914516, -0.00387096009, 0.14692001),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.937255, 0.721569, 0.219608),}) | |
1084 | Mesh = New("SpecialMesh",Handle2,"Mesh",{Scale = Vector3.new(2, 2, 1),MeshId = "http://www.roblox.com/asset/?id=105992239",MeshType = Enum.MeshType.FileMesh,}) | |
1085 | String = New("Part",HeartLocket,"String",{BrickColor = BrickColor.new("Burnt Sienna"),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(2, 2, 2),CFrame = CFrame.new(-43.4914551, 3.64470506, 175.102722, 0.0703944117, 0, -0.997525692, 0, 1, 0, 0.997519255, 0, 0.0703952685),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.415686, 0.223529, 0.0352941),}) | |
1086 | Mesh = New("SpecialMesh",String,"Mesh",{Scale = Vector3.new(1.10000002, 1, 0.949999988),VertexColor = Vector3.new(0, 0, 0),MeshId = "http://www.roblox.com/asset/?id=34237901",MeshType = Enum.MeshType.FileMesh,}) | |
1087 | ||
1088 | ||
1089 | for _, v in pairs(XBlade:GetChildren()) do | |
1090 | if v:IsA'BasePart' then | |
1091 | v.CanCollide = false | |
1092 | end | |
1093 | end | |
1094 | ||
1095 | ||
1096 | ||
1097 | local NewInstance = function(instance,parent,properties) | |
1098 | local inst = Instance.new(instance,parent) | |
1099 | if(properties)then | |
1100 | for i,v in next, properties do | |
1101 | pcall(function() inst[i] = v end) | |
1102 | end | |
1103 | end | |
1104 | return inst; | |
1105 | end | |
1106 | local HW = NewInstance('Weld',char,{Part0=ra,Part1=Handle,C0 = CFrame.new(0,-.9,0)*CFrame.Angles(math.rad(-90),math.rad(0),math.rad(90))}) | |
1107 | local Locket = NewInstance('Weld',char,{Part0=hed,Part1=String,C0 = CFrame.new(0,-.9,0.1)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))}) | |
1108 | local HeartL = NewInstance('Weld',char,{Part0=hed,Part1=Handle2,C0 = CFrame.new(0,-1.3,-0.7)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))}) | |
1109 | ||
1110 | ||
1111 | ||
1112 | ||
1113 | --Chat Function-- | |
1114 | function chatfunc(text,waitt) | |
1115 | local chat = coroutine.wrap(function() | |
1116 | if char:FindFirstChild("TalkingBillBoard")~= nil then | |
1117 | char:FindFirstChild("TalkingBillBoard").Parent = nil | |
1118 | end | |
1119 | local naeeym2 = Instance.new("BillboardGui",char) | |
1120 | naeeym2.Size = UDim2.new(0,100,0,40) | |
1121 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
1122 | naeeym2.Adornee = char.Head | |
1123 | naeeym2.Name = "TalkingBillBoard" | |
1124 | naeeym2.AlwaysOnTop = true | |
1125 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
1126 | tecks2.BackgroundTransparency = 1 | |
1127 | tecks2.BorderSizePixel = 0 | |
1128 | tecks2.Text = "" | |
1129 | tecks2.Font = "Code" | |
1130 | tecks2.TextSize = 30 | |
1131 | tecks2.TextStrokeTransparency = 0 | |
1132 | tecks2.TextColor3 = Color3.fromRGB(255,255,255) | |
1133 | tecks2.TextStrokeColor3 = Color3.fromRGB(98, 37, 209) | |
1134 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1135 | for i = 1,string.len(text),1 do | |
1136 | tecks2.Text = string.sub(text,1,i) | |
1137 | swait(3) | |
1138 | end | |
1139 | wait(waitt/10) | |
1140 | coroutine.resume(coroutine.create(function() | |
1141 | for i = 1, 10 do | |
1142 | tecks2.TextTransparency = tecks2.TextTransparency + 0.1 | |
1143 | swait() | |
1144 | end | |
1145 | naeeym2:Destroy() | |
1146 | end)) | |
1147 | end) | |
1148 | chat() | |
1149 | end | |
1150 | ||
1151 | local asd = Instance.new("ParticleEmitter") | |
1152 | asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0)) | |
1153 | asd.LightEmission = .1 | |
1154 | asd.Size = NumberSequence.new(0.2) | |
1155 | asd.Texture = "http://www.roblox.com/asset/?ID=291880914" | |
1156 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)}) | |
1157 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
1158 | asd.Transparency = bbb | |
1159 | asd.Size = aaa | |
1160 | asd.ZOffset = .9 | |
1161 | asd.Acceleration = Vector3.new(0, -5, 0) | |
1162 | asd.LockedToPart = false | |
1163 | asd.EmissionDirection = "Back" | |
1164 | asd.Lifetime = NumberRange.new(1, 2) | |
1165 | asd.Rotation = NumberRange.new(-100, 100) | |
1166 | asd.RotSpeed = NumberRange.new(-100, 100) | |
1167 | asd.Speed = NumberRange.new(2) | |
1168 | asd.Enabled = false | |
1169 | asd.VelocitySpread = 10000 | |
1170 | ||
1171 | function bleed(victim,amount) | |
1172 | local prtcl = asd:Clone() | |
1173 | prtcl.Parent = victim | |
1174 | prtcl:Emit(amount) | |
1175 | end | |
1176 | ||
1177 | ||
1178 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
1179 | local NEWMESH = Instance.new(MESH) | |
1180 | if MESH == "SpecialMesh" then | |
1181 | NEWMESH.MeshType = MESHTYPE | |
1182 | if MESHID ~= "nil" and MESHID ~= "" then | |
1183 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
1184 | end | |
1185 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
1186 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
1187 | end | |
1188 | end | |
1189 | NEWMESH.Offset = OFFSET or Vector3.new(0, 0, 0) | |
1190 | NEWMESH.Scale = SCALE | |
1191 | NEWMESH.Parent = PARENT | |
1192 | return NEWMESH | |
1193 | end | |
1194 | ||
1195 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
1196 | local NEWPART = Instance.new("Part") | |
1197 | NEWPART.formFactor = FORMFACTOR | |
1198 | NEWPART.Reflectance = REFLECTANCE | |
1199 | NEWPART.Transparency = TRANSPARENCY | |
1200 | NEWPART.CanCollide = false | |
1201 | NEWPART.Locked = true | |
1202 | NEWPART.Anchored = true | |
1203 | if ANCHOR == false then | |
1204 | NEWPART.Anchored = false | |
1205 | end | |
1206 | NEWPART.BrickColor = BrickColor.new(tostring(BRICKCOLOR)) | |
1207 | NEWPART.Name = NAME | |
1208 | NEWPART.Size = SIZE | |
1209 | NEWPART.Position = tors.Position | |
1210 | NEWPART.Material = MATERIAL | |
1211 | NEWPART:BreakJoints() | |
1212 | NEWPART.Parent = PARENT | |
1213 | return NEWPART | |
1214 | end | |
1215 | ||
1216 | local function weldBetween(a, b) | |
1217 | local weldd = Instance.new("ManualWeld") | |
1218 | weldd.Part0 = a | |
1219 | weldd.Part1 = b | |
1220 | weldd.C0 = CFrame.new() | |
1221 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
1222 | weldd.Parent = a | |
1223 | return weldd | |
1224 | end | |
1225 | ||
1226 | function createaccessory(attachmentpart,mesh,texture,scale,offset,color) | |
1227 | local acs = Instance.new("Part") | |
1228 | acs.CanCollide = false | |
1229 | acs.Anchored = false | |
1230 | acs.Size = Vector3.new(0,0,0) | |
1231 | acs.CFrame = attachmentpart.CFrame | |
1232 | acs.Parent = char | |
1233 | acs.BrickColor = color | |
1234 | local meshs = Instance.new("SpecialMesh") | |
1235 | meshs.MeshId = mesh | |
1236 | meshs.TextureId = texture | |
1237 | meshs.Parent = acs | |
1238 | meshs.Scale = scale | |
1239 | meshs.Offset = offset | |
1240 | weldBetween(attachmentpart,acs) | |
1241 | end | |
1242 | ||
1243 | local accessories = Instance.new("Folder",char) | |
1244 | accessories.Name = "Add-ons" | |
1245 | ||
1246 | function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE) | |
1247 | if TYPE == "Gem" then | |
1248 | local acs = CreatePart(3, accessories, "Plastic", 0, 0, COLOR, "Part", Vector3.new(0,0,0)) | |
1249 | acs.Anchored = false | |
1250 | acs.CanCollide = false | |
1251 | acs.CFrame = PART.CFrame | |
1252 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET) | |
1253 | weldBetween(PART,acs) | |
1254 | elseif TYPE == "Skull" then | |
1255 | local acs = CreatePart(3, accessories, "Plastic", 0, 0, COLOR, "Part", Vector3.new(0,0,0)) | |
1256 | acs.Anchored = false | |
1257 | acs.CanCollide = false | |
1258 | acs.CFrame = PART.CFrame | |
1259 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET) | |
1260 | weldBetween(PART,acs) | |
1261 | elseif TYPE == "Eye" then | |
1262 | local acs = CreatePart(3, accessories, "Neon", 0, 0, COLOR, "Part", Vector3.new(0,0,0)) | |
1263 | acs.Anchored = false | |
1264 | acs.CanCollide = false | |
1265 | acs.CFrame = PART.CFrame | |
1266 | local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET) | |
1267 | weldBetween(PART,acs) | |
1268 | end | |
1269 | end | |
1270 | ||
1271 | createbodypart("Eye","Really red",hed,Vector3.new(0.2, 0.17, -0.55),Vector3.new(3,5,3)) | |
1272 | createbodypart("Eye","Dark indigo",hed,Vector3.new(-0.2, 0.17, -0.55),Vector3.new(3,5,3)) | |
1273 | ||
1274 | --Extras-- | |
1275 | q = char:GetChildren() | |
1276 | for u = 1, #q do | |
1277 | if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then | |
1278 | q[u]:remove() | |
1279 | elseif q[u].ClassName == "CharacterMesh" then | |
1280 | q[u]:remove() | |
1281 | elseif q[u].ClassName == "ShirtGraphic" then | |
1282 | q[u]:remove() | |
1283 | elseif q[u].ClassName == "Shirt" then | |
1284 | q[u]:Destroy() | |
1285 | elseif q[u].ClassName == "Pants" then | |
1286 | q[u]:Destroy() | |
1287 | end | |
1288 | end | |
1289 | local top = Instance.new("Shirt") | |
1290 | top.ShirtTemplate = "rbxassetid://831629350" | |
1291 | top.Parent = char | |
1292 | local bottom = Instance.new("Pants") | |
1293 | bottom.PantsTemplate = "rbxassetid://227915108" | |
1294 | bottom.Parent = char | |
1295 | ||
1296 | local BodyColors = char:FindFirstChildOfClass"BodyColors" | |
1297 | if BodyColors then | |
1298 | BodyColors.HeadColor = BrickColor.new"Institutional white" | |
1299 | BodyColors.TorsoColor = BrickColor.new"Institutional white" | |
1300 | BodyColors.LeftArmColor = BrickColor.new"Institutional white" | |
1301 | BodyColors.RightArmColor = BrickColor.new"Institutional white" | |
1302 | BodyColors.LeftLegColor = BrickColor.new"Institutional white" | |
1303 | BodyColors.RightLegColor = BrickColor.new"Institutional white" | |
1304 | end | |
1305 | ||
1306 | --Scarfs-- | |
1307 | local Blobby = Instance.new("Part", char) | |
1308 | Blobby.Name = "Blob" | |
1309 | Blobby.CanCollide = false | |
1310 | Blobby.BrickColor = BrickColor.new("Institutional white") | |
1311 | Blobby.Transparency = 0 | |
1312 | Blobby.Material = "Plastic" | |
1313 | Blobby.Size = Vector3.new(1, 1, 2) | |
1314 | Blobby.TopSurface = Enum.SurfaceType.Smooth | |
1315 | Blobby.BottomSurface = Enum.SurfaceType.Smooth | |
1316 | ||
1317 | local Weld = Instance.new("Weld", Blobby) | |
1318 | Weld.Part0 = hed | |
1319 | Weld.Part1 = Blobby | |
1320 | Weld.C1 = CFrame.new(0, 1.1, 0) | |
1321 | Weld.C0 = CFrame.Angles(math.rad(0),math.rad(180),0) | |
1322 | ||
1323 | local M2 = Instance.new("SpecialMesh") | |
1324 | M2.Parent = Blobby | |
1325 | M2.MeshId = "http://www.roblox.com/asset/?id=448710145" | |
1326 | M2.Scale = Vector3.new(0.8, 0.8, 0.8) | |
1327 | ||
1328 | local Blobby2 = Instance.new("Part", char) | |
1329 | Blobby2.Name = "Blob" | |
1330 | Blobby2.CanCollide = false | |
1331 | Blobby2.BrickColor = BrickColor.new("Really black") | |
1332 | Blobby2.Transparency = 0 | |
1333 | Blobby2.Material = "Plastic" | |
1334 | Blobby2.Size = Vector3.new(1, 1, 2) | |
1335 | Blobby2.TopSurface = Enum.SurfaceType.Smooth | |
1336 | Blobby2.BottomSurface = Enum.SurfaceType.Smooth | |
1337 | ||
1338 | local Weld = Instance.new("Weld", Blobby2) | |
1339 | Weld.Part0 = hed | |
1340 | Weld.Part1 = Blobby2 | |
1341 | Weld.C1 = CFrame.new(0, 1.2, 0) | |
1342 | Weld.C0 = CFrame.Angles(math.rad(0),math.rad(180),0) | |
1343 | ||
1344 | local M2 = Instance.new("SpecialMesh") | |
1345 | M2.Parent = Blobby2 | |
1346 | M2.MeshId = "http://www.roblox.com/asset/?id=448710145" | |
1347 | M2.Scale = Vector3.new(0.8, 0.8, 0.8) | |
1348 | ||
1349 | --Hair-- | |
1350 | local Hair = Instance.new("Part", char) | |
1351 | Hair.Name = "Hair" | |
1352 | Hair.CanCollide = false | |
1353 | Hair.BrickColor = BrickColor.new("Institutional white") | |
1354 | Hair.Transparency = 0 | |
1355 | Hair.Material = "Plastic" | |
1356 | Hair.Size = Vector3.new(1, 1, 2) | |
1357 | Hair.TopSurface = Enum.SurfaceType.Smooth | |
1358 | Hair.BottomSurface = Enum.SurfaceType.Smooth | |
1359 | ||
1360 | local Weld = Instance.new("Weld", Hair) | |
1361 | Weld.Part0 = hed | |
1362 | Weld.Part1 = Hair | |
1363 | Weld.C1 = CFrame.new(0, -.5, 0) | |
1364 | Weld.C0 = CFrame.Angles(math.rad(0),math.rad(0),0) | |
1365 | ||
1366 | local M2 = Instance.new("SpecialMesh") | |
1367 | M2.Parent = Hair | |
1368 | M2.MeshId = "http://www.roblox.com/asset/?id=346578029" | |
1369 | M2.Scale = Vector3.new(1.2, 1.1, 1.1) | |
1370 | ||
1371 | --Hood-- | |
1372 | local Hood = Instance.new("Part", char) | |
1373 | Hood.Name = "Hood" | |
1374 | Hood.CanCollide = false | |
1375 | Hood.BrickColor = BrickColor.new("Institutional white") | |
1376 | Hood.Transparency = 0 | |
1377 | Hood.Material = "Plastic" | |
1378 | Hood.Size = Vector3.new(1, 1, 2) | |
1379 | Hood.TopSurface = Enum.SurfaceType.Smooth | |
1380 | Hood.BottomSurface = Enum.SurfaceType.Smooth | |
1381 | ||
1382 | local Weld = Instance.new("Weld", Hood) | |
1383 | Weld.Part0 = tors | |
1384 | Weld.Part1 = Hood | |
1385 | Weld.C1 = CFrame.new(0, .4, -.9) | |
1386 | Weld.C0 = CFrame.Angles(math.rad(-0),math.rad(0),math.rad(180)) | |
1387 | ||
1388 | local M2 = Instance.new("SpecialMesh") | |
1389 | M2.Parent = Hood | |
1390 | M2.MeshId = "http://www.roblox.com/asset/?id=18010902" | |
1391 | M2.Scale = Vector3.new(0.922, 0.922, 0.922) | |
1392 | hed.face.Texture = "http://www.roblox.com/asset/?id=176217905" | |
1393 | ||
1394 | ||
1395 | ||
1396 | Slashy = Instance.new("Sound", ra) | |
1397 | Slashy.Volume = 5 | |
1398 | Slashy.Pitch = 1 | |
1399 | Slashy.SoundId = "http://www.roblox.com/asset/?id=978101945" | |
1400 | Slashy.Looped = false | |
1401 | ||
1402 | local VALUE1 = false | |
1403 | local sine=0 | |
1404 | for _, v in pairs(XBlade:GetChildren()) do | |
1405 | if v:IsA'BasePart' then | |
1406 | v.CanCollide = false | |
1407 | v.Transparency = 1 | |
1408 | end | |
1409 | end | |
1410 | function intro() | |
1411 | attack = true | |
1412 | chatfunc("Made by 1x1x1x1IAMbck",3) | |
1413 | hum.WalkSpeed = 0 | |
1414 | for i = 0,6,0.1 do | |
1415 | swait() | |
1416 | rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/20))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15) | |
1417 | tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
1418 | RH.C0=clerp(RH.C0,cf(1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*RHCF*angles(math.rad(-2),math.rad(0),math.rad(0)),0.15) | |
1419 | LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*LHCF*angles(math.rad(-2),math.rad(0),math.rad(0)),0.15) | |
1420 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(0), math.rad(0), math.rad(5)), 0.1) | |
1421 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), 0.1) | |
1422 | HW.C0 = clerp(HW.C0, CFrame.new(0,-.9,0)*angles (math.rad(-90),math.rad(90),math.rad(0)), 0.15) | |
1423 | end | |
1424 | wait(2.5) | |
1425 | chatfunc("Finally, after all this time.",3) | |
1426 | hum.WalkSpeed = 0 | |
1427 | for i = 0,6,0.1 do | |
1428 | swait() | |
1429 | rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/20))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15) | |
1430 | tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
1431 | RH.C0=clerp(RH.C0,cf(1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*RHCF*angles(math.rad(-2),math.rad(0),math.rad(0)),0.15) | |
1432 | LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*LHCF*angles(math.rad(-2),math.rad(0),math.rad(0)),0.15) | |
1433 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(0), math.rad(0), math.rad(5)), 0.1) | |
1434 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), 0.1) | |
1435 | HW.C0 = clerp(HW.C0, CFrame.new(0,-.9,0)*angles (math.rad(-90),math.rad(90),math.rad(0)), 0.15) | |
1436 | end | |
1437 | wait(2.5) | |
1438 | chatfunc("At last I have a human soul.",3) | |
1439 | for i = 0,6,0.1 do | |
1440 | swait() | |
1441 | rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/20))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15) | |
1442 | tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
1443 | RH.C0=clerp(RH.C0,cf(1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*RHCF*angles(math.rad(-2),math.rad(0),math.rad(0)),0.15) | |
1444 | LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*LHCF*angles(math.rad(-2),math.rad(0),math.rad(0)),0.15) | |
1445 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(0), math.rad(0), math.rad(5)), 0.1) | |
1446 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), 0.1) | |
1447 | HW.C0 = clerp(HW.C0, CFrame.new(0,-.9,0)*angles (math.rad(-90),math.rad(0),math.rad(90)), 0.15) | |
1448 | end | |
1449 | wait(2.5) | |
1450 | chatfunc("And finally not attached to that dumb Skeleton.",3) | |
1451 | for i = 0,6,0.1 do | |
1452 | swait() | |
1453 | rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/20))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15) | |
1454 | tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
1455 | RH.C0=clerp(RH.C0,cf(1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*RHCF*angles(math.rad(-2),math.rad(0),math.rad(0)),0.15) | |
1456 | LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*LHCF*angles(math.rad(-2),math.rad(0),math.rad(0)),0.15) | |
1457 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(0), math.rad(0), math.rad(5)), 0.1) | |
1458 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), 0.1) | |
1459 | HW.C0 = clerp(HW.C0, CFrame.new(0,-.9,0)*angles (math.rad(-90),math.rad(0),math.rad(90)), 0.15) | |
1460 | end | |
1461 | wait(2.5) | |
1462 | chatfunc("You'll get to live long enough to see something special.",5) | |
1463 | ||
1464 | for i = 0,6,0.1 do | |
1465 | swait() | |
1466 | for _, v in pairs(XBlade:GetChildren()) do | |
1467 | if v:IsA'BasePart' then | |
1468 | v.CanCollide = false | |
1469 | v.Transparency = v.Transparency - .3 | |
1470 | end | |
1471 | end | |
1472 | rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/20))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15) | |
1473 | tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1474 | RH.C0=clerp(RH.C0,cf(1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*RHCF*angles(math.rad(-2),math.rad(0),math.rad(0)),0.15) | |
1475 | LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*LHCF*angles(math.rad(-2),math.rad(0),math.rad(0)),0.15) | |
1476 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(90), math.rad(0), math.rad(5)), 0.1) | |
1477 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), 0.1) | |
1478 | HW.C0 = clerp(HW.C0, CFrame.new(0,-.9,0)*angles (math.rad(-90),math.rad(0),math.rad(180)), 0.15) | |
1479 | end | |
1480 | wait(4.5) | |
1481 | chatfunc("Welcome my friend, to the XEvent.",3) | |
1482 | wait(2.5) | |
1483 | CreateSound("367453005", hed, 10, 1) | |
1484 | ShadowHead = New("Part",char,"ShadowHead",{CanCollide = false,BrickColor = BrickColor.new("Really black"),Size = Vector3.new(1.20000005, 0.600000024, 1),CFrame = CFrame.new(68.5999985, 0.700013041, 9.89999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
1485 | Mesh = New("SpecialMesh",ShadowHead,"Mesh",{Scale = Vector3.new(1.25999999, 1.5, 1.25999999),}) | |
1486 | Weld = New("Weld",ShadowHead,"mot",{Part0 = ShadowHead,Part1 = char.Head,C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
1487 | Effects.Ring.Create(BrickColor.new("Institutional white"), tors.CFrame*angles(math.rad(90),math.rad(0),math.rad(0)), 2, 2, 2, 7.6, 7.6, 7.6, 0.03) | |
1488 | Effects.Sphere.Create(maincolor, tors.CFrame, 2, 2, 2, 17.6, 17.6, 17.6, 0.02) | |
1489 | Effects.Sphere.Create(BrickColor.new("Dark indigo"), tors.CFrame, 2, 2, 2, 10.6, 10.6, 10.6, 0.02) | |
1490 | Effects.Sphere.Create(BrickColor.new("Dark indigo"), tors.CFrame, 2, 2, 2, 14.6, 14.6, 14.6, 0.02) | |
1491 | Effects.Sphere.Create(BrickColor.new("Dark indigo"), tors.CFrame, 2, 2, 2, 16.6, 16.6, 16.6, 0.02) | |
1492 | Effects.Sphere.Create(BrickColor.new("Dark indigo"), tors.CFrame, 2, 2, 2, 5.6, 5.6, 5.6, 0.02) | |
1493 | local bigboi = Instance.new("Sound",tors) | |
1494 | bigboi.SoundId = "rbxassetid://736980589" | |
1495 | bigboi.Volume = 2.5 | |
1496 | bigboi.Looped = true | |
1497 | bigboi.Pitch = 1 | |
1498 | bigboi:Play() | |
1499 | attack = false | |
1500 | VALUE1 = true | |
1501 | hum.WalkSpeed = 28 | |
1502 | end | |
1503 | ||
1504 | ||
1505 | ||
1506 | ||
1507 | ||
1508 | function NothingPersonal() | |
1509 | if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
1510 | local HITBODY = mouse.Target.Parent | |
1511 | local TORS = HITBODY:FindFirstChild("Torso") or HITBODY:FindFirstChild("UpperTorso") | |
1512 | local HUMAN = mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
1513 | if TORS ~= nil and HUMAN ~= nil then | |
1514 | attack = true | |
1515 | hum.WalkSpeed = 0 | |
1516 | root.CFrame = TORS.CFrame * CFrame.new(-1,0,6) | |
1517 | TORS.Anchored = true | |
1518 | CreateSound("367453005", hed, 10, 1) | |
1519 | Effects.Sphere.Create(maincolor, tors.CFrame * CFrame.new(0, -1.2, 0), 100, 100, 100, 15, 15, 15, .1, .1) | |
1520 | for i = 0,6,0.1 do | |
1521 | swait() | |
1522 | rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/20))*angles(math.rad(0),math.rad(0),math.rad(-20)),0.15) | |
1523 | tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1524 | RH.C0=clerp(RH.C0,cf(1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*RHCF*angles(math.rad(-2),math.rad(0),math.rad(0)),0.15) | |
1525 | LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*LHCF*angles(math.rad(-2),math.rad(0),math.rad(0)),0.15) | |
1526 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(0), math.rad(0), math.rad(125)), 0.1) | |
1527 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(90), math.rad(0), math.rad(-15)), 0.1) | |
1528 | HW.C0 = clerp(HW.C0, CFrame.new(0,-.9,0)*angles (math.rad(-90),math.rad(90),math.rad(0)), 0.15) | |
1529 | end | |
1530 | CreateSound("357417055", hed, 10, 1) | |
1531 | for i = 0,4,0.1 do | |
1532 | rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/20))*angles(math.rad(5),math.rad(0),math.rad(45)),0.15) | |
1533 | tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-50)),.3) | |
1534 | RH.C0=clerp(RH.C0,cf(1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*RHCF*angles(math.rad(-2),math.rad(0),math.rad(0)),0.15) | |
1535 | LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*LHCF*angles(math.rad(-2),math.rad(0),math.rad(0)),0.15) | |
1536 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(90), math.rad(0), math.rad(15)), 0.1) | |
1537 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(0), math.rad(0), math.rad(-15)), 0.1) | |
1538 | HW.C0 = clerp(HW.C0, CFrame.new(0,-.9,0)*angles (math.rad(-90),math.rad(90),math.rad(0)), 0.15) | |
1539 | end | |
1540 | wait(2.5) | |
1541 | CreateSound("623904185", hed, 10, 1) | |
1542 | HITBODY:BreakJoints() | |
1543 | TORS.Anchored = false | |
1544 | attack = false | |
1545 | hum.WalkSpeed = 28 | |
1546 | bleed(TORS,25) | |
1547 | end | |
1548 | end | |
1549 | end | |
1550 | ||
1551 | ||
1552 | ||
1553 | ||
1554 | ||
1555 | ||
1556 | ||
1557 | ||
1558 | ||
1559 | ||
1560 | ||
1561 | ||
1562 | ---ATTACKS N STUFF | |
1563 | function HitboxFunction(Pose, lifetime, siz1, siz2, siz3, Radie, Min, Max, kb, atype) | |
1564 | Hitboxpart = Instance.new("Part", EffectModel) | |
1565 | RemoveOutlines(Hitboxpart) | |
1566 | Hitboxpart.Size = Vector3.new(siz1, siz2, siz3) | |
1567 | Hitboxpart.CanCollide = false | |
1568 | Hitboxpart.Transparency = 1 | |
1569 | Hitboxpart.Anchored = true | |
1570 | Hitboxpart.CFrame = Pose | |
1571 | game:GetService("Debris"):AddItem(Hitboxpart, lifetime) | |
1572 | MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype) | |
1573 | end | |
1574 | wait2 = false | |
1575 | combo = 1 | |
1576 | mouse.Button1Down:connect(function(key) | |
1577 | if attack == false then | |
1578 | attack = true | |
1579 | hum.WalkSpeed = 3.01 | |
1580 | if combo == 1 and wait2 == false then | |
1581 | wait2 = true | |
1582 | for i = 0, 1.2, 0.1 do | |
1583 | swait() | |
1584 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-5), math.rad(0), math.rad(-15)), 0.3) | |
1585 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
1586 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.8) * angles(math.rad(175), math.rad(0), math.rad(0)), 0.1) | |
1587 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3) | |
1588 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.2) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-0)), 0.3) | |
1589 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(15), math.rad(-20)), 0.3) | |
1590 | end | |
1591 | Effects.Ring.Create(BrickColor.new("Institutional white"), ra.CFrame, 2, 2, 2, 0.1, 0.1, 0.1, 0.03) | |
1592 | Slashy:Play() | |
1593 | HitboxFunction(Wedge.CFrame * CFrame.new(0, 0, -.9), 0.01, 1, 1, 1, 7, 24, 36, 3, "Normal") | |
1594 | for i = 0, 1.2, 0.1 do | |
1595 | swait() | |
1596 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(15)), 0.3) | |
1597 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
1598 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.8) * angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1) | |
1599 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3) | |
1600 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-15), math.rad(-20)), 0.3) | |
1601 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(-0), math.rad(0)), 0.3) | |
1602 | end | |
1603 | combo = 2 | |
1604 | end | |
1605 | if combo == 2 and wait2 == false then | |
1606 | wait2 = true | |
1607 | HitboxFunction(ll.CFrame * CFrame.new(0, 0, .4), 0.01, 1, 1, 1, 7, 10, 20, 3, "Normal") | |
1608 | for i = 0, 1.4, 0.1 do | |
1609 | swait() | |
1610 | rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-1.25)*angles(math.rad(-20),math.rad(0),math.rad(0)),0.15) | |
1611 | tors.Neck.C0=clerp(tors.Neck.C0,necko*cf(0,0,0)*angles(math.rad(30),math.rad(0),math.rad(0)),0.15) | |
1612 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(10)), 0.3) | |
1613 | LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(-4.5)),0.15) | |
1614 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(90),math.rad(90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),0.15) | |
1615 | LH.C0=clerp(LH.C0,cf(-1,-1,-1)*angles(math.rad(-60),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15) | |
1616 | end | |
1617 | combo = 3 | |
1618 | end | |
1619 | if combo == 3 and wait2 == false then | |
1620 | wait2 = true | |
1621 | ||
1622 | for i = 0, 1.2, 0.1 do | |
1623 | swait() | |
1624 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-5), math.rad(0), math.rad(-15)), 0.3) | |
1625 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
1626 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.8) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.1) | |
1627 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3) | |
1628 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.2) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-0)), 0.3) | |
1629 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(15), math.rad(-20)), 0.3) | |
1630 | end | |
1631 | HitboxFunction(Wedge.CFrame * CFrame.new(0, 0, -.9), 0.01, 1, 1, 1, 7, 24, 36, 3, "Normal") | |
1632 | Effects.Ring.Create(BrickColor.new("Institutional white"), Wedge.CFrame, 2, 2, 2, 0.1, 0.1, 0.1, 0.03) | |
1633 | Slashy:Play() | |
1634 | for i = 0, 1.2, 0.1 do | |
1635 | swait() | |
1636 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(30)), 0.3) | |
1637 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
1638 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -1) * angles(math.rad(55), math.rad(0), math.rad(40)), 0.1) | |
1639 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3) | |
1640 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-15), math.rad(-20)), 0.3) | |
1641 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(-0), math.rad(0)), 0.3) | |
1642 | end | |
1643 | combo = 1 | |
1644 | end | |
1645 | hum.WalkSpeed = 16 | |
1646 | wait2 = false | |
1647 | attack = false | |
1648 | end | |
1649 | end) | |
1650 | ||
1651 | ||
1652 | ||
1653 | ||
1654 | ||
1655 | ||
1656 | function DashingSpin() | |
1657 | attack = true | |
1658 | hum.WalkSpeed = 50 | |
1659 | CreateSound("707957812", workspace, 5, 1) | |
1660 | Effects.Block.Create(BrickColor.new("Institutional white"), tors.CFrame, 2, 2, 2, 3.6, 3.6, 3.6, 0.05) | |
1661 | Effects.Block.Create(BrickColor.new("Really black"), tors.CFrame, 2, 2, 2, 3.4, 3.4, 3.4, 0.03) | |
1662 | Effects.Block.Create(BrickColor.new("Institutional white"), tors.CFrame, 2, 2, 2, 6.6, 6.6, 6.6, 0.05) | |
1663 | Effects.Block.Create(BrickColor.new("Really black"), tors.CFrame, 2, 2, 2, 6.4, 6.4, 6.4, 0.05) | |
1664 | Effects.Block.Create(BrickColor.new("Really black"), tors.CFrame, 2, 2, 2, 10.5, 10.5, 10.5, 0.05) | |
1665 | ||
1666 | Effects.Ring.Create(BrickColor.new("Institutional white"), tors.CFrame, 2, 2, 2, 7.6, 7.6, 7.6, 0.03) | |
1667 | Effects.Sphere.Create(maincolor, tors.CFrame, 2, 2, 2, 17.6, 17.6, 17.6, 0.02) | |
1668 | Effects.Sphere.Create(BrickColor.new("Dark indigo"), tors.CFrame, 2, 2, 2, 10.6, 10.6, 10.6, 0.02) | |
1669 | Effects.Sphere.Create(BrickColor.new("Dark indigo"), tors.CFrame, 2, 2, 2, 14.6, 14.6, 14.6, 0.02) | |
1670 | Effects.Sphere.Create(BrickColor.new("Dark indigo"), tors.CFrame, 2, 2, 2, 16.6, 16.6, 16.6, 0.02) | |
1671 | Effects.Sphere.Create(BrickColor.new("Dark indigo"), tors.CFrame, 2, 2, 2, 5.6, 5.6, 5.6, 0.02) | |
1672 | root.CFrame = root.CFrame + root.CFrame.lookVector * 35 | |
1673 | for i = 0,6,0.1 do | |
1674 | --Not to put a swait here this is going to be like, you know what just dont put a swait kthx | |
1675 | rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-1.25)*angles(math.rad(0),math.rad(0),math.rad(0)),0.15) | |
1676 | tors.Neck.C0=clerp(tors.Neck.C0,necko*cf(0,0,0)*angles(math.rad(30),math.rad(0),math.rad(0)),0.15) | |
1677 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(0), math.rad(110), math.rad(90)), 0.1) | |
1678 | LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.4,0)*angles(math.rad(0),math.rad(0),math.rad(-4.5)),0.15) | |
1679 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-60),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15) | |
1680 | LH.C0=clerp(LH.C0,cf(-0.75,0.25,-1)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),0.15) | |
1681 | HW.C0 = clerp(HW.C0, CFrame.new(0,-.9,0)*angles (math.rad(-90),math.rad(0),math.rad(90)), 0.15) | |
1682 | end | |
1683 | for i = 0,9,0.1 do | |
1684 | swait() | |
1685 | MagniDamage(Wedge, 12, 6, 12, 10, "Normal") | |
1686 | rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-1.25+0.45*i)*angles(math.rad(0),math.rad(0),math.rad(0-255.45*i)),0.15) | |
1687 | tors.Neck.C0=clerp(tors.Neck.C0,necko*cf(0,0,0)*angles(math.rad(30-5.35*i),math.rad(0),math.rad(0)),0.15) | |
1688 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(0), math.rad(110-25.35*i), math.rad(90)), 0.1) | |
1689 | LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.4,0)*angles(math.rad(0+17.35*i),math.rad(0-25.35*i),math.rad(-4.5)),0.15) | |
1690 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-60+10.35*i),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15) | |
1691 | LH.C0=clerp(LH.C0,cf(-0.75,0.25,-1)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),0.15) | |
1692 | HW.C0 = clerp(HW.C0, CFrame.new(0,-.9,0)*angles (math.rad(-90),math.rad(0),math.rad(90)), 0.15) | |
1693 | end | |
1694 | attack = false | |
1695 | hum.WalkSpeed = 38 | |
1696 | end | |
1697 | ||
1698 | ||
1699 | ||
1700 | ||
1701 | ||
1702 | ||
1703 | ||
1704 | mouse.KeyDown:connect(function(key) | |
1705 | if attack == false then | |
1706 | if key == 'q' then | |
1707 | NothingPersonal() | |
1708 | elseif key == 'c' then | |
1709 | CreateSound("367453005", hed, 10, 1) | |
1710 | Effects.Sphere.Create(maincolor, tors.CFrame * CFrame.new(0, -1.2, 0), 100, 100, 100, 15, 15, 15, .1, .1) | |
1711 | root.CFrame = CFrame.new(CFrame.new(mouse.Hit.p)*CFrame.new(0,2.8,0).p,root.Position) | |
1712 | Effects.Sphere.Create(maincolor, tors.CFrame * CFrame.new(0, -1.2, 0), 100, 100, 100, 15, 15, 15, .1, .1) | |
1713 | elseif key == 'f' then | |
1714 | DashingSpin() | |
1715 | elseif key == 't' then | |
1716 | CreateSound("649634100", hed, 10, .89) | |
1717 | end | |
1718 | end | |
1719 | end) | |
1720 | ||
1721 | ||
1722 | ||
1723 | ff = Instance.new("ForceField",char) | |
1724 | ff.Visible = false | |
1725 | ||
1726 | local idle=0 | |
1727 | local change = 1 | |
1728 | local val = 0 | |
1729 | toim = 0 | |
1730 | hum.Animator.Parent = nil | |
1731 | idleanim=.4 | |
1732 | while true do | |
1733 | swait() | |
1734 | hum.MaxHealth = math.huge | |
1735 | hum.Health = math.huge | |
1736 | hum.Name = "TheXEvent" | |
1737 | sine = sine + change | |
1738 | local torvel=(root.Velocity*Vector3.new(1,0,1)).magnitude | |
1739 | local velderp=root.Velocity.y | |
1740 | hitfloor,posfloor=rayCast(root.Position,(CFrame.new(root.Position,root.Position - Vector3.new(0,1,0))).lookVector,4,char) | |
1741 | if equipped==true or equipped==false then | |
1742 | if attack==false then | |
1743 | idle=idle+1 | |
1744 | else | |
1745 | idle=0 | |
1746 | end | |
1747 | if root.Velocity.y > 1 and hitfloor==nil then | |
1748 | Anim="Jump" | |
1749 | if attack==false then | |
1750 | rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/20))* angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
1751 | tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
1752 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(20)), 0.3) | |
1753 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3) | |
1754 | LH.C0=clerp(LH.C0,cf(-1,-.9-0.1*math.cos(sine/20),-0.3)*LHCF*angles(math.rad(-5),math.rad(-0),math.rad(20)),0.15) | |
1755 | RH.C0=clerp(RH.C0,cf(1,-1,0.3)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3) | |
1756 | end | |
1757 | elseif root.Velocity.y < -1 and hitfloor==nil then | |
1758 | Anim="Fall" | |
1759 | if attack==false then | |
1760 | rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/20))* angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1761 | tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
1762 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(90)), 0.3) | |
1763 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-90)), 0.3) | |
1764 | LH.C0=clerp(LH.C0,cf(-1,-.4-0.1*math.cos(sine/20),-.6)*LHCF*angles(math.rad(-5),math.rad(-0),math.rad(20)),0.15) | |
1765 | RH.C0=clerp(RH.C0,cf(1,-.3-0.1*math.cos(sine/20),-.6)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3) | |
1766 | end | |
1767 | elseif torvel<1 and hitfloor~=nil then | |
1768 | Anim="Idle" | |
1769 | change = 1 | |
1770 | if attack==false then | |
1771 | rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,0.6+0.5*math.cos(sine/20))*angles(math.rad(0),math.rad(0),math.rad(43)),0.15) | |
1772 | tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(-2.5*math.cos(sine/20)),math.rad(0),math.rad(-25)),.3) | |
1773 | RH.C0=clerp(RH.C0,cf(1,-.9-0.1*math.cos(sine/20),.025*math.cos(sine/20))*RHCF*angles(math.rad(-5),math.rad(0),math.rad(0)),0.15) | |
1774 | LH.C0=clerp(LH.C0,cf(-1,-.6-0.1*math.cos(sine/20),-.085)*LHCF*angles(math.rad(-5),math.rad(-0),math.rad(0)),0.15) | |
1775 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.1*math.sin(sine/30), 0.055*math.cos(sine/20)) * angles(math.rad(0),math.rad(-40), math.rad(15)), 0.1) | |
1776 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.1*math.sin(sine/30), 0.055*math.cos(sine/20)) * angles(math.rad(0), math.rad(-0), math.rad(-10)), 0.1) | |
1777 | HW.C0 = clerp(HW.C0, CFrame.new(0,-.9,0)*angles (math.rad(-90),math.rad(0),math.rad(90)), 0.15) | |
1778 | end | |
1779 | ||
1780 | elseif (tors.Velocity).magnitude < 50 and hitfloor ~= nil then | |
1781 | Anim="Walk" | |
1782 | change = 1 | |
1783 | if attack==false then | |
1784 | rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,0.6+0.5*math.cos(sine/20))*angles(math.rad(20),math.rad(0),math.rad(0)),0.15) | |
1785 | tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(-2.5*math.cos(sine/20)),math.rad(0),math.rad(-0)),.3) | |
1786 | RH.C0=clerp(RH.C0,cf(1,-.9-0.1*math.cos(sine/20),.025*math.cos(sine/20))*RHCF*angles(math.rad(-5),math.rad(0),math.rad(0)),0.15) | |
1787 | LH.C0=clerp(LH.C0,cf(-1,-.4-0.1*math.cos(sine/20),-.3)*LHCF*angles(math.rad(-5),math.rad(-0),math.rad(20)),0.15) | |
1788 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.1*math.sin(sine/30), 0.055*math.cos(sine/20)) * angles(math.rad(0),math.rad(-5), math.rad(15)), 0.1) | |
1789 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.1*math.sin(sine/30), 0.055*math.cos(sine/20)) * angles(math.rad(0), math.rad(-0), math.rad(-10)), 0.1) | |
1790 | HW.C0 = clerp(HW.C0, CFrame.new(0,-.9,0)*angles (math.rad(-90),math.rad(0),math.rad(90)), 0.15) | |
1791 | end | |
1792 | end | |
1793 | end | |
1794 | ||
1795 | if 0 < #Effects then | |
1796 | for e = 1, #Effects do | |
1797 | if Effects[e] ~= nil then | |
1798 | local Thing = Effects[e] | |
1799 | if Thing ~= nil then | |
1800 | local Part = Thing[1] | |
1801 | local Mode = Thing[2] | |
1802 | local Delay = Thing[3] | |
1803 | local IncX = Thing[4] | |
1804 | local IncY = Thing[5] | |
1805 | local IncZ = Thing[6] | |
1806 | if 1 >= Thing[1].Transparency then | |
1807 | if Thing[2] == "Block1" then | |
1808 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1809 | local Mesh = Thing[1].Mesh | |
1810 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1811 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1812 | elseif Thing[2] == "Block2" then | |
1813 | Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0) | |
1814 | local Mesh = Thing[7] | |
1815 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1816 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1817 | elseif Thing[2] == "Block3" then | |
1818 | 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) | |
1819 | local Mesh = Thing[7] | |
1820 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1821 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1822 | elseif Thing[2] == "Cylinder" then | |
1823 | local Mesh = Thing[1].Mesh | |
1824 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1825 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1826 | elseif Thing[2] == "Blood" then | |
1827 | local Mesh = Thing[7] | |
1828 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
1829 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1830 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1831 | elseif Thing[2] == "Elec" then | |
1832 | local Mesh = Thing[1].Mesh | |
1833 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
1834 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1835 | elseif Thing[2] == "Disappear" then | |
1836 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1837 | elseif Thing[2] == "Shatter" then | |
1838 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1839 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
1840 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
1841 | Thing[6] = Thing[6] + Thing[5] | |
1842 | end | |
1843 | else | |
1844 | Part.Parent = nil | |
1845 | table.remove(Effects, e) | |
1846 | end | |
1847 | end | |
1848 | end | |
1849 | end | |
1850 | end | |
1851 | if VALUE1 == false and attack == false then | |
1852 | intro() | |
1853 | end | |
1854 | end | |
1855 | ||
1856 | ||
1857 | --//=================================\\ | |
1858 | --|| WEAPON CREATION | |
1859 | --\\=================================// | |
1860 | ||
1861 | local Hole = CreatePart(3, Weapon, "Neon", 0, 0, "White", "Hole", VT(15,0,15)) | |
1862 | local MESH = MakeForm(Hole,"Cyl") | |
1863 | ||
1864 | for _, c in pairs(Weapon:GetChildren()) do | |
1865 | if c.ClassName == "Part" then | |
1866 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1867 | end | |
1868 | end | |
1869 | ||
1870 | Weapon.Parent = Character | |
1871 | ||
1872 | Humanoid.Died:connect(function() | |
1873 | ATTACK = true | |
1874 | end) | |
1875 | ||
1876 | ||
1877 | ||
1878 | --//=================================\\ | |
1879 | --|| DAMAGING | |
1880 | --\\=================================// | |
1881 | ||
1882 | function Sink(position,radius) | |
1883 | for i,v in ipairs(workspace:GetChildren()) do | |
1884 | if v:FindFirstChild("Hit2By"..Player.Name) == nil then | |
1885 | local body = v:GetChildren() | |
1886 | for part = 1, #body do | |
1887 | if(v:FindFirstChild("Hit2By"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1888 | if(body[part].Position - position).Magnitude < radius then | |
1889 | if v.ClassName == "Model" then | |
1890 | if v:FindFirstChild("Humanoid") then | |
1891 | local defence = Instance.new("BoolValue",v) | |
1892 | defence.Name = ("Hit2By"..Player.Name) | |
1893 | if v.Humanoid.Health ~= 0 then | |
1894 | local TORS = v:FindFirstChild("HumanoidRootPart") or v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso") | |
1895 | if TORS ~= nil then | |
1896 | local HITFLOOR2, HITPOS2 = Raycast(TORS.Position, (CF(TORS.Position, TORS.Position + VT(0, -1, 0))).lookVector, 5 * TORS.Size.Y/2, v) | |
1897 | coroutine.resume(coroutine.create(function() | |
1898 | if HITFLOOR2 ~= nil then | |
1899 | TORS.Anchored = true | |
1900 | local Hole2 = CreatePart(3, Effects, "Neon", 0, 0, "White", "Hole", VT(TORS.Size.X*4,0,TORS.Size.X*4)) | |
1901 | Hole2.Color = C3(0,0,0) | |
1902 | local MESH = MakeForm(Hole2,"Cyl") | |
1903 | MESH.Scale = VT(0,1,0) | |
1904 | Hole2.CFrame = CF(HITPOS2) | |
1905 | for i = 1, 10 do | |
1906 | Swait() | |
1907 | MESH.Scale = MESH.Scale + VT(0.1,0,0.1) | |
1908 | end | |
1909 | repeat | |
1910 | Swait() | |
1911 | TORS.CFrame = TORS.CFrame * CF(0,-0.1,0) | |
1912 | until TORS.Position.Y<position.Y-4 | |
1913 | v:remove() | |
1914 | for i = 1, 10 do | |
1915 | Swait() | |
1916 | MESH.Scale = MESH.Scale - VT(0.1,0,0.1) | |
1917 | end | |
1918 | Hole2:remove() | |
1919 | end | |
1920 | end)) | |
1921 | end | |
1922 | end | |
1923 | end | |
1924 | end | |
1925 | --body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
1926 | end | |
1927 | end | |
1928 | end | |
1929 | end | |
1930 | end | |
1931 | end | |
1932 | ||
1933 | --//=================================\\ | |
1934 | --|| ATTACK FUNCTIONS AND STUFF | |
1935 | --\\=================================// | |
1936 | ||
1937 | function Trail(Part) | |
1938 | local TRAIL = Part:Clone() | |
1939 | TRAIL.CanCollide = false | |
1940 | TRAIL.Anchored = true | |
1941 | TRAIL.Parent = Effects | |
1942 | TRAIL.Name = "Trail" | |
1943 | local TRANS = Part.Transparency | |
1944 | coroutine.resume(coroutine.create(function() | |
1945 | for i = 1, 20 do | |
1946 | Swait() | |
1947 | TRAIL.Transparency = TRAIL.Transparency + ((1-TRANS)/20) | |
1948 | end | |
1949 | TRAIL:remove() | |
1950 | end)) | |
1951 | end | |
1952 | ||
1953 | function AttackTemplate() | |
1954 | ATTACK = true | |
1955 | Rooted = false | |
1956 | for i=0, 1, 0.1 / Animation_Speed do | |
1957 | Swait() | |
1958 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1959 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1960 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1961 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1962 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1963 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1964 | end | |
1965 | ATTACK = false | |
1966 | Rooted = false | |
1967 | end | |
1968 | ||
1969 | function Intro() | |
1970 | coroutine.resume(coroutine.create(function() | |
1971 | ATTACK = true | |
1972 | Rooted = true | |
1973 | UNANCHOR = false | |
1974 | RootPart.Anchored = true | |
1975 | for i=0, 2, 0.1 / Animation_Speed do | |
1976 | Swait() | |
1977 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1978 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1979 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1980 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1981 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1982 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1983 | end | |
1984 | for i=0, 4, 0.1 / Animation_Speed do | |
1985 | Swait() | |
1986 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -10 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1987 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1988 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1989 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1990 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1991 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1992 | end | |
1993 | VALUE1 = true | |
1994 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eye", VT(0.2,0.3,0.1),false) | |
1995 | local weld = CreateWeldOrSnapOrMotor("Weld", part, Head, part, CF(0.16,0.25,-0.5) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, 0, 0)) | |
1996 | MakeForm(part,"Ball") | |
1997 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eye", VT(0.2,0.3,0.1),false) | |
1998 | local weld = CreateWeldOrSnapOrMotor("Weld", part, Head, part, CF(-0.16,0.25,-0.5) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0)) | |
1999 | MakeForm(part,"Ball") | |
2000 | Swait(15) | |
2001 | Humanoid.HipHeight = 2 | |
2002 | sick:Play() | |
2003 | CreateSound("649634100", Head, 10, 0.6) | |
2004 | for i=0, 2, 0.1 / Animation_Speed do | |
2005 | Swait() | |
2006 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2007 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2008 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2009 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2010 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.15 * COS(SINE / 12), -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(15)), 0.15 / Animation_Speed) | |
2011 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1, -0.6 - 0.15 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(45)), 0.15 / Animation_Speed) | |
2012 | end | |
2013 | UNANCHOR = true | |
2014 | ATTACK = false | |
2015 | Rooted = false | |
2016 | end)) | |
2017 | end | |
2018 | ||
2019 | function Warp() | |
2020 | ATTACK = true | |
2021 | Rooted = true | |
2022 | UNANCHOR = false | |
2023 | RootPart.Anchored = true | |
2024 | for i=0, 1, 0.1 / Animation_Speed do | |
2025 | Swait() | |
2026 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.3) * ANGLES(RAD(180), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2027 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2028 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 1.5, 0) * ANGLES(RAD(180), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2029 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 1.5, 0) * ANGLES(RAD(180), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2030 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2031 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2032 | end | |
2033 | for i=0, 1, 0.1 / Animation_Speed do | |
2034 | Swait() | |
2035 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -15) * ANGLES(RAD(180), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2036 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2037 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 1.5, 0) * ANGLES(RAD(180), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2038 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 1.5, 0) * ANGLES(RAD(180), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2039 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2040 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2041 | end | |
2042 | for i = 1, 50 do | |
2043 | Swait() | |
2044 | Trail(Hole) | |
2045 | MESH.Scale = MESH.Scale - VT(0.02,0,0.02) | |
2046 | end | |
2047 | local ORIGINPOS = RootPart.Position | |
2048 | RootPart.CFrame = CF(VT(Mouse.Hit.p.X,RootPart.Position.Y,Mouse.Hit.p.Z),ORIGINPOS) | |
2049 | CreateSound("466493476", Hole, 10, 1) | |
2050 | for i = 1, 50 do | |
2051 | Swait() | |
2052 | MESH.Scale = MESH.Scale + VT(0.02,0,0.02) | |
2053 | end | |
2054 | for i=0, 2, 0.1 / Animation_Speed do | |
2055 | Swait() | |
2056 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2057 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2058 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2059 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2060 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.15 * COS(SINE / 12), -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(15)), 0.15 / Animation_Speed) | |
2061 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1, -0.6 - 0.15 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(45)), 0.15 / Animation_Speed) | |
2062 | end | |
2063 | UNANCHOR = true | |
2064 | ATTACK = false | |
2065 | Rooted = false | |
2066 | end | |
2067 | ||
2068 | function Sinkhole() | |
2069 | coroutine.resume(coroutine.create(function() | |
2070 | local Hole2 = CreatePart(3, Effects, "Neon", 0, 0, "White", "Hole", VT(15,0,15)) | |
2071 | Hole2.Color = C3(0,0,0) | |
2072 | local MESH = MakeForm(Hole2,"Cyl") | |
2073 | MESH.Scale = VT(0,1,0) | |
2074 | Hole2.CFrame = CF(Mouse.Hit.p) | |
2075 | CreateSound("466493476", Hole2, 10, 1) | |
2076 | for i = 1, 50 do | |
2077 | Swait() | |
2078 | MESH.Scale = MESH.Scale + VT(0.02,0,0.02) | |
2079 | end | |
2080 | for i = 1, 200 do | |
2081 | Swait() | |
2082 | Sink(Hole2.Position,Hole2.Size.X/2.2) | |
2083 | end | |
2084 | Swait(100) | |
2085 | for i = 1, 50 do | |
2086 | Swait() | |
2087 | Trail(Hole2) | |
2088 | MESH.Scale = MESH.Scale - VT(0.02,0,0.02) | |
2089 | end | |
2090 | Hole2:remove() | |
2091 | end)) | |
2092 | end | |
2093 | ||
2094 | function AbyssGate() | |
2095 | VALUE2 = true | |
2096 | coroutine.resume(coroutine.create(function() | |
2097 | CreateSound("466493476", Hole, 10, 0.1) | |
2098 | for i = 1, 500 do | |
2099 | Swait() | |
2100 | Hole.Size = Hole.Size + VT(1,0,1) | |
2101 | end | |
2102 | Swait(100) | |
2103 | for i = 1, 500 do | |
2104 | Swait() | |
2105 | Trail(Hole) | |
2106 | Hole.Size = Hole.Size - VT(1,0,1) | |
2107 | end | |
2108 | VALUE2 = false | |
2109 | end)) | |
2110 | end | |
2111 | ||
2112 | --//=================================\\ | |
2113 | --|| ASSIGN THINGS TO KEYS | |
2114 | --\\=================================// | |
2115 | ||
2116 | function MouseDown(Mouse) | |
2117 | if ATTACK == false then | |
2118 | end | |
2119 | end | |
2120 | ||
2121 | function MouseUp(Mouse) | |
2122 | HOLD = false | |
2123 | end | |
2124 | ||
2125 | function KeyDown(Key) | |
2126 | KEYHOLD = true | |
2127 | if Key == "q" and ATTACK == false and HITFLOOR ~= nil and VALUE2 == false then | |
2128 | Warp() | |
2129 | end | |
2130 | ||
2131 | if Key == "e" and ATTACK == false then | |
2132 | Sinkhole() | |
2133 | end | |
2134 | ||
2135 | if Key == "r" and ATTACK == false and VALUE2 == false then | |
2136 | AbyssGate() | |
2137 | end | |
2138 | ||
2139 | if Key == "t" and ATTACK == false then | |
2140 | CreateSound("649634100", Head, 10, 0.6) | |
2141 | end | |
2142 | end | |
2143 | ||
2144 | function KeyUp(Key) | |
2145 | KEYHOLD = false | |
2146 | end | |
2147 | ||
2148 | Mouse.Button1Down:connect(function(NEWKEY) | |
2149 | MouseDown(NEWKEY) | |
2150 | end) | |
2151 | Mouse.Button1Up:connect(function(NEWKEY) | |
2152 | MouseUp(NEWKEY) | |
2153 | end) | |
2154 | Mouse.KeyDown:connect(function(NEWKEY) | |
2155 | KeyDown(NEWKEY) | |
2156 | end) | |
2157 | Mouse.KeyUp:connect(function(NEWKEY) | |
2158 | KeyUp(NEWKEY) | |
2159 | end) | |
2160 | ||
2161 | --//=================================\\ | |
2162 | --\\=================================// | |
2163 | ||
2164 | ||
2165 | function unanchor() | |
2166 | if UNANCHOR == true then | |
2167 | g = Character:GetChildren() | |
2168 | for i = 1, #g do | |
2169 | if g[i].ClassName == "Part" then | |
2170 | g[i].Anchored = false | |
2171 | end | |
2172 | end | |
2173 | end | |
2174 | end | |
2175 | ||
2176 | ||
2177 | --//=================================\\ | |
2178 | --|| WRAP THE WHOLE SCRIPT UP | |
2179 | --\\=================================// | |
2180 | ||
2181 | Humanoid.Changed:connect(function(Jump) | |
2182 | if Jump == "Jump" and (Disable_Jump == true) then | |
2183 | Humanoid.Jump = false | |
2184 | end | |
2185 | end) | |
2186 | ||
2187 | Speed = 10 | |
2188 | ||
2189 | while true do | |
2190 | Swait() | |
2191 | ANIMATE.Parent = nil | |
2192 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
2193 | IDLEANIMATION:Play() | |
2194 | SINE = SINE + CHANGE | |
2195 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
2196 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
2197 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
2198 | HITFLOOR, HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25 * Player_Size, Character) | |
2199 | if ATTACK == false then | |
2200 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2201 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2202 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2203 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2204 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.15 * COS(SINE / 12), -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(15)), 0.15 / Animation_Speed) | |
2205 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1, -0.6 - 0.15 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(25)), 0.15 / Animation_Speed) | |
2206 | end | |
2207 | if HITFLOOR ~= nil then | |
2208 | Hole.CFrame = CF(HITPOS) | |
2209 | end | |
2210 | Sink(Hole.Position,Hole.Size.X/2.2*MESH.Scale.X) | |
2211 | Hole.Color = C3(0,0,0) | |
2212 | unanchor() | |
2213 | Humanoid.MaxHealth = "inf" | |
2214 | Humanoid.Health = "inf" | |
2215 | if Rooted == false then | |
2216 | Disable_Jump = false | |
2217 | Humanoid.WalkSpeed = Speed | |
2218 | elseif Rooted == true then | |
2219 | Disable_Jump = true | |
2220 | Humanoid.WalkSpeed = 0 | |
2221 | end | |
2222 | if VALUE1 == true then | |
2223 | Humanoid.HipHeight = 2 | |
2224 | q = Character:GetChildren() | |
2225 | for u = 1, #q do | |
2226 | if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then | |
2227 | q[u]:remove() | |
2228 | elseif q[u].ClassName == "Shirt" then | |
2229 | q[u]:Destroy() | |
2230 | elseif q[u].ClassName == "Pants" then | |
2231 | q[u]:Destroy() | |
2232 | elseif q[u].ClassName == "CharacterMesh" then | |
2233 | q[u]:remove() | |
2234 | elseif q[u].ClassName == "ShirtGraphic" then | |
2235 | q[u]:remove() | |
2236 | elseif q[u].ClassName == "Part" and q[u].Name ~= "HumanoidRootPart" then | |
2237 | q[u].Color = Color3.new(0,0,0) | |
2238 | q[u].Material = "Neon" | |
2239 | end | |
2240 | end | |
2241 | if Head:FindFirstChild("Mesh") then | |
2242 | local mesh = Head.Mesh | |
2243 | if mesh.ClassName == "SpecialMesh" then | |
2244 | mesh:remove() | |
2245 | local m = IT("BlockMesh",Head) | |
2246 | m.Scale = VT(0.5,1,1) | |
2247 | end | |
2248 | end | |
2249 | if Head:FindFirstChild("face") then | |
2250 | Head.face:remove() | |
2251 | end | |
2252 | end | |
2253 | if VALUE1 == false and ATTACK == false then | |
2254 | Intro() | |
2255 | end | |
2256 | end | |
2257 | ||
2258 | --//=================================\\ | |
2259 | --\\=================================// |