SHOW:
|
|
- or go back to the newest paste.
1 | --Sans? | |
2 | ||
3 | Player = game:GetService("Players").LocalPlayer | |
4 | pls = game:GetService'Players' | |
5 | rs = game:GetService'RunService' | |
6 | uinps = game:GetService'UserInputService' | |
7 | lp = pls.LocalPlayer | |
8 | c = lp.Character | |
9 | human = c.Humanoid | |
10 | PlayerGui = Player.PlayerGui | |
11 | Cam = workspace.CurrentCamera | |
12 | Backpack = Player.Backpack | |
13 | Character = Player.Character | |
14 | Humanoid = Character.Humanoid | |
15 | Mouse = Player:GetMouse() | |
16 | RootPart = Character["HumanoidRootPart"] | |
17 | Torso = Character["Torso"] | |
18 | Head = Character["Head"] | |
19 | RightArm = Character["Right Arm"] | |
20 | LeftArm = Character["Left Arm"] | |
21 | RightLeg = Character["Right Leg"] | |
22 | LeftLeg = Character["Left Leg"] | |
23 | RootJoint = RootPart["RootJoint"] | |
24 | Neck = Torso["Neck"] | |
25 | RightShoulder = Torso["Right Shoulder"] | |
26 | LeftShoulder = Torso["Left Shoulder"] | |
27 | RightHip = Torso["Right Hip"] | |
28 | LeftHip = Torso["Left Hip"] | |
29 | local sick = Instance.new("Sound",Character) | |
30 | sick.SoundId = "rbxassetid://531711813" | |
31 | sick.Looped = true | |
32 | sick.Pitch = 1 | |
33 | sick.Volume = 1 | |
34 | Head:ClearAllChildren() | |
35 | ||
36 | local tor = Instance.new("CharacterMesh") | |
37 | tor.Parent = Character | |
38 | tor.Name = "Bones" | |
39 | tor.BodyPart = "Torso" | |
40 | tor.MeshId = "36780113" | |
41 | tor.OverlayTextureId = "36780292" | |
42 | ||
43 | local tor = Instance.new("CharacterMesh") | |
44 | tor.Parent = Character | |
45 | tor.Name = "Bones" | |
46 | tor.BodyPart = "LeftLeg" | |
47 | tor.MeshId = "36780079" | |
48 | tor.OverlayTextureId = "36780292" | |
49 | ||
50 | local tor = Instance.new("CharacterMesh") | |
51 | tor.Parent = Character | |
52 | tor.Name = "Bones" | |
53 | tor.BodyPart = "RightLeg" | |
54 | tor.MeshId = "36780195" | |
55 | tor.OverlayTextureId = "36780292" | |
56 | ||
57 | local tor = Instance.new("CharacterMesh") | |
58 | tor.Parent = Character | |
59 | tor.Name = "Bones" | |
60 | tor.BodyPart = "RightArm" | |
61 | tor.MeshId = "36780156" | |
62 | tor.OverlayTextureId = "36780292" | |
63 | ||
64 | local tor = Instance.new("CharacterMesh") | |
65 | tor.Parent = Character | |
66 | tor.Name = "Bones" | |
67 | tor.BodyPart = "LeftArm" | |
68 | tor.MeshId = "36780032" | |
69 | tor.OverlayTextureId = "36780292" | |
70 | ||
71 | local tor = Instance.new("SpecialMesh") | |
72 | tor.Scale = Vector3.new(1,1,1) | |
73 | tor.MeshType = "FileMesh" | |
74 | tor.MeshId = "http://www.roblox.com/asset/?id=36869983" | |
75 | tor.TextureId = "rbxassetid://36869975" | |
76 | tor.Parent = Head | |
77 | ||
78 | prepareCharacter = function() | |
79 | local transPoints = { | |
80 | NumberSequenceKeypoint.new(0,.819,.0375), | |
81 | NumberSequenceKeypoint.new(.207,.594,.0187), | |
82 | NumberSequenceKeypoint.new(.4,.55,.031), | |
83 | NumberSequenceKeypoint.new(.57,.619,.05), | |
84 | NumberSequenceKeypoint.new(.76,.8,.0375), | |
85 | NumberSequenceKeypoint.new(1,1,0), | |
86 | } | |
87 | local sizePoints = { | |
88 | NumberSequenceKeypoint.new(0,.687,0), | |
89 | NumberSequenceKeypoint.new(.111,.875,0), | |
90 | NumberSequenceKeypoint.new(.327,1.19,0), | |
91 | NumberSequenceKeypoint.new(.646,1.56,0), | |
92 | NumberSequenceKeypoint.new(.805,1.37,0), | |
93 | NumberSequenceKeypoint.new(.905,1.06,0), | |
94 | NumberSequenceKeypoint.new(.968,.938,0), | |
95 | NumberSequenceKeypoint.new(.984,1.13,0), | |
96 | NumberSequenceKeypoint.new(1,1.62,0), | |
97 | } | |
98 | local Size = NumberSequence.new(sizePoints) | |
99 | local Transparency = NumberSequence.new(transPoints) | |
100 | rayModel = Instance.new("Model",c) | |
101 | efxBlock = Instance.new("Part",c) | |
102 | efxBlock.BrickColor = BrickColor.new("Cyan") | |
103 | efxBlock.Material = "Neon" | |
104 | efxBlock.FormFactor = "Custom" | |
105 | efxBlock.Transparency = .3 | |
106 | efxBlock.Size = Vector3.new(.3,.3,.3) | |
107 | local mesh = Instance.new("SpecialMesh",efxBlock) | |
108 | mesh.MeshType = Enum.MeshType.Sphere | |
109 | mesh.Scale = Vector3.new(1,1,1) | |
110 | light = Instance.new("PointLight",c.Head) | |
111 | light.Range = 10 | |
112 | light.Color = Color3.new(0,200/255,1) | |
113 | light.Shadows = false | |
114 | local particles = Instance.new("ParticleEmitter",efxBlock) | |
115 | particles.Color = ColorSequence.new(Color3.new(0,0,225/255),Color3.new(20/255,190/255,205/255)) | |
116 | particles.LightEmission = .95 | |
117 | particles.Size = Size | |
118 | particles.Name = "Fire" | |
119 | particles.Transparency = Transparency | |
120 | particles.LockedToPart = true | |
121 | particles.VelocityInheritance = .5 | |
122 | particles.LockedToPart = true | |
123 | particles.Rate = 70 | |
124 | particles.Texture = "rbxassetid://56561915" | |
125 | particles.Lifetime = NumberRange.new(2,2) | |
126 | particles.RotSpeed = NumberRange.new(100,100) | |
127 | particles.Speed = NumberRange.new(7,7) | |
128 | script.Parent = efxBlock | |
129 | fire = particles | |
130 | local offset = Vector3.new(-0.11, .23, -0.5) | |
131 | local weld = Instance.new("Weld",c.Head) | |
132 | weld.Part0 = c.Head | |
133 | weld.Part1 = efxBlock | |
134 | weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40),math.rad(10),math.rad(40)) | |
135 | efxBlock.Parent = c | |
136 | local music = Instance.new("Sound",c) | |
137 | music.SoundId = "rbxassetid://316012176" | |
138 | music.Looped = true | |
139 | music.Volume = 0 | |
140 | fight = music | |
141 | local music2 = Instance.new("Sound",c) | |
142 | music2.SoundId = "rbxassetid://316014309" | |
143 | music2.Looped = true | |
144 | music2.Volume = 0 | |
145 | sans = music2 | |
146 | pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart) | |
147 | pointGyro.P = 1e7 | |
148 | pointGyro.D = 1e3 | |
149 | pointGyro.MaxTorque = Vector3.new(0,1e7,0) | |
150 | animator = c.Humanoid:FindFirstChild("Animator") | |
151 | if animator then | |
152 | animator:Destroy() | |
153 | end | |
154 | c.Torso.roblox:Destroy() | |
155 | for i,v in pairs (c.Head:children()) do | |
156 | if v.ClassName == "Sound" then | |
157 | v:Destroy() | |
158 | end | |
159 | end | |
160 | for i = 1,#Joints do | |
161 | Joints[i].C1 = CFrame.new(Vector3.new()) | |
162 | end | |
163 | human.WalkSpeed = 0 | |
164 | human.JumpPower = 0 | |
165 | end | |
166 | ||
167 | uinps.InputBegan:connect(function(InputObject) | |
168 | if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then | |
169 | Debounces.isPassive = not Debounces.isPassive | |
170 | end | |
171 | end) | |
172 | ||
173 | setJointCFrames = function(table) | |
174 | for i = 1,#table do | |
175 | JointTargets[i] = table[i] | |
176 | end | |
177 | AnimationCycles = 0 | |
178 | end | |
179 | ||
180 | setLerp = function(speed) | |
181 | AnimStat.lerpSpeed = speed | |
182 | end | |
183 | ||
184 | setTween = function(tween) | |
185 | AnimStat.lerpTween = tween | |
186 | end | |
187 | ||
188 | takeDamage = function(position,damage,distance,platformStand) | |
189 | for i,v in pairs (pls:children()) do | |
190 | if v.ClassName == "Player" and v:FindFirstChild("Character") then | |
191 | local torso = v.Character:FindFirstChild("Torso") | |
192 | if torso and (torso.Position - position).magnitude < distance then | |
193 | v.Character.Humanoid:TakeDamage(damage) | |
194 | if platformStand == true then | |
195 | v.Character.PlatformStand = platformStand | |
196 | end | |
197 | end | |
198 | end | |
199 | end | |
200 | end | |
201 | ||
202 | ||
203 | prepareCharacter() | |
204 | ||
205 | local IDs = {133830212,235845120} | |
206 | local p=game:service("Players").LocalPlayer | |
207 | Instance.new("ForceField", game.Players.LocalPlayer.Character). Visible = false | |
208 | local Player = game:service'Players'.localPlayer | |
209 | Character = Player.Character | |
210 | Head = Character["Head"] | |
211 | local char=p.Character | |
212 | Humanoid = Character.Humanoid | |
213 | local hum=char.Humanoid | |
214 | local chara = Player.Character | |
215 | hum.MaxHealth= math.huge | |
216 | hum.Health=hum.MaxHealth | |
217 | function swait(num) | |
218 | if num==0 or num==nil then | |
219 | game:service'RunService'.Stepped:wait(0) | |
220 | else | |
221 | for i=0,num do | |
222 | game:service'RunService'.Stepped:wait(0) | |
223 | end | |
224 | end | |
225 | end | |
226 | do | |
227 | local filteredMessages = { ['____'] = '___' }; | |
228 | local onPropertyChanged = function (obj) | |
229 | if (obj:isDescendantOf (workspace)) then | |
230 | local objText = obj.Text; | |
231 | ||
232 | if (objText ~= '___' and objText:find '(%S)') then | |
233 | if (filteredMessages [objText] and filteredMessages [objText] ~= objText) then | |
234 | obj.Text = filteredMessages [objText]; | |
235 | elseif (not filteredMessages [objText]) then | |
236 | obj.Text = '___'; | |
237 | ||
238 | local filtered = game:service 'Chat':FilterStringForBroadcast (objText, game:service 'Players'.localPlayer); | |
239 | ||
240 | filteredMessages [objText] = filtered; | |
241 | filteredMessages [filtered] = filtered; | |
242 | ||
243 | obj.Text = filtered; | |
244 | end; | |
245 | end; | |
246 | end; | |
247 | end; | |
248 | ||
249 | local newInstance = Instance.new; | |
250 | Instance = { | |
251 | new = function (class, parent) | |
252 | local obj = newInstance (class, parent); | |
253 | ||
254 | if (pcall (function()return obj.Text;end)) then | |
255 | obj:getPropertyChangedSignal ('Parent'):connect (function () onPropertyChanged (obj) end); | |
256 | obj:getPropertyChangedSignal ('Text'):connect (function() onPropertyChanged (obj) end); | |
257 | end; | |
258 | ||
259 | return obj; | |
260 | end; | |
261 | }; | |
262 | end; | |
263 | plr = game.Players.LocalPlayer | |
264 | mouse = plr:GetMouse() | |
265 | part = nil | |
266 | bp = nil | |
267 | particles = nil | |
268 | base = Instance.new("ScreenGui",plr.PlayerGui) | |
269 | bbg = Instance.new("BillboardGui",plr.Character.Head) | |
270 | bbg.Size = UDim2.new(0,200,0,50) | |
271 | bbg.StudsOffset = Vector3.new(0,1.5,3) | |
272 | bbgTl = Instance.new("TextLabel",bbg) | |
273 | bbgTl.BackgroundTransparency = 1 | |
274 | bbgTl.Size = UDim2.new(10,0,1,0) | |
275 | bbgTl.Position = UDim2.new(-4.5,0,0,0) | |
276 | bbgTl.Font = "Cartoon" | |
277 | bbgTl.Text = " " | |
278 | bbgTl.TextSize = 42 | |
279 | bbgTl.TextStrokeColor3 = Color3.new(0,0,0) | |
280 | bbgTl.TextStrokeTransparency = 0 | |
281 | bbgTl.TextWrapped = true | |
282 | plr.Chatted:connect(function(msg) | |
283 | bbgTl.Text = msg | |
284 | wait(5) | |
285 | if bbgTl.Text == msg then | |
286 | bbgTl.Text = " " | |
287 | while true do | |
288 | bbgTl.TextColor3 = Color3.new (math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random()) | |
289 | wait(.1) | |
290 | end | |
291 | end | |
292 | end) | |
293 | function thread(f) | |
294 | coroutine.resume(coroutine.create(f)) | |
295 | end | |
296 | function clerp(a, b, t) | |
297 | local qa = { | |
298 | QuaternionFromCFrame(a) | |
299 | } | |
300 | local qb = { | |
301 | QuaternionFromCFrame(b) | |
302 | } | |
303 | local ax, ay, az = a.x, a.y, a.z | |
304 | local bx, by, bz = b.x, b.y, b.z | |
305 | local _t = 1 - t | |
306 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
307 | end | |
308 | function QuaternionFromCFrame(cf) | |
309 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
310 | local trace = m00 + m11 + m22 | |
311 | if trace > 0 then | |
312 | local s = math.sqrt(1 + trace) | |
313 | local recip = 0.5 / s | |
314 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
315 | else | |
316 | local i = 0 | |
317 | if m00 < m11 then | |
318 | i = 1 | |
319 | end | |
320 | if m22 > (i == 0 and m00 or m11) then | |
321 | i = 2 | |
322 | end | |
323 | if i == 0 then | |
324 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
325 | local recip = 0.5 / s | |
326 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
327 | elseif i == 1 then | |
328 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
329 | local recip = 0.5 / s | |
330 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
331 | elseif i == 2 then | |
332 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
333 | local recip = 0.5 / s | |
334 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
335 | end | |
336 | end | |
337 | end | |
338 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
339 | local xs, ys, zs = x + x, y + y, z + z | |
340 | local wx, wy, wz = w * xs, w * ys, w * zs | |
341 | local xx = x * xs | |
342 | local xy = x * ys | |
343 | local xz = x * zs | |
344 | local yy = y * ys | |
345 | local yz = y * zs | |
346 | local zz = z * zs | |
347 | 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)) | |
348 | end | |
349 | function QuaternionSlerp(a, b, t) | |
350 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
351 | local startInterp, finishInterp | |
352 | if cosTheta >= 1.0E-4 then | |
353 | if 1 - cosTheta > 1.0E-4 then | |
354 | local theta = math.acos(cosTheta) | |
355 | local invSinTheta = 1 / math.sin(theta) | |
356 | startInterp = math.sin((1 - t) * theta) * invSinTheta | |
357 | finishInterp = math.sin(t * theta) * invSinTheta | |
358 | else | |
359 | startInterp = 1 - t | |
360 | finishInterp = t | |
361 | end | |
362 | elseif 1 + cosTheta > 1.0E-4 then | |
363 | local theta = math.acos(-cosTheta) | |
364 | local invSinTheta = 1 / math.sin(theta) | |
365 | startInterp = math.sin((t - 1) * theta) * invSinTheta | |
366 | finishInterp = math.sin(t * theta) * invSinTheta | |
367 | else | |
368 | startInterp = t - 1 | |
369 | finishInterp = t | |
370 | end | |
371 | 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 | |
372 | end | |
373 | function rayCast(Position, Direction, Range, Ignore) | |
374 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
375 | end | |
376 | ||
377 | wait() | |
378 | local plr = game:service'Players'.LocalPlayer | |
379 | local char = plr.Character | |
380 | local hum = char.Humanoid | |
381 | local ra = char["Right Arm"] | |
382 | local la= char["Left Arm"] | |
383 | local rl= char["Right Leg"] | |
384 | local ll = char["Left Leg"] | |
385 | local hed = char.Head | |
386 | local root = char.HumanoidRootPart | |
387 | local rootj = root.RootJoint | |
388 | local tors = char.Torso | |
389 | local mouse = plr:GetMouse() | |
390 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
391 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
392 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
393 | local maincolor = BrickColor.new("Magenta") | |
394 | cf = CFrame.new | |
395 | angles = CFrame.Angles | |
396 | attack = false | |
397 | euler=CFrame.fromEulerAnglesXYZ | |
398 | equipped = false | |
399 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
400 | RSH, LSH = nil, nil | |
401 | RW = Instance.new("Weld") | |
402 | LW = Instance.new("Weld") | |
403 | RH = tors["Right Hip"] | |
404 | LH = tors["Left Hip"] | |
405 | RSH = tors["Right Shoulder"] | |
406 | LSH = tors["Left Shoulder"] | |
407 | RSH.Parent = nil | |
408 | LSH.Parent = nil | |
409 | RW.Name = "RW" | |
410 | RW.Part0 = tors | |
411 | RW.C0 = CFrame.new(1.5, 0.5, 0) | |
412 | RW.C1 = CFrame.new(0, 0.5, 0) | |
413 | RW.Part1 = ra | |
414 | RW.Parent = tors | |
415 | LW.Name = "LW" | |
416 | LW.Part0 = tors | |
417 | LW.C0 = CFrame.new(-1.5, 0.5, 0) | |
418 | LW.C1 = CFrame.new(0, 0.5, 0) | |
419 | LW.Part1 = la | |
420 | LW.Parent = tors | |
421 | print('User is '..plr.Name) | |
422 | Effects = {} | |
423 | ||
424 | ||
425 | ArtificialHB = Instance.new("BindableEvent", script) | |
426 | ArtificialHB.Name = "Heartbeat" | |
427 | ||
428 | script:WaitForChild("Heartbeat") | |
429 | ||
430 | frame = 1 / 60 | |
431 | tf = 0 | |
432 | allowframeloss = false | |
433 | tossremainder = false | |
434 | lastframe = tick() | |
435 | script.Heartbeat:Fire() | |
436 | ||
437 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
438 | tf = tf + s | |
439 | if tf >= frame then | |
440 | if allowframeloss then | |
441 | script.Heartbeat:Fire() | |
442 | lastframe = tick() | |
443 | else | |
444 | for i = 1, math.floor(tf / frame) do | |
445 | script.Heartbeat:Fire() | |
446 | end | |
447 | lastframe = tick() | |
448 | end | |
449 | if tossremainder then | |
450 | tf = 0 | |
451 | else | |
452 | tf = tf - frame * math.floor(tf / frame) | |
453 | end | |
454 | end | |
455 | end) | |
456 | local RbxUtility = LoadLibrary("RbxUtility") | |
457 | local Create = RbxUtility.Create | |
458 | ||
459 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
460 | if hit.Parent == nil then | |
461 | return | |
462 | end | |
463 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
464 | for _, v in pairs(hit.Parent:children()) do | |
465 | if v:IsA("Humanoid") then | |
466 | h = v | |
467 | end | |
468 | end | |
469 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then | |
470 | warn'No R15 allowed' | |
471 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
472 | end | |
473 | ||
474 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
475 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
476 | if hit.Parent.DebounceHit.Value == true then | |
477 | return | |
478 | end | |
479 | end | |
480 | if insta == true then | |
481 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
482 | end | |
483 | local c = Create("ObjectValue"){ | |
484 | Name = "creator", | |
485 | Value = game:service("Players").LocalPlayer, | |
486 | Parent = h, | |
487 | } | |
488 | game:GetService("Debris"):AddItem(c, .5) | |
489 | if HitSound ~= nil and HitPitch ~= nil then | |
490 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
491 | end | |
492 | local Damage = math.random(minim, maxim) | |
493 | local blocked = false | |
494 | local block = hit.Parent:findFirstChild("Block") | |
495 | if block ~= nil then | |
496 | if block.className == "IntValue" then | |
497 | if block.Value > 0 then | |
498 | blocked = true | |
499 | block.Value = block.Value - 1 | |
500 | print(block.Value) | |
501 | end | |
502 | end | |
503 | end | |
504 | if blocked == false then | |
505 | h.Health = h.Health - Damage | |
506 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
507 | else | |
508 | h.Health = h.Health - (Damage / 2) | |
509 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
510 | end | |
511 | if Type == "Knockdown" then | |
512 | local hum = hit.Parent.Humanoid | |
513 | hum.PlatformStand = true | |
514 | coroutine.resume(coroutine.create(function(HHumanoid) | |
515 | swait(1) | |
516 | HHumanoid.PlatformStand = false | |
517 | end), hum) | |
518 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
519 | local bodvol = Create("BodyVelocity"){ | |
520 | velocity = angle * knockback, | |
521 | P = 5000, | |
522 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
523 | Parent = hit, | |
524 | } | |
525 | local rl = Create("BodyAngularVelocity"){ | |
526 | P = 3000, | |
527 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
528 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
529 | Parent = hit, | |
530 | } | |
531 | game:GetService("Debris"):AddItem(bodvol, .5) | |
532 | game:GetService("Debris"):AddItem(rl, .5) | |
533 | elseif Type == "Normal" then | |
534 | local vp = Create("BodyVelocity"){ | |
535 | P = 500, | |
536 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
537 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
538 | } | |
539 | if knockback > 0 then | |
540 | vp.Parent = hit.Parent.Torso | |
541 | end | |
542 | game:GetService("Debris"):AddItem(vp, .5) | |
543 | elseif Type == "Up" then | |
544 | local bodyVelocity = Create("BodyVelocity"){ | |
545 | velocity = Vector3.new(0, 20, 0), | |
546 | P = 5000, | |
547 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
548 | Parent = hit, | |
549 | } | |
550 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
551 | elseif Type == "DarkUp" then | |
552 | coroutine.resume(coroutine.create(function() | |
553 | for i = 0, 1, 0.1 do | |
554 | swait() | |
555 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
556 | end | |
557 | end)) | |
558 | local bodyVelocity = Create("BodyVelocity"){ | |
559 | velocity = Vector3.new(0, 20, 0), | |
560 | P = 5000, | |
561 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
562 | Parent = hit, | |
563 | } | |
564 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
565 | elseif Type == "Snare" then | |
566 | local bp = Create("BodyPosition"){ | |
567 | P = 2000, | |
568 | D = 100, | |
569 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
570 | position = hit.Parent.Torso.Position, | |
571 | Parent = hit.Parent.Torso, | |
572 | } | |
573 | game:GetService("Debris"):AddItem(bp, 1) | |
574 | elseif Type == "Freeze" then | |
575 | local BodPos = Create("BodyPosition"){ | |
576 | P = 50000, | |
577 | D = 1000, | |
578 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
579 | position = hit.Parent.Torso.Position, | |
580 | Parent = hit.Parent.Torso, | |
581 | } | |
582 | local BodGy = Create("BodyGyro") { | |
583 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
584 | P = 20e+003, | |
585 | Parent = hit.Parent.Torso, | |
586 | cframe = hit.Parent.Torso.CFrame, | |
587 | } | |
588 | hit.Parent.Torso.Anchored = true | |
589 | coroutine.resume(coroutine.create(function(Part) | |
590 | swait(1.5) | |
591 | Part.Anchored = false | |
592 | end), hit.Parent.Torso) | |
593 | game:GetService("Debris"):AddItem(BodPos, 3) | |
594 | game:GetService("Debris"):AddItem(BodGy, 3) | |
595 | end | |
596 | local debounce = Create("BoolValue"){ | |
597 | Name = "DebounceHit", | |
598 | Parent = hit.Parent, | |
599 | Value = true, | |
600 | } | |
601 | game:GetService("Debris"):AddItem(debounce, Delay) | |
602 | c = Create("ObjectValue"){ | |
603 | Name = "creator", | |
604 | Value = Player, | |
605 | Parent = h, | |
606 | } | |
607 | game:GetService("Debris"):AddItem(c, .5) | |
608 | end | |
609 | end | |
610 | ||
611 | function ShowDamage(Pos, Text, Time, Color) | |
612 | local Rate = (1 / 30) | |
613 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
614 | local Text = (Text or "") | |
615 | local Time = (Time or 2) | |
616 | local Color = (Color or Color3.new(1, 0, 1)) | |
617 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
618 | EffectPart.Anchored = true | |
619 | local BillboardGui = Create("BillboardGui"){ | |
620 | Size = UDim2.new(3, 0, 3, 0), | |
621 | Adornee = EffectPart, | |
622 | Parent = EffectPart, | |
623 | } | |
624 | local TextLabel = Create("TextLabel"){ | |
625 | BackgroundTransparency = 1, | |
626 | Size = UDim2.new(1, 0, 1, 0), | |
627 | Text = Text, | |
628 | Font = "Highway", | |
629 | TextColor3 = Color, | |
630 | TextScaled = true, | |
631 | Parent = BillboardGui, | |
632 | } | |
633 | game.Debris:AddItem(EffectPart, (Time)) | |
634 | EffectPart.Parent = game:GetService("Workspace") | |
635 | delay(0, function() | |
636 | local Frames = (Time / Rate) | |
637 | for Frame = 1, Frames do | |
638 | wait(Rate) | |
639 | local Percent = (Frame / Frames) | |
640 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
641 | TextLabel.TextTransparency = Percent | |
642 | end | |
643 | if EffectPart and EffectPart.Parent then | |
644 | EffectPart:Destroy() | |
645 | end | |
646 | end) | |
647 | end | |
648 | function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch) | |
649 | for _, c in pairs(workspace:children()) do | |
650 | local hum = c:findFirstChild("Humanoid") | |
651 | if hum ~= nil then | |
652 | local head = c:findFirstChild("Torso") or c:findFirstChild("UpperTorso") or c:FindFirstChild('LowerTorso') | |
653 | if head ~= nil then | |
654 | local targ = head.Position - Part.Position | |
655 | local mag = targ.magnitude | |
656 | if mag <= Magnitude and c.Name ~= plr.Name then | |
657 | Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, root, .1, "rbxassetid://" .. HitSound, HitPitch) | |
658 | end | |
659 | end | |
660 | end | |
661 | end | |
662 | end | |
663 | CFuncs = { | |
664 | Part = { | |
665 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
666 | local Part = Create("Part")({ | |
667 | Parent = Parent, | |
668 | Reflectance = Reflectance, | |
669 | Transparency = Transparency, | |
670 | CanCollide = false, | |
671 | Locked = true, | |
672 | BrickColor = BrickColor.new(tostring(BColor)), | |
673 | Name = Name, | |
674 | Size = Size, | |
675 | Material = Material | |
676 | }) | |
677 | RemoveOutlines(Part) | |
678 | return Part | |
679 | end | |
680 | }, | |
681 | Mesh = { | |
682 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
683 | local Msh = Create(Mesh)({ | |
684 | Parent = Part, | |
685 | Offset = OffSet, | |
686 | Scale = Scale | |
687 | }) | |
688 | if Mesh == "SpecialMesh" then | |
689 | Msh.MeshType = MeshType | |
690 | Msh.MeshId = MeshId | |
691 | end | |
692 | return Msh | |
693 | end | |
694 | }, | |
695 | Mesh = { | |
696 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
697 | local Msh = Create(Mesh)({ | |
698 | Parent = Part, | |
699 | Offset = OffSet, | |
700 | Scale = Scale | |
701 | }) | |
702 | if Mesh == "SpecialMesh" then | |
703 | Msh.MeshType = MeshType | |
704 | Msh.MeshId = MeshId | |
705 | end | |
706 | return Msh | |
707 | end | |
708 | }, | |
709 | Weld = { | |
710 | Create = function(Parent, Part0, Part1, C0, C1) | |
711 | local Weld = Create("Weld")({ | |
712 | Parent = Parent, | |
713 | Part0 = Part0, | |
714 | Part1 = Part1, | |
715 | C0 = C0, | |
716 | C1 = C1 | |
717 | }) | |
718 | return Weld | |
719 | end | |
720 | }, | |
721 | Sound = { | |
722 | Create = function(id, par, vol, pit) | |
723 | coroutine.resume(coroutine.create(function() | |
724 | local S = Create("Sound")({ | |
725 | Volume = vol, | |
726 | Pitch = pit or 1, | |
727 | SoundId = id, | |
728 | Parent = par or workspace | |
729 | }) | |
730 | wait() | |
731 | S:play() | |
732 | game:GetService("Debris"):AddItem(S, 6) | |
733 | end)) | |
734 | end | |
735 | }, | |
736 | ParticleEmitter = { | |
737 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
738 | local fp = Create("ParticleEmitter")({ | |
739 | Parent = Parent, | |
740 | Color = ColorSequence.new(Color1, Color2), | |
741 | LightEmission = LightEmission, | |
742 | Size = Size, | |
743 | Texture = Texture, | |
744 | Transparency = Transparency, | |
745 | ZOffset = ZOffset, | |
746 | Acceleration = Accel, | |
747 | Drag = Drag, | |
748 | LockedToPart = LockedToPart, | |
749 | VelocityInheritance = VelocityInheritance, | |
750 | EmissionDirection = EmissionDirection, | |
751 | Enabled = Enabled, | |
752 | Lifetime = LifeTime, | |
753 | Rate = Rate, | |
754 | Rotation = Rotation, | |
755 | RotSpeed = RotSpeed, | |
756 | Speed = Speed, | |
757 | VelocitySpread = VelocitySpread | |
758 | }) | |
759 | return fp | |
760 | end | |
761 | } | |
762 | } | |
763 | function RemoveOutlines(part) | |
764 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
765 | end | |
766 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
767 | local Part = Create("Part")({ | |
768 | formFactor = FormFactor, | |
769 | Parent = Parent, | |
770 | Reflectance = Reflectance, | |
771 | Transparency = Transparency, | |
772 | CanCollide = false, | |
773 | Locked = true, | |
774 | BrickColor = BrickColor.new(tostring(BColor)), | |
775 | Name = Name, | |
776 | Size = Size, | |
777 | Material = Material | |
778 | }) | |
779 | RemoveOutlines(Part) | |
780 | return Part | |
781 | end | |
782 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
783 | local Msh = Create(Mesh)({ | |
784 | Parent = Part, | |
785 | Offset = OffSet, | |
786 | Scale = Scale | |
787 | }) | |
788 | if Mesh == "SpecialMesh" then | |
789 | Msh.MeshType = MeshType | |
790 | Msh.MeshId = MeshId | |
791 | end | |
792 | return Msh | |
793 | end | |
794 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
795 | local Weld = Create("Weld")({ | |
796 | Parent = Parent, | |
797 | Part0 = Part0, | |
798 | Part1 = Part1, | |
799 | C0 = C0, | |
800 | C1 = C1 | |
801 | }) | |
802 | return Weld | |
803 | end | |
804 | EffectModel = Instance.new("Model", char) | |
805 | Effects = { | |
806 | Block = { | |
807 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
808 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
809 | prt.Anchored = true | |
810 | prt.CFrame = cframe | |
811 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
812 | game:GetService("Debris"):AddItem(prt, 10) | |
813 | if Type == 1 or Type == nil then | |
814 | table.insert(Effects, { | |
815 | prt, | |
816 | "Block1", | |
817 | delay, | |
818 | x3, | |
819 | y3, | |
820 | z3, | |
821 | msh | |
822 | }) | |
823 | elseif Type == 2 then | |
824 | table.insert(Effects, { | |
825 | prt, | |
826 | "Block2", | |
827 | delay, | |
828 | x3, | |
829 | y3, | |
830 | z3, | |
831 | msh | |
832 | }) | |
833 | else | |
834 | table.insert(Effects, { | |
835 | prt, | |
836 | "Block3", | |
837 | delay, | |
838 | x3, | |
839 | y3, | |
840 | z3, | |
841 | msh | |
842 | }) | |
843 | end | |
844 | end | |
845 | }, | |
846 | Sphere = { | |
847 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
848 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
849 | prt.Anchored = true | |
850 | prt.CFrame = cframe | |
851 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
852 | game:GetService("Debris"):AddItem(prt, 10) | |
853 | table.insert(Effects, { | |
854 | prt, | |
855 | "Cylinder", | |
856 | delay, | |
857 | x3, | |
858 | y3, | |
859 | z3, | |
860 | msh | |
861 | }) | |
862 | end | |
863 | }, | |
864 | Cylinder = { | |
865 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
866 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
867 | prt.Anchored = true | |
868 | prt.CFrame = cframe | |
869 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
870 | game:GetService("Debris"):AddItem(prt, 10) | |
871 | table.insert(Effects, { | |
872 | prt, | |
873 | "Cylinder", | |
874 | delay, | |
875 | x3, | |
876 | y3, | |
877 | z3, | |
878 | msh | |
879 | }) | |
880 | end | |
881 | }, | |
882 | Wave = { | |
883 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
884 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
885 | prt.Anchored = true | |
886 | prt.CFrame = cframe | |
887 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://431164262", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60)) | |
888 | game:GetService("Debris"):AddItem(prt, 10) | |
889 | table.insert(Effects, { | |
890 | prt, | |
891 | "Cylinder", | |
892 | delay, | |
893 | x3 / 60, | |
894 | y3 / 60, | |
895 | z3 / 60, | |
896 | msh | |
897 | }) | |
898 | end | |
899 | }, | |
900 | Ring = { | |
901 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
902 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
903 | prt.Anchored = true | |
904 | prt.CFrame = cframe | |
905 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
906 | game:GetService("Debris"):AddItem(prt, 10) | |
907 | table.insert(Effects, { | |
908 | prt, | |
909 | "Cylinder", | |
910 | delay, | |
911 | x3, | |
912 | y3, | |
913 | z3, | |
914 | msh | |
915 | }) | |
916 | end | |
917 | }, | |
918 | Break = { | |
919 | Create = function(brickcolor, cframe, x1, y1, z1) | |
920 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
921 | prt.Anchored = true | |
922 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
923 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
924 | local num = math.random(10, 50) / 1000 | |
925 | game:GetService("Debris"):AddItem(prt, 10) | |
926 | table.insert(Effects, { | |
927 | prt, | |
928 | "Shatter", | |
929 | num, | |
930 | prt.CFrame, | |
931 | math.random() - math.random(), | |
932 | 0, | |
933 | math.random(50, 100) / 100 | |
934 | }) | |
935 | end | |
936 | } | |
937 | } | |
938 | function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
939 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
940 | prt.Anchored = true | |
941 | prt.CFrame = cframe | |
942 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
943 | game:GetService("Debris"):AddItem(prt, 10) | |
944 | if Type == 1 or Type == nil then | |
945 | table.insert(Effects, { | |
946 | prt, | |
947 | "Block1", | |
948 | delay, | |
949 | x3, | |
950 | y3, | |
951 | z3, | |
952 | msh | |
953 | }) | |
954 | elseif Type == 2 then | |
955 | table.insert(Effects, { | |
956 | prt, | |
957 | "Block2", | |
958 | delay, | |
959 | x3, | |
960 | y3, | |
961 | z3, | |
962 | msh | |
963 | }) | |
964 | elseif Type == 3 then | |
965 | table.insert(Effects, { | |
966 | prt, | |
967 | "Block3", | |
968 | delay, | |
969 | x3, | |
970 | y3, | |
971 | z3, | |
972 | msh | |
973 | }) | |
974 | end | |
975 | end | |
976 | function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
977 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
978 | prt.Anchored = true | |
979 | prt.CFrame = cframe | |
980 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
981 | game:GetService("Debris"):AddItem(prt, 10) | |
982 | table.insert(Effects, { | |
983 | prt, | |
984 | "Cylinder", | |
985 | delay, | |
986 | x3, | |
987 | y3, | |
988 | z3, | |
989 | msh | |
990 | }) | |
991 | end | |
992 | function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
993 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
994 | prt.Anchored = true | |
995 | prt.CFrame = cframe * CFrame.new(x1, y1, z1) | |
996 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
997 | game:GetService("Debris"):AddItem(prt, 10) | |
998 | table.insert(Effects, { | |
999 | prt, | |
1000 | "Cylinder", | |
1001 | delay, | |
1002 | x3, | |
1003 | y3, | |
1004 | z3, | |
1005 | msh | |
1006 | }) | |
1007 | end | |
1008 | function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1009 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1010 | prt.Anchored = true | |
1011 | prt.CFrame = cframe | |
1012 | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1013 | game:GetService("Debris"):AddItem(prt, 10) | |
1014 | table.insert(Effects, { | |
1015 | prt, | |
1016 | "Cylinder", | |
1017 | delay, | |
1018 | x3, | |
1019 | y3, | |
1020 | z3, | |
1021 | msh | |
1022 | }) | |
1023 | end | |
1024 | function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1025 | local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1026 | prt.Anchored = true | |
1027 | prt.CFrame = cframe | |
1028 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1029 | game:GetService("Debris"):AddItem(prt, 10) | |
1030 | table.insert(Effects, { | |
1031 | prt, | |
1032 | "Cylinder", | |
1033 | delay, | |
1034 | x3, | |
1035 | y3, | |
1036 | z3, | |
1037 | msh | |
1038 | }) | |
1039 | end | |
1040 | function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1041 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1042 | prt.Anchored = true | |
1043 | prt.CFrame = cframe | |
1044 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1045 | game:GetService("Debris"):AddItem(prt, 10) | |
1046 | table.insert(Effects, { | |
1047 | prt, | |
1048 | "Cylinder", | |
1049 | delay, | |
1050 | x3, | |
1051 | y3, | |
1052 | z3, | |
1053 | msh | |
1054 | }) | |
1055 | end | |
1056 | function BreakEffect(brickcolor, cframe, x1, y1, z1) | |
1057 | local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
1058 | prt.Anchored = true | |
1059 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1060 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1061 | local num = math.random(10, 50) / 1000 | |
1062 | game:GetService("Debris"):AddItem(prt, 10) | |
1063 | table.insert(Effects, { | |
1064 | prt, | |
1065 | "Shatter", | |
1066 | num, | |
1067 | prt.CFrame, | |
1068 | math.random() - math.random(), | |
1069 | 0, | |
1070 | math.random(50, 100) / 100 | |
1071 | }) | |
1072 | end | |
1073 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
1074 | local fp=Instance.new("Part") | |
1075 | fp.formFactor=formfactor | |
1076 | fp.Parent=parent | |
1077 | fp.Reflectance=reflectance | |
1078 | fp.Transparency=transparency | |
1079 | fp.CanCollide=false | |
1080 | fp.Locked=true | |
1081 | fp.BrickColor=brickcolor | |
1082 | fp.Name=name | |
1083 | fp.Size=size | |
1084 | fp.Position=tors.Position | |
1085 | RemoveOutlines(fp) | |
1086 | fp.Material="SmoothPlastic" | |
1087 | fp:BreakJoints() | |
1088 | return fp | |
1089 | end | |
1090 | ||
1091 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
1092 | local mesh=Instance.new(Mesh) | |
1093 | mesh.Parent=part | |
1094 | if Mesh=="SpecialMesh" then | |
1095 | mesh.MeshType=meshtype | |
1096 | if meshid~="nil" then | |
1097 | mesh.MeshId="http://www.roblox.com/asset/?id="..meshid | |
1098 | end | |
1099 | end | |
1100 | mesh.Offset=offset | |
1101 | mesh.Scale=scale | |
1102 | return mesh | |
1103 | end | |
1104 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1105 | local prt=part(3,char,0,0,brickcolor,"Effect",Vector3.new(0.5,0.5,0.5)) | |
1106 | prt.Anchored=true | |
1107 | prt.Material = "Neon" | |
1108 | prt.CFrame=cframe | |
1109 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1110 | msh=mesh("BlockMesh",prt,"","",Vector3.new(0,0,0),Vector3.new(x1,y1,z1)) | |
1111 | game:GetService("Debris"):AddItem(prt,5) | |
1112 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1113 | for i=0,1,delay do | |
1114 | swait() | |
1115 | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1116 | Part.Transparency=i | |
1117 | Mesh.Scale=Mesh.Scale+Vector3.new(x3,y3,z3) | |
1118 | end | |
1119 | Part.Parent=nil | |
1120 | end),prt,msh) | |
1121 | end | |
1122 | function MagicShockTrailAlt2(origcolor2,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
1123 | local prt=part(3,char,0,0,origcolor2,"Effect",Vector3.new(0.5,0.5,0.5)) | |
1124 | prt.Anchored=true | |
1125 | prt.Material = "Neon" | |
1126 | prt.CFrame=cframe | |
1127 | msh=mesh("BlockMesh",prt,"","",Vector3.new(0,0,0),Vector3.new(x1,y1,z1)) | |
1128 | game:GetService("Debris"):AddItem(prt,5) | |
1129 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1130 | local rtype = rottype | |
1131 | for i=0,1,delay do | |
1132 | swait() | |
1133 | if rtype == 1 then | |
1134 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
1135 | elseif rtype == 2 then | |
1136 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
1137 | end | |
1138 | prt.Transparency=i | |
1139 | Mesh.Scale=Mesh.Scale+Vector3.new(x3,y3,z3) | |
1140 | end | |
1141 | Part.Parent=nil | |
1142 | end),prt,msh) | |
1143 | end | |
1144 | ||
1145 | ||
1146 | ||
1147 | New = function(Object, Parent, Name, Data) | |
1148 | local Object = Instance.new(Object) | |
1149 | for Index, Value in pairs(Data or {}) do | |
1150 | Object[Index] = Value | |
1151 | end | |
1152 | Object.Parent = Parent | |
1153 | Object.Name = Name | |
1154 | return Object | |
1155 | end | |
1156 | ||
1157 | RubiksCube = New("Model",char,"RubiksCube",{}) | |
1158 | ||
1159 | local NewInstance = function(instance,parent,properties) | |
1160 | local inst = Instance.new(instance,parent) | |
1161 | if(properties)then | |
1162 | for i,v in next, properties do | |
1163 | pcall(function() inst[i] = v end) | |
1164 | end | |
1165 | end | |
1166 | return inst; | |
1167 | end | |
1168 | local HW = NewInstance('Weld',char,{Part0=tors,Part1=Handle,C0 = CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-65),0,math.rad(-90))}) | |
1169 | ||
1170 | function intro() | |
1171 | attack = true | |
1172 | for i = 0,2,0.1 do | |
1173 | swait() | |
1174 | rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(55)),.3) | |
1175 | tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-65)),.3) | |
1176 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(76)), 0.3) | |
1177 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3) | |
1178 | end | |
1179 | end | |
1180 | ||
1181 | local mouse = game.Players.LocalPlayer:GetMouse() | |
1182 | local running = false | |
1183 | ||
1184 | function getTool() | |
1185 | for _, kid in ipairs(script.Parent:GetChildren()) do | |
1186 | if kid.className == "Tool" then return kid end | |
1187 | end | |
1188 | return nil | |
1189 | end | |
1190 | ||
1191 | ||
1192 | mouse.KeyDown:connect(function (key) -- Run function | |
1193 | key = string.lower(key) | |
1194 | if string.byte(key) == 48 then | |
1195 | running = true | |
1196 | local keyConnection = mouse.KeyUp:connect(function (key) | |
1197 | if string.byte(key) == 48 then | |
1198 | running = false | |
1199 | end | |
1200 | end) | |
1201 | for i = 1,5 do | |
1202 | game.Workspace.CurrentCamera.FieldOfView = (100+(i*2)) | |
1203 | wait() | |
1204 | end | |
1205 | game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 35 | |
1206 | repeat wait () until running == false | |
1207 | keyConnection:disconnect() | |
1208 | game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16 | |
1209 | for i = 1,5 do | |
1210 | game.Workspace.CurrentCamera.FieldOfView = (110-(i*2)) | |
1211 | wait() | |
1212 | end | |
1213 | end | |
1214 | end) | |
1215 | local idle=0 | |
1216 | local sine = 0 | |
1217 | local change = 1 | |
1218 | local val = 0 | |
1219 | toim = 0 | |
1220 | hum.Animator.Parent = nil | |
1221 | idleanim=.4 | |
1222 | while true do | |
1223 | swait() | |
1224 | sine = sine + change | |
1225 | local torvel=(root.Velocity*Vector3.new(1,0,1)).magnitude | |
1226 | local velderp=root.Velocity.y | |
1227 | hitfloor,posfloor=rayCast(root.Position,(CFrame.new(root.Position,root.Position - Vector3.new(0,1,0))).lookVector,4,char) | |
1228 | if equipped==true or equipped==false then | |
1229 | if attack==false then | |
1230 | idle=idle+1 | |
1231 | else | |
1232 | idle=0 | |
1233 | end | |
1234 | if root.Velocity.y > 1 and hitfloor==nil then | |
1235 | Anim="Jump" | |
1236 | if attack==false then | |
1237 | rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1238 | tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
1239 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(20)), 0.3) | |
1240 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3) | |
1241 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3) | |
1242 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0)),.3) | |
1243 | end | |
1244 | elseif root.Velocity.y < -1 and hitfloor==nil then | |
1245 | Anim="Fall" | |
1246 | if attack==false then | |
1247 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3) | |
1248 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0)),.3) | |
1249 | rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1250 | tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(40),math.rad(0),math.rad(0)),.3) | |
1251 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(20)), 0.3) | |
1252 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3) | |
1253 | end | |
1254 | elseif torvel<1 and hitfloor~=nil then | |
1255 | Anim="Idle" | |
1256 | change = 2 | |
1257 | ||
1258 | if attack==false then | |
1259 | rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/20))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15) | |
1260 | tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(25),math.rad(0),math.rad(0)),.3) | |
1261 | RH.C0=clerp(RH.C0,cf(1,-0.9-0.1*math.cos(sine/20),0)*angles(math.rad(-2.5),math.rad(90),math.rad(-0))*angles(math.rad(-7.5),math.rad(0),math.rad(0)),0.15) | |
1262 | LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1*math.cos(sine/20),0)*angles(math.rad(-2.5),math.rad(-90),math.rad(-0))*angles(math.rad(-7.5),math.rad(0),math.rad(0)),0.15) | |
1263 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5+0.04*math.sin(sine/25), -0.35) * angles(math.rad(65 - 1), math.rad(-7), math.rad(-35)), 0.3) | |
1264 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5+0.04*math.sin(sine/25), -0.35) * angles(math.rad(90 - 1), math.rad(-7), math.rad(55)), 0.1) | |
1265 | HW.C0=euler(0,2.57*math.cos(sine/60)/1,0)*cf(0,2.1+1.7,0)* angles(math.rad(55 - 1), math.rad(-7), math.rad(55), 0.1) | |
1266 | end | |
1267 | ||
1268 | elseif torvel>2 and torvel<22 and hitfloor~=nil then | |
1269 | Anim="Walk" | |
1270 | change = 1 | |
1271 | if attack==false then | |
1272 | rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.175+0.025*math.cos(sine/3.5)+ -math.sin(sine/3.5)/7)*angles(math.rad(5-2.5*math.cos(sine/3.5)),math.rad(0),math.rad(10*math.cos(sine/7))),0.15) | |
1273 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1274 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(40) * math.cos(sine / 7), math.rad(0), math.rad(5)), 0.3) | |
1275 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40) * math.cos(sine / 7), math.rad(0), math.rad(-5)), 0.3) | |
1276 | RH.C0=clerp(RH.C0,cf(1,-0.925-0.5*math.cos(sine/7)/2,0.5*math.cos(sine/7)/2)*angles(math.rad(-5-15*math.cos(sine/7))+ -math.sin(sine/7)/1.5,math.rad(90-10*math.cos(sine/7)),math.rad(0)),0.15) | |
1277 | LH.C0=clerp(LH.C0,cf(-1,-0.925+0.5*math.cos(sine/7)/2,-0.5*math.cos(sine/7)/2)*angles(math.rad(-5+15*math.cos(sine/7))+ math.sin(sine/7)/1.5,math.rad(-90-10*math.cos(sine/7)),math.rad(0)),0.15) | |
1278 | HW.C0=euler(0,2.57*math.cos(sine/60)/1,0)*cf(0,2.1+1.7,0)* angles(math.rad(55 - 1), math.rad(-7), math.rad(55*math.cos(sine/60)), 0.1) | |
1279 | end | |
1280 | elseif torvel>=22 and hitfloor~=nil then | |
1281 | Anim="Run" | |
1282 | change = 2 | |
1283 | rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.175+0.025*math.cos(sine/3.5)+ -math.sin(sine/3.5)/7)*angles(math.rad(25),math.rad(0),math.rad(10*math.cos(sine/7))),0.15) | |
1284 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1285 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(55), math.rad(-55), math.rad(90)), 0.3) | |
1286 | LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 60),-0.65)*angles(math.rad(40),math.rad(0),math.rad(90 + 2.5)),.3) | |
1287 | RH.C0=clerp(RH.C0,cf(1,-0.925-0.5*math.cos(sine/7)/2,0.5*math.cos(sine/7)/1)*angles(math.rad(-5-15*math.cos(sine/7))+ -math.sin(sine/7)/1,math.rad(90-10*math.cos(sine/7)),math.rad(0)),0.15) | |
1288 | LH.C0=clerp(LH.C0,cf(-1,-0.925+0.5*math.cos(sine/7)/2,-0.5*math.cos(sine/7)/1)*angles(math.rad(-5+15*math.cos(sine/7))+ math.sin(sine/7)/1,math.rad(-90-10*math.cos(sine/7)),math.rad(0)),0.15) | |
1289 | HW.C0=clerp(HW.C0,cf(0,-1,0)*angles(math.rad(-65),math.rad(0),math.rad(-90)),0.15) | |
1290 | ||
1291 | end | |
1292 | end | |
1293 | if 0 < #Effects then | |
1294 | for e = 1, #Effects do | |
1295 | if Effects[e] ~= nil then | |
1296 | local Thing = Effects[e] | |
1297 | if Thing ~= nil then | |
1298 | local Part = Thing[1] | |
1299 | local Mode = Thing[2] | |
1300 | local Delay = Thing[3] | |
1301 | local IncX = Thing[4] | |
1302 | local IncY = Thing[5] | |
1303 | local IncZ = Thing[6] | |
1304 | if 1 >= Thing[1].Transparency then | |
1305 | if Thing[2] == "Block1" then | |
1306 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1307 | local Mesh = Thing[1].Mesh | |
1308 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1309 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1310 | elseif Thing[2] == "Block2" then | |
1311 | Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0) | |
1312 | local Mesh = Thing[7] | |
1313 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1314 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1315 | elseif Thing[2] == "Block3" then | |
1316 | 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) | |
1317 | local Mesh = Thing[7] | |
1318 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1319 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1320 | elseif Thing[2] == "Cylinder" then | |
1321 | local Mesh = Thing[1].Mesh | |
1322 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1323 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1324 | elseif Thing[2] == "Blood" then | |
1325 | local Mesh = Thing[7] | |
1326 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
1327 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1328 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1329 | elseif Thing[2] == "Elec" then | |
1330 | local Mesh = Thing[1].Mesh | |
1331 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
1332 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1333 | elseif Thing[2] == "Disappear" then | |
1334 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1335 | elseif Thing[2] == "Shatter" then | |
1336 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1337 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
1338 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
1339 | Thing[6] = Thing[6] + Thing[5] | |
1340 | end | |
1341 | ||
1342 | end | |
1343 | end | |
1344 | end | |
1345 | end | |
1346 | end | |
1347 | end | |
1348 | ||
1349 | --Mkay. Bye! | |
1350 | --Wazzup... | |
1351 | --Nop. Not the end. | |
1352 | ||
1353 | ||
1354 | ||
1355 | ||
1356 | ||
1357 | ||
1358 | ||
1359 | ||
1360 | ||
1361 | ||
1362 | ||
1363 | ||
1364 | ||
1365 | ||
1366 | --JUST FREACKING GO DOWN. YEET. | |
1367 | ||
1368 | ||
1369 | ||
1370 | ||
1371 | ||
1372 | ||
1373 | ||
1374 | ||
1375 | ||
1376 | ||
1377 | ||
1378 | ||
1379 | ||
1380 | ||
1381 | ||
1382 | ||
1383 | ||
1384 | ||
1385 | ||
1386 | ||
1387 | ||
1388 | ||
1389 | ||
1390 | ||
1391 | ||
1392 | ||
1393 | ||
1394 | ||
1395 | ||
1396 | ||
1397 | ||
1398 | ||
1399 | ||
1400 | ||
1401 | ||
1402 | ||
1403 | ||
1404 | ||
1405 | ||
1406 | ||
1407 | ||
1408 | ||
1409 | ParticleSettings = { | |
1410 | Lifetime = 1, | |
1411 | Texture = 'rbxassetid://1209757190', | |
1412 | --Color1 is for UpperBody and Accessories, Color2 is for Lower Body | |
1413 | Color1 = ColorSequence.new(BrickColor.new('Pastel yellow').Color,BrickColor.new('Institutional white').Color), | |
1414 | Color2 = ColorSequence.new(BrickColor.new('Institutional white').Color,BrickColor.new('New Yeller').Color), | |
1415 | AllBody = true, | |
1416 | UpperBodyOnly = false, | |
1417 | LowerBodyOnly = false, | |
1418 | Accessories = true, | |
1419 | Extras = true, | |
1420 | } | |
1421 | m = game:service'Players'.LocalPlayer:GetMouse() | |
1422 | local p=game:service("Players").LocalPlayer | |
1423 | Instance.new("ForceField", game.Players.LocalPlayer.Character). Visible = false | |
1424 | local char=p.Character | |
1425 | script.Parent=char | |
1426 | local tor=char.Torso | |
1427 | local hed=char.Head | |
1428 | local larm=char:FindFirstChild("Left Arm") | |
1429 | local rarm=char:FindFirstChild("Right Arm") | |
1430 | local lleg=char:FindFirstChild("Left Leg") | |
1431 | local rleg=char:FindFirstChild("Right Leg") | |
1432 | local hum=char.Humanoid | |
1433 | local cam=workspace.CurrentCamera | |
1434 | local root=char.HumanoidRootPart | |
1435 | local mouse=p:GetMouse() | |
1436 | local hb=game:service("RunService").Heartbeat | |
1437 | local rs=game:service("RunService").Stepped | |
1438 | hum.MaxHealth= math.huge | |
1439 | hum.Health=hum.MaxHealth | |
1440 | local hair4 = Instance.new("Part",char) | |
1441 | hair4.Material="Neon" | |
1442 | hair4.CanCollide=false | |
1443 | hair4.Size=Vector3.new(.5,2,0) | |
1444 | hair4.BrickColor=BrickColor.Red() | |
1445 | hair4.Transparency=1 | |
1446 | ||
1447 | ||
1448 | ||
1449 | local w = Instance.new("Weld",hair4) | |
1450 | w.Part1=hair4 | |
1451 | w.Part0=tor | |
1452 | w.C0=CFrame.new(-0.7,0,0.15) | |
1453 | ||
1454 | local hair3 = Instance.new("Part",char) | |
1455 | hair3.Material="Neon" | |
1456 | hair3.CanCollide=false | |
1457 | hair3.Size=Vector3.new(.5,2,0) | |
1458 | hair3.BrickColor=BrickColor.Red() | |
1459 | hair3.Transparency=1 | |
1460 | ||
1461 | ||
1462 | ||
1463 | local w = Instance.new("Weld",hair3) | |
1464 | w.Part1=hair3 | |
1465 | w.Part0=tor | |
1466 | w.C0=CFrame.new(0.7,0,0.15) | |
1467 | ||
1468 | local bladee = Instance.new("ParticleEmitter",hair4) | |
1469 | bladee.Texture = "http://www.roblox.com/asset/?id=298984512" | |
1470 | bladee.LightEmission = 0.625 | |
1471 | bladee.EmissionDirection = "Left" | |
1472 | bladee.LockedToPart = true | |
1473 | bladee.Color = ParticleSettings.Color2 | |
1474 | bladee.Rate = 100000 | |
1475 | bladee.Lifetime = NumberRange.new(.5) | |
1476 | bladee.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
1477 | bladee.Speed = NumberRange.new(5) | |
1478 | bladee.Acceleration = Vector3.new(-30,40,0) | |
1479 | ||
1480 | local bladee3 = Instance.new("ParticleEmitter",hair3) | |
1481 | bladee3.Texture = "http://www.roblox.com/asset/?id=298984512" | |
1482 | bladee3.LightEmission = 0.625 | |
1483 | bladee3.EmissionDirection = "Right" | |
1484 | bladee3.LockedToPart = true | |
1485 | bladee3.Color = ParticleSettings.Color2 | |
1486 | bladee3.Rate = 100000 | |
1487 | bladee3.Lifetime = NumberRange.new(.5) | |
1488 | bladee3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
1489 | bladee3.Speed = NumberRange.new(5) | |
1490 | bladee3.Acceleration = Vector3.new(30,40,0) | |
1491 | m.KeyDown:connect(function(k) | |
1492 | if k == "e" then | |
1493 | if (hum ~= nil) then | |
1494 | hum.Sit = true | |
1495 | end | |
1496 | end | |
1497 | end) | |
1498 | ||
1499 | --Okay... It iz teh end. | |
1500 | ||
1501 | ||
1502 | ||
1503 | ||
1504 | ||
1505 | ||
1506 | ||
1507 | ||
1508 | ||
1509 | ||
1510 | ||
1511 | ||
1512 | ||
1513 | ||
1514 | ||
1515 | ||
1516 | ||
1517 | ||
1518 | ||
1519 | ||
1520 | ||
1521 | ||
1522 | ||
1523 | ||
1524 | ||
1525 | ||
1526 | ||
1527 | ||
1528 | ||
1529 | ||
1530 | ||
1531 | ||
1532 | ||
1533 | ||
1534 | ||
1535 | ||
1536 | ||
1537 | ||
1538 | ||
1539 | ||
1540 | ||
1541 | ||
1542 | ||
1543 | ||
1544 | ||
1545 | ||
1546 | ||
1547 | ||
1548 | ||
1549 | ||
1550 | ||
1551 | ||
1552 | ||
1553 | ||
1554 | ||
1555 | ||
1556 | ||
1557 | ||
1558 | ||
1559 | ||
1560 | ||
1561 | ||
1562 | ||
1563 | ||
1564 | ||
1565 | ||
1566 | ||
1567 | ||
1568 | ||
1569 | ||
1570 | ||
1571 | ||
1572 | --OH FU**! WHY ISN'T IT THE END YET? >:( | |
1573 | ||
1574 | ||
1575 | ||
1576 | ||
1577 | ||
1578 | ||
1579 | ||
1580 | ||
1581 | ||
1582 | ||
1583 | ||
1584 | ||
1585 | ||
1586 | ||
1587 | ||
1588 | ||
1589 | ||
1590 | ||
1591 | ||
1592 | ||
1593 | ||
1594 | ||
1595 | ||
1596 | ||
1597 | ||
1598 | ||
1599 | ||
1600 | ||
1601 | ||
1602 | ||
1603 | --end ;~; |