SHARE
TWEET

Relexscript

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