Hugo1234cool

Untitled

Apr 6th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 51.98 KB | None | 0 0
  1. --[[Psychov3 A script By makhail07
  2.  
  3.  
  4. No this is not a fucking edit just becuase the walks look the same.
  5. Now please go be a skid somewhere else.
  6.  
  7.  
  8. ]]----https://github.com/Mokiros/roblox-FE-compatibility
  9. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  10. local Player,game,owner = owner,game
  11. local RealPlayer = Player
  12. do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
  13.  
  14. local IDs = {340106355,927529620,876981900}
  15.  
  16. function swait(num)
  17. if num==0 or num==nil then
  18. game:service'RunService'.Stepped:wait(0)
  19. else
  20. for i=0,num do
  21. game:service'RunService'.Stepped:wait(0)
  22. end
  23. end
  24. end
  25. function thread(f)
  26. coroutine.resume(coroutine.create(f))
  27. end
  28. function clerp(a, b, t)
  29. local qa = {
  30. QuaternionFromCFrame(a)
  31. }
  32. local qb = {
  33. QuaternionFromCFrame(b)
  34. }
  35. local ax, ay, az = a.x, a.y, a.z
  36. local bx, by, bz = b.x, b.y, b.z
  37. local _t = 1 - t
  38. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  39. end
  40. function QuaternionFromCFrame(cf)
  41. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  42. local trace = m00 + m11 + m22
  43. if trace > 0 then
  44. local s = math.sqrt(1 + trace)
  45. local recip = 0.5 / s
  46. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  47. else
  48. local i = 0
  49. if m00 < m11 then
  50. i = 1
  51. end
  52. if m22 > (i == 0 and m00 or m11) then
  53. i = 2
  54. end
  55. if i == 0 then
  56. local s = math.sqrt(m00 - m11 - m22 + 1)
  57. local recip = 0.5 / s
  58. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  59. elseif i == 1 then
  60. local s = math.sqrt(m11 - m22 - m00 + 1)
  61. local recip = 0.5 / s
  62. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  63. elseif i == 2 then
  64. local s = math.sqrt(m22 - m00 - m11 + 1)
  65. local recip = 0.5 / s
  66. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  67. end
  68. end
  69. end
  70. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  71. local xs, ys, zs = x + x, y + y, z + z
  72. local wx, wy, wz = w * xs, w * ys, w * zs
  73. local xx = x * xs
  74. local xy = x * ys
  75. local xz = x * zs
  76. local yy = y * ys
  77. local yz = y * zs
  78. local zz = z * zs
  79. 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))
  80. end
  81. function QuaternionSlerp(a, b, t)
  82. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  83. local startInterp, finishInterp
  84. if cosTheta >= 1.0E-4 then
  85. if 1 - cosTheta > 1.0E-4 then
  86. local theta = math.acos(cosTheta)
  87. local invSinTheta = 1 / math.sin(theta)
  88. startInterp = math.sin((1 - t) * theta) * invSinTheta
  89. finishInterp = math.sin(t * theta) * invSinTheta
  90. else
  91. startInterp = 1 - t
  92. finishInterp = t
  93. end
  94. elseif 1 + cosTheta > 1.0E-4 then
  95. local theta = math.acos(-cosTheta)
  96. local invSinTheta = 1 / math.sin(theta)
  97. startInterp = math.sin((t - 1) * theta) * invSinTheta
  98. finishInterp = math.sin(t * theta) * invSinTheta
  99. else
  100. startInterp = t - 1
  101. finishInterp = t
  102. end
  103. 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
  104. end
  105. function rayCast(Position, Direction, Range, Ignore)
  106. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  107. end
  108. --Wait what okay
  109. wait()
  110. local plr = game:service'Players'.LocalPlayer
  111. local char = plr.Character
  112. local hum = char.Humanoid
  113. local ra = char["Right Arm"]
  114. local la= char["Left Arm"]
  115. local rl= char["Right Leg"]
  116. local ll = char["Left Leg"]
  117. local hed = char.Head
  118. local root = char.HumanoidRootPart
  119. local rootj = root.RootJoint
  120. local tors = char.Torso
  121. local mouse = plr:GetMouse()
  122. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  123. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  124. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  125. local maincolor = BrickColor.new("Magenta")
  126. cf = CFrame.new
  127. angles = CFrame.Angles
  128. attack = false
  129. euler=CFrame.fromEulerAnglesXYZ
  130. equipped = false
  131. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  132. RSH, LSH = nil, nil
  133. RW = Instance.new("Weld")
  134. LW = Instance.new("Weld")
  135. RH = tors["Right Hip"]
  136. LH = tors["Left Hip"]
  137. RSH = tors["Right Shoulder"]
  138. LSH = tors["Left Shoulder"]
  139. RSH.Parent = nil
  140. LSH.Parent = nil
  141. RW.Name = "RW"
  142. RW.Part0 = tors
  143. RW.C0 = CFrame.new(1.5, 0.5, 0)
  144. RW.C1 = CFrame.new(0, 0.5, 0)
  145. RW.Part1 = ra
  146. RW.Parent = tors
  147. LW.Name = "LW"
  148. LW.Part0 = tors
  149. LW.C0 = CFrame.new(-1.5, 0.5, 0)
  150. LW.C1 = CFrame.new(0, 0.5, 0)
  151. LW.Part1 = la
  152. LW.Parent = tors
  153. print('User is '..plr.Name)
  154. Effects = {}
  155.  
  156. ArtificialHB = Instance.new("BindableEvent", script)
  157. ArtificialHB.Name = "Heartbeat"
  158.  
  159. script:WaitForChild("Heartbeat")
  160.  
  161. frame = 1 / 60
  162. tf = 0
  163. allowframeloss = false
  164. tossremainder = false
  165. lastframe = tick()
  166. script.Heartbeat:Fire()
  167.  
  168. game:GetService("RunService").Heartbeat:connect(function(s, p)
  169. tf = tf + s
  170. if tf >= frame then
  171. if allowframeloss then
  172. script.Heartbeat:Fire()
  173. lastframe = tick()
  174. else
  175. for i = 1, math.floor(tf / frame) do
  176. script.Heartbeat:Fire()
  177. end
  178. lastframe = tick()
  179. end
  180. if tossremainder then
  181. tf = 0
  182. else
  183. tf = tf - frame * math.floor(tf / frame)
  184. end
  185. end
  186. end)
  187. local RbxUtility = LoadLibrary("RbxUtility")
  188. local Create = RbxUtility.Create
  189.  
  190. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  191. if hit.Parent == nil then
  192. return
  193. end
  194. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  195. for _, v in pairs(hit.Parent:children()) do
  196. if v:IsA("Humanoid") then
  197. h = v
  198. end
  199. end
  200. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  201. warn'No R15 allowed'
  202. hit.Parent:FindFirstChild("Head"):BreakJoints()
  203. end
  204.  
  205. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  206. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  207. if hit.Parent.DebounceHit.Value == true then
  208. return
  209. end
  210. end
  211. if insta == true then
  212. hit.Parent:FindFirstChild("Head"):BreakJoints()
  213. end
  214. local c = Create("ObjectValue"){
  215. Name = "creator",
  216. Value = game:service("Players").LocalPlayer,
  217. Parent = h,
  218. }
  219. game:GetService("Debris"):AddItem(c, .5)
  220. if HitSound ~= nil and HitPitch ~= nil then
  221. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  222. end
  223. local Damage = math.random(minim, maxim)
  224. local blocked = false
  225. local block = hit.Parent:findFirstChild("Block")
  226. if block ~= nil then
  227. if block.className == "IntValue" then
  228. if block.Value > 0 then
  229. blocked = true
  230. block.Value = block.Value - 1
  231. print(block.Value)
  232. end
  233. end
  234. end
  235. if blocked == false then
  236. h.Health = h.Health - Damage
  237. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  238. else
  239. h.Health = h.Health - (Damage / 2)
  240. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  241. end
  242. if Type == "Knockdown" then
  243. local hum = hit.Parent.Humanoid
  244. hum.PlatformStand = true
  245. coroutine.resume(coroutine.create(function(HHumanoid)
  246. swait(1)
  247. HHumanoid.PlatformStand = false
  248. end), hum)
  249. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  250. local bodvol = Create("BodyVelocity"){
  251. velocity = angle * knockback,
  252. P = 5000,
  253. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  254. Parent = hit,
  255. }
  256. local rl = Create("BodyAngularVelocity"){
  257. P = 3000,
  258. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  259. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  260. Parent = hit,
  261. }
  262. game:GetService("Debris"):AddItem(bodvol, .5)
  263. game:GetService("Debris"):AddItem(rl, .5)
  264. elseif Type == "Normal" then
  265. local vp = Create("BodyVelocity"){
  266. P = 500,
  267. maxForce = Vector3.new(math.huge, 0, math.huge),
  268. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  269. }
  270. if knockback > 0 then
  271. vp.Parent = hit.Parent.Torso
  272. end
  273. game:GetService("Debris"):AddItem(vp, .5)
  274. elseif Type == "Up" then
  275. local bodyVelocity = Create("BodyVelocity"){
  276. velocity = Vector3.new(0, 20, 0),
  277. P = 5000,
  278. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  279. Parent = hit,
  280. }
  281. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  282. elseif Type == "DarkUp" then
  283. coroutine.resume(coroutine.create(function()
  284. for i = 0, 1, 0.1 do
  285. swait()
  286. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  287. end
  288. end))
  289. local bodyVelocity = Create("BodyVelocity"){
  290. velocity = Vector3.new(0, 20, 0),
  291. P = 5000,
  292. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  293. Parent = hit,
  294. }
  295. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  296. elseif Type == "Snare" then
  297. local bp = Create("BodyPosition"){
  298. P = 2000,
  299. D = 100,
  300. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  301. position = hit.Parent.Torso.Position,
  302. Parent = hit.Parent.Torso,
  303. }
  304. game:GetService("Debris"):AddItem(bp, 1)
  305. elseif Type == "Freeze" then
  306. local BodPos = Create("BodyPosition"){
  307. P = 50000,
  308. D = 1000,
  309. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  310. position = hit.Parent.Torso.Position,
  311. Parent = hit.Parent.Torso,
  312. }
  313. local BodGy = Create("BodyGyro") {
  314. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  315. P = 20e+003,
  316. Parent = hit.Parent.Torso,
  317. cframe = hit.Parent.Torso.CFrame,
  318. }
  319. hit.Parent.Torso.Anchored = true
  320. coroutine.resume(coroutine.create(function(Part)
  321. swait(1.5)
  322. Part.Anchored = false
  323. end), hit.Parent.Torso)
  324. game:GetService("Debris"):AddItem(BodPos, 3)
  325. game:GetService("Debris"):AddItem(BodGy, 3)
  326. end
  327. local debounce = Create("BoolValue"){
  328. Name = "DebounceHit",
  329. Parent = hit.Parent,
  330. Value = true,
  331. }
  332. game:GetService("Debris"):AddItem(debounce, Delay)
  333. c = Create("ObjectValue"){
  334. Name = "creator",
  335. Value = Player,
  336. Parent = h,
  337. }
  338. game:GetService("Debris"):AddItem(c, .5)
  339. end
  340. end
  341.  
  342. function ShowDamage(Pos, Text, Time, Color)
  343. local Rate = (1 / 30)
  344. local Pos = (Pos or Vector3.new(0, 0, 0))
  345. local Text = (Text or "")
  346. local Time = (Time or 2)
  347. local Color = (Color or Color3.new(1, 0, 1))
  348. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  349. EffectPart.Anchored = true
  350. local BillboardGui = Create("BillboardGui"){
  351. Size = UDim2.new(3, 0, 3, 0),
  352. Adornee = EffectPart,
  353. Parent = EffectPart,
  354. }
  355. local TextLabel = Create("TextLabel"){
  356. BackgroundTransparency = 1,
  357. Size = UDim2.new(1, 0, 1, 0),
  358. Text = Text,
  359. Font = "Highway",
  360. TextColor3 = Color,
  361. TextScaled = true,
  362. Parent = BillboardGui,
  363. }
  364. game.Debris:AddItem(EffectPart, (Time))
  365. EffectPart.Parent = game:GetService("Workspace")
  366. delay(0, function()
  367. local Frames = (Time / Rate)
  368. for Frame = 1, Frames do
  369. wait(Rate)
  370. local Percent = (Frame / Frames)
  371. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  372. TextLabel.TextTransparency = Percent
  373. end
  374. if EffectPart and EffectPart.Parent then
  375. EffectPart:Destroy()
  376. end
  377. end)
  378. end
  379. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  380. for _, c in pairs(workspace:children()) do
  381. local hum = c:findFirstChild("Humanoid")
  382. if hum ~= nil then
  383. local head = c:findFirstChild("Torso") or c:findFirstChild("UpperTorso") or c:FindFirstChild('LowerTorso')
  384. if head ~= nil then
  385. local targ = head.Position - Part.Position
  386. local mag = targ.magnitude
  387. if mag <= Magnitude and c.Name ~= plr.Name then
  388. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, root, .1, "rbxassetid://" .. HitSound, HitPitch)
  389. end
  390. end
  391. end
  392. end
  393. end
  394. CFuncs = {
  395. Part = {
  396. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  397. local Part = Create("Part")({
  398. Parent = Parent,
  399. Reflectance = Reflectance,
  400. Transparency = Transparency,
  401. CanCollide = false,
  402. Locked = true,
  403. BrickColor = BrickColor.new(tostring(BColor)),
  404. Name = Name,
  405. Size = Size,
  406. Material = Material
  407. })
  408. RemoveOutlines(Part)
  409. return Part
  410. end
  411. },
  412. Mesh = {
  413. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  414. local Msh = Create(Mesh)({
  415. Parent = Part,
  416. Offset = OffSet,
  417. Scale = Scale
  418. })
  419. if Mesh == "SpecialMesh" then
  420. Msh.MeshType = MeshType
  421. Msh.MeshId = MeshId
  422. end
  423. return Msh
  424. end
  425. },
  426. Mesh = {
  427. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  428. local Msh = Create(Mesh)({
  429. Parent = Part,
  430. Offset = OffSet,
  431. Scale = Scale
  432. })
  433. if Mesh == "SpecialMesh" then
  434. Msh.MeshType = MeshType
  435. Msh.MeshId = MeshId
  436. end
  437. return Msh
  438. end
  439. },
  440. Weld = {
  441. Create = function(Parent, Part0, Part1, C0, C1)
  442. local Weld = Create("Weld")({
  443. Parent = Parent,
  444. Part0 = Part0,
  445. Part1 = Part1,
  446. C0 = C0,
  447. C1 = C1
  448. })
  449. return Weld
  450. end
  451. },
  452. Sound = {
  453. Create = function(id, par, vol, pit)
  454. coroutine.resume(coroutine.create(function()
  455. local S = Create("Sound")({
  456. Volume = vol,
  457. Pitch = pit or 1,
  458. SoundId = id,
  459. Parent = par or workspace
  460. })
  461. wait()
  462. S:play()
  463. game:GetService("Debris"):AddItem(S, 6)
  464. end))
  465. end
  466. },
  467. ParticleEmitter = {
  468. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  469. local fp = Create("ParticleEmitter")({
  470. Parent = Parent,
  471. Color = ColorSequence.new(Color1, Color2),
  472. LightEmission = LightEmission,
  473. Size = Size,
  474. Texture = Texture,
  475. Transparency = Transparency,
  476. ZOffset = ZOffset,
  477. Acceleration = Accel,
  478. Drag = Drag,
  479. LockedToPart = LockedToPart,
  480. VelocityInheritance = VelocityInheritance,
  481. EmissionDirection = EmissionDirection,
  482. Enabled = Enabled,
  483. Lifetime = LifeTime,
  484. Rate = Rate,
  485. Rotation = Rotation,
  486. RotSpeed = RotSpeed,
  487. Speed = Speed,
  488. VelocitySpread = VelocitySpread
  489. })
  490. return fp
  491. end
  492. }
  493. }
  494. function RemoveOutlines(part)
  495. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  496. end
  497. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  498. local Part = Create("Part")({
  499. formFactor = FormFactor,
  500. Parent = Parent,
  501. Reflectance = Reflectance,
  502. Transparency = Transparency,
  503. CanCollide = false,
  504. Locked = true,
  505. BrickColor = BrickColor.new(tostring(BColor)),
  506. Name = Name,
  507. Size = Size,
  508. Material = Material
  509. })
  510. RemoveOutlines(Part)
  511. return Part
  512. end
  513. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  514. local Msh = Create(Mesh)({
  515. Parent = Part,
  516. Offset = OffSet,
  517. Scale = Scale
  518. })
  519. if Mesh == "SpecialMesh" then
  520. Msh.MeshType = MeshType
  521. Msh.MeshId = MeshId
  522. end
  523. return Msh
  524. end
  525. function CreateWeld(Parent, Part0, Part1, C0, C1)
  526. local Weld = Create("Weld")({
  527. Parent = Parent,
  528. Part0 = Part0,
  529. Part1 = Part1,
  530. C0 = C0,
  531. C1 = C1
  532. })
  533. return Weld
  534. end
  535. EffectModel = Instance.new("Model", char)
  536. Effects = {
  537. Block = {
  538. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  539. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  540. prt.Anchored = true
  541. prt.CFrame = cframe
  542. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  543. game:GetService("Debris"):AddItem(prt, 10)
  544. if Type == 1 or Type == nil then
  545. table.insert(Effects, {
  546. prt,
  547. "Block1",
  548. delay,
  549. x3,
  550. y3,
  551. z3,
  552. msh
  553. })
  554. elseif Type == 2 then
  555. table.insert(Effects, {
  556. prt,
  557. "Block2",
  558. delay,
  559. x3,
  560. y3,
  561. z3,
  562. msh
  563. })
  564. else
  565. table.insert(Effects, {
  566. prt,
  567. "Block3",
  568. delay,
  569. x3,
  570. y3,
  571. z3,
  572. msh
  573. })
  574. end
  575. end
  576. },
  577. Sphere = {
  578. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  579. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  580. prt.Anchored = true
  581. prt.CFrame = cframe
  582. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  583. game:GetService("Debris"):AddItem(prt, 10)
  584. table.insert(Effects, {
  585. prt,
  586. "Cylinder",
  587. delay,
  588. x3,
  589. y3,
  590. z3,
  591. msh
  592. })
  593. end
  594. },
  595. Cylinder = {
  596. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  597. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  598. prt.Anchored = true
  599. prt.CFrame = cframe
  600. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  601. game:GetService("Debris"):AddItem(prt, 10)
  602. table.insert(Effects, {
  603. prt,
  604. "Cylinder",
  605. delay,
  606. x3,
  607. y3,
  608. z3,
  609. msh
  610. })
  611. end
  612. },
  613. Wave = {
  614. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  615. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  616. prt.Anchored = true
  617. prt.CFrame = cframe
  618. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://431164262", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  619. game:GetService("Debris"):AddItem(prt, 10)
  620. table.insert(Effects, {
  621. prt,
  622. "Cylinder",
  623. delay,
  624. x3 / 60,
  625. y3 / 60,
  626. z3 / 60,
  627. msh
  628. })
  629. end
  630. },
  631. Ring = {
  632. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  633. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  634. prt.Anchored = true
  635. prt.CFrame = cframe
  636. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  637. game:GetService("Debris"):AddItem(prt, 10)
  638. table.insert(Effects, {
  639. prt,
  640. "Cylinder",
  641. delay,
  642. x3,
  643. y3,
  644. z3,
  645. msh
  646. })
  647. end
  648. },
  649. Break = {
  650. Create = function(brickcolor, cframe, x1, y1, z1)
  651. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  652. prt.Anchored = true
  653. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  654. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  655. local num = math.random(10, 50) / 1000
  656. game:GetService("Debris"):AddItem(prt, 10)
  657. table.insert(Effects, {
  658. prt,
  659. "Shatter",
  660. num,
  661. prt.CFrame,
  662. math.random() - math.random(),
  663. 0,
  664. math.random(50, 100) / 100
  665. })
  666. end
  667. }
  668. }
  669. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  670. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  671. prt.Anchored = true
  672. prt.CFrame = cframe
  673. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  674. game:GetService("Debris"):AddItem(prt, 10)
  675. if Type == 1 or Type == nil then
  676. table.insert(Effects, {
  677. prt,
  678. "Block1",
  679. delay,
  680. x3,
  681. y3,
  682. z3,
  683. msh
  684. })
  685. elseif Type == 2 then
  686. table.insert(Effects, {
  687. prt,
  688. "Block2",
  689. delay,
  690. x3,
  691. y3,
  692. z3,
  693. msh
  694. })
  695. elseif Type == 3 then
  696. table.insert(Effects, {
  697. prt,
  698. "Block3",
  699. delay,
  700. x3,
  701. y3,
  702. z3,
  703. msh
  704. })
  705. end
  706. end
  707. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  708. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  709. prt.Anchored = true
  710. prt.CFrame = cframe
  711. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  712. game:GetService("Debris"):AddItem(prt, 10)
  713. table.insert(Effects, {
  714. prt,
  715. "Cylinder",
  716. delay,
  717. x3,
  718. y3,
  719. z3,
  720. msh
  721. })
  722. end
  723. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  724. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  725. prt.Anchored = true
  726. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  727. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  728. game:GetService("Debris"):AddItem(prt, 10)
  729. table.insert(Effects, {
  730. prt,
  731. "Cylinder",
  732. delay,
  733. x3,
  734. y3,
  735. z3,
  736. msh
  737. })
  738. end
  739. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  740. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  741. prt.Anchored = true
  742. prt.CFrame = cframe
  743. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  744. game:GetService("Debris"):AddItem(prt, 10)
  745. table.insert(Effects, {
  746. prt,
  747. "Cylinder",
  748. delay,
  749. x3,
  750. y3,
  751. z3,
  752. msh
  753. })
  754. end
  755. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  756. local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  757. prt.Anchored = true
  758. prt.CFrame = cframe
  759. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  760. game:GetService("Debris"):AddItem(prt, 10)
  761. table.insert(Effects, {
  762. prt,
  763. "Cylinder",
  764. delay,
  765. x3,
  766. y3,
  767. z3,
  768. msh
  769. })
  770. end
  771. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  772. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  773. prt.Anchored = true
  774. prt.CFrame = cframe
  775. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  776. game:GetService("Debris"):AddItem(prt, 10)
  777. table.insert(Effects, {
  778. prt,
  779. "Cylinder",
  780. delay,
  781. x3,
  782. y3,
  783. z3,
  784. msh
  785. })
  786. end
  787. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  788. local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  789. prt.Anchored = true
  790. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  791. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  792. local num = math.random(10, 50) / 1000
  793. game:GetService("Debris"):AddItem(prt, 10)
  794. table.insert(Effects, {
  795. prt,
  796. "Shatter",
  797. num,
  798. prt.CFrame,
  799. math.random() - math.random(),
  800. 0,
  801. math.random(50, 100) / 100
  802. })
  803. end
  804. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  805. local fp=Instance.new("Part")
  806. fp.formFactor=formfactor
  807. fp.Parent=parent
  808. fp.Reflectance=reflectance
  809. fp.Transparency=transparency
  810. fp.CanCollide=false
  811. fp.Locked=true
  812. fp.BrickColor=brickcolor
  813. fp.Name=name
  814. fp.Size=size
  815. fp.Position=tors.Position
  816. RemoveOutlines(fp)
  817. fp.Material="SmoothPlastic"
  818. fp:BreakJoints()
  819. return fp
  820. end
  821.  
  822. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  823. local mesh=Instance.new(Mesh)
  824. mesh.Parent=part
  825. if Mesh=="SpecialMesh" then
  826. mesh.MeshType=meshtype
  827. if meshid~="nil" then
  828. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  829. end
  830. end
  831. mesh.Offset=offset
  832. mesh.Scale=scale
  833. return mesh
  834. end
  835. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  836. local prt=part(3,char,0,0,brickcolor,"Effect",Vector3.new(0.5,0.5,0.5))
  837. prt.Anchored=true
  838. prt.Material = "Neon"
  839. prt.CFrame=cframe
  840. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  841. msh=mesh("BlockMesh",prt,"","",Vector3.new(0,0,0),Vector3.new(x1,y1,z1))
  842. game:GetService("Debris"):AddItem(prt,5)
  843. coroutine.resume(coroutine.create(function(Part,Mesh)
  844. for i=0,1,delay do
  845. swait()
  846. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  847. Part.Transparency=i
  848. Mesh.Scale=Mesh.Scale+Vector3.new(x3,y3,z3)
  849. end
  850. Part.Parent=nil
  851. end),prt,msh)
  852. end
  853. function MagicShockTrailAlt2(origcolor2,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  854. local prt=part(3,char,0,0,origcolor2,"Effect",Vector3.new(0.5,0.5,0.5))
  855. prt.Anchored=true
  856. prt.Material = "Neon"
  857. prt.CFrame=cframe
  858. msh=mesh("BlockMesh",prt,"","",Vector3.new(0,0,0),Vector3.new(x1,y1,z1))
  859. game:GetService("Debris"):AddItem(prt,5)
  860. coroutine.resume(coroutine.create(function(Part,Mesh)
  861. local rtype = rottype
  862. for i=0,1,delay do
  863. swait()
  864. if rtype == 1 then
  865. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  866. elseif rtype == 2 then
  867. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  868. end
  869. prt.Transparency=i
  870. Mesh.Scale=Mesh.Scale+Vector3.new(x3,y3,z3)
  871. end
  872. Part.Parent=nil
  873. end),prt,msh)
  874. end
  875. Thetown = Instance.new("Sound",tors)
  876. Thetown.SoundId = "rbxassetid://900450645"
  877. Thetown.Volume = 1.5
  878. Thetown.Looped = true
  879. Thetown:Play()
  880.  
  881.  
  882.  
  883.  
  884. --[[
  885. Thanks for using Build-To-Lua by jarredbcv.
  886. ]]--
  887.  
  888. New = function(Object, Parent, Name, Data)
  889. local Object = Instance.new(Object)
  890. for Index, Value in pairs(Data or {}) do
  891. Object[Index] = Value
  892. end
  893. Object.Parent = Parent
  894. Object.Name = Name
  895. return Object
  896. end
  897.  
  898. Knife = New("Model",char,"Knife",{})
  899. Handle = New("Part",Knife,"Handle",{BrickColor = BrickColor.new("Bright green"),Transparency = 1,Transparency = 1,Size = Vector3.new(1.65882361, 1.99058843, 1.65882361),CFrame = CFrame.new(82.2077255, 1.57540321, 117.400002, 0, 0, -1, 1, 0, 0, 0, -1, 0),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.294118, 0.592157, 0.294118),})
  900. Mesh = New("BlockMesh",Handle,"Mesh",{Scale = Vector3.new(0.600000024, 0.200000003, 1.20000005),})
  901. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Really red"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(81.3119583, 1.46481109, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
  902. Mesh = New("SpecialMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.266666681, 0.0666666701),MeshType = Enum.MeshType.Wedge,})
  903. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(-0.110592127, 0, 0.895767212, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  904. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Really red"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(81.2456055, 1.685987, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
  905. Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.466666669, 0.0666666701),})
  906. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(0.110583782, 0, 0.962120056, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  907. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Really red"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(81.5110245, 1.57540321, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
  908. Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.333333343, 0.0666666701),})
  909. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(0, 0, 0.69670105, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  910. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Mid gray"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(81.9533539, 1.57540321, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),})
  911. Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.333333343, 0.0666666701),})
  912. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(0, 0, 0.254371643, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  913. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Mid gray"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 1.32705891, 1.65882361),CFrame = CFrame.new(82.1745453, 1.6859839, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),})
  914. Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 1.16666663, 0.0666666701),})
  915. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(0.110580683, 0, 0.0331802368, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  916. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Black"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(83.9108047, 1.57541645, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  917. Mesh = New("CylinderMesh",Brick,"Mesh",{Scale = Vector3.new(0.24000001, 0.0800000057, 0.24000001),})
  918. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(1.32322311e-05, 0, -1.70307922, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  919. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Really red"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 1.32705891, 1.65882361),CFrame = CFrame.new(82.1745529, 1.46481287, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
  920. Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 1.16666663, 0.0666666701),})
  921. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(-0.110590339, 0, 0.0331726074, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  922. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Mid gray"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(82.3957291, 1.57539487, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),})
  923. Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.333333343, 0.0666666701),})
  924. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(-8.34465027e-06, 0, -0.18800354, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  925. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Really red"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(81.0465393, 1.685987, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
  926. Mesh = New("SpecialMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.13333334, 0.0666666701),MeshType = Enum.MeshType.Wedge,})
  927. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(0.110583782, 0, 1.16118622, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  928. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Black"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(83.9550476, 1.57542157, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  929. Mesh = New("CylinderMesh",Brick,"Mesh",{Scale = Vector3.new(0.220000014, 0.0733333379, 0.220000014),})
  930. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(1.83582306e-05, 0, -1.74732208, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  931. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Black"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(82.9707947, 1.57539833, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  932. Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.200000003, 0.0666666701, 0.333333343),})
  933. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(-4.88758087e-06, 0, -0.763069153, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  934. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Black"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(82.9311295, 1.94298697, 117.400002, 0.406722844, -0.913551688, -3.65672458e-05, -0.913551688, -0.406722814, 2.31264985e-05, -3.59999867e-05, 2.39999936e-05, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  935. Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.13333334, 0.0666666701, 0.200000003),})
  936. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.406722844, -0.913551688, -3.59999867e-05, -0.913551688, -0.406722814, 2.39999936e-05, -3.65672458e-05, 2.31264985e-05, -1),C1 = CFrame.new(0.367583752, 0, -0.723403931, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  937. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Really red"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(81.1571426, 1.57541645, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
  938. Mesh = New("SpecialMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.200000018, 0.0666666701),MeshType = Enum.MeshType.Wedge,})
  939. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(1.32322311e-05, 0, 1.05058289, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  940. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Mid gray"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(82.8380737, 1.57540321, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),})
  941. Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.333333343, 0.0666666701),})
  942. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(0, 0, -0.630348206, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  943. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Really red"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(81.3119583, 1.57540166, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
  944. Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.266666681, 0.0666666701),})
  945. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(-1.54972076e-06, 0, 0.895767212, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  946. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Black"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(83.424202, 1.57539666, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  947. Mesh = New("CylinderMesh",Brick,"Mesh",{Scale = Vector3.new(0.200000003, 1.4000001, 0.200000003),})
  948. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(-6.55651093e-06, 0, -1.21647644, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  949. Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Black"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(83.0150146, 1.21046209, 117.400002, 0.406722844, -0.913551688, -3.65672458e-05, -0.913551688, -0.406722814, 2.31264985e-05, -3.59999867e-05, 2.39999936e-05, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  950. Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.13333334, 0.0666666701, 0.200000003),})
  951. mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.406722844, -0.913551688, -3.59999867e-05, -0.913551688, -0.406722814, 2.39999936e-05, -3.65672458e-05, 2.31264985e-05, -1),C1 = CFrame.new(-0.36494112, 0, -0.807289124, 0, 1, 0, 0, 0, -1, -1, 0, 0),})
  952.  
  953.  
  954.  
  955. for _,v in next, Knife:GetChildren() do
  956. if v:IsA'BasePart' then
  957. v.CanCollide = false
  958. end
  959. end
  960. local NewInstance = function(instance,parent,properties)
  961. local inst = Instance.new(instance,parent)
  962. if(properties)then
  963. for i,v in next, properties do
  964. pcall(function() inst[i] = v end)
  965. end
  966. end
  967. return inst;
  968. end
  969. local HW = NewInstance('Weld',char,{Part0=ra,Part1=Handle,C0 = CFrame.new(0,-1,1.3)*CFrame.Angles(math.rad(0),0,math.rad(90))})
  970. local Hitbox = New("Part",Knife,"Hitbox",{Size=Vector3.new(1,2,1),CanCollide=false,Transparency=1})
  971. local HitboxWeld = New("Weld",Knife,"Weldie",{Part0=Hitbox,Part1=Handle,C0=CFrame.new(0,-1,0)})
  972.  
  973.  
  974.  
  975.  
  976.  
  977.  
  978.  
  979. function Jab()
  980. attack=true
  981. for i = 0,5,0.1 do
  982. swait()
  983. rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  984. tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-65)),.3)
  985. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  986. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  987. HW.C0=clerp(HW.C0,cf(0,-2,0)*angles(math.rad(90),math.rad(0),math.rad(0)),0.15)
  988. end
  989. attack=false
  990. end
  991.  
  992. mouse.KeyDown:connect(function(key)
  993. if key == 'r' and attack == false then
  994. Jab()
  995. end
  996. end)
  997.  
  998.  
  999.  
  1000.  
  1001.  
  1002. hum.WalkSpeed = 2.5
  1003. idle=0
  1004. local sine = 0
  1005. local change = 1
  1006. local val = 0
  1007. toim = 0
  1008. hum.Animator.Parent = nil
  1009. idleanim=.4
  1010. while true do
  1011. swait()
  1012. sine = sine + change
  1013. local torvel=(root.Velocity*Vector3.new(1,0,1)).magnitude
  1014. local velderp=root.Velocity.y
  1015. hitfloor,posfloor=rayCast(root.Position,(CFrame.new(root.Position,root.Position - Vector3.new(0,1,0))).lookVector,4,char)
  1016. if equipped==true or equipped==false then
  1017. if attack==false then
  1018. idle=idle+1
  1019. else
  1020. idle=0
  1021. end
  1022. if root.Velocity.y > 1 and hitfloor==nil then
  1023. Anim="Jump"
  1024. if attack==false then
  1025. rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1026. tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1027. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(10)), 0.3)
  1028. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  1029. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3)
  1030. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0)),.3)
  1031. end
  1032. elseif root.Velocity.y < -1 and hitfloor==nil then
  1033. Anim="Fall"
  1034. if attack==false then
  1035. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3)
  1036. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0)),.3)
  1037. rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1038. tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(40),math.rad(0),math.rad(0)),.3)
  1039. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(90)), 0.3)
  1040. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(-90)), 0.3)
  1041. end
  1042. elseif torvel<1 and hitfloor~=nil then
  1043. Anim="Idle"
  1044. change = 1
  1045. if attack==false then
  1046. 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)
  1047. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(25),math.rad(0),math.rad(10*math.cos(sine/20))),.3)
  1048. RH.C0=clerp(RH.C0,cf(1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*angles(math.rad(-2.5),math.rad(90),math.rad(-0))*angles(math.rad(-5.5),math.rad(0),math.rad(0)),0.15)
  1049. LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*angles(math.rad(-2.5),math.rad(-90),math.rad(-0))*angles(math.rad(-5.5),math.rad(0),math.rad(0)),0.15)
  1050. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5+0.05*math.sin(sine/30),0)*angles(math.rad(-3),math.rad(0),math.rad(10)),0.15)
  1051. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(115 + 4), math.rad(45), math.rad(50)), 0.1)
  1052. HW.C0=clerp(HW.C0,cf(0,-1,1.3)*angles(math.rad(0),math.rad(0),math.rad(90)),0.15)
  1053. end
  1054. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1055. Anim="Walk"
  1056. change = 0.5
  1057. if attack==false then
  1058. 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)
  1059. tors.Neck.C0 = clerp(tors.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1060. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(30*math.cos(sine/7))+ math.sin(sine/7)/8.5,math.rad(0),math.rad(10)),0.15)
  1061. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(-30*math.cos(sine/7))+ -math.sin(sine/7)/8.5,math.rad(0),math.rad(-10)),0.15)
  1062. RH.C0=clerp(RH.C0,cf(1,-0.925-0.5*math.cos(sine/7)/2,0.5*math.cos(sine/7)/8)*angles(math.rad(-5-15*math.cos(sine/7))+ -math.sin(sine/7)/8.5,math.rad(90-10*math.cos(sine/7)),math.rad(0)),0.15)
  1063. LH.C0=clerp(LH.C0,cf(-1,-0.925+0.5*math.cos(sine/7)/2,-0.5*math.cos(sine/7)/8)*angles(math.rad(-5+15*math.cos(sine/7))+ math.sin(sine/7)/8.5,math.rad(-90-10*math.cos(sine/7)),math.rad(0)),0.15)
  1064. HW.C0=clerp(HW.C0,cf(0,-1,1.3)*angles(math.rad(0),math.rad(0),math.rad(90)),.15)
  1065. end
  1066. elseif torvel>=22 and hitfloor~=nil then
  1067. Anim="Run"
  1068. end
  1069. end
  1070. if 0 < #Effects then
  1071. for e = 1, #Effects do
  1072. if Effects[e] ~= nil then
  1073. local Thing = Effects[e]
  1074. if Thing ~= nil then
  1075. local Part = Thing[1]
  1076. local Mode = Thing[2]
  1077. local Delay = Thing[3]
  1078. local IncX = Thing[4]
  1079. local IncY = Thing[5]
  1080. local IncZ = Thing[6]
  1081. if 1 >= Thing[1].Transparency then
  1082. if Thing[2] == "Block1" then
  1083. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1084. local Mesh = Thing[1].Mesh
  1085. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1086. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1087. elseif Thing[2] == "Block2" then
  1088. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1089. local Mesh = Thing[7]
  1090. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1091. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1092. elseif Thing[2] == "Block3" then
  1093. 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)
  1094. local Mesh = Thing[7]
  1095. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1096. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1097. elseif Thing[2] == "Cylinder" then
  1098. local Mesh = Thing[1].Mesh
  1099. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1100. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1101. elseif Thing[2] == "Blood" then
  1102. local Mesh = Thing[7]
  1103. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1104. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1105. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1106. elseif Thing[2] == "Elec" then
  1107. local Mesh = Thing[1].Mesh
  1108. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1109. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1110. elseif Thing[2] == "Disappear" then
  1111. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1112. elseif Thing[2] == "Shatter" then
  1113. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1114. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1115. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1116. Thing[6] = Thing[6] + Thing[5]
  1117. end
  1118. else
  1119. Part.Parent = nil
  1120. table.remove(Effects, e)
  1121. end
  1122. end
  1123. end
  1124. end
  1125. end
  1126. end
Advertisement
Add Comment
Please, Sign In to add comment