Advertisement
Dark_AJ1

49

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