SHOW:
|
|
- or go back to the newest paste.
1 | - | ----------------------- |
1 | + | if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end |
2 | - | --[[ Name : Wanderer ]]-- |
2 | + | print("FE Compatibility: by WaverlyCole & Mokiros") |
3 | InternalData = {} | |
4 | - | --A script By makhail07 |
4 | + | do |
5 | script.Parent = owner.Character | |
6 | local Event = Instance.new("RemoteEvent") | |
7 | Event.Name = "UserInput" | |
8 | - | --NOTE THIS SCRIPT WAS PURELY MADE FROM MY FUCKING IMAGINATION |
8 | + | local function NewFakeEvent() |
9 | - | --IF IT HAPPENS TO LOOK LIKE ANOTHER SCRIPT |
9 | + | local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect |
10 | - | --DONT CALL IT A FUCKING BOOTLEG THANK YOU AND ENJOY THE SCRIPT |
10 | + | return Fake |
11 | - | --YOU FUCKING SKIDS, |
11 | + | |
12 | - | --For Those who log/decompile this, If you sell or trade this, |
12 | + | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} |
13 | - | --and I find out who you are, i will take massive action. |
13 | + | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} |
14 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) | |
15 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil | |
16 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
17 | local function TriggerEvent(self,Event,...) | |
18 | local Trigger = Mouse[Event] | |
19 | if Trigger and Trigger.fakeEvent and Trigger.Function then | |
20 | Trigger.Function(...) | |
21 | end | |
22 | end | |
23 | Mouse.TrigEvent = TriggerEvent | |
24 | UserInputService.TrigEvent = TriggerEvent | |
25 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
26 | if FiredBy.Name ~= owner.Name then end | |
27 | if Input.MouseEvent then | |
28 | Mouse.Target = Input.Target | |
29 | Mouse.Hit = Input.Hit | |
30 | else | |
31 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
32 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then | |
33 | return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") | |
34 | end | |
35 | for _,Action in pairs(ContextActionService.Actions) do | |
36 | for _,Key in pairs(Action.Keys) do | |
37 | if Key==Input.KeyCode then | |
38 | Action.Function(Action.Name,Input.UserInputState,Input) | |
39 | end | |
40 | end | |
41 | end | |
42 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
43 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
44 | end | |
45 | end) | |
46 | InternalData["Mouse"] = Mouse | |
47 | InternalData["ContextActionService"] = ContextActionService | |
48 | InternalData["UserInputService"] = UserInputService | |
49 | Event.Parent = NLS([[ | |
50 | local Player = owner | |
51 | local Event = script:WaitForChild("UserInput") | |
52 | local UserInputService = game:GetService("UserInputService") | |
53 | local Mouse = Player:GetMouse() | |
54 | local Input = function(Input,gameProcessedEvent) | |
55 | if gameProcessedEvent then return end | |
56 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) | |
57 | end | |
58 | UserInputService.InputBegan:Connect(Input) | |
59 | UserInputService.InputEnded:Connect(Input) | |
60 | local Hit,Target | |
61 | while wait(1/30) do | |
62 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
63 | Hit,Target = Mouse.Hit,Mouse.Target | |
64 | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) | |
65 | end | |
66 | end | |
67 | ]],owner.Character) | |
68 | end | |
69 | RealGame = game;game = setmetatable({},{ | |
70 | __index = function (self,Index) | |
71 | local Sandbox = function (Thing) | |
72 | if Thing:IsA("Player") then | |
73 | local RealPlayer = Thing | |
74 | return setmetatable({},{ | |
75 | __index = function (self,Index) | |
76 | local Type = type(RealPlayer[Index]) | |
77 | if Type == "function" then | |
78 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
79 | return function (self) | |
80 | return InternalData["Mouse"] | |
81 | end | |
82 | end | |
83 | return function (self,...) | |
84 | return RealPlayer[Index](RealPlayer,...) | |
85 | end | |
86 | else | |
87 | return RealPlayer[Index] | |
88 | end | |
89 | end; | |
90 | __tostring = function(self) | |
91 | return RealPlayer.Name | |
92 | end | |
93 | }) | |
94 | end | |
95 | end | |
96 | if RealGame[Index] then | |
97 | local Type = type(RealGame[Index]) | |
98 | if Type == "function" then | |
99 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
100 | return function (self,Service) | |
101 | if Service:lower() == "players" then | |
102 | return setmetatable({},{ | |
103 | __index = function (self2,Index2) | |
104 | local RealService = RealGame:GetService(Service) | |
105 | local Type2 = type(Index2) | |
106 | if Type2 == "function" then | |
107 | return function (self,...) | |
108 | return RealService[Index2](RealService,...) | |
109 | end | |
110 | else | |
111 | if Index2:lower() == "localplayer" then | |
112 | return Sandbox(owner) | |
113 | end | |
114 | return RealService[Index2] | |
115 | end | |
116 | end; | |
117 | __tostring = function(self) | |
118 | return RealGame:GetService(Service).Name | |
119 | end | |
120 | }) | |
121 | elseif Service:lower() == "contextactionservice" then | |
122 | return InternalData["ContextActionService"] | |
123 | elseif Service:lower() == "contextactionservice" then | |
124 | return InternalData["UserInputService"] | |
125 | elseif Service:lower() == "runservice" then | |
126 | return setmetatable({},{ | |
127 | __index = function(self2,Index2) | |
128 | local RealService = RealGame:GetService(Service) | |
129 | local Type2 = type(Index2) | |
130 | if Type2 == "function" then | |
131 | return function (self,...) | |
132 | return RealService[Index2](RealService,...) | |
133 | end | |
134 | else | |
135 | if Index2:lower() == "bindtorenderstep" then | |
136 | return function (self,Name,Priority,Function) | |
137 | return RealGame:GetService("RunService").Stepped:Connect(Function) | |
138 | end | |
139 | end | |
140 | if Index2:lower() == "renderstepped" then | |
141 | return RealService["Stepped"] | |
142 | end | |
143 | return RealService[Index2] | |
144 | end | |
145 | end | |
146 | }) | |
147 | else | |
148 | return RealGame:GetService(Service) | |
149 | end | |
150 | end | |
151 | end | |
152 | return function (self,...) | |
153 | return RealGame[Index](RealGame,...) | |
154 | end | |
155 | else | |
156 | if game:GetService(Index) then | |
157 | return game:GetService(Index) | |
158 | end | |
159 | return RealGame[Index] | |
160 | end | |
161 | else | |
162 | return nil | |
163 | end | |
164 | end | |
165 | });Game = game;owner = game:GetService("Players").LocalPlayer | |
166 | print("Complete! Running... Created by Creterisk / Makhail07 ") | |
167 | ||
168 | --Discord Creterisk#2958 | |
169 | ||
170 | ||
171 | ------------------------------------------------------- | |
172 | ||
173 | local FavIDs = { | |
174 | 340106355, --Nefl Crystals | |
175 | 927529620, --Dimension | |
176 | 876981900, --Fantasy | |
177 | 398987889, --Ordinary Days | |
178 | 1117396305, --Oh wait, it's you. | |
179 | 885996042, --Action Winter Journey | |
180 | 919231299, --Sprawling Idiot Effigy | |
181 | 743466274, --Good Day Sunshine | |
182 | 727411183, --Knife Fight | |
183 | 1402748531, --The Earth Is Counting On You! | |
184 | 595230126 --Robot Language | |
185 | } | |
186 | ||
187 | ||
188 | ||
189 | --The reality of my life isn't real but a Universe -makhail07 | |
190 | wait(0.2) | |
191 | local plr = game:service'Players'.LocalPlayer | |
192 | print('Local User is '..plr.Name) | |
193 | print('Wanderer Loaded') | |
194 | print('A lone Wanderer searching for hope.') | |
195 | local char = plr.Character | |
196 | local hum = char.Humanoid | |
197 | local hed = char.Head | |
198 | local root = char.HumanoidRootPart | |
199 | local rootj = root.RootJoint | |
200 | local tors = char.Torso | |
201 | local ra = char["Right Arm"] | |
202 | local la = char["Left Arm"] | |
203 | local rl = char["Right Leg"] | |
204 | local ll = char["Left Leg"] | |
205 | local neck = tors["Neck"] | |
206 | local mouse = plr:GetMouse() | |
207 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
208 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
209 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
210 | local maincolor = BrickColor.new("Cool yellow") | |
211 | ||
212 | ------------------------------------------------------- | |
213 | --Start Good Stuff-- | |
214 | ------------------------------------------------------- | |
215 | cam = game.Workspace.CurrentCamera | |
216 | CF = CFrame.new | |
217 | angles = CFrame.Angles | |
218 | attack = false | |
219 | Euler = CFrame.fromEulerAnglesXYZ | |
220 | Rad = math.rad | |
221 | IT = Instance.new | |
222 | BrickC = BrickColor.new | |
223 | Cos = math.cos | |
224 | Acos = math.acos | |
225 | Sin = math.sin | |
226 | Asin = math.asin | |
227 | Abs = math.abs | |
228 | Mrandom = math.random | |
229 | Floor = math.floor | |
230 | ------------------------------------------------------- | |
231 | --End Good Stuff-- | |
232 | ------------------------------------------------------- | |
233 | necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
234 | RSH, LSH = nil, nil | |
235 | RW = Instance.new("Weld") | |
236 | LW = Instance.new("Weld") | |
237 | RH = tors["Right Hip"] | |
238 | LH = tors["Left Hip"] | |
239 | RSH = tors["Right Shoulder"] | |
240 | LSH = tors["Left Shoulder"] | |
241 | RSH.Parent = nil | |
242 | LSH.Parent = nil | |
243 | RW.Name = "RW" | |
244 | RW.Part0 = tors | |
245 | RW.C0 = CF(1.5, 0.5, 0) | |
246 | RW.C1 = CF(0, 0.5, 0) | |
247 | RW.Part1 = ra | |
248 | RW.Parent = tors | |
249 | LW.Name = "LW" | |
250 | LW.Part0 = tors | |
251 | LW.C0 = CF(-1.5, 0.5, 0) | |
252 | LW.C1 = CF(0, 0.5, 0) | |
253 | LW.Part1 = la | |
254 | LW.Parent = tors | |
255 | Effects = {} | |
256 | ------------------------------------------------------- | |
257 | --Start HeartBeat-- | |
258 | ------------------------------------------------------- | |
259 | ArtificialHB = Instance.new("BindableEvent", script) | |
260 | ArtificialHB.Name = "Heartbeat" | |
261 | script:WaitForChild("Heartbeat") | |
262 | ||
263 | frame = 1 / 60 | |
264 | tf = 0 | |
265 | allowframeloss = false | |
266 | tossremainder = false | |
267 | ||
268 | ||
269 | lastframe = tick() | |
270 | script.Heartbeat:Fire() | |
271 | ||
272 | ||
273 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
274 | tf = tf + s | |
275 | if tf >= frame then | |
276 | if allowframeloss then | |
277 | script.Heartbeat:Fire() | |
278 | lastframe = tick() | |
279 | else | |
280 | for i = 1, math.floor(tf / frame) do | |
281 | script.Heartbeat:Fire() | |
282 | end | |
283 | lastframe = tick() | |
284 | end | |
285 | if tossremainder then | |
286 | tf = 0 | |
287 | else | |
288 | tf = tf - frame * math.floor(tf / frame) | |
289 | end | |
290 | end | |
291 | end) | |
292 | ------------------------------------------------------- | |
293 | --End HeartBeat-- | |
294 | ------------------------------------------------------- | |
295 | ||
296 | ------------------------------------------------------- | |
297 | --Start Important Functions-- | |
298 | ------------------------------------------------------- | |
299 | function swait(num) | |
300 | if num == 0 or num == nil then | |
301 | game:service("RunService").Stepped:wait(0) | |
302 | else | |
303 | for i = 0, num do | |
304 | game:service("RunService").Stepped:wait(0) | |
305 | end | |
306 | end | |
307 | end | |
308 | function thread(f) | |
309 | coroutine.resume(coroutine.create(f)) | |
310 | end | |
311 | function clerp(a, b, t) | |
312 | local qa = { | |
313 | QuaternionFromCFrame(a) | |
314 | } | |
315 | local qb = { | |
316 | QuaternionFromCFrame(b) | |
317 | } | |
318 | local ax, ay, az = a.x, a.y, a.z | |
319 | local bx, by, bz = b.x, b.y, b.z | |
320 | local _t = 1 - t | |
321 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
322 | end | |
323 | function QuaternionFromCFrame(cf) | |
324 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
325 | local trace = m00 + m11 + m22 | |
326 | if trace > 0 then | |
327 | local s = math.sqrt(1 + trace) | |
328 | local recip = 0.5 / s | |
329 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
330 | else | |
331 | local i = 0 | |
332 | if m00 < m11 then | |
333 | i = 1 | |
334 | end | |
335 | if m22 > (i == 0 and m00 or m11) then | |
336 | i = 2 | |
337 | end | |
338 | if i == 0 then | |
339 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
340 | local recip = 0.5 / s | |
341 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
342 | elseif i == 1 then | |
343 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
344 | local recip = 0.5 / s | |
345 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
346 | elseif i == 2 then | |
347 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
348 | local recip = 0.5 / s | |
349 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
350 | end | |
351 | end | |
352 | end | |
353 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
354 | local xs, ys, zs = x + x, y + y, z + z | |
355 | local wx, wy, wz = w * xs, w * ys, w * zs | |
356 | local xx = x * xs | |
357 | local xy = x * ys | |
358 | local xz = x * zs | |
359 | local yy = y * ys | |
360 | local yz = y * zs | |
361 | local zz = z * zs | |
362 | 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)) | |
363 | end | |
364 | function QuaternionSlerp(a, b, t) | |
365 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
366 | local startInterp, finishInterp | |
367 | if cosTheta >= 1.0E-4 then | |
368 | if 1 - cosTheta > 1.0E-4 then | |
369 | local theta = math.acos(cosTheta) | |
370 | local invSinTheta = 1 / Sin(theta) | |
371 | startInterp = Sin((1 - t) * theta) * invSinTheta | |
372 | finishInterp = Sin(t * theta) * invSinTheta | |
373 | else | |
374 | startInterp = 1 - t | |
375 | finishInterp = t | |
376 | end | |
377 | elseif 1 + cosTheta > 1.0E-4 then | |
378 | local theta = math.acos(-cosTheta) | |
379 | local invSinTheta = 1 / Sin(theta) | |
380 | startInterp = Sin((t - 1) * theta) * invSinTheta | |
381 | finishInterp = Sin(t * theta) * invSinTheta | |
382 | else | |
383 | startInterp = t - 1 | |
384 | finishInterp = t | |
385 | end | |
386 | 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 | |
387 | end | |
388 | function rayCast(Position, Direction, Range, Ignore) | |
389 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
390 | end | |
391 | local RbxUtility = LoadLibrary("RbxUtility") | |
392 | local Create = RbxUtility.Create | |
393 | ||
394 | ------------------------------------------------------- | |
395 | --Start Damage Function-- | |
396 | ------------------------------------------------------- | |
397 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
398 | if hit.Parent == nil then | |
399 | return | |
400 | end | |
401 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
402 | for _, v in pairs(hit.Parent:children()) do | |
403 | if v:IsA("Humanoid") then | |
404 | h = v | |
405 | end | |
406 | end | |
407 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then | |
408 | ||
409 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
410 | end | |
411 | ||
412 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
413 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
414 | if hit.Parent.DebounceHit.Value == true then | |
415 | return | |
416 | end | |
417 | end | |
418 | if insta == true then | |
419 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
420 | end | |
421 | local c = Create("ObjectValue"){ | |
422 | Name = "creator", | |
423 | Value = game:service("Players").LocalPlayer, | |
424 | Parent = h, | |
425 | } | |
426 | game:GetService("Debris"):AddItem(c, .5) | |
427 | if HitSound ~= nil and HitPitch ~= nil then | |
428 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
429 | end | |
430 | local Damage = math.random(minim, maxim) | |
431 | local blocked = false | |
432 | local block = hit.Parent:findFirstChild("Block") | |
433 | if block ~= nil then | |
434 | if block.className == "IntValue" then | |
435 | if block.Value > 0 then | |
436 | blocked = true | |
437 | block.Value = block.Value - 1 | |
438 | print(block.Value) | |
439 | end | |
440 | end | |
441 | end | |
442 | if blocked == false then | |
443 | h.Health = h.Health - Damage | |
444 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
445 | else | |
446 | h.Health = h.Health - (Damage / 2) | |
447 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
448 | end | |
449 | if Type == "Knockdown" then | |
450 | local hum = hit.Parent.Humanoid | |
451 | hum.PlatformStand = true | |
452 | coroutine.resume(coroutine.create(function(HHumanoid) | |
453 | swait(1) | |
454 | HHumanoid.PlatformStand = false | |
455 | end), hum) | |
456 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
457 | local bodvol = Create("BodyVelocity"){ | |
458 | velocity = angle * knockback, | |
459 | P = 5000, | |
460 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
461 | Parent = hit, | |
462 | } | |
463 | local rl = Create("BodyAngularVelocity"){ | |
464 | P = 3000, | |
465 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
466 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
467 | Parent = hit, | |
468 | } | |
469 | game:GetService("Debris"):AddItem(bodvol, .5) | |
470 | game:GetService("Debris"):AddItem(rl, .5) | |
471 | elseif Type == "Normal" then | |
472 | local vp = Create("BodyVelocity"){ | |
473 | P = 500, | |
474 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
475 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
476 | } | |
477 | if knockback > 0 then | |
478 | vp.Parent = hit.Parent.Torso | |
479 | end | |
480 | game:GetService("Debris"):AddItem(vp, .5) | |
481 | elseif Type == "Up" then | |
482 | local bodyVelocity = Create("BodyVelocity"){ | |
483 | velocity = Vector3.new(0, 20, 0), | |
484 | P = 5000, | |
485 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
486 | Parent = hit, | |
487 | } | |
488 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
489 | elseif Type == "Firedmg" then | |
490 | coroutine.resume(coroutine.create(function() | |
491 | for i = 1, 18 do | |
492 | if hit.Parent:FindFirstChild("Torso") ~= nil then | |
493 | BlockEffect(BrickColor.new("Daisy orange"), hit.Parent.Head.CFrame, 0, 0, 0, 2, 2, 2, 0.035, 1) | |
494 | wait() | |
495 | end | |
496 | end | |
497 | end)) | |
498 | elseif Type == "DarkUp" then | |
499 | coroutine.resume(coroutine.create(function() | |
500 | for i = 0, 1, 0.1 do | |
501 | swait() | |
502 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
503 | end | |
504 | end)) | |
505 | local bodyVelocity = Create("BodyVelocity"){ | |
506 | velocity = Vector3.new(0, 20, 0), | |
507 | P = 5000, | |
508 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
509 | Parent = hit, | |
510 | } | |
511 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
512 | elseif Type == "Snare" then | |
513 | local bp = Create("BodyPosition"){ | |
514 | P = 2000, | |
515 | D = 100, | |
516 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
517 | position = hit.Parent.Torso.Position, | |
518 | Parent = hit.Parent.Torso, | |
519 | } | |
520 | game:GetService("Debris"):AddItem(bp, 1) | |
521 | elseif Type == "Freeze" then | |
522 | local BodPos = Create("BodyPosition"){ | |
523 | P = 50000, | |
524 | D = 1000, | |
525 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
526 | position = hit.Parent.Torso.Position, | |
527 | Parent = hit.Parent.Torso, | |
528 | } | |
529 | local BodGy = Create("BodyGyro") { | |
530 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
531 | P = 20e+003, | |
532 | Parent = hit.Parent.Torso, | |
533 | cframe = hit.Parent.Torso.CFrame, | |
534 | } | |
535 | hit.Parent.Torso.Anchored = true | |
536 | coroutine.resume(coroutine.create(function(Part) | |
537 | swait(1.5) | |
538 | Part.Anchored = false | |
539 | end), hit.Parent.Torso) | |
540 | game:GetService("Debris"):AddItem(BodPos, 3) | |
541 | game:GetService("Debris"):AddItem(BodGy, 3) | |
542 | end | |
543 | local debounce = Create("BoolValue"){ | |
544 | Name = "DebounceHit", | |
545 | Parent = hit.Parent, | |
546 | Value = true, | |
547 | } | |
548 | game:GetService("Debris"):AddItem(debounce, Delay) | |
549 | c = Create("ObjectValue"){ | |
550 | Name = "creator", | |
551 | Value = Player, | |
552 | Parent = h, | |
553 | } | |
554 | game:GetService("Debris"):AddItem(c, .5) | |
555 | end | |
556 | end | |
557 | ------------------------------------------------------- | |
558 | --End Damage Function-- | |
559 | ------------------------------------------------------- | |
560 | ||
561 | ------------------------------------------------------- | |
562 | --Start Damage Function Customization-- | |
563 | ------------------------------------------------------- | |
564 | function ShowDamage(Pos, Text, Time, Color) | |
565 | local Rate = (1 / 30) | |
566 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
567 | local Text = (Text or "") | |
568 | local Time = (Time or 2) | |
569 | local Color = (Color or Color3.new(1, 0, 1)) | |
570 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
571 | EffectPart.Anchored = true | |
572 | local BillboardGui = Create("BillboardGui"){ | |
573 | Size = UDim2.new(3, 0, 3, 0), | |
574 | Adornee = EffectPart, | |
575 | Parent = EffectPart, | |
576 | } | |
577 | local TextLabel = Create("TextLabel"){ | |
578 | BackgroundTransparency = 1, | |
579 | Size = UDim2.new(1, 0, 1, 0), | |
580 | Text = Text, | |
581 | Font = "Bodoni", | |
582 | TextColor3 = Color, | |
583 | TextScaled = true, | |
584 | TextStrokeColor3 = Color3.fromRGB(0,0,0), | |
585 | Parent = BillboardGui, | |
586 | } | |
587 | game.Debris:AddItem(EffectPart, (Time)) | |
588 | EffectPart.Parent = game:GetService("Workspace") | |
589 | delay(0, function() | |
590 | local Frames = (Time / Rate) | |
591 | for Frame = 1, Frames do | |
592 | wait(Rate) | |
593 | local Percent = (Frame / Frames) | |
594 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
595 | TextLabel.TextTransparency = Percent | |
596 | end | |
597 | if EffectPart and EffectPart.Parent then | |
598 | EffectPart:Destroy() | |
599 | end | |
600 | end) | |
601 | end | |
602 | ------------------------------------------------------- | |
603 | --End Damage Function Customization-- | |
604 | ------------------------------------------------------- | |
605 | ||
606 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
607 | for _, c in pairs(workspace:children()) do | |
608 | local hum = c:findFirstChild("Humanoid") | |
609 | if hum ~= nil then | |
610 | local head = c:findFirstChild("Head") | |
611 | if head ~= nil then | |
612 | local targ = head.Position - Part.Position | |
613 | local mag = targ.magnitude | |
614 | if magni >= mag and c.Name ~= plr.Name then | |
615 | Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2) | |
616 | end | |
617 | end | |
618 | end | |
619 | end | |
620 | end | |
621 | ||
622 | ||
623 | CFuncs = { | |
624 | Part = { | |
625 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
626 | local Part = Create("Part")({ | |
627 | Parent = Parent, | |
628 | Reflectance = Reflectance, | |
629 | Transparency = Transparency, | |
630 | CanCollide = false, | |
631 | Locked = true, | |
632 | BrickColor = BrickColor.new(tostring(BColor)), | |
633 | Name = Name, | |
634 | Size = Size, | |
635 | Material = Material | |
636 | }) | |
637 | RemoveOutlines(Part) | |
638 | return Part | |
639 | end | |
640 | }, | |
641 | Mesh = { | |
642 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
643 | local Msh = Create(Mesh)({ | |
644 | Parent = Part, | |
645 | Offset = OffSet, | |
646 | Scale = Scale | |
647 | }) | |
648 | if Mesh == "SpecialMesh" then | |
649 | Msh.MeshType = MeshType | |
650 | Msh.MeshId = MeshId | |
651 | end | |
652 | return Msh | |
653 | end | |
654 | }, | |
655 | Mesh = { | |
656 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
657 | local Msh = Create(Mesh)({ | |
658 | Parent = Part, | |
659 | Offset = OffSet, | |
660 | Scale = Scale | |
661 | }) | |
662 | if Mesh == "SpecialMesh" then | |
663 | Msh.MeshType = MeshType | |
664 | Msh.MeshId = MeshId | |
665 | end | |
666 | return Msh | |
667 | end | |
668 | }, | |
669 | Weld = { | |
670 | Create = function(Parent, Part0, Part1, C0, C1) | |
671 | local Weld = Create("Weld")({ | |
672 | Parent = Parent, | |
673 | Part0 = Part0, | |
674 | Part1 = Part1, | |
675 | C0 = C0, | |
676 | C1 = C1 | |
677 | }) | |
678 | return Weld | |
679 | end | |
680 | }, | |
681 | Sound = { | |
682 | Create = function(id, par, vol, pit) | |
683 | coroutine.resume(coroutine.create(function() | |
684 | local S = Create("Sound")({ | |
685 | Volume = vol, | |
686 | Pitch = pit or 1, | |
687 | SoundId = id, | |
688 | Parent = par or workspace | |
689 | }) | |
690 | wait() | |
691 | S:play() | |
692 | game:GetService("Debris"):AddItem(S, 6) | |
693 | end)) | |
694 | end | |
695 | }, | |
696 | ParticleEmitter = { | |
697 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
698 | local fp = Create("ParticleEmitter")({ | |
699 | Parent = Parent, | |
700 | Color = ColorSequence.new(Color1, Color2), | |
701 | LightEmission = LightEmission, | |
702 | Size = Size, | |
703 | Texture = Texture, | |
704 | Transparency = Transparency, | |
705 | ZOffset = ZOffset, | |
706 | Acceleration = Accel, | |
707 | Drag = Drag, | |
708 | LockedToPart = LockedToPart, | |
709 | VelocityInheritance = VelocityInheritance, | |
710 | EmissionDirection = EmissionDirection, | |
711 | Enabled = Enabled, | |
712 | Lifetime = LifeTime, | |
713 | Rate = Rate, | |
714 | Rotation = Rotation, | |
715 | RotSpeed = RotSpeed, | |
716 | Speed = Speed, | |
717 | VelocitySpread = VelocitySpread | |
718 | }) | |
719 | return fp | |
720 | end | |
721 | } | |
722 | } | |
723 | function RemoveOutlines(part) | |
724 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
725 | end | |
726 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
727 | local Part = Create("Part")({ | |
728 | formFactor = FormFactor, | |
729 | Parent = Parent, | |
730 | Reflectance = Reflectance, | |
731 | Transparency = Transparency, | |
732 | CanCollide = false, | |
733 | Locked = true, | |
734 | BrickColor = BrickColor.new(tostring(BColor)), | |
735 | Name = Name, | |
736 | Size = Size, | |
737 | Material = Material | |
738 | }) | |
739 | RemoveOutlines(Part) | |
740 | return Part | |
741 | end | |
742 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
743 | local Msh = Create(Mesh)({ | |
744 | Parent = Part, | |
745 | Offset = OffSet, | |
746 | Scale = Scale | |
747 | }) | |
748 | if Mesh == "SpecialMesh" then | |
749 | Msh.MeshType = MeshType | |
750 | Msh.MeshId = MeshId | |
751 | end | |
752 | return Msh | |
753 | end | |
754 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
755 | local Weld = Create("Weld")({ | |
756 | Parent = Parent, | |
757 | Part0 = Part0, | |
758 | Part1 = Part1, | |
759 | C0 = C0, | |
760 | C1 = C1 | |
761 | }) | |
762 | return Weld | |
763 | end | |
764 | ||
765 | ||
766 | ------------------------------------------------------- | |
767 | --Start Effect Function-- | |
768 | ------------------------------------------------------- | |
769 | EffectModel = Instance.new("Model", char) | |
770 | Effects = { | |
771 | Block = { | |
772 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
773 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
774 | prt.Anchored = true | |
775 | prt.CFrame = cframe | |
776 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
777 | game:GetService("Debris"):AddItem(prt, 10) | |
778 | if Type == 1 or Type == nil then | |
779 | table.insert(Effects, { | |
780 | prt, | |
781 | "Block1", | |
782 | delay, | |
783 | x3, | |
784 | y3, | |
785 | z3, | |
786 | msh | |
787 | }) | |
788 | elseif Type == 2 then | |
789 | table.insert(Effects, { | |
790 | prt, | |
791 | "Block2", | |
792 | delay, | |
793 | x3, | |
794 | y3, | |
795 | z3, | |
796 | msh | |
797 | }) | |
798 | else | |
799 | table.insert(Effects, { | |
800 | prt, | |
801 | "Block3", | |
802 | delay, | |
803 | x3, | |
804 | y3, | |
805 | z3, | |
806 | msh | |
807 | }) | |
808 | end | |
809 | end | |
810 | }, | |
811 | Sphere = { | |
812 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
813 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
814 | prt.Anchored = true | |
815 | prt.CFrame = cframe | |
816 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
817 | game:GetService("Debris"):AddItem(prt, 10) | |
818 | table.insert(Effects, { | |
819 | prt, | |
820 | "Cylinder", | |
821 | delay, | |
822 | x3, | |
823 | y3, | |
824 | z3, | |
825 | msh | |
826 | }) | |
827 | end | |
828 | }, | |
829 | Cylinder = { | |
830 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
831 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
832 | prt.Anchored = true | |
833 | prt.CFrame = cframe | |
834 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
835 | game:GetService("Debris"):AddItem(prt, 10) | |
836 | table.insert(Effects, { | |
837 | prt, | |
838 | "Cylinder", | |
839 | delay, | |
840 | x3, | |
841 | y3, | |
842 | z3, | |
843 | msh | |
844 | }) | |
845 | end | |
846 | }, | |
847 | Wave = { | |
848 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
849 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
850 | prt.Anchored = true | |
851 | prt.CFrame = cframe | |
852 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60)) | |
853 | game:GetService("Debris"):AddItem(prt, 10) | |
854 | table.insert(Effects, { | |
855 | prt, | |
856 | "Cylinder", | |
857 | delay, | |
858 | x3 / 60, | |
859 | y3 / 60, | |
860 | z3 / 60, | |
861 | msh | |
862 | }) | |
863 | end | |
864 | }, | |
865 | Ring = { | |
866 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
867 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
868 | prt.Anchored = true | |
869 | prt.CFrame = cframe | |
870 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
871 | game:GetService("Debris"):AddItem(prt, 10) | |
872 | table.insert(Effects, { | |
873 | prt, | |
874 | "Cylinder", | |
875 | delay, | |
876 | x3, | |
877 | y3, | |
878 | z3, | |
879 | msh | |
880 | }) | |
881 | end | |
882 | }, | |
883 | Break = { | |
884 | Create = function(brickcolor, cframe, x1, y1, z1) | |
885 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
886 | prt.Anchored = true | |
887 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
888 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
889 | local num = math.random(10, 50) / 1000 | |
890 | game:GetService("Debris"):AddItem(prt, 10) | |
891 | table.insert(Effects, { | |
892 | prt, | |
893 | "Shatter", | |
894 | num, | |
895 | prt.CFrame, | |
896 | math.random() - math.random(), | |
897 | 0, | |
898 | math.random(50, 100) / 100 | |
899 | }) | |
900 | end | |
901 | }, | |
902 | Spiral = { | |
903 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
904 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
905 | prt.Anchored = true | |
906 | prt.CFrame = cframe | |
907 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
908 | game:GetService("Debris"):AddItem(prt, 10) | |
909 | table.insert(Effects, { | |
910 | prt, | |
911 | "Cylinder", | |
912 | delay, | |
913 | x3, | |
914 | y3, | |
915 | z3, | |
916 | msh | |
917 | }) | |
918 | end | |
919 | }, | |
920 | Push = { | |
921 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
922 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
923 | prt.Anchored = true | |
924 | prt.CFrame = cframe | |
925 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
926 | game:GetService("Debris"):AddItem(prt, 10) | |
927 | table.insert(Effects, { | |
928 | prt, | |
929 | "Cylinder", | |
930 | delay, | |
931 | x3, | |
932 | y3, | |
933 | z3, | |
934 | msh | |
935 | }) | |
936 | end | |
937 | } | |
938 | } | |
939 | function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size) | |
940 | local fp = IT("Part") | |
941 | fp.formFactor = formfactor | |
942 | fp.Parent = parent | |
943 | fp.Reflectance = reflectance | |
944 | fp.Transparency = transparency | |
945 | fp.CanCollide = false | |
946 | fp.Locked = true | |
947 | fp.BrickColor = brickcolor | |
948 | fp.Name = name | |
949 | fp.Size = size | |
950 | fp.Position = tors.Position | |
951 | RemoveOutlines(fp) | |
952 | fp.Material = "SmoothPlastic" | |
953 | fp:BreakJoints() | |
954 | return fp | |
955 | end | |
956 | ||
957 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
958 | local mesh = IT(Mesh) | |
959 | mesh.Parent = part | |
960 | if Mesh == "SpecialMesh" then | |
961 | mesh.MeshType = meshtype | |
962 | if meshid ~= "nil" then | |
963 | mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid | |
964 | end | |
965 | end | |
966 | mesh.Offset = offset | |
967 | mesh.Scale = scale | |
968 | return mesh | |
969 | end | |
970 | ||
971 | function Magic(bonuspeed, type, pos, scale, value, color, MType) | |
972 | local type = type | |
973 | local rng = Instance.new("Part", char) | |
974 | rng.Anchored = true | |
975 | rng.BrickColor = color | |
976 | rng.CanCollide = false | |
977 | rng.FormFactor = 3 | |
978 | rng.Name = "Ring" | |
979 | rng.Material = "Neon" | |
980 | rng.Size = Vector3.new(1, 1, 1) | |
981 | rng.Transparency = 0 | |
982 | rng.TopSurface = 0 | |
983 | rng.BottomSurface = 0 | |
984 | rng.CFrame = pos | |
985 | local rngm = Instance.new("SpecialMesh", rng) | |
986 | rngm.MeshType = MType | |
987 | rngm.Scale = scale | |
988 | local scaler2 = 1 | |
989 | if type == "Add" then | |
990 | scaler2 = 1 * value | |
991 | elseif type == "Divide" then | |
992 | scaler2 = 1 / value | |
993 | end | |
994 | coroutine.resume(coroutine.create(function() | |
995 | for i = 0, 10 / bonuspeed, 0.1 do | |
996 | swait() | |
997 | if type == "Add" then | |
998 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
999 | elseif type == "Divide" then | |
1000 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
1001 | end | |
1002 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
1003 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed) | |
1004 | end | |
1005 | rng:Destroy() | |
1006 | end)) | |
1007 | end | |
1008 | ||
1009 | function Eviscerate(dude) | |
1010 | if dude.Name ~= char then | |
1011 | local bgf = IT("BodyGyro", dude.Head) | |
1012 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
1013 | local val = IT("BoolValue", dude) | |
1014 | val.Name = "IsHit" | |
1015 | local ds = coroutine.wrap(function() | |
1016 | dude:WaitForChild("Head"):BreakJoints() | |
1017 | wait(0.5) | |
1018 | target = nil | |
1019 | coroutine.resume(coroutine.create(function() | |
1020 | for i, v in pairs(dude:GetChildren()) do | |
1021 | if v:IsA("Accessory") then | |
1022 | v:Destroy() | |
1023 | end | |
1024 | if v:IsA("Humanoid") then | |
1025 | v:Destroy() | |
1026 | end | |
1027 | if v:IsA("CharacterMesh") then | |
1028 | v:Destroy() | |
1029 | end | |
1030 | if v:IsA("Model") then | |
1031 | v:Destroy() | |
1032 | end | |
1033 | if v:IsA("Part") or v:IsA("MeshPart") then | |
1034 | for x, o in pairs(v:GetChildren()) do | |
1035 | if o:IsA("Decal") then | |
1036 | o:Destroy() | |
1037 | end | |
1038 | end | |
1039 | coroutine.resume(coroutine.create(function() | |
1040 | v.Material = "Neon" | |
1041 | v.CanCollide = false | |
1042 | local PartEmmit1 = IT("ParticleEmitter", v) | |
1043 | PartEmmit1.LightEmission = 1 | |
1044 | PartEmmit1.Texture = "rbxassetid://284205403" | |
1045 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1046 | PartEmmit1.Rate = 150 | |
1047 | PartEmmit1.Lifetime = NumberRange.new(1) | |
1048 | PartEmmit1.Size = NumberSequence.new({ | |
1049 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
1050 | NumberSequenceKeypoint.new(1, 0, 0) | |
1051 | }) | |
1052 | PartEmmit1.Transparency = NumberSequence.new({ | |
1053 | NumberSequenceKeypoint.new(0, 0, 0), | |
1054 | NumberSequenceKeypoint.new(1, 1, 0) | |
1055 | }) | |
1056 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
1057 | PartEmmit1.VelocitySpread = 30000 | |
1058 | PartEmmit1.Rotation = NumberRange.new(-500, 500) | |
1059 | PartEmmit1.RotSpeed = NumberRange.new(-500, 500) | |
1060 | local BodPoss = IT("BodyPosition", v) | |
1061 | BodPoss.P = 3000 | |
1062 | BodPoss.D = 1000 | |
1063 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
1064 | BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
1065 | v.Color = maincolor.Color | |
1066 | coroutine.resume(coroutine.create(function() | |
1067 | for i = 0, 49 do | |
1068 | swait(1) | |
1069 | v.Transparency = v.Transparency + 0.08 | |
1070 | end | |
1071 | wait(0.5) | |
1072 | PartEmmit1.Enabled = false | |
1073 | wait(3) | |
1074 | v:Destroy() | |
1075 | dude:Destroy() | |
1076 | end)) | |
1077 | end)) | |
1078 | end | |
1079 | end | |
1080 | end)) | |
1081 | end) | |
1082 | ds() | |
1083 | end | |
1084 | end | |
1085 | ||
1086 | function FindNearestHead(Position, Distance, SinglePlayer) | |
1087 | if SinglePlayer then | |
1088 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
1089 | end | |
1090 | local List = {} | |
1091 | for i, v in pairs(workspace:GetChildren()) do | |
1092 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then | |
1093 | table.insert(List, v) | |
1094 | end | |
1095 | end | |
1096 | return List | |
1097 | end | |
1098 | ||
1099 | function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType) | |
1100 | local type = type | |
1101 | local rng = Instance.new("Part", char) | |
1102 | rng.Anchored = true | |
1103 | rng.BrickColor = color | |
1104 | rng.CanCollide = false | |
1105 | rng.FormFactor = 3 | |
1106 | rng.Name = "Ring" | |
1107 | rng.Material = "Neon" | |
1108 | rng.Size = Vector3.new(1, 1, 1) | |
1109 | rng.Transparency = 0 | |
1110 | rng.TopSurface = 0 | |
1111 | rng.BottomSurface = 0 | |
1112 | rng.CFrame = pos | |
1113 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
1114 | local rngm = Instance.new("SpecialMesh", rng) | |
1115 | rngm.MeshType = MType | |
1116 | rngm.Scale = Vector3.new(x1, y1, z1) | |
1117 | local scaler2 = 1 | |
1118 | local speeder = FastSpeed | |
1119 | if type == "Add" then | |
1120 | scaler2 = 1 * value | |
1121 | elseif type == "Divide" then | |
1122 | scaler2 = 1 / value | |
1123 | end | |
1124 | coroutine.resume(coroutine.create(function() | |
1125 | for i = 0, 10 / bonuspeed, 0.1 do | |
1126 | swait() | |
1127 | if type == "Add" then | |
1128 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
1129 | elseif type == "Divide" then | |
1130 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
1131 | end | |
1132 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
1133 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
1134 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
1135 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
1136 | end | |
1137 | rng:Destroy() | |
1138 | end)) | |
1139 | end | |
1140 | ||
1141 | function SoulSteal(dude) | |
1142 | if dude.Name ~= char then | |
1143 | local bgf = IT("BodyGyro", dude.Head) | |
1144 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
1145 | local val = IT("BoolValue", dude) | |
1146 | val.Name = "IsHit" | |
1147 | local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart') | |
1148 | local soulst = coroutine.wrap(function() | |
1149 | local soul = Instance.new("Part",dude) | |
1150 | soul.Size = Vector3.new(1,1,1) | |
1151 | soul.CanCollide = false | |
1152 | soul.Anchored = false | |
1153 | soul.Position = torso.Position | |
1154 | soul.Transparency = 1 | |
1155 | local PartEmmit1 = IT("ParticleEmitter", soul) | |
1156 | PartEmmit1.LightEmission = 1 | |
1157 | PartEmmit1.Texture = "rbxassetid://569507414" | |
1158 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1159 | PartEmmit1.Rate = 250 | |
1160 | PartEmmit1.Lifetime = NumberRange.new(1.6) | |
1161 | PartEmmit1.Size = NumberSequence.new({ | |
1162 | NumberSequenceKeypoint.new(0, 1, 0), | |
1163 | NumberSequenceKeypoint.new(1, 0, 0) | |
1164 | }) | |
1165 | PartEmmit1.Transparency = NumberSequence.new({ | |
1166 | NumberSequenceKeypoint.new(0, 0, 0), | |
1167 | NumberSequenceKeypoint.new(1, 1, 0) | |
1168 | }) | |
1169 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
1170 | PartEmmit1.VelocitySpread = 30000 | |
1171 | PartEmmit1.Rotation = NumberRange.new(-360, 360) | |
1172 | PartEmmit1.RotSpeed = NumberRange.new(-360, 360) | |
1173 | local BodPoss = IT("BodyPosition", soul) | |
1174 | BodPoss.P = 3000 | |
1175 | BodPoss.D = 1000 | |
1176 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
1177 | BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
1178 | wait(1.6) | |
1179 | soul.Touched:connect(function(hit) | |
1180 | if hit.Parent == char then | |
1181 | soul:Destroy() | |
1182 | end | |
1183 | end) | |
1184 | wait(1.2) | |
1185 | while soul do | |
1186 | swait() | |
1187 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1188 | BodPoss.Position = tors.Position | |
1189 | end | |
1190 | end) | |
1191 | soulst() | |
1192 | end | |
1193 | end | |
1194 | function FaceMouse() | |
1195 | local Cam = workspace.CurrentCamera | |
1196 | return { | |
1197 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
1198 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
1199 | } | |
1200 | end | |
1201 | function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
1202 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1203 | prt.Anchored = true | |
1204 | prt.CFrame = cframe | |
1205 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1206 | game:GetService("Debris"):AddItem(prt, 10) | |
1207 | if Type == 1 or Type == nil then | |
1208 | table.insert(Effects, { | |
1209 | prt, | |
1210 | - | local SONG = 999743730 |
1210 | + | |
1211 | delay, | |
1212 | x3, | |
1213 | - | Music.Volume = 2.5 |
1213 | + | |
1214 | z3, | |
1215 | msh | |
1216 | }) | |
1217 | elseif Type == 2 then | |
1218 | table.insert(Effects, { | |
1219 | prt, | |
1220 | "Block2", | |
1221 | delay, | |
1222 | x3, | |
1223 | y3, | |
1224 | z3, | |
1225 | msh | |
1226 | }) | |
1227 | elseif Type == 3 then | |
1228 | table.insert(Effects, { | |
1229 | prt, | |
1230 | "Block3", | |
1231 | delay, | |
1232 | x3, | |
1233 | y3, | |
1234 | z3, | |
1235 | msh | |
1236 | }) | |
1237 | end | |
1238 | end | |
1239 | ------------------------------------------------------- | |
1240 | --End Effect Function-- | |
1241 | ------------------------------------------------------- | |
1242 | function Cso(ID, PARENT, VOLUME, PITCH) | |
1243 | local NSound = nil | |
1244 | coroutine.resume(coroutine.create(function() | |
1245 | NSound = IT("Sound", PARENT) | |
1246 | NSound.Volume = VOLUME | |
1247 | NSound.Pitch = PITCH | |
1248 | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID | |
1249 | swait() | |
1250 | NSound:play() | |
1251 | game:GetService("Debris"):AddItem(NSound, 10) | |
1252 | end)) | |
1253 | return NSound | |
1254 | end | |
1255 | function CameraEnshaking(Length, Intensity) | |
1256 | coroutine.resume(coroutine.create(function() | |
1257 | local intensity = 1 * Intensity | |
1258 | local rotM = 0.01 * Intensity | |
1259 | for i = 0, Length, 0.1 do | |
1260 | swait() | |
1261 | intensity = intensity - 0.05 * Intensity / Length | |
1262 | rotM = rotM - 5.0E-4 * Intensity / Length | |
1263 | hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) | |
1264 | cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM) | |
1265 | end | |
1266 | hum.CameraOffset = Vector3.new(0, 0, 0) | |
1267 | end)) | |
1268 | end | |
1269 | ------------------------------------------------------- | |
1270 | --End Important Functions-- | |
1271 | ------------------------------------------------------- | |
1272 | ||
1273 | --[[ | |
1274 | Thanks for using Build-To-Lua by jarredbcv. | |
1275 | ]]-- | |
1276 | ||
1277 | New = function(Object, Parent, Name, Data) | |
1278 | local Object = Instance.new(Object) | |
1279 | for Index, Value in pairs(Data or {}) do | |
1280 | Object[Index] = Value | |
1281 | end | |
1282 | Object.Parent = Parent | |
1283 | Object.Name = Name | |
1284 | return Object | |
1285 | end | |
1286 | ||
1287 | Lamp = New("Model",char,"Lamp",{}) | |
1288 | Handle = New("Part",Lamp,"Handle",{FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.600000024, 0.610000014, 0.539999962),CFrame = CFrame.new(-109.839981, 1.79380095, -43.7700005, 0.999977291, -2.22814856e-06, -2.28935824e-06, -7.29543899e-07, -0.999977469, -5.85511816e-06, 1.10829581e-06, 4.96105622e-06, -1.00000715),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
1289 | Mesh = New("SpecialMesh",Handle,"Mesh",{Scale = Vector3.new(0.600000024, 0.600000024, 1),MeshId = "http://www.roblox.com/asset/?id=3270017",MeshType = Enum.MeshType.FileMesh,}) | |
1290 | Lampo = New("Part",Lamp,"Lampo",{BrickColor = BrickColor.new("Cool yellow"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-109.859985, 1.05100787, -43.7600021, 0.999969721, -9.99071062e-07, -2.26510087e-06, 9.99070835e-07, -0.999969959, -5.96146037e-07, 2.2651011e-06, -5.96145583e-07, -1.00000954),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.992157, 0.917647, 0.552941),}) | |
1291 | Mesh = New("CylinderMesh",Lampo,"Mesh",{Scale = Vector3.new(0.800000012, 1, 0.800000012),}) | |
1292 | mot = New("Motor",Lampo,"mot",{Part0 = Lampo,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, -0, -1, -0, -0, -0, -1),C1 = CFrame.new(-0.0200042725, 0.742809892, -0.00999450684, 0.99999243, -1.22910137e-06, -2.42515625e-08, -1.72864145e-06, -0.99999249, 5.25910491e-06, -1.15681405e-06, -5.55712631e-06, -1.00000238),}) | |
1293 | --PointLight = New("PointLight",Lampo,"PointLight",{Color = Color3.new(1, 0.835294, 0),Brightness = 34.9849996566772,Range = 25.060000419617,}) | |
1294 | Part = New("Part",Lamp,"Part",{BrickColor = BrickColor.new("Dark stone grey"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1, 0.400000006, 1),CFrame = CFrame.new(-109.839989, 1.55099273, -43.7600021, 0.99998486, -4.99542864e-07, -1.13255635e-06, 4.99542864e-07, -0.99998498, -2.98074156e-07, 1.13255635e-06, -2.98074156e-07, -1.00000477),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
1295 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(1, 0.5, 1),}) | |
1296 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, -0, -1, -0, -0, -0, -1),C1 = CFrame.new(-7.62939453e-06, 0.242813706, -0.00999832153, 0.99999243, -1.22910137e-06, -2.42515625e-08, -1.72864145e-06, -0.99999249, 5.25910491e-06, -1.15681405e-06, -5.55712631e-06, -1.00000238),}) | |
1297 | Part = New("Part",Lamp,"Part",{BrickColor = BrickColor.new("Dark stone grey"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1, 0.400000006, 1),CFrame = CFrame.new(-109.839989, 0.551022768, -43.7600021, 0.999969721, -9.99071062e-07, -2.26510087e-06, 9.99070835e-07, -0.999969959, -5.96146037e-07, 2.2651011e-06, -5.96145583e-07, -1.00000954),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
1298 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(1, 0.5, 1),}) | |
1299 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, -0, -1, -0, -0, -0, -1),C1 = CFrame.new(-7.62939453e-06, 1.2428062, -0.00999069214, 0.99999243, -1.22910137e-06, -2.42515625e-08, -1.72864145e-06, -0.99999249, 5.25910491e-06, -1.15681405e-06, -5.55712631e-06, -1.00000238),}) | |
1300 | Part = New("Part",Lamp,"Part",{BrickColor = BrickColor.new("Dark stone grey"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 1.00000095, 0.200000003),CFrame = CFrame.new(-110.280014, 1.05100274, -43.7900009, 2.26508837e-06, 9.99067765e-07, -0.99996686, 2.38526809e-07, 0.999965847, -9.99067993e-07, 1.00000417, 9.68675067e-07, -2.26509474e-06),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
1301 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.600000024, 1, 0.600000024),}) | |
1302 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 5.54726989e-27, -3.57626504e-07, 0.999994636, 8.17913605e-21, 0.999995887, 3.72528149e-07, -0.999997139, 7.5968114e-21, 8.20415341e-27),C1 = CFrame.new(-0.440040588, 0.742815137, 0.0200042725, 0.99999243, -1.22910137e-06, -2.42515625e-08, -1.72864145e-06, -0.99999249, 5.25910491e-06, -1.15681405e-06, -5.55712631e-06, -1.00000238),}) | |
1303 | Part = New("Part",Lamp,"Part",{BrickColor = BrickColor.new("Dark stone grey"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 1.00000095, 0.200000003),CFrame = CFrame.new(-109.400032, 1.05100369, -43.75, 2.26508837e-06, 9.99067765e-07, -0.99996686, 2.38526809e-07, 0.999965847, -9.99067993e-07, 1.00000417, 9.68675067e-07, -2.26509474e-06),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
1304 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.600000024, 1, 0.600000024),}) | |
1305 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 5.54726989e-27, -3.57626504e-07, 0.999994636, 8.17913605e-21, 0.999995887, 3.72528149e-07, -0.999997139, 7.5968114e-21, 8.20415341e-27),C1 = CFrame.new(0.439964294, 0.742813826, -0.0199966431, 0.99999243, -1.22910137e-06, -2.42515625e-08, -1.72864145e-06, -0.99999249, 5.25910491e-06, -1.15681405e-06, -5.55712631e-06, -1.00000238),}) | |
1306 | Part = New("Part",Lamp,"Part",{BrickColor = BrickColor.new("Dark stone grey"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 1.00000095, 0.200000003),CFrame = CFrame.new(-110.120018, 1.05100298, -43.409996, 2.26508837e-06, 9.99067765e-07, -0.99996686, 2.38526809e-07, 0.999965847, -9.99067993e-07, 1.00000417, 9.68675067e-07, -2.26509474e-06),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
1307 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.600000024, 1, 0.600000024),}) | |
1308 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 5.54726989e-27, -3.57626504e-07, 0.999994636, 8.17913605e-21, 0.999995887, 3.72528149e-07, -0.999997139, 7.5968114e-21, 8.20415341e-27),C1 = CFrame.new(-0.280044556, 0.742816925, -0.359996796, 0.99999243, -1.22910137e-06, -2.42515625e-08, -1.72864145e-06, -0.99999249, 5.25910491e-06, -1.15681405e-06, -5.55712631e-06, -1.00000238),}) | |
1309 | Part = New("Part",Lamp,"Part",{BrickColor = BrickColor.new("Dark stone grey"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 1.00000095, 0.200000003),CFrame = CFrame.new(-109.600037, 1.05100322, -44.1300087, 2.26508837e-06, 9.99067765e-07, -0.99996686, 2.38526809e-07, 0.999965847, -9.99067993e-07, 1.00000417, 9.68675067e-07, -2.26509474e-06),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
1310 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.600000024, 1, 0.600000024),}) | |
1311 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 5.54726989e-27, -3.57626504e-07, 0.999994636, 8.17913605e-21, 0.999995887, 3.72528149e-07, -0.999997139, 7.5968114e-21, 8.20415341e-27),C1 = CFrame.new(0.239952087, 0.742812157, 0.36000824, 0.99999243, -1.22910137e-06, -2.42515625e-08, -1.72864145e-06, -0.99999249, 5.25910491e-06, -1.15681405e-06, -5.55712631e-06, -1.00000238),}) | |
1312 | Part = New("Part",Lamp,"Part",{BrickColor = BrickColor.new("Dark stone grey"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 1.00000095, 0.200000003),CFrame = CFrame.new(-110.060028, 1.05100274, -44.1500092, 2.26508837e-06, 9.99067765e-07, -0.99996686, 2.38526809e-07, 0.999965847, -9.99067993e-07, 1.00000417, 9.68675067e-07, -2.26509474e-06),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
1313 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.600000024, 1, 0.600000024),}) | |
1314 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 5.54726989e-27, -3.57626504e-07, 0.999994636, 8.17913605e-21, 0.999995887, 3.72528149e-07, -0.999997139, 7.5968114e-21, 8.20415341e-27),C1 = CFrame.new(-0.220046997, 0.742812872, 0.380008698, 0.99999243, -1.22910137e-06, -2.42515625e-08, -1.72864145e-06, -0.99999249, 5.25910491e-06, -1.15681405e-06, -5.55712631e-06, -1.00000238),}) | |
1315 | Part = New("Part",Lamp,"Part",{BrickColor = BrickColor.new("Dark stone grey"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 1.00000095, 0.200000003),CFrame = CFrame.new(-109.65004, 1.05100369, -43.359993, 2.26508837e-06, 9.99067765e-07, -0.99996686, 2.38526809e-07, 0.999965847, -9.99067993e-07, 1.00000417, 9.68675067e-07, -2.26509474e-06),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
1316 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.600000024, 1, 0.600000024),}) | |
1317 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 5.54726989e-27, -3.57626504e-07, 0.999994636, 8.17913605e-21, 0.999995887, 3.72528149e-07, -0.999997139, 7.5968114e-21, 8.20415341e-27),C1 = CFrame.new(0.189949036, 0.742816329, -0.409999847, 0.99999243, -1.22910137e-06, -2.42515625e-08, -1.72864145e-06, -0.99999249, 5.25910491e-06, -1.15681405e-06, -5.55712631e-06, -1.00000238),}) | |
1318 | ||
1319 | local NewInstance = function(instance,parent,properties) | |
1320 | local inst = Instance.new(instance,parent) | |
1321 | if(properties)then | |
1322 | for i,v in next, properties do | |
1323 | pcall(function() inst[i] = v end) | |
1324 | end | |
1325 | end | |
1326 | return inst; | |
1327 | end | |
1328 | ||
1329 | --local HW = NewInstance('Weld',char,{Part0 = tors, Part1 = Handle, C0 = CF(1, -0.8, -0.2) * angles(Rad(180), Rad(60), Rad(-40))}) | |
1330 | local HW = NewInstance('Weld',char,{Part0 = ra, Part1 = Handle, C0 = CF(0, -0.8, 0.6) * angles(Rad(90), Rad(0), Rad(0))}) | |
1331 | ||
1332 | ------------------------------------------------------- | |
1333 | --Start Customization-- | |
1334 | ------------------------------------------------------- | |
1335 | local Player_Size = 1 | |
1336 | if Player_Size ~= 1 then | |
1337 | root.Size = root.Size * Player_Size | |
1338 | tors.Size = tors.Size * Player_Size | |
1339 | hed.Size = hed.Size * Player_Size | |
1340 | ra.Size = ra.Size * Player_Size | |
1341 | la.Size = la.Size * Player_Size | |
1342 | rl.Size = rl.Size * Player_Size | |
1343 | ll.Size = ll.Size * Player_Size | |
1344 | ---------------------------------------------------------------------------------- | |
1345 | rootj.Parent = root | |
1346 | neck.Parent = tors | |
1347 | RW.Parent = tors | |
1348 | LW.Parent = tors | |
1349 | RH.Parent = tors | |
1350 | LH.Parent = tors | |
1351 | ---------------------------------------------------------------------------------- | |
1352 | rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
1353 | rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
1354 | neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0)) | |
1355 | neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180)) | |
1356 | RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0 | |
1357 | LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0 | |
1358 | ---------------------------------------------------------------------------------- | |
1359 | RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
1360 | LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
1361 | RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
1362 | LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
1363 | --hat.Parent = Character | |
1364 | end | |
1365 | ---------------------------------------------------------------------------------- | |
1366 | local SONG = 1241912732 | |
1367 | local SONG2 = 0 | |
1368 | local Music = Instance.new("Sound",tors) | |
1369 | Music.Volume = 20 | |
1370 | Music.Looped = true | |
1371 | Music.Pitch = 1 --Pitcher | |
1372 | ---------------------------------------------------------------------------------- | |
1373 | local equipped = false | |
1374 | local idle = 0 | |
1375 | local change = 1 | |
1376 | local val = 0 | |
1377 | local toim = 0 | |
1378 | local idleanim = 0.4 | |
1379 | local sine = 0 | |
1380 | local Sit = 1 | |
1381 | local Mode = "Latern" | |
1382 | ---------------------------------------------------------------------------------- | |
1383 | hum.WalkSpeed = 12 | |
1384 | hum.JumpPower = 57 | |
1385 | local ROBLOXIDLEANIMATION = IT("Animation") | |
1386 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
1387 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
1388 | local ANIMATOR = hum.Animator | |
1389 | local ANIMATE = char.Animate | |
1390 | ANIMATE.Parent = nil | |
1391 | ---------------------------------------------------------------------------------- | |
1392 | local naeeym2 = Instance.new("BillboardGui",char) | |
1393 | naeeym2.AlwaysOnTop = true | |
1394 | naeeym2.Size = UDim2.new(5,35,2,35) | |
1395 | naeeym2.StudsOffset = Vector3.new(0,1,0) | |
1396 | naeeym2.Adornee = hed | |
1397 | naeeym2.Name = "Name" | |
1398 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
1399 | tecks2.BackgroundTransparency = 1 | |
1400 | tecks2.TextScaled = true | |
1401 | tecks2.BorderSizePixel = 0 | |
1402 | tecks2.Text = "Wanderer" | |
1403 | tecks2.Font = "Fantasy" | |
1404 | tecks2.TextSize = 30 | |
1405 | tecks2.TextTransparency = 0 | |
1406 | tecks2.TextStrokeTransparency = 0 | |
1407 | tecks2.TextColor3 = Color3.fromRGB(253, 234, 141) | |
1408 | tecks2.TextStrokeColor3 = Color3.new(0, 0, 0) | |
1409 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1410 | tecks2.Parent = naeeym2 | |
1411 | ---------------------------------------------------------------------------------- | |
1412 | game:service'Lighting'.TimeOfDay = "00:00:00" | |
1413 | local light = Instance.new("PointLight", Lampo) | |
1414 | light.Name = "Light" | |
1415 | light.Range = 8 | |
1416 | light.Brightness = 35 | |
1417 | light.Shadows = true | |
1418 | ---------------------------------------------------------------------------------- | |
1419 | Reaper = IT("Model") | |
1420 | Reaper.Parent = char | |
1421 | Reaper.Name = "Reaper" | |
1422 | RHe = IT("Part") | |
1423 | RHe.Parent = Reaper | |
1424 | RHe.BrickColor = BrickColor.new("Dark stone grey") | |
1425 | RHe.Locked = true | |
1426 | RHe.CanCollide = false | |
1427 | RHe.Transparency = 0 | |
1428 | PMesh = IT("SpecialMesh") | |
1429 | RHe.formFactor = "Symmetric" | |
1430 | PMesh.MeshType = "FileMesh" | |
1431 | PMesh.MeshId = "rbxassetid://77353021" | |
1432 | --PMesh.TextureId = "rbxassetid://116524836" | |
1433 | PMesh.Scale = Vector3.new(1.5, 1.5, 1.5) | |
1434 | PMesh.Parent = RHe | |
1435 | local RWeld = IT("Weld") | |
1436 | RWeld.Parent = RHe | |
1437 | RWeld.Part0 = RHe | |
1438 | RWeld.Part1 = tors | |
1439 | RWeld.C0 = CF(-0.9, 1, -0.6) * angles(Rad(0), Rad(-20), Rad(90)) | |
1440 | ------------------------------------------------------- | |
1441 | --End Customization-- | |
1442 | ------------------------------------------------------- | |
1443 | ||
1444 | ||
1445 | ------------------------------------------------------- | |
1446 | --Start Attacks N Stuff-- | |
1447 | ------------------------------------------------------- | |
1448 | function HitboxFunction(Pose, lifetime, siz1, siz2, siz3, Radie, Min, Max, kb, atype) | |
1449 | local Hitboxpart = Instance.new("Part", EffectModel) | |
1450 | RemoveOutlines(Hitboxpart) | |
1451 | Hitboxpart.Size = Vector3.new(siz1, siz2, siz3) | |
1452 | Hitboxpart.CanCollide = false | |
1453 | Hitboxpart.Transparency = 1 | |
1454 | Hitboxpart.Anchored = true | |
1455 | Hitboxpart.CFrame = Pose | |
1456 | game:GetService("Debris"):AddItem(Hitboxpart, lifetime) | |
1457 | MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype) | |
1458 | end | |
1459 | function LaternSmack() | |
1460 | attack = true | |
1461 | hum.WalkSpeed = 3.01 | |
1462 | for i = 0, 1.4, 0.1 do | |
1463 | swait() | |
1464 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(-6), Rad(0), Rad(0)), 0.15) | |
1465 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-8 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
1466 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(60), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-9)), 0.15) | |
1467 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(6)), 0.15) | |
1468 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(186), Rad(13 + 4.5 * Sin(sine / 20)), Rad(13 + 4.5 * Sin(sine / 20))), 0.1) | |
1469 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-36), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1) | |
1470 | HW.C0 = clerp(HW.C0, CF(0, -1, -0.4) * angles(Rad(235), Rad(-.6), Rad(0)), 0.2) | |
1471 | end | |
1472 | local Flame = Cso("213656638", Lampo, 1.7, .9) | |
1473 | if Flame then | |
1474 | Flame.TimePosition = .5 | |
1475 | end | |
1476 | Cso("145878848", Lampo, 3, 1) | |
1477 | HitboxFunction(Lampo.CFrame * CF(0, 0, 1), 0.01, 1, 1, 1, 7, 10, 20, 3, "Firedmg") | |
1478 | for i = 0, 1.7, 0.1 do | |
1479 | swait() | |
1480 | BlockEffect(maincolor, Lampo.CFrame, 21, 41, 21, -3.5, -3.5, -3.5, 0.08, 3) | |
1481 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(6), Rad(0), Rad(10)), 0.15) | |
1482 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(21 - 2.5 * Sin(sine / 20)), Rad(0), Rad(-10)), 0.3) | |
1483 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(60), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(9)), 0.15) | |
1484 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(26)), 0.15) | |
1485 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-18 + 4.5 * Sin(sine / 20))), 0.2) | |
1486 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-16), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-13 - 4.5 * Sin(sine / 20))), 0.2) | |
1487 | HW.C0 = clerp(HW.C0, CF(0, -1.1, 0) * angles(Rad(148 + 4.5 * Cos(sine / 20)), Rad(-.6), Rad(0)), 0.2) | |
1488 | end | |
1489 | attack = false | |
1490 | hum.WalkSpeed = 12 | |
1491 | end | |
1492 | function LaternSpin() | |
1493 | attack = true | |
1494 | end | |
1495 | function Taunt() | |
1496 | attack = true | |
1497 | hum.WalkSpeed = 1.01 | |
1498 | coroutine.resume(coroutine.create(function() | |
1499 | for i = 0, 0.3, 0.1 do | |
1500 | swait(35) | |
1501 | Cso("145878848", Lampo, 3, 1) | |
1502 | end | |
1503 | end)) | |
1504 | for i = 0, 16, 0.1 do | |
1505 | swait() | |
1506 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(6), Rad(0), Rad(0)), 0.15) | |
1507 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(8 - 2.5 * Sin(sine / 20)), Rad(0), Rad(-20)), 0.3) | |
1508 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(60), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(6)), 0.15) | |
1509 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-9)), 0.15) | |
1510 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(125 + 25 * Cos(sine / 7)), Rad(13 + 4.5 * Sin(sine / 20)), Rad(13 + 4.5 * Sin(sine / 20))), 0.1) | |
1511 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(16), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1) | |
1512 | HW.C0 = clerp(HW.C0, CF(0, -0.6, 0.6) * angles(Rad(67 + 35 * Cos(sine / 7)), Rad(-.6), Rad(0)), 0.1) | |
1513 | end | |
1514 | hum.WalkSpeed = 12 | |
1515 | attack = false | |
1516 | end | |
1517 | function EquipBlade() | |
1518 | attack = true | |
1519 | hum.WalkSpeed = 0 | |
1520 | for i = 0, 4, 0.1 do | |
1521 | swait() | |
1522 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(6), Rad(0), Rad(0)), 0.15) | |
1523 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 2.5 * Sin(sine / 20)), Rad(0), Rad(-20)), 0.3) | |
1524 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(60), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(6)), 0.15) | |
1525 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-9)), 0.15) | |
1526 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(20), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-6 + 4.5 * Sin(sine / 20))), 0.1) | |
1527 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(16), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1) | |
1528 | HW.C0 = clerp(HW.C0, CF(0, -1.1, 0.4) * angles(Rad(175), Rad(0), Rad(0)), 0.1) | |
1529 | end | |
1530 | coroutine.resume(coroutine.create(function() | |
1531 | HW.Part0 = tors | |
1532 | for i = 0, 3, 0.1 do | |
1533 | swait() | |
1534 | HW.C0 = clerp(HW.C0, CF(1, -0.8, -0.2) * angles(Rad(180 + 4.5 * Sin(sine / 20)), Rad(60), Rad(-40)), 0.15) | |
1535 | end | |
1536 | end)) | |
1537 | for i = 0, 5, 0.1 do | |
1538 | swait() | |
1539 | RWeld.C0 = CF(-0.9, 1, -0.6) * angles(Rad(-34), Rad(-20), Rad(90)) | |
1540 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(6), Rad(0), Rad(-20)), 0.15) | |
1541 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 2.5 * Sin(sine / 20)), Rad(0), Rad(20)), 0.3) | |
1542 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(60), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(6)), 0.15) | |
1543 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-9)), 0.15) | |
1544 | RW.C0 = clerp(RW.C0, CF(0.9* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, -1.1* Player_Size) * angles(Rad(58), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-45 + 4.5 * Sin(sine / 20))), 0.1) | |
1545 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(16), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1) | |
1546 | HW.C0 = clerp(HW.C0, CF(1, -0.8, -0.2) * angles(Rad(180 + 8.5 * Cos(sine / 20)), Rad(60), Rad(-40)), 0.1) | |
1547 | end | |
1548 | RWeld.Part1 = ra | |
1549 | for i = 0, 5, 0.1 do | |
1550 | swait() | |
1551 | RWeld.C0 = CF(-1, 0, -1.9) * angles(Rad(-90), Rad(0), Rad(90)) | |
1552 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(6), Rad(0), Rad(0)), 0.15) | |
1553 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
1554 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(60), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(6)), 0.15) | |
1555 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-9)), 0.15) | |
1556 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(58), Rad(13 + 4.5 * Sin(sine / 20)), Rad(24 + 4.5 * Sin(sine / 20))), 0.1) | |
1557 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(16), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1) | |
1558 | HW.C0 = clerp(HW.C0, CF(1, -0.8, -0.2) * angles(Rad(180 + 8.5 * Cos(sine / 20)), Rad(60), Rad(-40)), 0.1) | |
1559 | end | |
1560 | attack = false | |
1561 | Mode = "Blade" | |
1562 | hum.WalkSpeed = 12 | |
1563 | end | |
1564 | function DequipBlade() | |
1565 | attack = true | |
1566 | hum.WalkSpeed = 0 | |
1567 | RWeld.Part1 = tors | |
1568 | for i = 0, 5, 0.1 do | |
1569 | swait() | |
1570 | RWeld.C0 = CF(-0.9, 1, -0.6) * angles(Rad(-34), Rad(-20), Rad(90)) | |
1571 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(6), Rad(0), Rad(-20)), 0.15) | |
1572 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.15) | |
1573 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(60), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(6)), 0.15) | |
1574 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-9)), 0.15) | |
1575 | - | Music.SoundId = "rbxassetid://"..SONG |
1575 | + | |
1576 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-36), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-13 - 4.5 * Sin(sine / 20))), 0.15) | |
1577 | HW.C0 = clerp(HW.C0, CF(1, -0.8, -0.2) * angles(Rad(180 + 8.5 * Cos(sine / 20)), Rad(60), Rad(-40)), 0.1) | |
1578 | - | Music.Volume = 2.5 |
1578 | + | |
1579 | HW.Part0 = ra | |
1580 | RWeld.C0 = CF(-0.9, 1, -0.6) * angles(Rad(0), Rad(-20), Rad(90)) | |
1581 | for i = 0, 4, 0.1 do | |
1582 | swait() | |
1583 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(6), Rad(0), Rad(0)), 0.15) | |
1584 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 2.5 * Sin(sine / 20)), Rad(0), Rad(-20)), 0.3) | |
1585 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(60), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(6)), 0.15) | |
1586 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-9)), 0.15) | |
1587 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(20), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-6 + 4.5 * Sin(sine / 20))), 0.15) | |
1588 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(16), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1) | |
1589 | HW.C0 = clerp(HW.C0, CF(0, -1.1, 0.4) * angles(Rad(175), Rad(0), Rad(0)), 0.1) | |
1590 | end | |
1591 | attack = false | |
1592 | Mode = "Latern" | |
1593 | hum.WalkSpeed = 12 | |
1594 | end | |
1595 | ------------------------------------------------------- | |
1596 | --End Attacks N Stuff-- | |
1597 | ------------------------------------------------------- | |
1598 | mouse.Button1Down:connect(function(key) | |
1599 | if attack == false then | |
1600 | if Mode == "Latern" then | |
1601 | LaternSmack() | |
1602 | end | |
1603 | end | |
1604 | end) | |
1605 | mouse.KeyDown:connect(function(key) | |
1606 | if attack == false then | |
1607 | if key == 't' and Mode == "Latern" then | |
1608 | Taunt() | |
1609 | elseif key == 'p' and Mode == "Latern" then | |
1610 | EquipBlade() | |
1611 | elseif key == 'p' and Mode == "Blade" then | |
1612 | DequipBlade() | |
1613 | end | |
1614 | end | |
1615 | end) | |
1616 | ||
1617 | ||
1618 | ||
1619 | ||
1620 | ||
1621 | ||
1622 | ||
1623 | ------------------------------------------------------- | |
1624 | --Start Animations-- | |
1625 | ------------------------------------------------------- | |
1626 | print("By Makhail07") | |
1627 | while true do | |
1628 | swait() | |
1629 | sine = sine + change | |
1630 | --ANIMATE.Parent = nil | |
1631 | --local IDLEANIMATION = hum:LoadAnimation(ROBLOXIDLEANIMATION) | |
1632 | --IDLEANIMATION:Play() | |
1633 | local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1634 | local velderp = root.Velocity.y | |
1635 | hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char) | |
1636 | if equipped == true or equipped == false then | |
1637 | if attack == false then | |
1638 | idle = idle + 1 | |
1639 | else | |
1640 | idle = 0 | |
1641 | end | |
1642 | if 1 < root.Velocity.y and hitfloor == nil then | |
1643 | Anim = "Jump" | |
1644 | if attack == false then | |
1645 | if Mode == "Latern" then | |
1646 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15) | |
1647 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
1648 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1649 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1650 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1) | |
1651 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1) | |
1652 | HW.C0 = clerp(HW.C0, CF(0, -1.1, 0.4) * angles(Rad(147), Rad(0), Rad(0)), 0.1) | |
1653 | elseif Mode == "Blade" then | |
1654 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15) | |
1655 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
1656 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1657 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1658 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1) | |
1659 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1) | |
1660 | HW.C0 = clerp(HW.C0, CF(1, -0.8, -0.2) * angles(Rad(180 + 8.5 * Cos(sine / 20)), Rad(60), Rad(-40)), 0.1) | |
1661 | end | |
1662 | end | |
1663 | elseif -1 > root.Velocity.y and hitfloor == nil then | |
1664 | Anim = "Fall" | |
1665 | if attack == false then | |
1666 | if Mode == "Latern" then | |
1667 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.15) | |
1668 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
1669 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15) | |
1670 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15) | |
1671 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1) | |
1672 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1) | |
1673 | HW.C0 = clerp(HW.C0, CF(0, -1.1, 0.4) * angles(Rad(175), Rad(0), Rad(0)), 0.1) | |
1674 | elseif Mode == "Blade" then | |
1675 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.15) | |
1676 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
1677 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15) | |
1678 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15) | |
1679 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1) | |
1680 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1) | |
1681 | HW.C0 = clerp(HW.C0, CF(1, -0.8, -0.2) * angles(Rad(195 + 8.5 * Cos(sine / 20)), Rad(60), Rad(-40)), 0.1) | |
1682 | end | |
1683 | end | |
1684 | elseif torvel < 1 and hitfloor ~= nil then | |
1685 | Anim = "Idle" | |
1686 | change = 1 | |
1687 | if attack == false then | |
1688 | if Mode == "Latern" then | |
1689 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(6), Rad(0), Rad(0)), 0.15) | |
1690 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(8 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
1691 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(60), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(6)), 0.15) | |
1692 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-9)), 0.15) | |
1693 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(13 + 4.5 * Sin(sine / 20)), Rad(13 + 4.5 * Sin(sine / 20))), 0.1) | |
1694 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(16), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1) | |
1695 | HW.C0 = clerp(HW.C0, CF(0, -0.8, 0.6) * angles(Rad(67), Rad(-.6), Rad(10 * Cos(sine / 20))), 0.1) | |
1696 | elseif Mode == "Blade" then | |
1697 | RWeld.C0 = CF(-1, 0, -2.1) * angles(Rad(-180), Rad(0), Rad(90)) | |
1698 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(6), Rad(0), Rad(0)), 0.15) | |
1699 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
1700 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(60), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(6)), 0.15) | |
1701 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-9)), 0.15) | |
1702 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(13 + 4.5 * Sin(sine / 20)), Rad(24 + 4.5 * Sin(sine / 20))), 0.1) | |
1703 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(16), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1) | |
1704 | HW.C0 = clerp(HW.C0, CF(1, -0.8, -0.2) * angles(Rad(180 + 8.5 * Cos(sine / 20)), Rad(60), Rad(-40)), 0.1) | |
1705 | end | |
1706 | end | |
1707 | elseif (tors.Velocity).magnitude < 200 and hitfloor ~= nil then | |
1708 | Anim = "Walk" | |
1709 | change = 1 | |
1710 | if attack == false then | |
1711 | if Mode == "Latern" then | |
1712 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.10 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(4 * Cos(sine / 7))), 0.15) | |
1713 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
1714 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 25 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
1715 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.8 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 25 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
1716 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(13 + 4.5 * Sin(sine / 12)), Rad(13 + 4.5 * Sin(sine / 12))), 0.1) | |
1717 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(-37) * Cos(sine / 7) , Rad(8 * Cos(sine / 7)) , Rad(-6) + la.RotVelocity.Y / 75), 0.1) | |
1718 | HW.C0 = clerp(HW.C0, CF(0, -0.7, 0.6) * angles(Rad(67 + 8 * Cos(sine / 7)), Rad(0), Rad(18 * Cos(sine / 7))), 0.1) | |
1719 | elseif Mode == "Blade" then | |
1720 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.10 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(4 * Cos(sine / 7))), 0.15) | |
1721 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
1722 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 25 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
1723 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.8 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 25 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
1724 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(13 + 4.5 * Sin(sine / 20)), Rad(24 + 4.5 * Sin(sine / 20))), 0.1) | |
1725 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(-37) * Cos(sine / 7) , Rad(8 * Cos(sine / 7)) , Rad(-6) + la.RotVelocity.Y / 75), 0.1) | |
1726 | HW.C0 = clerp(HW.C0, CF(1, -0.8, -0.2) * angles(Rad(180 + 15 * Cos(sine / 3.5)), Rad(60), Rad(-40)), 0.1) | |
1727 | end | |
1728 | end | |
1729 | end | |
1730 | end | |
1731 | Music.SoundId = "rbxassetid://1241912732" | |
1732 | Music.Looped = true | |
1733 | Music.Pitch = 1 | |
1734 | Music.Volume = 20 | |
1735 | Music.Parent = tors | |
1736 | Music:Resume() | |
1737 | if 0 < #Effects then | |
1738 | for e = 1, #Effects do | |
1739 | if Effects[e] ~= nil then | |
1740 | local Thing = Effects[e] | |
1741 | if Thing ~= nil then | |
1742 | local Part = Thing[1] | |
1743 | local Mode = Thing[2] | |
1744 | local Delay = Thing[3] | |
1745 | local IncX = Thing[4] | |
1746 | local IncY = Thing[5] | |
1747 | local IncZ = Thing[6] | |
1748 | if 1 >= Thing[1].Transparency then | |
1749 | if Thing[2] == "Block1" then | |
1750 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1751 | local Mesh = Thing[1].Mesh | |
1752 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1753 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1754 | elseif Thing[2] == "Block2" then | |
1755 | Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0) | |
1756 | local Mesh = Thing[7] | |
1757 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1758 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1759 | elseif Thing[2] == "Block3" then | |
1760 | 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) | |
1761 | local Mesh = Thing[7] | |
1762 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1763 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1764 | elseif Thing[2] == "Cylinder" then | |
1765 | local Mesh = Thing[1].Mesh | |
1766 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1767 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1768 | elseif Thing[2] == "Blood" then | |
1769 | local Mesh = Thing[7] | |
1770 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
1771 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1772 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1773 | elseif Thing[2] == "Elec" then | |
1774 | local Mesh = Thing[1].Mesh | |
1775 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
1776 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1777 | elseif Thing[2] == "Disappear" then | |
1778 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1779 | elseif Thing[2] == "Shatter" then | |
1780 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1781 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
1782 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
1783 | Thing[6] = Thing[6] + Thing[5] | |
1784 | end | |
1785 | else | |
1786 | Part.Parent = nil | |
1787 | table.remove(Effects, e) | |
1788 | end | |
1789 | end | |
1790 | end | |
1791 | end | |
1792 | end | |
1793 | end | |
1794 | ------------------------------------------------------- | |
1795 | --End Animations And Script-- | |
1796 | ------------------------------------------------------- |