Advertisement
Basykung7845

Relexscript

Jun 22nd, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 68.17 KB | None | 0 0
  1. ---------Replace All "LocalPlayer" With Your Name.
  2. --Remove "Mouse =" or "local mouse =" at the start.
  3. --Replace Kermat161 At The Top Of The Script With You Name.
  4. -----------------------------Script In The Line's.
  5.  
  6.  
  7. -- Nebula stuff --
  8. local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
  9. local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
  10. local C3 = {tRGB= function(c3) return c3.r*255,c3.g*255,c3.b*255 end,N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
  11. local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
  12. local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
  13. local R3 = {N=Region3.new}
  14. local De = S.Debris
  15. local WS = workspace
  16. local Lght = S.Lighting
  17. local RepS = S.ReplicatedStorage
  18. local IN = Instance.new
  19. local Plrs = S.Players
  20. local Alpha = .3
  21. -- Nebula stuff2 --
  22. local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
  23. local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
  24. local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
  25. local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
  26. local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
  27. local R3 = {N=Region3.new}
  28. local De = S.Debris
  29. local WS = workspace
  30. local Lght = S.Lighting
  31. local RepS = S.ReplicatedStorage
  32. local IN = Instance.new
  33. local Plrs = S.Players
  34. local UIS = S.UserInputService
  35. local CAS = S.ContextActionService
  36.  
  37. NewInstance = function(instance,parent,properties)
  38. local inst = Instance.new(instance)
  39. inst.Parent = parent
  40. if(properties)then
  41. for i,v in next, properties do
  42. pcall(function() inst[i] = v end)
  43. end
  44. end
  45. return inst;
  46. end
  47.  
  48.  
  49. script:ClearAllChildren()
  50. wait(0.2)
  51.  
  52. Player = owner
  53. PlayerGui = Player.PlayerGui
  54. local char = Player.Character
  55. Cam = workspace.CurrentCamera
  56. Backpack = Player.Backpack
  57. Character = Player.Character
  58. Humanoid = Character.Humanoid
  59. RootPart = Character["HumanoidRootPart"]
  60. Torso = Character["Torso"]
  61. Head = Character["Head"]
  62. RightArm = Character["Right Arm"]
  63. LeftArm = Character["Left Arm"]
  64. RightLeg = Character["Right Leg"]
  65. LeftLeg = Character["Left Leg"]
  66. RootJoint = RootPart["RootJoint"]
  67. Neck = Torso["Neck"]
  68. RightShoulder = Torso["Right Shoulder"]
  69. LeftShoulder = Torso["Left Shoulder"]
  70. RightHip = Torso["Right Hip"]
  71. LeftHip = Torso["Left Hip"]
  72. local TIME = 0
  73. local sick = Instance.new("Sound",Torso)
  74. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  75.  
  76. IT = Instance.new
  77. CF = CFrame.new
  78. VT = Vector3.new
  79. RAD = math.rad
  80. C3 = Color3.new
  81. UD2 = UDim2.new
  82. BRICKC = BrickColor.new
  83. ANGLES = CFrame.Angles
  84. EULER = CFrame.fromEulerAnglesXYZ
  85. COS = math.cos
  86. ACOS = math.acos
  87. SIN = math.sin
  88. ASIN = math.asin
  89. ABS = math.abs
  90. MRANDOM = math.random
  91. FLOOR = math.floor
  92.  
  93. --//=================================\\
  94. --|| USEFUL VALUES
  95. --\\=================================//
  96.  
  97. Animation_Speed = 3
  98. local FORCERESET = false
  99. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  100. local Speed = 16
  101. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  102. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  103. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  104. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  105. local DAMAGEMULTIPLIER = 1
  106. local ANIM = "Idle"
  107. local ATTACK = false
  108. local EQUIPPED = false
  109. local HOLD = false
  110. local COMBO = 1
  111. local Rooted = false
  112. local SINE = 0
  113. local KEYHOLD = false
  114. local CHANGE = 2 / Animation_Speed
  115. local WALKINGANIM = false
  116. local VALUE1 = false
  117. local VALUE2 = false
  118. local ROBLOXIDLEANIMATION = IT("Animation")
  119. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  120. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  121. --ROBLOXIDLEANIMATION.Parent = Humanoid
  122. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  123. WEAPONGUI.Name = "BanishV3Gui"
  124. local Weapon = IT("Model")
  125. Weapon.Name = "Adds"
  126. Effects.Name = "Effects"
  127. local ANIMATOR = Humanoid.Animator
  128. local ANIMATE = Character:FindFirstChild("Animate")
  129. local UNANCHOR = true
  130. local TOBANISH = {}
  131. script.Parent = PlayerGui
  132. local SIZE = 1
  133. local NIGHTMARE = IT("Model")
  134. Weapon.Name = "Adds"
  135. local NIGHTMAREGun = IT("Model")
  136. Weapon.Name = "Adds"
  137. local NIGHTMAREGun2 = IT("Model")
  138. Weapon.Name = "Adds"
  139. local CLOCKLOOP = 0
  140. local CLOCKTARGET = nil
  141. local CLOCKSPEED = 0.8
  142. local CLOCKCOLOR1 = C3(255/255, 255/255, 255/255)
  143. local CLOCKCOLOR2 = C3(255/255, 0/255, 0/255)
  144.  
  145. --//=================================\\
  146. --\\=================================//
  147. kan = Instance.new("Sound", Character)
  148. kan.Volume = 5
  149. kan.TimePosition = 0
  150. kan.PlaybackSpeed = 1
  151. kan.Pitch = 1
  152. kan.SoundId = "rbxassetid://249676146"
  153. kan.Name = "wrecked"
  154. kan.Looped = true
  155. kan:Play()
  156.  
  157. local bilguit = Instance.new("BillboardGui", Head)
  158. bilguit.Adornee = nil
  159. bilguit.Name = "ModeName"
  160. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  161. bilguit.StudsOffset = VT(-8, 8/1.5, 0)
  162. local modet = Instance.new("TextLabel", bilguit)
  163. modet.Size = UDim2.new(10/2, 0, 7/6, 0)
  164. modet.FontSize = "Size8"
  165. modet.TextScaled = true
  166. modet.TextTransparency = 0
  167. modet.BackgroundTransparency = 1
  168. modet.TextTransparency = 0
  169. modet.TextStrokeTransparency = 0
  170. modet.Font = "Antique"
  171. modet.TextStrokeColor3 = Color3.fromRGB(255, 0, 0)
  172. modet.TextColor3 = Color3.fromRGB(255, 255, 255)
  173. modet.Text = "Relax"
  174.  
  175. --//=================================\\
  176. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  177. --\\=================================//
  178.  
  179. ArtificialHB = Instance.new("BindableEvent", script)
  180. ArtificialHB.Name = "ArtificialHB"
  181.  
  182. script:WaitForChild("ArtificialHB")
  183.  
  184. frame = Frame_Speed
  185. tf = 0
  186. allowframeloss = false
  187. tossremainder = false
  188. lastframe = tick()
  189. script.ArtificialHB:Fire()
  190.  
  191. game:GetService("RunService").Heartbeat:connect(function(s, p)
  192. tf = tf + s
  193. if tf >= frame then
  194. if allowframeloss then
  195. script.ArtificialHB:Fire()
  196. lastframe = tick()
  197. else
  198. for i = 1, math.floor(tf / frame) do
  199. script.ArtificialHB:Fire()
  200. end
  201. lastframe = tick()
  202. end
  203. if tossremainder then
  204. tf = 0
  205. else
  206. tf = tf - frame * math.floor(tf / frame)
  207. end
  208. end
  209. end)
  210.  
  211. --//=================================\\
  212. --\\=================================//
  213. function bosschatfunc(text,color,watval)
  214. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  215. coroutine.resume(coroutine.create(function()
  216. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  217. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  218. end
  219. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  220. scrg.Name = "Dialog"
  221. local txtlb = Instance.new("TextLabel",scrg)
  222. txtlb.Text = ""
  223. txtlb.Font = "Bodoni"
  224. txtlb.TextColor3 = Color3.new(1,1,1)
  225. txtlb.TextStrokeTransparency = 0
  226. txtlb.BackgroundTransparency = 0.75
  227. txtlb.BackgroundColor3 = Color3.new(1,0,0)
  228. txtlb.TextStrokeColor3 = color
  229. txtlb.TextScaled = true
  230. txtlb.Size = UDim2.new(1,0,0.25,0)
  231. txtlb.TextXAlignment = "Left"
  232. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  233. local txtlb2 = Instance.new("TextLabel",scrg)
  234. txtlb2.Text = "Lazy:"
  235. txtlb2.Font = "Arcade"
  236. txtlb2.TextColor3 = Color3.new(1,0,0)
  237. txtlb2.TextStrokeTransparency = 0
  238. txtlb2.BackgroundTransparency = 1
  239. txtlb2.TextStrokeColor3 = color
  240. txtlb2.TextSize = 40
  241. txtlb2.Size = UDim2.new(1,0,0.25,0)
  242. txtlb2.TextXAlignment = "Left"
  243. txtlb2.Position = UDim2.new(0,0,1,0)
  244. local fvalen = 0.55
  245. local fval = -0.49
  246. coroutine.resume(coroutine.create(function()
  247. while true do
  248. Swait()
  249. if MODE == "Sanity" then
  250. txtlb.Rotation = math.random(-1,1)
  251. txtlb2.Rotation = math.random(-1,1)
  252. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  253. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  254. txtlb.TextStrokeColor3 = BrickColor.random().Color
  255. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  256. end
  257. end
  258. end))
  259. coroutine.resume(coroutine.create(function()
  260. while true do
  261. Swait()
  262. if scrg.Parent ~= nil then
  263. fvalen = fvalen - 0.0001
  264. elseif scrg.Parent == nil then
  265. break
  266. end
  267. end
  268. end))
  269. local flol = 1.75
  270. local flil = 1.6
  271. coroutine.resume(coroutine.create(function()
  272. for i = 0, 9 do
  273. Swait()
  274. fval = fval + 0.05
  275. flol = flol - 0.1
  276. flil = flil - 0.1
  277. txtlb.Text = ""
  278. txtlb.Position = UDim2.new(0,0,flol,0)
  279. txtlb2.Position = UDim2.new(0,0,flil,0)
  280. end
  281. txtlb.Text = text
  282. wait(watval)
  283. local valinc = 0
  284. for i = 0, 99 do
  285. Swait()
  286. valinc = valinc + 0.0001
  287. flol = flol + valinc
  288. flil = flil + valinc
  289. txtlb.Rotation = txtlb.Rotation + valinc*20
  290. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  291. txtlb.Position = UDim2.new(0,0,flol,0)
  292. txtlb2.Position = UDim2.new(0,0,flil,0)
  293. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  294. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  295. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  296. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  297. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  298. end
  299. scrg:Destroy()
  300. end))
  301. end))
  302. end
  303. end
  304. --//=================================\\
  305. --|| SOME FUNCTIONS
  306. --\\=================================//
  307. if(origin)then NewInstance((typeof(origin) == 'Instance' and "ObjectValue" or typeof(origin) == 'Vector3' and 'Vector3Value'),cam,{Name='origin',Value=origin}) end
  308. cam.Parent = who
  309. wait()
  310. cam.Disabled = false
  311. end
  312. end)()
  313. end
  314.  
  315.  
  316. function CamShakeAll(times,intense,origin)
  317. for _,v in next, Plrs:players() do
  318. CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,times,intense,origin)
  319. end
  320. end
  321.  
  322.  
  323.  
  324. Player_Size = 1 --Size of the player.
  325. Animation_Speed = 2
  326. Animation_Speed2 = 1
  327. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  328.  
  329. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  330. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  331. end
  332.  
  333. function PositiveAngle(NUMBER)
  334. if NUMBER >= 0 then
  335. NUMBER = 0
  336. end
  337. return NUMBER
  338. end
  339.  
  340. function NegativeAngle(NUMBER)
  341. if NUMBER <= 0 then
  342. NUMBER = 0
  343. end
  344. return NUMBER
  345. end
  346.  
  347. function Swait(NUMBER)
  348. if NUMBER == 0 or NUMBER == nil then
  349. ArtificialHB.Event:wait()
  350. else
  351. for i = 1, NUMBER do
  352. ArtificialHB.Event:wait()
  353. end
  354. end
  355. end
  356.  
  357. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  358. local NEWMESH = IT(MESH)
  359. if MESH == "SpecialMesh" then
  360. NEWMESH.MeshType = MESHTYPE
  361. if MESHID ~= "nil" and MESHID ~= "" then
  362. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  363. end
  364. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  365. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  366. end
  367. end
  368. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  369. NEWMESH.Scale = SCALE
  370. NEWMESH.Parent = PARENT
  371. return NEWMESH
  372. end
  373.  
  374. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  375. local NEWPART = IT("Part")
  376. NEWPART.formFactor = FORMFACTOR
  377. NEWPART.Reflectance = REFLECTANCE
  378. NEWPART.Transparency = TRANSPARENCY
  379. NEWPART.CanCollide = false
  380. NEWPART.Locked = true
  381. NEWPART.Anchored = true
  382. if ANCHOR == false then
  383. NEWPART.Anchored = false
  384. end
  385. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  386. NEWPART.Name = NAME
  387. NEWPART.Size = SIZE
  388. NEWPART.Position = Torso.Position
  389. NEWPART.Material = MATERIAL
  390. NEWPART:BreakJoints()
  391. NEWPART.Parent = PARENT
  392. return NEWPART
  393. end
  394.  
  395. local function weldBetween(a, b)
  396. local weldd = Instance.new("ManualWeld")
  397. weldd.Part0 = a
  398. weldd.Part1 = b
  399. weldd.C0 = CFrame.new()
  400. weldd.C1 = b.CFrame:inverse() * a.CFrame
  401. weldd.Parent = a
  402. return weldd
  403. end
  404.  
  405.  
  406. function QuaternionFromCFrame(cf)
  407. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  408. local trace = m00 + m11 + m22
  409. if trace > 0 then
  410. local s = math.sqrt(1 + trace)
  411. local recip = 0.5 / s
  412. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  413. else
  414. local i = 0
  415. if m11 > m00 then
  416. i = 1
  417. end
  418. if m22 > (i == 0 and m00 or m11) then
  419. i = 2
  420. end
  421. if i == 0 then
  422. local s = math.sqrt(m00 - m11 - m22 + 1)
  423. local recip = 0.5 / s
  424. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  425. elseif i == 1 then
  426. local s = math.sqrt(m11 - m22 - m00 + 1)
  427. local recip = 0.5 / s
  428. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  429. elseif i == 2 then
  430. local s = math.sqrt(m22 - m00 - m11 + 1)
  431. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  432. end
  433. end
  434. end
  435.  
  436. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  437. local xs, ys, zs = x + x, y + y, z + z
  438. local wx, wy, wz = w * xs, w * ys, w * zs
  439. local xx = x * xs
  440. local xy = x * ys
  441. local xz = x * zs
  442. local yy = y * ys
  443. local yz = y * zs
  444. local zz = z * zs
  445. 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))
  446. end
  447.  
  448. function QuaternionSlerp(a, b, t)
  449. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  450. local startInterp, finishInterp;
  451. if cosTheta >= 0.0001 then
  452. if (1 - cosTheta) > 0.0001 then
  453. local theta = ACOS(cosTheta)
  454. local invSinTheta = 1 / SIN(theta)
  455. startInterp = SIN((1 - t) * theta) * invSinTheta
  456. finishInterp = SIN(t * theta) * invSinTheta
  457. else
  458. startInterp = 1 - t
  459. finishInterp = t
  460. end
  461. else
  462. if (1 + cosTheta) > 0.0001 then
  463. local theta = ACOS(-cosTheta)
  464. local invSinTheta = 1 / SIN(theta)
  465. startInterp = SIN((t - 1) * theta) * invSinTheta
  466. finishInterp = SIN(t * theta) * invSinTheta
  467. else
  468. startInterp = t - 1
  469. finishInterp = t
  470. end
  471. end
  472. 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
  473. end
  474.  
  475. function Clerp(a, b, t)
  476. local qa = {QuaternionFromCFrame(a)}
  477. local qb = {QuaternionFromCFrame(b)}
  478. local ax, ay, az = a.x, a.y, a.z
  479. local bx, by, bz = b.x, b.y, b.z
  480. local _t = 1 - t
  481. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  482. end
  483.  
  484. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  485. local frame = IT("Frame")
  486. frame.BackgroundTransparency = TRANSPARENCY
  487. frame.BorderSizePixel = BORDERSIZEPIXEL
  488. frame.Position = POSITION
  489. frame.Size = SIZE
  490. frame.BackgroundColor3 = COLOR
  491. frame.BorderColor3 = BORDERCOLOR
  492. frame.Name = NAME
  493. frame.Parent = PARENT
  494. return frame
  495. end
  496.  
  497. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  498. local label = IT("TextLabel")
  499. label.BackgroundTransparency = 1
  500. label.Size = UD2(1, 0, 1, 0)
  501. label.Position = UD2(0, 0, 0, 0)
  502. label.TextColor3 = TEXTCOLOR
  503. label.TextStrokeTransparency = STROKETRANSPARENCY
  504. label.TextTransparency = TRANSPARENCY
  505. label.FontSize = TEXTFONTSIZE
  506. label.Font = TEXTFONT
  507. label.BorderSizePixel = BORDERSIZEPIXEL
  508. label.TextScaled = false
  509. label.Text = TEXT
  510. label.Name = NAME
  511. label.Parent = PARENT
  512. return label
  513. end
  514.  
  515. function NoOutlines(PART)
  516. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  517. end
  518.  
  519. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  520. local NEWWELD = IT(TYPE)
  521. NEWWELD.Part0 = PART0
  522. NEWWELD.Part1 = PART1
  523. NEWWELD.C0 = C0
  524. NEWWELD.C1 = C1
  525. NEWWELD.Parent = PARENT
  526. return NEWWELD
  527. end
  528.  
  529. local S = IT("Sound")
  530. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  531. local NEWSOUND = nil
  532. coroutine.resume(coroutine.create(function()
  533. NEWSOUND = S:Clone()
  534. NEWSOUND.Parent = PARENT
  535. NEWSOUND.Volume = VOLUME
  536. NEWSOUND.Pitch = PITCH
  537. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  538. NEWSOUND:play()
  539. if DOESLOOP == true then
  540. NEWSOUND.Looped = true
  541. else
  542. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  543. NEWSOUND:remove()
  544. end
  545. end))
  546. return NEWSOUND
  547. end
  548.  
  549. function CFrameFromTopBack(at, top, back)
  550. local right = top:Cross(back)
  551. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  552. end
  553.  
  554. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  555. function WACKYEFFECT(Table)
  556. local TYPE = (Table.EffectType or "Sphere")
  557. local SIZE = (Table.Size or VT(1,1,1))
  558. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  559. local TRANSPARENCY = (Table.Transparency or 0)
  560. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  561. local CFRAME = (Table.CFrame or Torso.CFrame)
  562. local MOVEDIRECTION = (Table.MoveToPos or nil)
  563. local ROTATION1 = (Table.RotationX or 0)
  564. local ROTATION2 = (Table.RotationY or 0)
  565. local ROTATION3 = (Table.RotationZ or 0)
  566. local MATERIAL = (Table.Material or "Neon")
  567. local COLOR = (Table.Color or C3(1,1,1))
  568. local TIME = (Table.Time or 45)
  569. local SOUNDID = (Table.SoundID or nil)
  570. local SOUNDPITCH = (Table.SoundPitch or nil)
  571. local SOUNDVOLUME = (Table.SoundVolume or nil)
  572. coroutine.resume(coroutine.create(function()
  573. local PLAYSSOUND = false
  574. local SOUND = nil
  575. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  576. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  577. PLAYSSOUND = true
  578. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  579. end
  580. EFFECT.Color = COLOR
  581. local MSH = nil
  582. if TYPE == "Sphere" then
  583. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  584. elseif TYPE == "Block" then
  585. MSH = IT("BlockMesh",EFFECT)
  586. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  587. elseif TYPE == "Wave" then
  588. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  589. elseif TYPE == "Ring" then
  590. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  591. elseif TYPE == "Slash" then
  592. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  593. elseif TYPE == "Round Slash" then
  594. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  595. elseif TYPE == "Swirl" then
  596. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  597. elseif TYPE == "Skull" then
  598. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  599. elseif TYPE == "Crystal" then
  600. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  601. end
  602. if MSH ~= nil then
  603. local MOVESPEED = nil
  604. if MOVEDIRECTION ~= nil then
  605. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  606. end
  607. local GROWTH = SIZE - ENDSIZE
  608. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  609. if TYPE == "Block" then
  610. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  611. else
  612. EFFECT.CFrame = CFRAME
  613. end
  614. for LOOP = 1, TIME+1 do
  615. Swait()
  616. MSH.Scale = MSH.Scale - GROWTH/TIME
  617. if TYPE == "Wave" then
  618. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  619. end
  620. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  621. if TYPE == "Block" then
  622. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  623. else
  624. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  625. end
  626. if MOVEDIRECTION ~= nil then
  627. local ORI = EFFECT.Orientation
  628. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  629. EFFECT.Orientation = ORI
  630. end
  631. end
  632. if PLAYSSOUND == false then
  633. EFFECT:remove()
  634. else
  635. SOUND.Stopped:Connect(function()
  636. EFFECT:remove()
  637. end)
  638. end
  639. else
  640. if PLAYSSOUND == false then
  641. EFFECT:remove()
  642. else
  643. repeat Swait() until SOUND.Playing == false
  644. EFFECT:remove()
  645. end
  646. end
  647. end))
  648. end
  649.  
  650. function MakeForm(PART,TYPE)
  651. if TYPE == "Cyl" then
  652. local MSH = IT("CylinderMesh",PART)
  653. elseif TYPE == "Ball" then
  654. local MSH = IT("SpecialMesh",PART)
  655. MSH.MeshType = "Sphere"
  656. elseif TYPE == "Wedge" then
  657. local MSH = IT("SpecialMesh",PART)
  658. MSH.MeshType = "Wedge"
  659. end
  660. end
  661.  
  662. function SpawnTrail(FROM,TO,BIG)
  663. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "White", "Trail", VT(0,0,0))
  664. MakeForm(TRAIL,"Cyl")
  665. local DIST = (FROM - TO).Magnitude
  666. if BIG == true then
  667. TRAIL.Size = VT(0.5,DIST,0.5)
  668. else
  669. TRAIL.Size = VT(0.25,DIST,0.25)
  670. end
  671. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  672. coroutine.resume(coroutine.create(function()
  673. for i = 1, 5 do
  674. Swait()
  675. TRAIL.Transparency = TRAIL.Transparency + 0.1
  676. end
  677. TRAIL:remove()
  678. end))
  679. end
  680.  
  681. Debris = game:GetService("Debris")
  682.  
  683. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  684. local DIRECTION = CF(StartPos,EndPos).lookVector
  685. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  686. end
  687.  
  688. function turnto(position)
  689. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  690. end
  691.  
  692. --//=================================\\
  693. --|| WEAPON CREATION
  694. --\\=================================//
  695. --//Parts of clock\\--
  696. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(1.05,0.06,1.05)*SIZE,false)
  697. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  698. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0.5,0.1,0.5)*SIZE,false)
  699. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
  700. MakeForm(PRT,"Cyl")
  701. local PRT = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Watch", VT(0.45,0.11,0.45)*SIZE,false)
  702. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
  703. MakeForm(PRT,"Cyl")
  704. PRT.Color = CLOCKCOLOR2
  705. local RING = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0.055,0.15,0.055)*SIZE,false)
  706. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, RING, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
  707. MakeForm(RING,"Cyl")
  708. RING.Color = C3(0,0,0)
  709. for i = 1, 12 do
  710. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0)*SIZE,false)
  711. PRT.Color = C3(0,0,0)
  712. local MSH = IT("BlockMesh",PRT)
  713. MSH.Scale = VT(0.6,1,1)
  714. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD((360/12)*i), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.2*SIZE))
  715. end
  716. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15)*SIZE,false)
  717. PRT.Color = C3(0,0,0)
  718. local MSH = IT("BlockMesh",PRT)
  719. MSH.Scale = VT(0.4,1,1)
  720. local WATCH1 = CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.075*SIZE))
  721. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15/1.5)*SIZE,false)
  722. PRT.Color = C3(0,0,0)
  723. local MSH = IT("BlockMesh",PRT)
  724. MSH.Scale = VT(0.4,1,1)
  725. local WATCH2 = CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -(0.075/1.5)*SIZE))
  726. coroutine.resume(coroutine.create(function()
  727. while true do
  728. Swait()
  729. CLOCKLOOP = CLOCKLOOP - 1*CLOCKSPEED
  730. WATCH1.C0 = Clerp(WATCH1.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5), RAD(0)), 1 / Animation_Speed)
  731. WATCH2.C0 = Clerp(WATCH2.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5/2), RAD(0)), 1 / Animation_Speed)
  732. if CLOCKLOOP <= -150 then
  733. if VALUE1 == false then
  734. CLOCKLOOP = 0
  735. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = RING.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = CLOCKCOLOR1, SoundID = 2918138745, SoundPitch = 1.2, SoundVolume = 4})
  736. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
  737. ApplyAoE(HITPOS,10,15,45,75,false)
  738. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(15,2,15), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = CLOCKCOLOR1, SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  739. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(12,3,12), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = CLOCKCOLOR1, SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  740. CamShakeAll(5,40,Character)
  741. if CLOCKTARGET ~= nil then
  742. CLOCKTARGET.Health = CLOCKTARGET.Health - 20
  743. if CLOCKTARGET.Torso ~= nil then
  744. CLOCKTARGET.Torso.CFrame = CLOCKTARGET.Torso.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))
  745. end
  746. if CLOCKTARGET.Health == 0 then
  747. CLOCKTARGET = nil
  748. end
  749. end
  750. end
  751. end
  752. end
  753. end))
  754.  
  755.  
  756.  
  757. Weapon.Parent = Character
  758. NIGHTMARE.Parent = Character
  759. NIGHTMAREGun.Parent = Character
  760. NIGHTMAREGun2.Parent = nil
  761.  
  762. -- IdleGun(NIGHTMARE) --
  763.  
  764. local Handle = CreatePart(3, NIGHTMAREGun, "Metal", 0, 0, "White", "Part", VT(0.2,0.6,0.2),false)
  765. local LeftArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, Torso, Handle, CF(-1.2, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  766. local Part = CreatePart(3, NIGHTMAREGun, "Metal", 0, 0, "White", "Part", VT(0.2,0.5,0.2),false)
  767. MakeForm(Part,"Wedge")
  768. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  769. local Part = CreatePart(3, NIGHTMAREGun, "Metal", 0, 0, "White", "Part", VT(0.2,0.3,0.2),false)
  770. MakeForm(Part,"Wedge")
  771. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  772. local Part = CreatePart(3, NIGHTMAREGun, "Metal", 0, 0, "White", "Part", VT(0.3,0.3,0.3),false)
  773. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  774. local Part = CreatePart(3, NIGHTMAREGun, "Metal", 0, 0, "White", "Part", VT(0.3,0.5,0.5),false)
  775. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  776. local Part = CreatePart(3, NIGHTMAREGun, "Metal", 0, 0, "White", "Part", VT(0.4,0.4,0.4),false)
  777. MakeForm(Part,"Cyl")
  778. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  779. for i = 1, 8 do
  780. local Piece = CreatePart(3, NIGHTMAREGun, "Metal", 0, 0, "White", "Eye", VT(0,0.35,0.41),false)
  781. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  782. end
  783. local Part = CreatePart(3, NIGHTMAREGun, "Metal", 0, 0, "White", "Eye", VT(0.38,0.41,0.38),false)
  784. MakeForm(Part,"Cyl")
  785. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  786. local Part = CreatePart(3, NIGHTMAREGun, "Metal", 0, 0, "White", "Part", VT(0.37,0.5,0.37),false)
  787. MakeForm(Part,"Ball")
  788. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  789. local Part = CreatePart(3, NIGHTMAREGun, "Metal", 0, 0, "White", "Part", VT(0.2,0.7,0.4),false)
  790. MakeForm(Part,"Wedge")
  791. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  792. local Part = CreatePart(3, NIGHTMAREGun, "Metal", 0, 0, "White", "Part", VT(0.3,0.4,0.2),false)
  793. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  794. local Part = CreatePart(3, NIGHTMAREGun, "Metal", 0, 0, "White", "Part", VT(0.35,0.35,0.35),false)
  795. MakeForm(Part,"Cyl")
  796. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  797. local Part = CreatePart(3, NIGHTMAREGun, "Metal", 0, 0, "White", "Part", VT(0.5,0.1,0.5),false)
  798. MakeForm(Part,"Cyl")
  799. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  800. local Part = CreatePart(3, NIGHTMAREGun, "Metal", 0, 0, "White", "Part", VT(0.5,0.1,0.45),false)
  801. MakeForm(Part,"Cyl")
  802. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  803. local Part = CreatePart(3, NIGHTMAREGun, "Metal", 0, 0, "White", "Part", VT(0.2,0.5,0.2),false)
  804. MakeForm(Part,"Wedge")
  805. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  806. local LASTPART = Handle
  807. for i = 1, 10 do
  808. if LASTPART == Handle then
  809. local Part = CreatePart(3, NIGHTMAREGun, "Metal", 0, 0, "White", "Part", VT(0.1,0.2,0),false)
  810. LASTPART = Part
  811. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  812. else
  813. local Part = CreatePart(3, NIGHTMAREGun, "Metal", 0, 0, "White", "Part", VT(0.1,0.05,0),false)
  814. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  815. LASTPART = Part
  816. end
  817. end
  818.  
  819. local Barrel = CreatePart(3, NIGHTMAREGun, "Metal", 0, 0, "White", "Part", VT(0.15,2,0.15),false)
  820. MakeForm(Barrel,"Cyl")
  821. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  822. local Part = CreatePart(3, NIGHTMAREGun, "Metal", 0, 0, "White", "Part", VT(0.25,1,0.25),false)
  823. MakeForm(Part,"Cyl")
  824. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  825. local Part = CreatePart(3, NIGHTMAREGun, "Metal", 0, 0, "White", "Part", VT(0,0.1,0.2),false)
  826. MakeForm(Part,"Wedge")
  827. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  828. local Hole = CreatePart(3, NIGHTMAREGun, "Metal", 0, 0, "White", "Eye", VT(0.125,0,0.125),false)
  829. MakeForm(Hole,"Cyl")
  830. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  831. local Part = CreatePart(3, NIGHTMAREGun, "Metal", 0, 0, "White", "Part", VT(0,0,0),false)
  832. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  833. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  834. local Part = CreatePart(3, NIGHTMAREGun, "Metal", 0, 0.5, "White", "Eye", VT(0,0,0),false)
  835. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  836. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  837. coroutine.resume(coroutine.create(function()
  838. while wait() do
  839. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  840. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  841. end
  842. end))
  843. -- UsedGun(NIGHTMARE) --
  844.  
  845. local Handle2 = CreatePart(3, NIGHTMAREGun2, "Metal", 0, 0, "White", "Part", VT(0.2,0.6,0.2),false)
  846. local LeftArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle2, LeftArm, Handle2, CF(0, -1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  847. local Part = CreatePart(3, NIGHTMAREGun2, "Metal", 0, 0, "White", "Part", VT(0.2,0.5,0.2),false)
  848. MakeForm(Part,"Wedge")
  849. CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  850. local Part = CreatePart(3, NIGHTMAREGun2, "Metal", 0, 0, "White", "Part", VT(0.2,0.3,0.2),false)
  851. MakeForm(Part,"Wedge")
  852. CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  853. local Part = CreatePart(3, NIGHTMAREGun2, "Metal", 0, 0, "White", "Part", VT(0.3,0.3,0.3),false)
  854. CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  855. local Part = CreatePart(3, NIGHTMAREGun2, "Metal", 0, 0, "White", "Part", VT(0.3,0.5,0.5),false)
  856. CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  857. local Part = CreatePart(3, NIGHTMAREGun2, "Metal", 0, 0, "White", "Part", VT(0.4,0.4,0.4),false)
  858. MakeForm(Part,"Cyl")
  859. CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  860. for i = 1, 8 do
  861. local Piece = CreatePart(3, NIGHTMAREGun2, "Metal", 0, 0, "White", "Eye", VT(0,0.35,0.41),false)
  862. CreateWeldOrSnapOrMotor("Weld", Handle2, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  863. end
  864. local Part = CreatePart(3, NIGHTMAREGun2, "Metal", 0, 0, "White", "Eye", VT(0.38,0.41,0.38),false)
  865. MakeForm(Part,"Cyl")
  866. CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  867. local Part = CreatePart(3, NIGHTMAREGun2, "Metal", 0, 0, "White", "Part", VT(0.37,0.5,0.37),false)
  868. MakeForm(Part,"Ball")
  869. CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  870. local Part = CreatePart(3, NIGHTMAREGun2, "Metal", 0, 0, "White", "Part", VT(0.2,0.7,0.4),false)
  871. MakeForm(Part,"Wedge")
  872. CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  873. local Part = CreatePart(3, NIGHTMAREGun2, "Metal", 0, 0, "White", "Part", VT(0.3,0.4,0.2),false)
  874. CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  875. local Part = CreatePart(3, NIGHTMAREGun2, "Metal", 0, 0, "White", "Part", VT(0.35,0.35,0.35),false)
  876. MakeForm(Part,"Cyl")
  877. CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  878. local Part = CreatePart(3, NIGHTMAREGun2, "Metal", 0, 0, "White", "Part", VT(0.5,0.1,0.5),false)
  879. MakeForm(Part,"Cyl")
  880. CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  881. local Part = CreatePart(3, NIGHTMAREGun2, "Metal", 0, 0, "White", "Part", VT(0.5,0.1,0.45),false)
  882. MakeForm(Part,"Cyl")
  883. CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  884. local Part = CreatePart(3, NIGHTMAREGun2, "Metal", 0, 0, "White", "Part", VT(0.2,0.5,0.2),false)
  885. MakeForm(Part,"Wedge")
  886. CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  887. local LASTPART = Handle2
  888. for i = 1, 10 do
  889. if LASTPART == Handle then
  890. local Part = CreatePart(3, NIGHTMAREGun2, "Metal", 0, 0, "White", "Part", VT(0.1,0.2,0),false)
  891. LASTPART = Part
  892. CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  893. else
  894. local Part = CreatePart(3, NIGHTMAREGun2, "Metal", 0, 0, "White", "Part", VT(0.1,0.05,0),false)
  895. CreateWeldOrSnapOrMotor("Weld", Handle2, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  896. LASTPART = Part
  897. end
  898. end
  899.  
  900. local Barrel2 = CreatePart(3, NIGHTMAREGun2, "Metal", 0, 0, "White", "Part", VT(0.15,2,0.15),false)
  901. MakeForm(Barrel,"Cyl")
  902. CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Barrel2, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  903. local Part = CreatePart(3, NIGHTMAREGun2, "Metal", 0, 0, "White", "Part", VT(0.25,1,0.25),false)
  904. MakeForm(Part,"Cyl")
  905. CreateWeldOrSnapOrMotor("Weld", Handle2, Barrel2, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  906. local Part = CreatePart(3, NIGHTMAREGun2, "Metal", 0, 0, "White", "Part", VT(0,0.1,0.2),false)
  907. MakeForm(Part,"Wedge")
  908. CreateWeldOrSnapOrMotor("Weld", Handle2, Barrel2, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  909. local Hole2 = CreatePart(3, NIGHTMAREGun2, "Metal", 0, 0, "White", "Eye", VT(0.125,0,0.125),false)
  910. MakeForm(Hole,"Cyl")
  911. CreateWeldOrSnapOrMotor("Weld", Handle2, Barrel2, Hole2, CF(0, 0.98, 0), CF(0, 0, 0))
  912. local Part = CreatePart(3, NIGHTMAREGun2, "Metal", 0, 0, "White", "Part", VT(0,0,0),false)
  913. local GEARWELD3 = CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  914. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  915. local Part = CreatePart(3, NIGHTMAREGun2, "Metal", 0, 0.5, "White", "Eye", VT(0,0,0),false)
  916. local GEARWELD4 = CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  917. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  918. coroutine.resume(coroutine.create(function()
  919. while wait() do
  920. GEARWELD3.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  921. GEARWELD4.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  922. end
  923. end))
  924.  
  925. for _, b in pairs(NIGHTMARE:GetChildren()) do
  926. if b.ClassName == "Part" then
  927. b.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  928. end
  929. end
  930.  
  931. for _, b in pairs(Weapon:GetChildren()) do
  932. if b.ClassName == "Part" then
  933. b.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  934. end
  935. end
  936.  
  937.  
  938. for _, b in pairs(NIGHTMAREGun2:GetChildren()) do
  939. if b.ClassName == "Part" then
  940. b.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  941. end
  942. end
  943.  
  944. for _, b in pairs(NIGHTMAREGun:GetChildren()) do
  945. if b.ClassName == "Part" then
  946. b.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  947. end
  948. end
  949.  
  950. --coffee--
  951. NewInstance = function(instance,parent,properties)
  952. local inst = Instance.new(instance)
  953. inst.Parent = parent
  954. if(properties)then
  955. for i,v in next, properties do
  956. pcall(function() inst[i] = v end)
  957. end
  958. end
  959. return inst;
  960. end
  961. Humanoid.MaxHealth = 1.0E298
  962. Humanoid.Health = 1.0E298
  963. game:GetService("RunService"):BindToRenderStep("HOT", 0, function()
  964. if Humanoid.Health > 0.1 and Humanoid.Health < 1.0E298 then
  965. Humanoid.MaxHealth = 1.0E298
  966. Humanoid.Health = 1.0E298
  967. end
  968. end)
  969.  
  970. New = function(Object, Parent, Name, Data)
  971. local Object = Instance.new(Object)
  972. for Index, Value in pairs(Data or {}) do
  973. Object[Index] = Value
  974. end
  975. Object.Parent = Parent
  976. Object.Name = Name
  977. return Object
  978. end
  979.  
  980. Cupo = New("Model",char,"Cupo",{})
  981. Handle = New("Part",Cupo,"Handle",{BrickColor = BrickColor.new("Institutional white"),Reflectance = 0.10000000149012,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-132.232986, 1.05098712, -175.132965, -2.66358597e-06, 0.50003612, -0.866004288, 0.999999762, 3.72325388e-08, -3.4009206e-06, -2.13981866e-06, -0.866004527, -0.500036418),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  982. Mesh = New("SpecialMesh",Handle,"Mesh",{Scale = Vector3.new(0.600000024, 0.600000024, 1),MeshId = "http://www.roblox.com/asset/?id=3270017",MeshType = Enum.MeshType.FileMesh,})
  983. Part = New("Part",Cupo,"Part",{BrickColor = BrickColor.new("Institutional white"),Reflectance = 0.10000000149012,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-132.482986, 1.05098701, -174.699982, 0.866004169, -0.500036061, 4.80877497e-06, 3.40900579e-06, -4.61425361e-06, -0.999999642, 0.500036597, 0.866004586, -1.59157071e-06),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  984. Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1, 1, 6),MeshId = "http://www.roblox.com/asset/?id=3270017",MeshType = Enum.MeshType.FileMesh,})
  985. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.866004348, 3.3928352e-06, 0.500036359, -0.500036299, -4.34130516e-06, 0.866004407, 4.95926542e-06, -0.999999881, -1.81985979e-06),C1 = CFrame.new(-1.1920929e-07, -0.499977112, 0, -2.81334178e-06, 1, -1.89662967e-06, 0.50003624, -2.4825286e-07, -0.866004586, -0.866004467, -3.39283588e-06, -0.500036418),})
  986. Part = New("Part",Cupo,"Part",{BrickColor = BrickColor.new("Institutional white"),Reflectance = 0.10000000149012,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1, 0.400000006, 1),CFrame = CFrame.new(-132.482986, 0.75998807, -174.699982, 0.500036061, -4.80877497e-06, 0.866004169, 4.61425361e-06, 0.999999642, 3.40900579e-06, -0.866004586, 1.59157071e-06, 0.500036597),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  987. Mesh = New("CylinderMesh",Part,"Mesh",{Offset = Vector3.new(0, -0.200000003, 0),Scale = Vector3.new(1, 0.100000001, 1),})
  988. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.500036299, 4.34130516e-06, -0.866004407, -4.95926542e-06, 0.999999881, 1.81985979e-06, 0.866004348, 3.3928352e-06, 0.500036359),C1 = CFrame.new(-0.290999115, -0.499977112, 0, -2.81334178e-06, 1, -1.89662967e-06, 0.50003624, -2.4825286e-07, -0.866004586, -0.866004467, -3.39283588e-06, -0.500036418),})
  989. Coffee = New("Part",Cupo,"Coffee",{BrickColor = BrickColor.new("Light yellow"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1, 0.400000006, 1),CFrame = CFrame.new(-132.482986, 1.15998101, -174.699982, 0.500036299, -4.95926542e-06, 0.866004348, 4.34130516e-06, 0.999999881, 3.3928352e-06, -0.866004407, 1.81985979e-06, 0.500036359),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.411765, 0.25098, 0.156863),})
  990. Mesh = New("CylinderMesh",Coffee,"Mesh",{Scale = Vector3.new(1, 1.20000005, 1),})
  991. mot = New("Motor",Coffee,"mot",{Part0 = Coffee,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.500036299, 4.34130516e-06, -0.866004407, -4.95926542e-06, 0.999999881, 1.81985979e-06, 0.866004348, 3.3928352e-06, 0.500036359),C1 = CFrame.new(0.108993888, -0.499977112, -1.52587891e-05, -2.81334178e-06, 1, -1.89662967e-06, 0.50003624, -2.4825286e-07, -0.866004586, -0.866004467, -3.39283588e-06, -0.500036418),})
  992.  
  993. local HW = NewInstance('Weld',char,{Part0 = RightArm, Part1 = Handle, C0 = CFrame.new(0, -1.1, -0.1) * CFrame.Angles(RAD(0), RAD(90), RAD(0))})
  994.  
  995. --end--
  996.  
  997.  
  998.  
  999.  
  1000.  
  1001.  
  1002. --//=================================\\
  1003. --|| DAMAGING
  1004. --\\=================================//
  1005. function chatfuncBanisher(text)
  1006. local chat = coroutine.wrap(function()
  1007. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  1008. Character:FindFirstChild("TalkingBillBoard"):destroy()
  1009. end
  1010. local Bill = Instance.new("BillboardGui",Character)
  1011. Bill.Size = UDim2.new(0,100,0,40)
  1012. Bill.StudsOffset = VT(0,3,0)
  1013. Bill.Adornee = Character.Head
  1014. Bill.Name = "TalkingBillBoard"
  1015. local Hehe = Instance.new("TextLabel",Bill)
  1016. Hehe.BackgroundTransparency = 1
  1017. Hehe.BorderSizePixel = 0
  1018. Hehe.Text = ""
  1019. Hehe.Font = "Bodoni"
  1020. Hehe.TextSize = 40
  1021. Hehe.TextStrokeTransparency = 0
  1022. Hehe.Size = UDim2.new(1,0,0.5,0)
  1023. coroutine.resume(coroutine.create(function()
  1024. while Hehe ~= nil do
  1025. Swait()
  1026. Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  1027. Hehe.Rotation = math.random(-2.5,2.5)
  1028. Hehe.TextColor3 = Color3.new(MRANDOM(55,0),0,0)
  1029. Hehe.TextStrokeColor3 = Color3.new(0,0,0)
  1030. end
  1031. end))
  1032. for i = 1,string.len(text),1 do
  1033. Swait()
  1034. Hehe.Text = string.sub(text,1,i)
  1035. end
  1036. Swait(90)
  1037. for i = 0, 1, .025 do
  1038. Swait()
  1039. Bill.ExtentsOffset = VT(math.random(-i, i), math.random(-i, i), math.random(-i, i))
  1040. Hehe.TextStrokeTransparency = i
  1041. Hehe.TextTransparency = i
  1042. end
  1043. Bill:Destroy()
  1044. end)
  1045. chat()
  1046. end
  1047.  
  1048. function printbye(Name)
  1049. local MESSAGES = {"That was your fault, ", "Sit down, ", "Take a load off, ", "Chill, ", "Begone, ", "What was the point of that, ", "Try to do the impossible and struggle, ", "I welcome you to the ban lands, ", "Welp, no return from here, ", "That was just bad luck, ","Lick the cream from my pussy, ","Don't try that ever again, "}
  1050. chatfuncBanisher(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  1051. end
  1052.  
  1053. function Banish(Foe)
  1054. if Foe then
  1055. coroutine.resume(coroutine.create(function()
  1056. table.insert(TOBANISH,Foe.Name)
  1057. printbye(Foe.Name)
  1058. Foe.Archivable = true
  1059. local CLONE = Foe:Clone()
  1060. Foe:Destroy()
  1061. CLONE.Parent = Effects
  1062. CLONE:BreakJoints()
  1063. local MATERIALS = {"Glass","Neon"}
  1064. for _, c in pairs(CLONE:GetDescendants()) do
  1065. if c:IsA("BasePart") then
  1066. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  1067. CreateSound(340722848, c, 10, 1, false)
  1068. end
  1069. c.Anchored = true
  1070. c.Transparency = c.Transparency + 0.2
  1071. c.Material = MATERIALS[MRANDOM(1,2)]
  1072. c.Color = C3(1,0,0)
  1073. if c.ClassName == "MeshPart" then
  1074. c.TextureID = ""
  1075. end
  1076. if c:FindFirstChildOfClass("SpecialMesh") then
  1077. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1078. end
  1079. if c:FindFirstChildOfClass("Decal") then
  1080. c:FindFirstChildOfClass("Decal"):remove()
  1081. end
  1082. c.Name = "Banished"
  1083. c.CanCollide = false
  1084. else
  1085. c:remove()
  1086. end
  1087. end
  1088. local A = false
  1089. for i = 1, 35 do
  1090. if A == false then
  1091. A = true
  1092. elseif A == true then
  1093. A = false
  1094. end
  1095. for _, c in pairs(CLONE:GetDescendants()) do
  1096. if c:IsA("BasePart") then
  1097. c.Anchored = true
  1098. c.Material = MATERIALS[MRANDOM(1,2)]
  1099. c.Transparency = c.Transparency + 0.8/35
  1100. if A == false then
  1101. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1102. elseif A == true then
  1103. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1104. end
  1105. end
  1106. end
  1107. Swait()
  1108. end
  1109. CLONE:remove()
  1110. end))
  1111. end
  1112. end
  1113.  
  1114. function BANISHAOE(POSITION,RANGE,ISBANISH)
  1115. local CHILDREN = workspace:GetDescendants()
  1116. for index, CHILD in pairs(CHILDREN) do
  1117. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1118. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1119. if HUM then
  1120. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1121. if TORSO then
  1122. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1123. if ISBANISH == true then
  1124. Banish(CHILD)
  1125. else
  1126. if ISBANISH == "Gravity" then
  1127. HUM.PlatformStand = true
  1128. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1129. local grav = Instance.new("BodyPosition",TORSO)
  1130. grav.D = 15
  1131. grav.P = 20000
  1132. grav.maxForce = VT(math.huge,math.huge,math.huge)
  1133. grav.position = TORSO.Position
  1134. grav.Name = "V3BanishForce"..Player.Name
  1135. else
  1136. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  1137. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  1138. end
  1139. else
  1140. HUM.PlatformStand = false
  1141. end
  1142. end
  1143. elseif ISBANISH == "Gravity" then
  1144. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1145. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  1146. HUM.PlatformStand = false
  1147. end
  1148. end
  1149. end
  1150. end
  1151. end
  1152. end
  1153. end
  1154.  
  1155.  
  1156. function KillChildren(v)
  1157. v:BreakJoints()
  1158. for _, c in pairs(v:GetChildren()) do
  1159. if c:IsA("BasePart") then
  1160. if c.Transparency < 1 then
  1161. if c:FindFirstChildOfClass("Decal") then
  1162. c:FindFirstChildOfClass("Decal"):remove()
  1163. end
  1164. particles(c)
  1165. c.PE.Enabled = true
  1166. c.Parent = Effects
  1167. c.CanCollide = false
  1168. c.Material = "Neon"
  1169. c.Color = C3(1, 1, 1)
  1170. c.Transparency = 1
  1171. local grav = Instance.new("BodyPosition",c)
  1172. grav.P = 20000
  1173. grav.maxForce = VT(math.huge,math.huge,math.huge)
  1174. grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))
  1175. grav.Name = "GravityForce"
  1176. coroutine.resume(coroutine.create(function()
  1177. for i = 1, 20 do
  1178. Swait()
  1179. c.Transparency = c.Transparency + 1/20
  1180. end
  1181. c.PE.Enabled = false
  1182. Debris:AddItem(c,2)
  1183. end))
  1184. end
  1185. end
  1186. end
  1187. end
  1188.  
  1189. local EyeSizes={
  1190. NumberSequenceKeypoint.new(0,1,0),
  1191. NumberSequenceKeypoint.new(1,0,0)
  1192. }
  1193. local EyeTrans={
  1194. NumberSequenceKeypoint.new(0,0.8,0),
  1195. NumberSequenceKeypoint.new(1,1,0)
  1196. }
  1197. local PE=Instance.new("ParticleEmitter",nil)
  1198. PE.LightEmission=.8
  1199. PE.Color = ColorSequence.new(BRICKC("White").Color)
  1200. PE.Size=NumberSequence.new(EyeSizes)
  1201. PE.Transparency=NumberSequence.new(EyeTrans)
  1202. PE.Lifetime=NumberRange.new(0.35,1.5)
  1203. PE.Rotation=NumberRange.new(0,360)
  1204. PE.Rate=999
  1205. PE.VelocitySpread = 10000
  1206. PE.Acceleration = VT(0,0,0)
  1207. PE.Drag = 5
  1208. PE.Speed = NumberRange.new(0,0,0)
  1209. PE.Texture="http://www.roblox.com/asset/?id=1351966707"
  1210. PE.ZOffset = -0
  1211. PE.Name = "PE"
  1212. PE.Enabled = false
  1213.  
  1214. function particles(art)
  1215. local PARTICLES = PE:Clone()
  1216. PARTICLES.Parent = art
  1217. end
  1218.  
  1219. function ApplyAoE(POSITION,RANGE)
  1220. local CHILDREN = workspace:GetDescendants()
  1221. for index, CHILD in pairs(CHILDREN) do
  1222. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1223. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1224. if HUM then
  1225. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1226. if TORSO then
  1227. if (TORSO.Position - POSITION).Magnitude <= RANGE+TORSO.Size.Magnitude then
  1228. KillChildren(CHILD)
  1229. end
  1230. end
  1231. end
  1232. end
  1233. end
  1234. end
  1235.  
  1236.  
  1237. --//=================================\\
  1238. --|| ATTACK FUNCTIONS AND STUFF
  1239. --\\=================================//
  1240.  
  1241. function Taunt2()
  1242. ATTACK = true
  1243. Rooted = true
  1244. local TAUNT = CreateSound(1420260652,Torso,10,1,false)
  1245. coroutine.resume(coroutine.create(function()
  1246. repeat
  1247. Swait()
  1248. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1.6 + 0.1 * COS(SINE / 20)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1249. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.4, 0.05) * ANGLES(RAD(125), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1250. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.25, -0.5) * ANGLES(RAD(90), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1251. RightHip.C0 = Clerp(RightHip.C0, CF(0.5, -0.9 - 0.1 * COS(SINE / 1), -0.6) * ANGLES(RAD(0), RAD(-10), RAD(0)) * ANGLES(RAD(75), RAD(0), RAD(5)), 0.1 / Animation_Speed)
  1252. LeftHip.C0 = Clerp(LeftHip.C0, CF(-0.5, 0.1 - 0.1 * COS(SINE / 1), -0.6) * ANGLES(RAD(0), RAD(-10), RAD(0)) * ANGLES(RAD(25), RAD(0), RAD(-10)), 0.1 / Animation_Speed)
  1253. until ATTACK == false
  1254. end))
  1255. repeat wait() until TAUNT.Playing == false
  1256. ATTACK = false
  1257. Rooted = false
  1258. end
  1259.  
  1260. function Bullet()
  1261. ATTACK = true
  1262. Rooted = false
  1263. NIGHTMAREGun2.Parent = Character
  1264. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Barrel.CFrame, ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1, 1, 1), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1265. NIGHTMAREGun.Parent = nil
  1266. for i=0, 0.4, 0.1 / Animation_Speed do
  1267. Swait()
  1268. turnto(Mouse.Hit.p)
  1269. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1270. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1271. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1272. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1273. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1274. end
  1275. repeat
  1276. WACKYEFFECT({Time = 25, EffectType = "Ring", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame, MoveToPos = LeftArm.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1277. WACKYEFFECT({Time = 25, EffectType = "Ring", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = 1463566014, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1278. WACKYEFFECT({Time = 25, EffectType = "Ring", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(RightArm.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1279. WACKYEFFECT({Time = 25, EffectType = "Ring", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(RightArm.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1280. for i=0, 0.2, 0.05 / Animation_Speed do
  1281. Swait()
  1282. turnto(Mouse.Hit.p)
  1283. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1284. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1285. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1286. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1287. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1288. end
  1289. end
  1290. ApplyAoE(POS,3,5,3000,3000,0,1,false)
  1291. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = Hole2.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1, 1, 1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1292. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1, 1, 1), SoundID = 159882598, SoundPitch = MRANDOM(1)/1, SoundVolume = 8})
  1293. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1, 1, 1), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1294. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1, 1, 1), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1295. for i=0, 0.3, 0.1 / Animation_Speed do
  1296. Swait()
  1297. CamShakeAll(20,40,Character)
  1298. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1299. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1300. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1301. RightHip.C0 = Clerp(RightHip.C0,CF(1,-0.4,-0.5)*ANGLES(math.rad(0),math.rad(90),math.rad(0))*ANGLES(math.rad(19),math.rad(0 - 1 * math.cos(SINE / 56)),math.rad(-20 - 2 * math.cos(SINE / 32))),.1)
  1302. LeftHip.C0 = Clerp(LeftHip.C0,CF(-1,-1,0)*ANGLES(math.rad(0),math.rad(-90),math.rad(0))*ANGLES(math.rad(3),math.rad(0 - 1 * math.cos(SINE / 56)),math.rad(17 + 2 * math.cos(SINE / 32))),.1)
  1303. end
  1304. bosschatfunc("DIE!!!!!",BrickColor.new'White'.Color,BrickColor.new'Black'.Color,200)
  1305. until KEYHOLD == false
  1306. NIGHTMAREGun2.Parent = nil
  1307. NIGHTMAREGun.Parent = Character
  1308. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Barrel.CFrame, ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1, 1, 1), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1309. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Barrel2.CFrame, ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1, 1, 1), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1310. ATTACK = false
  1311. Rooted = false
  1312. end
  1313.  
  1314. function OhnoItsAnAssaultRifle()
  1315. local SHOOTgun = CreatePart(3, Effects, "Fabric", 0, 1, BRICKC("Black"), "OhnoItsAnAssaultRifle", VT(0.25, 0.5, 5), true)
  1316. CreateMesh("SpecialMesh", SHOOTgun, "FileMesh", "445385704", "445385723", VT(0.015, 0.015, 0.015), VT(0,-0.3,0))
  1317. return SHOOTgun
  1318. end
  1319.  
  1320. function Conjour()
  1321. local SHOOT = OhnoItsAnAssaultRifle()
  1322. local CFRAME = CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,MRANDOM(15,25)/3,MRANDOM(15,25)/3)
  1323. local ORI = 90
  1324. SHOOT.CFrame = CF(CFRAME.p,Mouse.Hit.p) * ANGLES(RAD(0), RAD(ORI), RAD(0))
  1325. local GOODRIDDANCE = false
  1326. CreateSound(233856115, SHOOT, 2, (MRANDOM(8,12)/10)+0.3, false)
  1327. coroutine.resume(coroutine.create(function()
  1328. repeat
  1329. SHOOT.CFrame = Clerp(SHOOT.CFrame,CF(CFRAME.p,Mouse.Hit.p) * ANGLES(RAD(ORI), RAD(180), RAD(0)),0.25)
  1330. Swait()
  1331. until GOODRIDDANCE == true
  1332. SHOOT.CFrame = SHOOT.CFrame * ANGLES(RAD(45), RAD(0), RAD(0))
  1333. SHOOT.CanCollide = true
  1334. SHOOT.Anchored = false
  1335. SHOOT.Parent = workspace
  1336. local bv = Instance.new("BodyVelocity",SHOOT)
  1337. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1338. bv.velocity = CF(SHOOT.Position,SHOOT.CFrame*CF(0,2.5,2).p).lookVector*45
  1339. Debris:AddItem(bv,0.1)
  1340. wait(5)
  1341. for i = 1, 45 do
  1342. Swait()
  1343. SHOOT.Transparency = SHOOT.Transparency + 1/45
  1344. end
  1345. SHOOT:remove()
  1346. end))
  1347. for i = 1, 15 do
  1348. Swait()
  1349. SHOOT.Transparency = SHOOT.Transparency - 1/15
  1350. ORI = ORI - 3
  1351. end
  1352. for i = 1, 15 do
  1353. Swait()
  1354. ORI = ORI - 3
  1355. end
  1356. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = SHOOT.CFrame, MoveToPos = SHOOT.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1357. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = SHOOT.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1358. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,SHOOT.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1359. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,SHOOT.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1360. CamShakeAll(5,20,Character)
  1361. Humanoid.CameraOffset = VT(MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5)/30
  1362. GOODRIDDANCE = true
  1363. end
  1364.  
  1365.  
  1366. --//=================================\\
  1367. --|| ASSIGN THINGS TO KEYS
  1368. --\\=================================//
  1369.  
  1370. function MouseDown(Mouse)
  1371. if ATTACK == false then
  1372. bosschatfunc("I Love Coffee !!!",BrickColor.new'Really Red'.Color,BrickColor.new'Black'.Color,200)
  1373. Taunt2()
  1374. end
  1375. end
  1376.  
  1377. function MouseUp(Mouse)
  1378. HOLD = false
  1379. end
  1380.  
  1381. function KeyDown(Key)
  1382. KEYHOLD = true
  1383. if Key == "z" and ATTACK == false then
  1384. Bullet()
  1385. end
  1386.  
  1387. if Key == "x" and ATTACK == false then
  1388. Conjour()
  1389. end
  1390.  
  1391. if Key == "q" and ATTACK == false then
  1392.  
  1393. end
  1394.  
  1395. if Key == "e" and ATTACK == false then
  1396. end
  1397.  
  1398. if Key == "x" and ATTACK == false then
  1399. end
  1400. end
  1401.  
  1402. function KeyUp(Key)
  1403. KEYHOLD = false
  1404. end
  1405.  
  1406. Mouse.Button1Down:connect(function(NEWKEY)
  1407. MouseDown(NEWKEY)
  1408. end)
  1409. Mouse.Button1Up:connect(function(NEWKEY)
  1410. MouseUp(NEWKEY)
  1411. end)
  1412. Mouse.KeyDown:connect(function(NEWKEY)
  1413. KeyDown(NEWKEY)
  1414. end)
  1415. Mouse.KeyUp:connect(function(NEWKEY)
  1416. KeyUp(NEWKEY)
  1417. end)
  1418.  
  1419. --//=================================\\
  1420. --\\=================================//
  1421.  
  1422.  
  1423. function unanchor()
  1424. if UNANCHOR == true then
  1425. g = Character:GetChildren()
  1426. for i = 1, #g do
  1427. if g[i].ClassName == "Part" then
  1428. g[i].Anchored = false
  1429. end
  1430. end
  1431. end
  1432. end
  1433.  
  1434.  
  1435. --//=================================\\
  1436. --|| WRAP THE WHOLE SCRIPT UP
  1437. --\\=================================//
  1438.  
  1439. Humanoid.Changed:connect(function(Jump)
  1440. if Jump == "Jump" and (Disable_Jump == true) then
  1441. Humanoid.Jump = false
  1442. end
  1443. end)
  1444.  
  1445. local CONNECT = nil
  1446.  
  1447. while true do
  1448. Swait()
  1449. ANIMATE.Parent = nil
  1450. if Character:FindFirstChildOfClass("Humanoid") == nil then
  1451. Humanoid = IT("Humanoid",Character)
  1452. end
  1453. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1454. v:Stop();
  1455. end
  1456. SINE = SINE + CHANGE
  1457. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1458. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1459. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1460. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1461. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1462. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1463. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1464. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1465. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1466. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1467. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1468. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1469. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1470. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1471. end
  1472. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1473. ANIM = "Jump"
  1474. if ATTACK == false then
  1475. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1476. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1477. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1478. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1479. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1480. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1481. end
  1482. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1483. ANIM = "Fall"
  1484. if ATTACK == false then
  1485. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1486. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1487. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1488. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1489. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1490. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1491. end
  1492. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1493. ANIM = "Idle"
  1494. if ATTACK == false then
  1495. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1.6 + 0.1 * COS(SINE / 20)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1496. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1497. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1498. RightHip.C0 = Clerp(RightHip.C0, CF(0.5, -0.9 - 0.1 * COS(SINE / 1), -0.6) * ANGLES(RAD(0), RAD(-10), RAD(0)) * ANGLES(RAD(75), RAD(0), RAD(5)), 0.1 / Animation_Speed)
  1499. LeftHip.C0 = Clerp(LeftHip.C0, CF(-0.5, 0.1 - 0.1 * COS(SINE / 1), -0.6) * ANGLES(RAD(0), RAD(-10), RAD(0)) * ANGLES(RAD(25), RAD(0), RAD(-10)), 0.1 / Animation_Speed)
  1500. end
  1501. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1502. ANIM = "Walk"
  1503. if ATTACK == false then
  1504. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1505. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1506. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1507. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  1508. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1509. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1510. end
  1511. end
  1512. unanchor()
  1513. Humanoid.MaxHealth = "inf"
  1514. Humanoid.Health = "inf"
  1515. if Rooted == false then
  1516. Disable_Jump = false
  1517. Humanoid.WalkSpeed = Speed
  1518. elseif Rooted == true then
  1519. Disable_Jump = true
  1520. Humanoid.WalkSpeed = 0
  1521. end
  1522. sick.Parent = Torso
  1523. sick:resume()
  1524. sick.Volume = 8.2
  1525. sick.Pitch = 1
  1526. sick.SoundId = "rbxassetid://"
  1527. sick.Name = ""
  1528. end
  1529.  
  1530. --//=================================\\
  1531. --\\=================================//
  1532.  
  1533.  
  1534.  
  1535.  
  1536.  
  1537. --//====================================================\\--
  1538. --|| END OF SCRIPT
  1539. --\\====================================================//--
  1540.  
  1541. -------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement