Advertisement
Baldeagle22

Soon (1_

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