SHARE
TWEET

Relexscript

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