Infintyboy

yes

Sep 8th, 2018
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 41.26 KB | None | 0 0
  1. ---
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6.     local rp = RealPlayer
  7.     script.Parent = rp.Character
  8.    
  9.     --RemoteEvent for communicating
  10.     local Event = Instance.new("RemoteEvent")
  11.     Event.Name = "UserInput_Event"
  12.  
  13.     --Fake event to make stuff like Mouse.KeyDown work
  14.     local function fakeEvent()
  15.         local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16.         t.connect = t.Connect
  17.         return t
  18.     end
  19.  
  20.     --Creating fake input objects with fake variables
  21.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25.     end}
  26.     --Merged 2 functions into one by checking amount of arguments
  27.     CAS.UnbindAction = CAS.BindAction
  28.  
  29.     --This function will trigger the events that have been :Connect()'ed
  30.     local function te(self,ev,...)
  31.         local t = m[ev]
  32.         if t and t._fakeEvent then
  33.             for _,f in pairs(t.Functions) do
  34.                 f(...)
  35.             end
  36.         end
  37.     end
  38.     m.TrigEvent = te
  39.     UIS.TrigEvent = te
  40.  
  41.     Event.OnServerEvent:Connect(function(plr,io)
  42.         if plr~=rp then return end
  43.         m.Target = io.Target
  44.         m.Hit = io.Hit
  45.         if not io.isMouse then
  46.             local b = io.UserInputState == Enum.UserInputState.Begin
  47.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48.                 return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49.             end
  50.             for _,t in pairs(CAS.Actions) do
  51.                 for _,k in pairs(t.Keys) do
  52.                     if k==io.KeyCode then
  53.                         t.Function(t.Name,io.UserInputState,io)
  54.                     end
  55.                 end
  56.             end
  57.             m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58.             UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59.         end
  60.     end)
  61.     Event.Parent = NLS([==[
  62.     local Player = game:GetService("Players").LocalPlayer
  63.     local Event = script:WaitForChild("UserInput_Event")
  64.     local Mouse = Player:GetMouse()
  65.     local UIS = game:GetService("UserInputService")
  66.     local input = function(io,a)
  67.         if a then return end
  68.         --Since InputObject is a client-side instance, we create and pass table instead
  69.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  70.     end
  71.     UIS.InputBegan:Connect(input)
  72.     UIS.InputEnded:Connect(input)
  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.  
  83.     ----Sandboxed game object that allows the usage of client-side methods and services
  84.     --Real game object
  85.     local _rg = game
  86.  
  87.     --Metatable for fake service
  88.     local fsmt = {
  89.         __index = function(self,k)
  90.             local s = rawget(self,"_RealService")
  91.             if s then return s[k] end
  92.         end,
  93.         __newindex = function(self,k,v)
  94.             local s = rawget(self,"_RealService")
  95.             if s then s[k]=v end
  96.         end,
  97.         __call = function(self,...)
  98.             local s = rawget(self,"_RealService")
  99.             if s then return s(...) end
  100.         end
  101.     }
  102.     local function FakeService(t,RealService)
  103.         t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  104.         return setmetatable(t,fsmt)
  105.     end
  106.  
  107.     --Fake game object
  108.     local g = {
  109.         GetService = function(self,s)
  110.             return self[s]
  111.         end,
  112.         Players = FakeService({
  113.             LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  114.         },"Players"),
  115.         UserInputService = FakeService(UIS,"UserInputService"),
  116.         ContextActionService = FakeService(CAS,"ContextActionService"),
  117.     }
  118.     rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  119.     g.service = g.GetService
  120.    
  121.     g.RunService = FakeService({
  122.         RenderStepped = _rg:GetService("RunService").Heartbeat,
  123.         BindToRenderStep = function(self,name,_,fun)
  124.             self._btrs[name] = self.Heartbeat:Connect(fun)
  125.         end,
  126.         UnbindFromRenderStep = function(self,name)
  127.             self._btrs[name]:Disconnect()
  128.         end,
  129.     },"RunService")
  130.  
  131.     setmetatable(g,{
  132.         __index=function(self,s)
  133.             return _rg:GetService(s) or typeof(_rg[s])=="function"
  134.             and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  135.         end,
  136.         __newindex = fsmt.__newindex,
  137.         __call = fsmt.__call
  138.     })
  139.     --Changing owner to fake player object to support owner:GetMouse()
  140.     game,owner = g,g.Players.LocalPlayer
  141. end
  142. ---
  143. Player=game:GetService("Players").LocalPlayer
  144. Character=Player.Character
  145. Player = owner
  146. PlayerGui = Player.PlayerGui
  147. Cam = workspace.CurrentCamera
  148. Backpack = Player.Backpack
  149. local plr = owner
  150. local char = plr.Character
  151. local hum = char.Humanoid
  152. local hed = char.Head
  153. local root = char.HumanoidRootPart
  154. local rootj = root.RootJoint
  155. local tors = char.Torso
  156. local ra = char["Right Arm"]
  157. local la = char["Left Arm"]
  158. local rl = char["Right Leg"]
  159. local ll = char["Left Leg"]
  160. local neck = tors["Neck"]
  161. local mouse = plr:GetMouse()
  162. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  163. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  164. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  165. local maincolor = BrickColor.new("Institutional white")
  166. cam = game.Workspace.CurrentCamera
  167. CF = CFrame.new
  168. angles = CFrame.Angles
  169. attack = false
  170. Euler = CFrame.fromEulerAnglesXYZ
  171. Rad = math.rad
  172. IT = Instance.new
  173. BrickC = BrickColor.new
  174. Cos = math.cos
  175. Acos = math.acos
  176. Sin = math.sin
  177. Asin = math.asin
  178. Abs = math.abs
  179. Mrandom = math.random
  180. Floor = math.floor
  181. Character = Player.Character
  182. local Char = Player.Character
  183. Humanoid = Character.Humanoid
  184. RootPart = Character["HumanoidRootPart"]
  185. Torso = Character["Torso"]
  186. Head = Character["Head"]
  187. RightArm = Character["Right Arm"]
  188. LeftArm = Character["Left Arm"]
  189. RightLeg = Character["Right Leg"]
  190. LeftLeg = Character["Left Leg"]
  191. RootJoint = RootPart["RootJoint"]
  192. Neck = Torso["Neck"]
  193. RightShoulder = Torso["Right Shoulder"]
  194. LeftShoulder = Torso["Left Shoulder"]
  195. RightHip = Torso["Right Hip"]
  196. LeftHip = Torso["Left Hip"]
  197.  
  198. IT = Instance.new
  199. CF = CFrame.new
  200. VT = Vector3.new
  201. RAD = math.rad
  202. C3 = Color3.new
  203. UD2 = UDim2.new
  204. BRICKC = BrickColor.new
  205. ANGLES = CFrame.Angles
  206. EULER = CFrame.fromEulerAnglesXYZ
  207. COS = math.cos
  208. ACOS = math.acos
  209. SIN = math.sin
  210. ASIN = math.asin
  211. ABS = math.abs
  212. MRANDOM = math.random
  213. FLOOR = math.floor
  214.  
  215. --//=================================\\
  216. --||          CUSTOMIZATION
  217. --\\=================================//
  218.  
  219. Player_Size = 1 --Size of the player.
  220. Animation_Speed = 3
  221. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  222.  
  223. local Speed = 16
  224. local Effects2 = {}
  225.  
  226. --//=================================\\
  227. --||          USEFUL VALUES
  228. --\\=================================//
  229.  
  230. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  231. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  232. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  233. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  234. local CHANGEDEFENSE = 0
  235. local CHANGEDAMAGE = 0
  236. local CHANGEMOVEMENT = 0
  237. local ANIM = "Idle"
  238. local ATTACK = false
  239. local EQUIPPED = false
  240. local HOLD = false
  241. local COMBO = 1
  242. local Rooted = false
  243. local SINE = 0
  244. local KEYHOLD = false
  245. local CHANGE = 2 / Animation_Speed
  246. local WALKINGANIM = false
  247. local WALK = 0
  248. local VALUE1 = false
  249. local VALUE2 = false
  250. local ROBLOXIDLEANIMATION = IT("Animation")
  251. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  252. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  253. --ROBLOXIDLEANIMATION.Parent = Humanoid
  254. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  255. WEAPONGUI.Name = "Weapon GUI"
  256. local Effects = IT("Folder", Character)
  257. Effects.Name = "Effects"
  258. local ANIMATOR = Humanoid.Animator
  259. local ANIMATE = Character.Animate
  260. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  261. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  262. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  263. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  264. local UNANCHOR = true
  265.  
  266. local SKILLTEXTCOLOR = C3(0.05,0.05,0.15)
  267.  
  268. --//=================================\\
  269. --\\=================================//
  270.  
  271. local FF = IT("ForceField",Character)
  272. FF.Visible = false
  273. Speed = 16
  274.  
  275. function refit()
  276.     RootJoint.Parent = RootPart
  277.     Neck.Parent = Torso
  278.     RightShoulder.Parent = Torso
  279.     LeftShoulder.Parent = Torso
  280.     RightHip.Parent = Torso
  281.     LeftHip.Parent = Torso
  282.     RootPart.Parent = Character
  283.     LeftArm.Parent = Character
  284.     RightArm.Parent = Character
  285.     RightLeg.Parent = Character
  286.     LeftLeg.Parent = Character
  287.     Torso.Parent = Character
  288.     Head.Parent = Character
  289. end
  290.  
  291. function CreateSound(ID, PARENT, VOLUME, PITCH)
  292.     local NEWSOUND = nil
  293.     coroutine.resume(coroutine.create(function()
  294.         NEWSOUND = IT("Sound", PARENT)
  295.         NEWSOUND.Volume = VOLUME
  296.         NEWSOUND.Pitch = PITCH
  297.         NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  298.         Swait()
  299.         NEWSOUND:play()
  300.         game:GetService("Debris"):AddItem(NEWSOUND, 10)
  301.     end))
  302.     return NEWSOUND
  303. end
  304.  
  305. Humanoid.Died:connect(function()
  306.     Humanoid.Parent = nil
  307.     Humanoid.MaxHealth = "inf"
  308.     Humanoid.Health = "inf"
  309.     refit()
  310.     Humanoid.Parent = Character
  311. end)
  312.  
  313. coroutine.resume(coroutine.create(function()
  314. while true do
  315. wait()
  316. FF.Parent = Character
  317.     local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  318.     IDLEANIMATION:Play()
  319. Humanoid.MaxHealth = "inf"
  320. Humanoid.WalkSpeed = Speed
  321. Humanoid.Health = "inf"
  322. refit()
  323. char.Parent = game.workspace
  324. end
  325. end))
  326. -------------------------------------------------------
  327. local Orbd = Instance.new("Part", Character)
  328. Orbd.Name = "Orbd"
  329. Orbd.Shape = Enum.PartType.Ball
  330. Orbd.CanCollide = false
  331. Orbd.BrickColor = BrickColor.new("Really black")
  332. Orbd.Transparency = 0
  333. Orbd.Material = "Neon"
  334. Orbd.Size = Vector3.new(0.3, 0.3, 0.3)
  335. Orbd.TopSurface = Enum.SurfaceType.Smooth
  336. Orbd.BottomSurface = Enum.SurfaceType.Smooth
  337.  
  338. local Weld = Instance.new("Weld", Orbd)
  339. Weld.Part0 = Character.Head
  340. Weld.Part1 = Orbd
  341. Weld.C1 = CFrame.new(-0.26, -0.24, 0.55)
  342.  
  343. --------------------------------------------------------
  344. local Orbvc = Instance.new("Part", Character)
  345. Orbvc.Name = "Orbvc"
  346. Orbvc.Shape = Enum.PartType.Ball
  347. Orbvc.CanCollide = false
  348. Orbvc.BrickColor = BrickColor.new("Really black")
  349. Orbvc.Transparency = 0
  350. Orbvc.Material = "Neon"
  351. Orbvc.Size = Vector3.new(0.3, 0.3, 0.3)
  352. Orbvc.TopSurface = Enum.SurfaceType.Smooth
  353. Orbvc.BottomSurface = Enum.SurfaceType.Smooth
  354.  
  355. local Weld = Instance.new("Weld", Orbvc)
  356. Weld.Part0 = Character.Head
  357. Weld.Part1 = Orbvc
  358. Weld.C1 = CFrame.new(0.26, -0.24, 0.55)
  359. ---------------------------------------------------------
  360. local Mask = Instance.new("Part", Character)
  361. Mask.Name = "Mask"
  362. Mask.CanCollide = false
  363. Mask.BrickColor = BrickColor.new("Medium stone grey")
  364. Mask.Transparency = 0
  365. Mask.Material = "Neon"
  366. Mask.Size = Vector3.new(0.1, 0.1, 0.1)
  367. Mask.TopSurface = Enum.SurfaceType.Smooth
  368. Mask.BottomSurface = Enum.SurfaceType.Smooth
  369.  
  370. local Weld = Instance.new("Weld", Mask)
  371. Weld.Part0 = Character.Head
  372. Weld.Part1 = Mask
  373. Weld.C1 = CFrame.new(0, -0.1, 0.8)
  374.  
  375. local M1 = Instance.new("SpecialMesh")
  376. M1.Parent = Mask
  377. M1.MeshId = "http://www.roblox.com/asset/?id=62679079"
  378. M1.Scale = Vector3.new( 1, 1, 2)
  379. ----------------------------------------------------------
  380. local Hood = Instance.new("Part", Character)
  381. Hood.Name = "Hood"
  382. Hood.CanCollide = false
  383. Hood.BrickColor = BrickColor.new("Really black")
  384. Hood.Transparency = 0
  385. Hood.Material = "Plastic"
  386. Hood.Size = Vector3.new(0.1, 0.1, 0.1)
  387. Hood.TopSurface = Enum.SurfaceType.Smooth
  388. Hood.BottomSurface = Enum.SurfaceType.Smooth
  389.  
  390. local Weld = Instance.new("Weld", Hood)
  391. Weld.Part0 = Character.Head
  392. Weld.Part1 = Hood
  393. Weld.C1 = CFrame.new(0, -0.2, 0)
  394.  
  395. local M2 = Instance.new("SpecialMesh")
  396. M2.Parent = Hood
  397. M2.MeshId = "http://www.roblox.com/asset/?id=83499032"
  398. M2.Scale = Vector3.new( 1, 1.2, 1.1)
  399. ------------------------------------------------------
  400.  
  401. p = game.Players.LocalPlayer
  402. char049 = p.Character
  403.  
  404. char049.Shirt:Remove()
  405. for i,v in pairs(char049:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
  406. wait()shirt = Instance.new("Shirt", char049)
  407. shirt.Name = "Shirt"
  408. pants = Instance.new("Pants", char049)
  409. pants.Name = "Pants"
  410.  
  411. char049.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=648758131"
  412. char049.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=472675863"
  413. -------------------------------------------------
  414. ---- Orbd,Orbvc,Mask,Hood
  415.  
  416. --[[NIGHTOWLACE_WEAPONRY]]--
  417. maincolor = game.Players.LocalPlayer.Character.Torso.BrickColor.Name
  418. secondcolor = "Really black"
  419.  
  420. wait(1 / 60)
  421. Effects = { }
  422. local Player = game.Players.localPlayer
  423. local Character = Player.Character
  424. local Humanoid = Character.Humanoid
  425. local mouse = Player:GetMouse()
  426. local LeftArm = Character["Left Arm"]
  427. local RightArm = Character["Right Arm"]
  428. local LeftLeg = Character["Left Leg"]
  429. local RightLeg = Character["Right Leg"]
  430. local Head = Character.Head
  431. local Torso = Character.Torso
  432. local cam = game.Workspace.CurrentCamera
  433. local RootPart = Character.HumanoidRootPart
  434. local RootJoint = RootPart.RootJoint
  435. local equipped = false
  436. local attack = false
  437. local Anim = 'Idle'
  438. local idle = 0
  439. local attacktype = 1
  440. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  441. local velocity = RootPart.Velocity.y
  442. local sine = 0
  443. local change = 1
  444. local grabbed = false
  445. local cn = CFrame.new
  446. local mr = math.rad
  447. local angles = CFrame.Angles
  448. local ud = UDim2.new
  449. local c3 = Color3.new
  450.  
  451. local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  452. Humanoid.Animator:Destroy()
  453. Character.Animate:Destroy()
  454.  
  455. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  456. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  457. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  458.  
  459. RSH, LSH = nil, nil
  460.  
  461. RW = Instance.new("Weld")
  462. LW = Instance.new("Weld")
  463.  
  464. RH = Torso["Right Hip"]
  465. LH = Torso["Left Hip"]
  466.  
  467. RSH = Torso["Right Shoulder"]
  468. LSH = Torso["Left Shoulder"]
  469.  
  470. RSH.Parent = nil
  471. LSH.Parent = nil
  472.  
  473. RW.Name = "RW"
  474. RW.Part0 = Torso
  475. RW.C0 = cn(1.5, 0.5, 0)
  476. RW.C1 = cn(0, 0.5, 0)
  477. RW.Part1 = RightArm
  478. RW.Parent = Torso
  479.  
  480. LW.Name = "LW"
  481. LW.Part0 = Torso
  482. LW.C0 = cn(-1.5, 0.5, 0)
  483. LW.C1 = cn(0, 0.5, 0)
  484. LW.Part1 = LeftArm
  485. LW.Parent = Torso
  486.  
  487. function clerp(a, b, t)
  488. local qa = {
  489. QuaternionFromCFrame(a)
  490. }
  491. local qb = {
  492. QuaternionFromCFrame(b)
  493. }
  494. local ax, ay, az = a.x, a.y, a.z
  495. local bx, by, bz = b.x, b.y, b.z
  496. local _t = 1 - t
  497. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  498. end
  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
  526. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  527. end
  528. end
  529. end
  530.  
  531. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  532. local xs, ys, zs = x + x, y + y, z + z
  533. local wx, wy, wz = w * xs, w * ys, w * zs
  534. local xx = x * xs
  535. local xy = x * ys
  536. local xz = x * zs
  537. local yy = y * ys
  538. local yz = y * zs
  539. local zz = z * zs
  540. 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))
  541. end
  542.  
  543. function QuaternionSlerp(a, b, t)
  544. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  545. local startInterp, finishInterp;
  546. if cosTheta >= 0.0001 then
  547. if (1 - cosTheta) > 0.0001 then
  548. local theta = math.acos(cosTheta)
  549. local invSinTheta = 1 / math.sin(theta)
  550. startInterp = math.sin((1 - t) * theta) * invSinTheta
  551. finishInterp = math.sin(t * theta) * invSinTheta  
  552. else
  553. startInterp = 1 - t
  554. finishInterp = t
  555. end
  556. else
  557. if (1 + cosTheta) > 0.0001 then
  558. local theta = math.acos(-cosTheta)
  559. local invSinTheta = 1 / math.sin(theta)
  560. startInterp = math.sin((t - 1) * theta) * invSinTheta
  561. finishInterp = math.sin(t * theta) * invSinTheta
  562. else
  563. startInterp = t - 1
  564. finishInterp = t
  565. end
  566. end
  567. 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
  568. end
  569.  
  570. function swait(num)
  571. if num == 0 or num == nil then
  572. game:service'RunService'.RenderStepped:wait(0)
  573. else
  574. for i = 0, num do
  575. game:service'RunService'.RenderStepped:wait(0)
  576. end
  577. end
  578. end
  579.  
  580. local RbxUtility = LoadLibrary("RbxUtility")
  581. local Create = RbxUtility.Create
  582.  
  583. function RemoveOutlines(part)
  584. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  585. end
  586.  
  587. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  588. local Part = Create("Part"){
  589. formFactor = FormFactor,
  590. Parent = Parent,
  591. Reflectance = Reflectance,
  592. Transparency = Transparency,
  593. CanCollide = false,
  594. Locked = true,
  595. BrickColor = BrickColor.new(tostring(BColor)),
  596. Name = Name,
  597. Size = Size,
  598. Material = Material,
  599. }
  600. RemoveOutlines(Part)
  601. return Part
  602. end
  603.  
  604. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  605. local Msh = Create(Mesh){
  606. Parent = Part,
  607. Offset = OffSet,
  608. Scale = Scale,
  609. }
  610. if Mesh == "SpecialMesh" then
  611. Msh.MeshType = MeshType
  612. Msh.MeshId = MeshId
  613. end
  614. return Msh
  615. end
  616.  
  617. function CreateWeld(Parent, Part0, Part1, C0, C1)
  618. local Weld = Create("Weld"){
  619. Parent = Parent,
  620. Part0 = Part0,
  621. Part1 = Part1,
  622. C0 = C0,
  623. C1 = C1,
  624. }
  625. return Weld
  626. end
  627.  
  628. function rayCast(Position, Direction, Range, Ignore)
  629. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  630. end
  631.  
  632. function CreateSound(id, par, vol, pit)
  633. coroutine.resume(coroutine.create(function()
  634. local sou = Instance.new("Sound", par or workspace)
  635. sou.Volume = vol
  636. sou.Pitch = pit or 1
  637. sou.SoundId = id
  638. wait()
  639. sou:play()
  640. game:GetService("Debris"):AddItem(sou, 6)
  641. end))
  642. end
  643.  
  644. local function getclosest(obj, distance)
  645. local last, lastx = distance + 1
  646. for i, v in pairs(workspace:GetChildren()) do
  647. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  648. local t = v.Torso
  649. local dist = (t.Position - obj.Position).magnitude
  650. if dist <= distance then
  651. if dist < last then
  652. last = dist
  653. lastx = v
  654. end
  655. end
  656. end
  657. end
  658. return lastx
  659. end
  660.  
  661. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  662. for i, v in pairs(hit:GetChildren()) do
  663. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  664. local find = v:FindFirstChild("Hitz")
  665. if not find then
  666. if v.Parent:findFirstChild("Head") then
  667. local BillG = Create("BillboardGui"){
  668. Parent = v.Parent.Head,
  669. Size = UDim2.new(1, 0, 1, 0),
  670. Adornee = v.Parent.Head,
  671. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  672. }
  673. local TL = Create("TextLabel"){
  674. Parent = BillG,
  675. Size = UDim2.new(3, 3, 3, 3),
  676. BackgroundTransparency = 1,
  677. Text = tostring(damage).."-",
  678. TextColor3 = Color1.Color,
  679. TextStrokeColor3 = Color2.Color,
  680. TextStrokeTransparency = 0,
  681. TextXAlignment = Enum.TextXAlignment.Center,
  682. TextYAlignment = Enum.TextYAlignment.Center,
  683. FontSize = Enum.FontSize.Size18,
  684. Font = "ArialBold",
  685. }
  686. coroutine.resume(coroutine.create(function()
  687. wait(1)
  688. for i = 0, 1, .1 do
  689. wait(.1)
  690. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  691. end
  692. BillG:Destroy()
  693. end))
  694. end
  695. v.Health = v.Health - damage
  696. local bool = Create("BoolValue"){
  697. Parent = v,
  698. Name = 'Hitz',
  699. }
  700. if HSound ~= nil and HPitch ~= nil then
  701. CreateSound(HSound, hit, 1, HPitch)
  702. end
  703. game:GetService("Debris"):AddItem(bool, cooldown)
  704. end
  705. end
  706. end
  707. end
  708.  
  709.  
  710. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  711. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  712. prt.Anchored = true
  713. prt.CFrame = cframe
  714. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  715. game:GetService("Debris"):AddItem(prt, 10)
  716. if Type == 1 or Type == nil then
  717. table.insert(Effects, {
  718. prt,
  719. "Block1",
  720. delay,
  721. x3,
  722. y3,
  723. z3,
  724. msh
  725. })
  726. elseif Type == 2 then
  727. table.insert(Effects, {
  728. prt,
  729. "Block2",
  730. delay,
  731. x3,
  732. y3,
  733. z3,
  734. msh
  735. })
  736. end
  737. end
  738.  
  739. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  740. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  741. prt.Anchored = true
  742. prt.CFrame = cframe
  743. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  744. game:GetService("Debris"):AddItem(prt, 10)
  745. table.insert(Effects, {
  746. prt,
  747. "Cylinder",
  748. delay,
  749. x3,
  750. y3,
  751. z3,
  752. msh
  753. })
  754. end
  755.  
  756. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  757. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  758. prt.Anchored = true
  759. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  760. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  761. game:GetService("Debris"):AddItem(prt, 10)
  762. table.insert(Effects, {
  763. prt,
  764. "Cylinder",
  765. delay,
  766. x3,
  767. y3,
  768. z3,
  769. msh
  770. })
  771. end
  772.  
  773. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  774. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  775. prt.Anchored = true
  776. prt.CFrame = cframe
  777. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  778. game:GetService("Debris"):AddItem(prt, 10)
  779. table.insert(Effects, {
  780. prt,
  781. "Cylinder",
  782. delay,
  783. x3,
  784. y3,
  785. z3,
  786. msh
  787. })
  788. end
  789.  
  790. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  791. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  792. prt.Anchored = true
  793. prt.CFrame = cframe
  794. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  795. game:GetService("Debris"):AddItem(prt, 10)
  796. table.insert(Effects, {
  797. prt,
  798. "Cylinder",
  799. delay,
  800. x3,
  801. y3,
  802. z3,
  803. msh
  804. })
  805. end
  806.  
  807. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  808. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  809. prt.Anchored = true
  810. prt.CFrame = cframe
  811. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  812. game:GetService("Debris"):AddItem(prt, 10)
  813. table.insert(Effects, {
  814. prt,
  815. "Cylinder",
  816. delay,
  817. x3,
  818. y3,
  819. z3,
  820. msh
  821. })
  822. end
  823.  
  824. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  825. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  826. prt.Anchored = true
  827. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  828. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  829. local num = math.random(10, 50) / 1000
  830. game:GetService("Debris"):AddItem(prt, 10)
  831. table.insert(Effects, {
  832. prt,
  833. "Shatter",
  834. num,
  835. prt.CFrame,
  836. math.random() - math.random(),
  837. 0,
  838. math.random(50, 100) / 100
  839. })
  840. end
  841.  
  842.  
  843.  
  844.  
  845. for i = 0, 1, 0.05 do
  846. swait()
  847. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  848. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
  849. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  850. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
  851. if Torsovelocity > 2 then
  852. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2)
  853. RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  854. LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  855. elseif Torsovelocity < 1 then
  856. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  857. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  858. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  859. end
  860. end
  861. attack = false
  862.  
  863.  
  864.  
  865. game:GetService'RunService'.Stepped:connect(function()
  866. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  867. velocity = RootPart.Velocity.y
  868. sine = sine + change
  869. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  870. if equipped == true or equipped == false then
  871. if RootPart.Velocity.y > 1 and hit == nil then
  872. Anim = "Jump"
  873. if attack == false then
  874. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  875. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  876. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)), .1)
  877. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-30)), .1)
  878. RH.C0 = clerp(RH.C0, cn(1, -.9, -.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), .1)
  879. LH.C0 = clerp(LH.C0, cn(-1, -.7, -.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), .1)
  880. end
  881. elseif RootPart.Velocity.y < -1 and hit == nil then
  882. Anim = "Fall"
  883. if attack == false then
  884. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  885. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  886. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), .1)
  887. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), .1)
  888. RH.C0 = clerp(RH.C0, cn(1, -1, -.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  889. LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  890. end
  891. elseif Torsovelocity < 1 and hit ~= nil then
  892. Anim = "Idle"
  893. if attack == false then
  894. change = 1
  895. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(5)), .1)
  896. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .1)
  897. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.1)
  898. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5 - 3 * math.cos(sine / 25))), 0.1)
  899. RH.C0 = clerp(RH.C0, cn(1, -.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 2 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1)
  900. LH.C0 = clerp(LH.C0, cn(-1, -.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 2 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1)
  901. end
  902. elseif Torsovelocity > 2 and hit ~= nil then
  903. Anim = "Walk"
  904. if attack == false then
  905. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(5 * math.cos(sine / 5))), .2)
  906. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(-5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2)
  907. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2)
  908. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2)
  909. RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 3), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .3)
  910. LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 3), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .3)
  911. end
  912. end
  913. end
  914. if #Effects > 0 then
  915. for e = 1, #Effects do
  916. if Effects[e] ~= nil then
  917. local Thing = Effects[e]
  918. if Thing ~= nil then
  919. local Part = Thing[1]
  920. local Mode = Thing[2]
  921. local Delay = Thing[3]
  922. local IncX = Thing[4]
  923. local IncY = Thing[5]
  924. local IncZ = Thing[6]
  925. if Thing[1].Transparency <= 1 then
  926. if Thing[2] == "Block1" then
  927. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  928. local Mesh = Thing[1].Mesh
  929. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  930. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  931. elseif Thing[2] == "Block2" then
  932. Thing[1].CFrame = Thing[1].CFrame
  933. local Mesh = Thing[7]
  934. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  935. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  936. elseif Thing[2] == "Cylinder" then
  937. local Mesh = Thing[1].Mesh
  938. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  939. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  940. elseif Thing[2] == "Blood" then
  941. local Mesh = Thing[7]
  942. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  943. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  944. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  945. elseif Thing[2] == "Elec" then
  946. local Mesh = Thing[1].Mesh
  947. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  948. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  949. elseif Thing[2] == "Disappear" then
  950. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  951. elseif Thing[2] == "Shatter" then
  952. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  953. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  954. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  955. Thing[6] = Thing[6] + Thing[5]
  956. end
  957. else
  958. Part.Parent = nil
  959. table.remove(Effects, e)
  960. end
  961. end
  962. end
  963. end
  964. end
  965. end)
  966.  
  967.  
  968.  
  969.  
  970.  
  971.  
  972.  
  973.  
  974. p = (game.Players.LocalPlayer.Name)
  975. char = game.Players.LocalPlayer.Character
  976.  
  977.  
  978. local player = game.Players.LocalPlayer
  979. repeat wait() until player.Character.Humanoid
  980. local humanoid = player.Character.Humanoid
  981. local mouse = player:GetMouse()
  982.  
  983. for i,v in pairs(char:GetChildren()) do
  984.   if v.ClassName == 'Accessory' then
  985.       v:Destroy()
  986.   end
  987. end
  988.  
  989. ScarySound1 = Instance.new("Sound")
  990. ScarySound1.Parent = char.Torso
  991. ScarySound1.SoundId = "rbxassetid://161964276"
  992. ScarySound1.Volume = .5
  993.  
  994. ScarySound2 = Instance.new("Sound")
  995. ScarySound2.Parent = char.Torso
  996. ScarySound2.SoundId = "rbxassetid://669623416"
  997. ScarySound2.Volume = 2
  998. ScarySound2.Looped = true
  999.  
  1000. ScarySound3 = Instance.new("Sound")
  1001. ScarySound3.Parent = char.Torso
  1002. ScarySound3.SoundId = "rbxassetid://483810543"
  1003. ScarySound3.Volume = 0.3
  1004. ScarySound3.Looped = true
  1005.  
  1006. ScarySound4 = Instance.new("Sound")
  1007. ScarySound4.Parent = char.Torso
  1008. ScarySound4.SoundId = "rbxassetid://177113856"
  1009. ScarySound4.Volume = 2
  1010. ScarySound4.Looped = false
  1011.  
  1012. Punch = Instance.new("Sound")
  1013. Punch.Parent = char.Torso
  1014. Punch.SoundId = "rbxassetid://146938349"
  1015. Punch.Volume = 1.5
  1016. Punch.Looped = false
  1017. Punch.Pitch = 0.8
  1018.  
  1019. hole = Instance.new("Sound")
  1020. hole.Parent = char.Torso
  1021. hole.SoundId = "rbxassetid://224339308"
  1022. hole.Volume = .3
  1023.  
  1024.  
  1025. game.Players.LocalPlayer.Character.Sound:Destroy()
  1026.  
  1027. function Normal()
  1028. ScarySound3:Play()
  1029. char.Humanoid.WalkSpeed = 18
  1030. char.Head.face.Texture = "rbxassetid://0"
  1031. char["Left Leg"].Transparency = 0
  1032. char["Head"].Transparency = 0
  1033. char["Right Leg"].Transparency = 0
  1034. char["Torso"].Transparency = 0
  1035. char["Left Arm"].Transparency = 0
  1036. char["Right Arm"].Transparency = 0
  1037. end
  1038.  
  1039. function GoInvisible()
  1040. ScarySound3:Stop()
  1041. ScarySound1:Stop()
  1042. char.Humanoid.WalkSpeed = 120
  1043. char.Head.face.Transparency = 1
  1044. char["Left Leg"].Transparency = 0
  1045. char["Head"].Transparency = 0.5
  1046. char["Right Leg"].Transparency = 0.5
  1047. char["Torso"].Transparency = 0.5
  1048. char["Left Arm"].Transparency = 0.5
  1049. char["Right Arm"].Transparency = 0.5
  1050. Hood.Transparency = 0.5
  1051. Mask.Transparency = 0.5
  1052. Orbvc.Transparency = 0.5
  1053. Orbd.Transparency = 0.5
  1054. Orbvc.BrickColor = BrickColor.new("Really red")
  1055. Orbd.BrickColor = BrickColor.new("Really red")
  1056. wait(0.001)
  1057. char["Left Leg"].Transparency = 0.6
  1058. char["Head"].Transparency = 0.6
  1059. char["Right Leg"].Transparency = 0.6
  1060. char["Torso"].Transparency = 0.6
  1061. char["Left Arm"].Transparency = 0.6
  1062. char["Right Arm"].Transparency = 0.6
  1063. Hood.Transparency = 0.6
  1064. Mask.Transparency = 0.6
  1065. Orbvc.Transparency = 0.6
  1066. Orbd.Transparency = 0.6
  1067. wait(0.001)
  1068. char["Left Leg"].Transparency = 0.7
  1069. char["Head"].Transparency = 0.7
  1070. char["Right Leg"].Transparency = 0.7
  1071. char["Torso"].Transparency = 0.7
  1072. char["Left Arm"].Transparency = 0.7
  1073. char["Right Arm"].Transparency = 0.7
  1074. Hood.Transparency = 0.7
  1075. Mask.Transparency = 0.7
  1076. Orbvc.Transparency = 0.7
  1077. Orbd.Transparency = 0.7
  1078. wait(0.001)
  1079. char["Left Leg"].Transparency = 1
  1080. char["Head"].Transparency = 1
  1081. char["Right Leg"].Transparency = 1
  1082. char["Torso"].Transparency = 1
  1083. char["Left Arm"].Transparency = 1
  1084. char["Right Arm"].Transparency = 1
  1085. Hood.Transparency = 1
  1086. Mask.Transparency = 1
  1087. Orbvc.Transparency = 1
  1088. Orbd.Transparency = 1
  1089. end
  1090.  
  1091. function GoVisible()
  1092. ScarySound3:Play()
  1093. char.Humanoid.WalkSpeed = 16
  1094. ScarySound1:Play()
  1095. char.Head.face.Transparency = 0
  1096. Orbvc.BrickColor = BrickColor.new("Really black")
  1097. Orbd.BrickColor = BrickColor.new("Really black")
  1098. char["Left Leg"].Transparency = 0.9
  1099. char["Head"].Transparency = 0.9
  1100. char["Right Leg"].Transparency = 9
  1101. char["Torso"].Transparency = 0.9
  1102. char["Left Arm"].Transparency = 0.9
  1103. char["Right Arm"].Transparency = 0.9
  1104. Hood.Transparency = 0.9
  1105. Mask.Transparency = 0.9
  1106. Orbvc.Transparency = 0.9
  1107. Orbd.Transparency = 0.9
  1108. wait(0.001)
  1109. char["Left Leg"].Transparency = 0.7
  1110. char["Head"].Transparency = 0.7
  1111. char["Right Leg"].Transparency = 0.7
  1112. char["Torso"].Transparency = 0.7
  1113. char["Left Arm"].Transparency = 0.7
  1114. char["Right Arm"].Transparency = 0.7
  1115. Hood.Transparency = 0.7
  1116. Mask.Transparency = 0.7
  1117. Orbvc.Transparency = 0.7
  1118. Orbd.Transparency = 0.7
  1119. wait(0.001)
  1120. char["Left Leg"].Transparency = 0
  1121. char["Head"].Transparency = 0
  1122. char["Right Leg"].Transparency = 0
  1123. char["Torso"].Transparency = 0
  1124. char["Left Arm"].Transparency = 0
  1125. char["Right Arm"].Transparency = 0
  1126. Hood.Transparency = 0
  1127. Mask.Transparency = 0
  1128. Orbvc.Transparency = 0
  1129. Orbd.Transparency = 0
  1130. end
  1131.  
  1132. Normal()
  1133.  
  1134.  
  1135.  
  1136. mouse.KeyDown:connect(function(key)
  1137. if key == "z" then
  1138. if char.Head.Transparency == 0 then
  1139. GoInvisible()
  1140.  
  1141. elseif char.Head.Transparency == 1 then
  1142. GoVisible()
  1143. end
  1144. end end)
  1145.  
  1146. mouse.KeyDown:connect(function(key)
  1147. if key == "x" then
  1148. if ScarySound2.IsPlaying == false then
  1149. ScarySound2:Play()
  1150. elseif ScarySound2.IsPlaying == true then
  1151. ScarySound2:Stop()
  1152.  
  1153.  
  1154. end
  1155. end end)
  1156.  
  1157. mouse.KeyDown:connect(function(key)
  1158. if key == "r" then
  1159. if ScarySound4.IsPlaying == false then
  1160. ScarySound4:Play()
  1161. elseif ScarySound2.IsPlaying == true then
  1162. ScarySound4:Stop()
  1163.  
  1164.  
  1165. end
  1166. end end)
  1167.  
  1168.  
  1169.  
  1170.  
  1171.  
  1172.  
  1173.  
  1174.  
  1175.  
  1176. function onTouch(part)
  1177.  
  1178. local humanoid = part.Parent:findFirstChild("Humanoid")
  1179. local model = part.Parent
  1180. local torso = part.Parent:findFirstChild("Torso")
  1181. local head = part.Parent:findFirstChild("Head")
  1182. local leftleg = part.Parent:findFirstChild("Left Leg")
  1183. local rightleg = part.Parent:findFirstChild("Right Leg")
  1184. local leftarm = part.Parent:findFirstChild("Left Arm")
  1185. local rightarm = part.Parent:findFirstChild("Right Arm")
  1186.  
  1187.  
  1188. if (humanoid ~=nil) then
  1189.  
  1190. --humanoid.Health = 0
  1191.  
  1192. head.BrickColor = BrickColor.new("Really black")
  1193. torso.BrickColor = BrickColor.new("Really black")
  1194. leftleg.BrickColor = BrickColor.new("Really black")
  1195. rightleg.BrickColor = BrickColor.new("Really black")
  1196. rightarm.BrickColor = BrickColor.new("Really black")
  1197. leftarm.BrickColor = BrickColor.new("Really black")
  1198. humanoid.Sit = true
  1199. wait(0.5)
  1200. torso.Anchored = true
  1201. wait(3)
  1202.  
  1203. e=Instance.new('Part', model)
  1204. e.Size = Vector3.new(2.25,2.25,2.25)
  1205. e.Transparency = 1
  1206. e.Anchored = true
  1207. e.CFrame = CFrame.new(head.Position)
  1208. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1209. wait(0.1)
  1210. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1211. wait(0.1)
  1212. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1213. wait(0.1)
  1214. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1215. wait(0.1)
  1216. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1217. wait(0.1)
  1218. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1219. wait(0.1)
  1220. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1221. wait(0.1)
  1222. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1223. wait(0.1)
  1224. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1225. wait(0.1)
  1226. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1227. wait(0.1)
  1228. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1229. wait(0.1)
  1230. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1231. wait(0.1)
  1232. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1233. wait(0.1)
  1234. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1235. wait(0.1)
  1236. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1237. wait(0.1)
  1238. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1239. wait(0.1)
  1240. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1241. wait(0.1)
  1242. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1243. wait(0.1)
  1244. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1245. wait(0.1)
  1246. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1247. wait(0.1)
  1248. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1249. wait(0.1)
  1250. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1251. wait(0.1)
  1252. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1253. wait(0.1)
  1254. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1255. wait(0.1)
  1256. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1257. wait(0.1)
  1258. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1259. wait(0.1)
  1260. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1261. wait(0.1)
  1262. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1263. wait(0.1)
  1264. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1265. wait(0.1)
  1266. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1267. wait(0.1)
  1268. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1269. wait(0.1)
  1270. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1271. wait(0.1)
  1272. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1273. wait(0.1)
  1274. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1275. wait(0.1)
  1276. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1277. wait(0.1)
  1278. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1279. wait(0.1)
  1280. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1281. wait(0.1)
  1282. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1283. wait(0.1)
  1284. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1285. wait(0.1)
  1286. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1287. wait(0.1)
  1288. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1289. wait(0.1)
  1290. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1291. wait(0.1)
  1292. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1293. wait(0.1)
  1294. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1295. wait(0.1)
  1296. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1297. wait(0.1)
  1298. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1299. wait(0.1)
  1300. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1301. wait(0.1)
  1302. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  1303.  
  1304.  
  1305. wait(2)
  1306. head:Destroy()
  1307. q=Instance.new('ParticleEmitter', e)
  1308. q.Size = NumberSequence.new(1)
  1309. q.Rate = 500
  1310. q.Transparency = NumberSequence.new(0.5)
  1311. q.Speed = NumberRange.new(7)
  1312. q.VelocitySpread = 40
  1313. q.Lifetime = NumberRange.new(0.1,1)
  1314. q.Texture = 'rbxassetid://164417280'
  1315.  
  1316. torso.Anchored = true
  1317. rightleg.Anchored = true
  1318. leftleg.Anchored = true
  1319. rightarm.Anchored = true
  1320. leftarm.Anchored = true
  1321. ded = Instance.new("Sound")
  1322. ded.Parent = torso
  1323. ded.SoundId = "rbxassetid://130976109"
  1324. ded.Volume = 3
  1325. ded.Looped = false
  1326. wait()
  1327. ded:Play()
  1328.  
  1329.  
  1330.  
  1331.  
  1332. end
  1333.  
  1334. end
  1335.  
  1336.  
  1337.  
  1338. char.Torso.Touched:connect(onTouch)
  1339.  
  1340. mouse.KeyDown:connect(function(key)
  1341. if key == "c" then
  1342.  
  1343.  
  1344. Punch:Play()
  1345.  
  1346.  
  1347.  
  1348.  
  1349. end
  1350. end)
  1351.  
  1352. debounce = false
  1353.  
  1354. function onTouched(hit)
  1355. hole:Play()
  1356. hit.CanCollide=false
  1357. wait(.5)
  1358. hit.CanCollide = true
  1359. debounce = true
  1360.  
  1361. end
  1362.  
  1363. char["Left Leg"].BrickColor = BrickColor.new("Really black")
  1364. char["Head"].BrickColor = BrickColor.new("Really black")
  1365. char["Right Leg"].BrickColor = BrickColor.new("Really black")
  1366. char["Torso"].BrickColor = BrickColor.new("Really black")
  1367. char["Left Arm"].BrickColor = BrickColor.new("Black")
  1368. char["Right Arm"].BrickColor = BrickColor.new("Black")
  1369. ------------------------------------------------------------------------
Add Comment
Please, Sign In to add comment