Advertisement
lafur

Untitled

Sep 19th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.36 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,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end --//====================================================\\--
  6. --|| CREATED BY SHACKLUSTER, EDIT BY PSYCHO PLAYS
  7. --\\====================================================//--
  8.  
  9.  
  10.  
  11. wait(0.2)
  12.  
  13. warn'edit by boss_kiddos abye'
  14.  
  15.  
  16.  
  17. Player = game:GetService("Players").LocalPlayer
  18. PlayerGui = Player.PlayerGui
  19. Cam = workspace.CurrentCamera
  20. Backpack = Player.Backpack
  21. Character = Player.Character
  22. Humanoid = Character.Humanoid
  23. Mouse = Player:GetMouse()
  24. RootPart = Character["HumanoidRootPart"]
  25. Torso = Character["Torso"]
  26. Head = Character["Head"]
  27. RightArm = Character["Right Arm"]
  28. LeftArm = Character["Left Arm"]
  29. RightLeg = Character["Right Leg"]
  30. LeftLeg = Character["Left Leg"]
  31. RootJoint = RootPart["RootJoint"]
  32. Neck = Torso["Neck"]
  33. RightShoulder = Torso["Right Shoulder"]
  34. LeftShoulder = Torso["Left Shoulder"]
  35. RightHip = Torso["Right Hip"]
  36. LeftHip = Torso["Left Hip"]
  37. local sick = Instance.new("Sound",Character)
  38. sick.SoundId = "rbxassetid://142748120"
  39. sick.Looped = true
  40. sick.Pitch = 1
  41. sick.Volume = 5
  42. sick:Play()
  43. Humanoid.DisplayDistanceType = "None"
  44.  
  45. local naeeym2 = Instance.new("BillboardGui",Character)
  46. naeeym2.AlwaysOnTop = true
  47. naeeym2.Size = UDim2.new(5,35,2,35)
  48. naeeym2.StudsOffset = Vector3.new(0,1,0)
  49. naeeym2.Adornee = Character.Head
  50. naeeym2.Name = "Name"
  51. naeeym2.PlayerToHideFrom = Player
  52. local tecks2 = Instance.new("TextLabel",naeeym2)
  53. tecks2.BackgroundTransparency = 1
  54. tecks2.TextScaled = true
  55. tecks2.BorderSizePixel = 0
  56. tecks2.Text = "SAD"
  57. tecks2.Font = "Bodoni"
  58. tecks2.TextSize = 30
  59. tecks2.TextStrokeTransparency = 0.5
  60. tecks2.TextColor3 = Color3.new(23,0,0)
  61. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  62. tecks2.Size = UDim2.new(1,0,0.5,0)
  63. tecks2.Parent = naeeym2
  64.  
  65. IT = Instance.new
  66. CF = CFrame.new
  67. VT = Vector3.new
  68. RAD = math.rad
  69. C3 = Color3.new
  70. UD2 = UDim2.new
  71. BRICKC = BrickColor.new
  72. ANGLES = CFrame.Angles
  73. EULER = CFrame.fromEulerAnglesXYZ
  74. COS = math.cos
  75. ACOS = math.acos
  76. SIN = math.sin
  77. ASIN = math.asin
  78. ABS = math.abs
  79. MRANDOM = math.random
  80. FLOOR = math.floor
  81.  
  82. local sound = IT("Sound")
  83.  
  84. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  85. local NEWMESH = IT(MESH)
  86. if MESH == "SpecialMesh" then
  87. NEWMESH.MeshType = MESHTYPE
  88. if MESHID ~= "nil" and MESHID ~= "" then
  89. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  90. end
  91. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  92. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  93. end
  94. end
  95. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  96. NEWMESH.Scale = SCALE
  97. NEWMESH.Parent = PARENT
  98. return NEWMESH
  99. end
  100.  
  101. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE)
  102. local NEWPART = IT("Part")
  103. NEWPART.formFactor = FORMFACTOR
  104. NEWPART.Reflectance = REFLECTANCE
  105. NEWPART.Transparency = TRANSPARENCY
  106. NEWPART.CanCollide = false
  107. NEWPART.Locked = true
  108. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  109. NEWPART.Name = NAME
  110. NEWPART.Size = SIZE
  111. NEWPART.Position = Torso.Position
  112. NEWPART.Material = MATERIAL
  113. NEWPART:BreakJoints()
  114. NEWPART.Parent = PARENT
  115. return NEWPART
  116. end
  117.  
  118. local EyeSizes={
  119. NumberSequenceKeypoint.new(0,1,0),
  120. NumberSequenceKeypoint.new(1,0.2,0)
  121. }
  122. local EyeTrans={
  123. NumberSequenceKeypoint.new(0,0.8,0),
  124. NumberSequenceKeypoint.new(1,1,0)
  125. }
  126. local PE=Instance.new("ParticleEmitter")
  127. PE.LightEmission=0
  128. PE.Size=NumberSequence.new(EyeSizes)
  129. PE.Transparency=NumberSequence.new(EyeTrans)
  130. PE.Lifetime=NumberRange.new(0.35,0.35,0.35)
  131. PE.Rotation=NumberRange.new(0,360)
  132. PE.Rate=15
  133. PE.Acceleration = Vector3.new(0,75,0)
  134. PE.Drag = 5
  135. PE.Enabled = false
  136. PE.Speed = NumberRange.new(0,0,0)
  137. PE.Texture="http://www.roblox.com/asset/?id=1179557490"
  138. PE.ZOffset = 0
  139. PE.Name = "Inferno"
  140.  
  141. function particles(art)
  142. local particle = PE:Clone()
  143. particle.Parent = art
  144. particle.Enabled = true
  145. end
  146.  
  147. --//=================================\\
  148. --|| CUSTOMIZATION
  149. --\\=================================//
  150.  
  151. Class_Name = "SAD"
  152. Weapon_Name = "Add-ons"
  153.  
  154. Custom_Colors = {
  155. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  156. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  157.  
  158. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  159. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  160. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  161. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  162. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  163.  
  164. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  165. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  166. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  167. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  168. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  169. }
  170.  
  171.  
  172. Player_Size = 1 --Size of the player.
  173. Animation_Speed = 3
  174. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  175.  
  176. local Speed = 16
  177. local Effects2 = {}
  178.  
  179. --//=================================\\
  180. --|| END OF CUSTOMIZATION
  181. --\\=================================//
  182.  
  183. local function weldBetween(a, b)
  184. local weldd = Instance.new("ManualWeld")
  185. weldd.Part0 = a
  186. weldd.Part1 = b
  187. weldd.C0 = CFrame.new()
  188. weldd.C1 = b.CFrame:inverse() * a.CFrame
  189. weldd.Parent = a
  190. return weldd
  191. end
  192.  
  193. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  194. local acs = Instance.new("Part")
  195. acs.CanCollide = false
  196. acs.Anchored = false
  197. acs.Size = Vector3.new(0,0,0)
  198. acs.CFrame = attachmentpart.CFrame
  199. acs.Parent = Character
  200. acs.BrickColor = color
  201. local meshs = Instance.new("SpecialMesh")
  202. meshs.MeshId = mesh
  203. meshs.TextureId = texture
  204. meshs.Parent = acs
  205. meshs.Scale = scale
  206. meshs.Offset = offset
  207. weldBetween(attachmentpart,acs)
  208. end
  209.  
  210. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  211. if TYPE == "Gem" then
  212. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  213. acs.Anchored = false
  214. acs.CanCollide = false
  215. acs.CFrame = PART.CFrame
  216. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  217. weldBetween(PART,acs)
  218. elseif TYPE == "Skull" then
  219. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  220. acs.Anchored = false
  221. acs.CanCollide = false
  222. acs.CFrame = PART.CFrame
  223. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  224. weldBetween(PART,acs)
  225. elseif TYPE == "Eye" then
  226. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  227. acs.Anchored = false
  228. acs.CanCollide = false
  229. acs.CFrame = PART.CFrame
  230. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  231. weldBetween(PART,acs)
  232. end
  233. end
  234.  
  235. --//=================================\\
  236. --|| USEFUL VALUES
  237. --\\=================================//
  238.  
  239. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  240. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  241. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  242. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  243. local CO1 = 0
  244. local CO2 = 0
  245. local CO3 = 0
  246. local CO4 = 0
  247. local CHANGEDEFENSE = 0
  248. local CHANGEDAMAGE = 0
  249. local CHANGEMOVEMENT = 0
  250. local ANIM = "Idle"
  251. local ATTACK = false
  252. local EQUIPPED = false
  253. local HOLD = false
  254. local COMBO = 1
  255. local LASTPOINT = nil
  256. local BLCF = nil
  257. local SCFR = nil
  258. local STAGGERHITANIM = false
  259. local STAGGERANIM = false
  260. local STUNANIM = false
  261. local CRITCHANCENUMBER = 0
  262. local IDLENUMBER = 0
  263. local DONUMBER = 0
  264. local HANDIDLE = false
  265. local SINE = 0
  266. local CHANGE = 2 / Animation_Speed
  267. local WALKINGANIM = false
  268. local WALK = 0
  269. local DISABLEJUMPING = false
  270. local HASBEENBLOCKED = false
  271. local STUNDELAYNUMBER = 0
  272. local MANADELAYNUMBER = 0
  273. local OTHERWORLD = false
  274. local SECONDARYMANADELAYNUMBER = 0
  275. local ROBLOXIDLEANIMATION = IT("Animation")
  276. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  277. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=1531934905"
  278. --ROBLOXIDLEANIMATION.Parent = Humanoid
  279. local WEAPONGUI = IT("ScreenGui", nil)
  280. WEAPONGUI.Name = "Weapon GUI"
  281. local WEAPONTOOL = IT("HopperBin", nil)
  282. WEAPONTOOL.Name = Weapon_Name
  283. local Weapon = IT("Model")
  284. Weapon.Name = Weapon_Name
  285. local Effects = IT("Folder", Weapon)
  286. Effects.Name = "Effects"
  287. local ANIMATOR = Humanoid.Animator
  288. local ANIMATE = Character.Animate
  289. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  290. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  291. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  292. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  293. local UNANCHOR = true
  294.  
  295. --//=================================\\
  296. --\\=================================//
  297.  
  298.  
  299.  
  300.  
  301. --//=================================\\
  302. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  303. --\\=================================//
  304.  
  305. ArtificialHB = Instance.new("BindableEvent", script)
  306. ArtificialHB.Name = "ArtificialHB"
  307.  
  308. script:WaitForChild("ArtificialHB")
  309.  
  310. frame = Frame_Speed
  311. tf = 0
  312. allowframeloss = false
  313. tossremainder = false
  314. lastframe = tick()
  315. script.ArtificialHB:Fire()
  316.  
  317. game:GetService("RunService").Heartbeat:connect(function(s, p)
  318. tf = tf + s
  319. if tf >= frame then
  320. if allowframeloss then
  321. script.ArtificialHB:Fire()
  322. lastframe = tick()
  323. else
  324. for i = 1, math.floor(tf / frame) do
  325. script.ArtificialHB:Fire()
  326. end
  327. lastframe = tick()
  328. end
  329. if tossremainder then
  330. tf = 0
  331. else
  332. tf = tf - frame * math.floor(tf / frame)
  333. end
  334. end
  335. end)
  336.  
  337. --//=================================\\
  338. --\\=================================//
  339.  
  340.  
  341.  
  342.  
  343.  
  344. --//=================================\\
  345. --|| SOME FUNCTIONS
  346. --\\=================================//
  347.  
  348. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  349. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  350. end
  351.  
  352. function PositiveAngle(NUMBER)
  353. if NUMBER >= 0 then
  354. NUMBER = 0
  355. end
  356. return NUMBER
  357. end
  358.  
  359. function NegativeAngle(NUMBER)
  360. if NUMBER <= 0 then
  361. NUMBER = 0
  362. end
  363. return NUMBER
  364. end
  365.  
  366. function Swait(NUMBER)
  367. if NUMBER == 0 or NUMBER == nil then
  368. ArtificialHB.Event:wait()
  369. else
  370. for i = 1, NUMBER do
  371. ArtificialHB.Event:wait()
  372. end
  373. end
  374. end
  375.  
  376. function QuaternionFromCFrame(cf)
  377. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  378. local trace = m00 + m11 + m22
  379. if trace > 0 then
  380. local s = math.sqrt(1 + trace)
  381. local recip = 0.5 / s
  382. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  383. else
  384. local i = 0
  385. if m11 > m00 then
  386. i = 1
  387. end
  388. if m22 > (i == 0 and m00 or m11) then
  389. i = 2
  390. end
  391. if i == 0 then
  392. local s = math.sqrt(m00 - m11 - m22 + 1)
  393. local recip = 0.5 / s
  394. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  395. elseif i == 1 then
  396. local s = math.sqrt(m11 - m22 - m00 + 1)
  397. local recip = 0.5 / s
  398. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  399. elseif i == 2 then
  400. local s = math.sqrt(m22 - m00 - m11 + 1)
  401. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  402. end
  403. end
  404. end
  405.  
  406. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  407. local xs, ys, zs = x + x, y + y, z + z
  408. local wx, wy, wz = w * xs, w * ys, w * zs
  409. local xx = x * xs
  410. local xy = x * ys
  411. local xz = x * zs
  412. local yy = y * ys
  413. local yz = y * zs
  414. local zz = z * zs
  415. 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))
  416. end
  417.  
  418. function QuaternionSlerp(a, b, t)
  419. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  420. local startInterp, finishInterp;
  421. if cosTheta >= 0.0001 then
  422. if (1 - cosTheta) > 0.0001 then
  423. local theta = ACOS(cosTheta)
  424. local invSinTheta = 1 / SIN(theta)
  425. startInterp = SIN((1 - t) * theta) * invSinTheta
  426. finishInterp = SIN(t * theta) * invSinTheta
  427. else
  428. startInterp = 1 - t
  429. finishInterp = t
  430. end
  431. else
  432. if (1 + cosTheta) > 0.0001 then
  433. local theta = ACOS(-cosTheta)
  434. local invSinTheta = 1 / SIN(theta)
  435. startInterp = SIN((t - 1) * theta) * invSinTheta
  436. finishInterp = SIN(t * theta) * invSinTheta
  437. else
  438. startInterp = t - 1
  439. finishInterp = t
  440. end
  441. end
  442. 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
  443. end
  444.  
  445. function Clerp(a, b, t)
  446. local qa = {QuaternionFromCFrame(a)}
  447. local qb = {QuaternionFromCFrame(b)}
  448. local ax, ay, az = a.x, a.y, a.z
  449. local bx, by, bz = b.x, b.y, b.z
  450. local _t = 1 - t
  451. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  452. end
  453.  
  454.  
  455. function CreateSound(ID, PARENT, VOLUME, PITCH)
  456. coroutine.resume(coroutine.create(function()
  457. local NEWSOUND = IT("Sound", PARENT)
  458. NEWSOUND.Volume = VOLUME
  459. NEWSOUND.Pitch = PITCH
  460. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  461. Swait()
  462. NEWSOUND:play()
  463. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  464. end))
  465. end
  466.  
  467. local decal = IT("Decal")
  468.  
  469. function CreatePentagram(size,doesrotate,rotatedirection,waitt,cframe,offset,doeskill)
  470. local sinkhole = IT("Part",workspace)
  471. if doeskill == true then
  472. local hit = sinkhole.Touched:Connect(function(hit)
  473. if hit.Parent ~= Character and hit.Parent:FindFirstChild("Humanoid") then
  474. kill(hit.Parent,true)
  475. hit.Parent:remove()
  476. end
  477. end)
  478. end
  479. sinkhole.Size = VT(size,0,size)
  480. sinkhole.CFrame = cframe * CF(0,offset,0)
  481. sinkhole.Material = "Granite"
  482. sinkhole.Color = C3(1,0,0)
  483. sinkhole.Anchored = true
  484. sinkhole.CanCollide = false
  485. sinkhole.Transparency = 1
  486. local decal = decal:Clone()
  487. decal.Parent = sinkhole
  488. decal.Face = "Top"
  489. decal.Texture = "http://www.roblox.com/asset/?id=0"
  490. coroutine.resume(coroutine.create(function(PART)
  491. for i = 1, waitt do
  492. Swait()
  493. if doesrotate == true then
  494. sinkhole.CFrame = sinkhole.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  495. end
  496. if i > waitt-11 then
  497. decal.Transparency = decal.Transparency + 0.1
  498. end
  499. end
  500. sinkhole:remove()
  501. end))
  502. return sinkhole
  503. end
  504.  
  505. Weapon.Parent = Character
  506.  
  507. Humanoid.Died:connect(function()
  508. workspace:ClearAllChildren()
  509. end)
  510.  
  511. --//=================================\\
  512. --\\=================================//
  513.  
  514.  
  515. --//=================================\\
  516. --|| DAMAGING
  517. --\\=================================//
  518.  
  519. function kill(target,extratrue)
  520. if OTHERWORLD == false or extratrue == true then
  521. f = target:GetChildren()
  522. for i = 1, #f do
  523. if f[i].ClassName == "Part" or f[i].ClassName == "MeshPart" then
  524. local effect = f[i]:Clone()
  525. effect.Color = C3(1,1,1)
  526. effect.Material = "Granite"
  527. effect.Parent = workspace
  528. effect.Anchored = true
  529. effect.CanCollide = false
  530. local hit = effect.Touched:Connect(function(hit)
  531. if hit.Parent ~= Character and hit.Parent:FindFirstChild("Humanoid") then
  532. kill(hit.Parent)
  533. hit.Parent:remove()
  534. end
  535. end)
  536. m = effect:GetChildren()
  537. for j = 1, #m do
  538. if m[j].ClassName ~= "SpecialMesh" and m[j].ClassName ~= "BlockMesh" then
  539. m[j]:remove()
  540. end
  541. end
  542. table.insert(Effects2,{effect,"Disappear",0.01,1,1,1,15})
  543. end
  544. end
  545. target:remove()
  546. end
  547. end
  548.  
  549. --//=================================\\
  550. --|| ATTACK FUNCTIONS AND STUFF
  551. --\\=================================//
  552.  
  553. local hit = Torso.Touched:Connect(function(hit)
  554. if hit.Parent:FindFirstChild("Humanoid") then
  555. kill(hit.Parent)
  556. end
  557. end)
  558. local hit = RightArm.Touched:Connect(function(hit)
  559. if hit.Parent:FindFirstChild("Humanoid") then
  560. kill(hit.Parent)
  561. end
  562. end)
  563. local hit = LeftArm.Touched:Connect(function(hit)
  564. if hit.Parent:FindFirstChild("Humanoid") then
  565. kill(hit.Parent)
  566. end
  567. end)
  568. local hit = RightLeg.Touched:Connect(function(hit)
  569. if hit.Parent:FindFirstChild("Humanoid") then
  570. kill(hit.Parent)
  571. end
  572. end)
  573. local hit = LeftLeg.Touched:Connect(function(hit)
  574. if hit.Parent:FindFirstChild("Humanoid") then
  575. kill(hit.Parent)
  576. end
  577. end)
  578. local hit = Head.Touched:Connect(function(hit)
  579. if hit.Parent:FindFirstChild("Humanoid") then
  580. kill(hit.Parent)
  581. end
  582. end)
  583.  
  584. function Warp()
  585. ATTACK = true
  586. local originalcframe = RootPart.CFrame
  587. RootPart.CFrame = CF(VT(Mouse.Hit.p.X,Mouse.Hit.p.Y+(RootPart.Size.Y+1.5),Mouse.Hit.Z),originalcframe.p)
  588. if OTHERWORLD == false then
  589. local penta = CreatePentagram(15,false,0,100,CF(RootPart.Position),-3.2)
  590. CreateSound("971126018", penta, 2, 1)
  591. end
  592. ATTACK = false
  593. end
  594.  
  595. function burnchildren(v)
  596. local get = v:GetChildren()
  597. for i = 1, #get do
  598. local child = get[i]
  599. if child.ClassName == "Part" or child.ClassName == "MeshPart" then
  600. particles(child)
  601. child.Color = C3(0,0,0)
  602. elseif child.ClassName == "CharacterMesh" then
  603. child.OverlayTextureId = "99174105"
  604. elseif child.ClassName == "Hat" or child.ClassName == "Accessory" then
  605. child.Handle.Color = C3(0,0,0)
  606. child.Handle.Mesh.TextureId = ""
  607. particles(child.Handle)
  608. end
  609. end
  610. end
  611.  
  612. function dragnearest(position,range)
  613. for i,v in ipairs(workspace:GetChildren()) do
  614. if game.Players:FindFirstChild(v.Name) == nil then
  615. local body = v:GetChildren()
  616. for part = 1, #body do
  617. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  618. if(body[part].Position - position).Magnitude < range then
  619. v.Parent = Cam
  620. burnchildren(v)
  621. if v:FindFirstChild("Humanoid") then
  622. v.Humanoid:remove()
  623. end
  624. end
  625. end
  626. end
  627. if v.ClassName == "Part" then
  628. if v.Anchored == false and (v.Position - position).Magnitude < range then
  629. v.Parent = Cam
  630. particles(v)
  631. v.Color = C3(0,0,0)
  632. end
  633. end
  634. end
  635. end
  636. end
  637.  
  638. function Drag()
  639. local penta = CreatePentagram(25,true,0.3,100,CF(Mouse.Hit.p),0)
  640. CreateSound("971126018", penta, 2, 1, false)
  641. dragnearest(penta.Position,15)
  642. end
  643.  
  644. --//=================================\\
  645. --|| ASSIGN THINGS TO KEYS
  646. --\\=================================//
  647.  
  648. local light2 = nil
  649.  
  650. function MouseDown(Mouse)
  651. HOLD = true
  652. if OTHERWORLD then
  653. repeat
  654. Swait()
  655. CreatePentagram(15,false,0,12,CF(RootPart.Position),-2.8,true)
  656. until HOLD == false
  657. end
  658. end
  659.  
  660. function MouseUp(Mouse)
  661. HOLD = false
  662. end
  663.  
  664. function KeyDown(Key)
  665. if Key == "e" then
  666. Warp()
  667. end
  668. if Key == "h" then
  669. camchild = Cam:GetChildren()
  670. for child = 1, #camchild do
  671. if camchild[child] ~= Character and camchild[child].Name ~= "ColorCorrection" then
  672. camchild[child].Parent = workspace
  673. end
  674. end
  675. end
  676. if Key == "q" then
  677. Drag()
  678. end
  679. if Key == "r" and ATTACK == false then
  680. if OTHERWORLD == false then
  681. OTHERWORLD = true
  682. light2 = IT("ColorCorrectionEffect",Cam)
  683. light2.Brightness = -0.300
  684. light2.Contrast = 1
  685. light2.Saturation = -2
  686. local penta = CreatePentagram(25,false,0,50,CF(RootPart.Position),-2.8)
  687. CreateSound("971126018", penta, 2, 1.5)
  688. Character.Parent = Cam
  689. elseif OTHERWORLD == true then
  690. OTHERWORLD = false
  691. local penta = CreatePentagram(25,false,0,50,CF(RootPart.Position),-2.8)
  692. CreateSound("971126018", penta, 2, 1.5)
  693. light2:remove()
  694. Character.Parent = workspace
  695. end
  696. end
  697. if Key == "g" and OTHERWORLD == true and ATTACK == false then
  698. ATTACK = true
  699. local del = 35
  700. for i =1, 35 do
  701. Swait(del)
  702. del = del - 1
  703. local head = IT("Part",workspace)
  704. head.Size = VT(0.2,0.2,0.2)
  705. head.CFrame = Head.CFrame * CF(math.random(-700,700),0,math.random(-700,700))
  706. head.Transparency = 1
  707. head.CanCollide = false
  708. head.Anchored = true
  709. CreateSound("305685800", head, 10, 2)
  710. coroutine.resume(coroutine.create(function()
  711. for i = 1, 100 do
  712. Swait()
  713. end
  714. if head then
  715. head:remove()
  716. end
  717. end))
  718. end
  719. Swait(100)
  720. CreateSound("305685800", workspace, 10, 0.8)
  721. Swait(250)
  722. ATTACK = false
  723. end
  724. if Key == "t" and ATTACK == false then
  725. if OTHERWORLD == false then
  726. CreateSound("305685800", Head, 5, 2)
  727. elseif OTHERWORLD == true then
  728. local head = IT("Part",workspace)
  729. head.Size = VT(0.2,0.2,0.2)
  730. head.CFrame = Head.CFrame
  731. head.Transparency = 1
  732. head.CanCollide = false
  733. head.Anchored = true
  734. CreateSound("305685800", head, 5, 2)
  735. coroutine.resume(coroutine.create(function()
  736. for i = 1, 100 do
  737. Swait()
  738. if head then
  739. head.CFrame = Head.CFrame
  740. end
  741. end
  742. if head then
  743. head:remove()
  744. end
  745. end))
  746. end
  747. end
  748. end
  749.  
  750. function KeyUp(Key)
  751. end
  752.  
  753. Mouse.Button1Down:connect(function(NEWKEY)
  754. MouseDown(NEWKEY)
  755. end)
  756. Mouse.Button1Up:connect(function(NEWKEY)
  757. MouseUp(NEWKEY)
  758. end)
  759. Mouse.KeyDown:connect(function(NEWKEY)
  760. KeyDown(NEWKEY)
  761. end)
  762. Mouse.KeyUp:connect(function(NEWKEY)
  763. KeyUp(NEWKEY)
  764. end)
  765.  
  766. --//=================================\\
  767. --\\=================================//
  768.  
  769.  
  770. function unanchor()
  771. if UNANCHOR == true then
  772. g = Character:GetChildren()
  773. for i = 1, #g do
  774. if g[i].ClassName == "Part" then
  775. g[i].Anchored = false
  776. end
  777. end
  778. end
  779. end
  780.  
  781.  
  782. --//=================================\\
  783. --|| WRAP THE WHOLE SCRIPT UP
  784. --\\=================================//
  785.  
  786. while true do
  787. Swait()
  788.  
  789. if #Effects2>0 then
  790. for e=1,#Effects2 do
  791. if Effects2[e]~=nil then
  792. local Thing=Effects2[e]
  793. if Thing~=nil then
  794. local Part=Thing[1]
  795. local Mode=Thing[2]
  796. local Delay=Thing[3]
  797. local IncX=Thing[4]
  798. local IncY=Thing[5]
  799. local IncZ=Thing[6]
  800. local Part2=Thing[8]
  801. if Thing[1].Transparency<=1 then
  802. if Thing[2]=="Block1" then
  803. Thing[1].CFrame=Thing[1].CFrame
  804. Mesh=Thing[1].Mesh
  805. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  806. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  807. elseif Thing[2]=="Cylinder" then
  808. Mesh=Thing[1].Mesh
  809. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  810. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  811. elseif Thing[2]=="Blood" then
  812. Mesh=Thing[7]
  813. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  814. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  815. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  816. elseif Thing[2]=="Elec" then
  817. Mesh=Thing[1].Mesh
  818. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  819. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  820. elseif Thing[2]=="Disappear" then
  821. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  822. end
  823. else
  824. Part.Parent=nil
  825. table.remove(Effects2,e)
  826. end
  827. end
  828. end
  829. end
  830. end
  831. unanchor()
  832. Humanoid.MaxHealth = "inf"
  833. Humanoid.Health = "inf"
  834. q = Character:GetChildren()
  835. for u = 1, #q do
  836. if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
  837. q[u]:remove()
  838. elseif q[u].ClassName == "Shirt" then
  839. q[u]:Destroy()
  840. elseif q[u].ClassName == "Pants" then
  841. q[u]:Destroy()
  842. elseif q[u].ClassName == "CharacterMesh" then
  843. q[u]:remove()
  844. elseif q[u].ClassName == "ShirtGraphic" then
  845. q[u]:remove()
  846. elseif q[u].ClassName == "Part" and q[u].Name ~= "HumanoidRootPart" then
  847. q[u].Color = Color3.new(200/255, 200/255, 200/255)
  848. if OTHERWORLD == false then
  849. q[u].Transparency = 0
  850. Humanoid.WalkSpeed = 16
  851. sick.Parent = Character
  852. sick.Pitch = 0.8
  853. elseif OTHERWORLD == true then
  854. Humanoid.WalkSpeed = 75
  855. sick.Parent = workspace
  856. sick.Pitch = 0.3
  857. end
  858. end
  859. end
  860. if Head:FindFirstChild("Mesh") then
  861. local mesh = Head.Mesh
  862. if mesh.ClassName == "SpecialMesh" then
  863. mesh:remove()
  864. local m = IT("BlockMesh",Head)
  865. end
  866. end
  867. if Head:FindFirstChild("face") then
  868. if math.random(1,50) == 1 then
  869. Head.face.Texture = "rbxassetid://1471407701"
  870. tecks2.Text = "EVIL"
  871. else
  872. Head.face.Texture = "rbxassetid://595644042"
  873. tecks2.Text = "SAD"
  874. end
  875. end
  876. if sick == nil then
  877. local sick = Instance.new("Sound",Character)
  878. sick.SoundId = "rbxassetid://142748120"
  879. sick.Looped = true
  880. sick.Pitch = 0.9
  881. sick.Volume = 5
  882. sick:Play()
  883. end
  884. if OTHERWORLD == false then
  885. CreatePentagram(7,false,0,15,CF(RootPart.Position),-2.8,true)
  886. end
  887. end
  888.  
  889. --//=================================\\
  890. --\\=================================//
  891.  
  892.  
  893.  
  894.  
  895.  
  896. --//====================================================\\--
  897. --|| END OF SCRIPT
  898. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement