Advertisement
Guest User

Smile FE script

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