Advertisement
lafur

Untitled

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