Advertisement
DarkSideYT123

Untitled

Aug 4th, 2019
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.80 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
  2. print("FE Compatibility: by WaverlyCole & Mokiros")
  3. InternalData = {}
  4. do
  5. script.Parent = owner.Character
  6. local Event = Instance.new("RemoteEvent")
  7. Event.Name = "UserInput"
  8. local function NewFakeEvent()
  9. local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
  10. return Fake
  11. end
  12. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  13. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  14. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  15. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  16. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  17. local function TriggerEvent(self,Event,...)
  18. local Trigger = Mouse[Event]
  19. if Trigger and Trigger.fakeEvent and Trigger.Function then
  20. Trigger.Function(...)
  21. end
  22. end
  23. Mouse.TrigEvent = TriggerEvent
  24. UserInputService.TrigEvent = TriggerEvent
  25. Event.OnServerEvent:Connect(function(FiredBy,Input)
  26. if FiredBy.Name ~= owner.Name then end
  27. if Input.MouseEvent then
  28. Mouse.Target = Input.Target
  29. Mouse.Hit = Input.Hit
  30. else
  31. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  32. if Input.UserInputType == Enum.UserInputType.MouseButton1 then
  33. return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
  34. end
  35. for _,Action in pairs(ContextActionService.Actions) do
  36. for _,Key in pairs(Action.Keys) do
  37. if Key==Input.KeyCode then
  38. Action.Function(Action.Name,Input.UserInputState,Input)
  39. end
  40. end
  41. end
  42. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  43. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  44. end
  45. end)
  46. InternalData["Mouse"] = Mouse
  47. InternalData["ContextActionService"] = ContextActionService
  48. InternalData["UserInputService"] = UserInputService
  49. Event.Parent = NLS([[
  50. local Player = owner
  51. local Event = script:WaitForChild("UserInput")
  52. local UserInputService = game:GetService("UserInputService")
  53. local Mouse = Player:GetMouse()
  54. local Input = function(Input,gameProcessedEvent)
  55. if gameProcessedEvent then return end
  56. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  57. end
  58. UserInputService.InputBegan:Connect(Input)
  59. UserInputService.InputEnded:Connect(Input)
  60. local Hit,Target
  61. while wait(1/30) do
  62. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  63. Hit,Targer = Mouse.Hit,Mouse.Target
  64. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  65. end
  66. end
  67. ]],owner.Character)
  68. end
  69. RealGame = game;game = setmetatable({},{
  70. __index = function (self,Index)
  71. local Sandbox = function (Thing)
  72. if Thing:IsA("Player") then
  73. local RealPlayer = Thing
  74. return setmetatable({},{
  75. __index = function (self,Index)
  76. local Type = type(RealPlayer[Index])
  77. if Type == "function" then
  78. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  79. return function (self)
  80. return InternalData["Mouse"]
  81. end
  82. end
  83. return function (self,...)
  84. return RealPlayer[Index](RealPlayer,...)
  85. end
  86. else
  87. return RealPlayer[Index]
  88. end
  89. end;
  90. __tostring = function(self)
  91. return RealPlayer.Name
  92. end
  93. })
  94. end
  95. end
  96. if RealGame[Index] then
  97. local Type = type(RealGame[Index])
  98. if Type == "function" then
  99. if Index:lower() == "getservice" or Index:lower() == "service" then
  100. return function (self,Service)
  101. if Service:lower() == "players" then
  102. return setmetatable({},{
  103. __index = function (self2,Index2)
  104. local RealService = RealGame:GetService(Service)
  105. local Type2 = type(Index2)
  106. if Type2 == "function" then
  107. return function (self,...)
  108. return RealService[Index2](RealService,...)
  109. end
  110. else
  111. if Index2:lower() == "localplayer" then
  112. return Sandbox(owner)
  113. end
  114. return RealService[Index2]
  115. end
  116. end;
  117. __tostring = function(self)
  118. return RealGame:GetService(Service).Name
  119. end
  120. })
  121. elseif Service:lower() == "contextactionservice" then
  122. return InternalData["ContextActionService"]
  123. elseif Service:lower() == "contextactionservice" then
  124. return InternalData["UserInputService"]
  125. elseif Service:lower() == "runservice" then
  126. return setmetatable({},{
  127. __index = function(self2,Index2)
  128. local RealService = RealGame:GetService(Service)
  129. local Type2 = type(Index2)
  130. if Type2 == "function" then
  131. return function (self,...)
  132. return RealService[Index2](RealService,...)
  133. end
  134. else
  135. if Index2:lower() == "bindtorenderstep" then
  136. return function (self,Name,Priority,Function)
  137. return RealGame:GetService("RunService").Stepped:Connect(Function)
  138. end
  139. end
  140. if Index2:lower() == "renderstepped" then
  141. return RealService["Stepped"]
  142. end
  143. return RealService[Index2]
  144. end
  145. end
  146. })
  147. else
  148. return RealGame:GetService(Service)
  149. end
  150. end
  151. end
  152. return function (self,...)
  153. return RealGame[Index](RealGame,...)
  154. end
  155. else
  156. if game:GetService(Index) then
  157. return game:GetService(Index)
  158. end
  159. return RealGame[Index]
  160. end
  161. else
  162. return nil
  163. end
  164. end
  165. });Game = game;owner = game:GetService("Players").LocalPlayer;script = {}
  166. print("Complete! Running...")
  167.  
  168.  
  169. --//Paste script below this line.
  170.  
  171.  
  172.  
  173. --// Shortcut Variables \\--
  174. wait(1)
  175. can = true
  176. local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
  177. local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
  178. local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
  179. local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
  180. local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
  181. local R3 = {N=Region3.new}
  182. local De = S.Debris
  183. local WS = workspace
  184. local Lght = S.Lighting
  185. local RepS = S.ReplicatedStorage
  186. local IN = Instance.new
  187. local Plrs = S.Players
  188.  
  189. local Emit = IN("ParticleEmitter").Emit;
  190.  
  191. --// Initializing \\--
  192. local Plr = game.Players.LocalPlayer
  193. local Char = Plr.Character
  194. local Hum = Char:FindFirstChildOfClass'Humanoid'
  195. local RArm = Char["Right Arm"]
  196. local LArm = Char["Left Arm"]
  197. local RLeg = Char["Right Leg"]
  198. local LLeg = Char["Left Leg"]
  199. local Root = Char:FindFirstChild'HumanoidRootPart'
  200. local Torso = Char.Torso
  201. local Head = Char:WaitForChild("Head")
  202. local NeutralAnims = true
  203. local Attack = false
  204. local Debounces = {Debounces={}}
  205. local Hit = {}
  206. local Sine = 0
  207. local Change = 1
  208.  
  209. Cooldown = false
  210.  
  211. local Effects = IN("Folder",Char)
  212. Effects.Name = "Effects"
  213.  
  214. Char:FindFirstChildOfClass("Accessory"):Destroy()
  215.  
  216.  
  217. Char.Head.Transparency = 1
  218. Char.Head.face.Transparency = 1
  219. Char["Left Leg"].BrickColor = BrickColor.new("Really black")
  220. Char["Right Arm"].Material = "Neon"
  221. Char["Left Arm"].Material = "Neon"
  222. Char["Right Leg"].Material = "Neon"
  223. Char["Left Leg"].Material = "Neon"
  224. Char["Torso"].Material = "Neon"
  225.  
  226.  
  227.  
  228. local FakeHead = Instance.new("Part", Char)
  229. FakeHead.Name = "FakeHead"
  230. FakeHead.Material = "Neon"
  231. FakeHead.BrickColor = BrickColor.new("Institutional white")
  232. FakeHead.Size = Vector3.new(1.104, 1, 1)
  233. FakeHead.Position = Char.Head.Position
  234. local FakeHeadWeld = Instance.new("Weld", Char)
  235. FakeHeadWeld.Name = "FakeHeadWeld"
  236. FakeHeadWeld.Part0 = Char.Head
  237. FakeHeadWeld.Part1 = FakeHead
  238. local TopHat1 = Instance.new("Part", Char)
  239. TopHat1.Name = "TopHead1"
  240. TopHat1.Size = Vector3.new(1.812, 0.232, 1.878)
  241. TopHat1.Anchored = true
  242. TopHat1.Position = FakeHead.Position + Vector3.new(0, 0.5, 0)
  243. TopHat1.BrickColor = BrickColor.new("Really black")
  244. TopHat1.Material = "Neon"
  245. local TopHat1Weld = Instance.new("WeldConstraint", Char)
  246. TopHat1Weld.Name = "TopHat1Weld"
  247. TopHat1Weld.Part0 = FakeHead
  248. TopHat1Weld.Part1 = TopHat1
  249. TopHat1.Anchored = false
  250. local TopHat2 = Instance.new("Part", Char)
  251. TopHat2.Name = "TopHead2"
  252. TopHat2.Size = Vector3.new(1.123, 0.296, 1.164)
  253. TopHat2.Anchored = true
  254. TopHat2.Position = FakeHead.Position + Vector3.new(0, 0.7, 0)
  255. TopHat2.BrickColor = BrickColor.new("Institutional white")
  256. TopHat2.Material = "Neon"
  257. local TopHat2Weld = Instance.new("WeldConstraint", Char)
  258. TopHat2Weld.Name = "TopHat2Weld"
  259. TopHat2Weld.Part0 = FakeHead
  260. TopHat2Weld.Part1 = TopHat2
  261. TopHat2.Anchored = false
  262. local TopHat3 = Instance.new("Part", Char)
  263. TopHat3.Name = "TopHead3"
  264. TopHat3.Size = Vector3.new(1.09, 2.344, 1.13)
  265. TopHat3.Anchored = true
  266. TopHat3.Position = FakeHead.Position + Vector3.new(0, 1.7, 0)
  267. TopHat3.BrickColor = BrickColor.new("Really black")
  268. TopHat3.Material = "Neon"
  269. local TopHat3Weld = Instance.new("WeldConstraint", Char)
  270. TopHat3Weld.Name = "TopHat3Weld"
  271. TopHat3Weld.Part0 = FakeHead
  272. TopHat3Weld.Part1 = TopHat3
  273. TopHat3.Anchored = false
  274. local PortalPart = Instance.new("Part", Char)
  275. PortalPart.CFrame = Char.HumanoidRootPart.CFrame * CFrame.new(0, 15, 3)
  276. PortalPart.Orientation = Vector3.new(60, 0, 0)
  277. PortalPart.Anchored = true
  278. PortalPart.Transparency = 1
  279. PortalPart.CanCollide = false
  280. PortalPart.Massless = true
  281. local PortalPartWeld = Instance.new("WeldConstraint", Char)
  282. PortalPartWeld.Name = "PortalPartWeld"
  283. PortalPartWeld.Part0 = Char.HumanoidRootPart
  284. PortalPartWeld.Part1 = PortalPart
  285. PortalPart.Anchored = false
  286. local PortalPart2 = Instance.new("Part", Char)
  287. PortalPart2.CFrame = Char.HumanoidRootPart.CFrame * CFrame.new(0, 15, 3)
  288. PortalPart2.Orientation = Vector3.new(-37.76, 116.57, 50.77)
  289. PortalPart2.Anchored = true
  290. PortalPart2.Transparency = 1
  291. PortalPart2.CanCollide = false
  292. PortalPart2.Massless = true
  293. local PortalPartWeld2 = Instance.new("WeldConstraint", Char)
  294. PortalPartWeld2.Name = "PortalPartWeld2"
  295. PortalPartWeld2.Part0 = Char.HumanoidRootPart
  296. PortalPartWeld2.Part1 = PortalPart2
  297. PortalPart2.Anchored = false
  298. local Name = Instance.new("BillboardGui", TopHat3)
  299. Name.ExtentsOffset = Vector3.new(0, 2, 0)
  300. Name.Size = UDim2.new(0,200,0,100)
  301. local NameText = Instance.new("TextLabel", Name)
  302. NameText.Text = "Mr Void"
  303. NameText.BackgroundTransparency = 1
  304. NameText.Font = Enum.Font.Cartoon
  305. NameText.TextSize = 50
  306. NameText.Size = UDim2.new(0,200,0,100)
  307.  
  308.  
  309.  
  310. local Present = Instance.new("Tool", Plr.Backpack)
  311. Present.Name = "Present"
  312. Present.RequiresHandle = false
  313. Present.Activated:Connect(function()
  314. local Portal = Instance.new("Part", workspace)
  315. Portal.BrickColor = BrickColor.new("Really black")
  316. Portal.Material = "SmoothPlastic"
  317. Portal.Anchored = true
  318. Portal.CanCollide = false
  319. Portal.CFrame = PortalPart.CFrame
  320. Portal.Size = Vector3.new(0.1, 0.05, 0.1)
  321. wait(0.05)
  322. Portal.Orientation = PortalPart.Orientation
  323. Portal.Size = Vector3.new(0.3, 0.05, 0.3)
  324. wait(0.05)
  325. Portal.Orientation = PortalPart2.Orientation
  326. Portal.Size = Vector3.new(0.5, 0.05, 0.5)
  327. wait(0.05)
  328. Portal.Orientation = PortalPart.Orientation
  329. Portal.Size = Vector3.new(0.7, 0.05, 0.7)
  330. wait(0.05)
  331. Portal.Orientation = PortalPart2.Orientation
  332. Portal.Size = Vector3.new(0.9, 0.05, 0.9)
  333. wait(0.05)
  334. Portal.Orientation = PortalPart.Orientation
  335. Portal.Size = Vector3.new(1.4, 0.05, 1.4)
  336. wait(0.05)
  337. Portal.Orientation = PortalPart2.Orientation
  338. Portal.Size = Vector3.new(2, 0.05, 2)
  339. wait(0.05)
  340. Portal.Orientation = PortalPart.Orientation
  341. Portal.Size = Vector3.new(2.5, 0.05, 2.5)
  342. wait(0.05)
  343. Portal.Orientation = PortalPart2.Orientation
  344. Portal.Size = Vector3.new(3.4, 0.05, 3.4)
  345. wait(0.05)
  346. Portal.Orientation = PortalPart.Orientation
  347. Portal.Size = Vector3.new(4.3, 0.05, 4.3)
  348. local Present = Instance.new("Part", workspace)
  349. local Present2 = Instance.new("Part", workspace)
  350. Present2.Anchored = true
  351. Present2.CanCollide = false
  352. Present2.BrickColor = BrickColor.new("Institutional white")
  353. Present2.Material = "Neon"
  354. Present2.Size = Vector3.new(0.5, 2.1, 2.1)
  355. Present2.CFrame = Present.CFrame
  356. local Present2Weld = Instance.new("WeldConstraint", Present2)
  357. Present2Weld.Part0 = Present
  358. Present2Weld.Part1 = Present2
  359. Present2.Anchored = false
  360. local Present3 = Instance.new("Part", workspace)
  361. Present3.Anchored = true
  362. Present3.CanCollide = false
  363. Present3.BrickColor = BrickColor.new("Institutional white")
  364. Present3.Material = "Neon"
  365. Present3.Size = Vector3.new(2.1, 2.1, 0.5)
  366. Present3.CFrame = Present.CFrame
  367. local Present3Weld = Instance.new("WeldConstraint", Present3)
  368. Present3Weld.Part0 = Present
  369. Present3Weld.Part1 = Present3
  370. Present3.Anchored = false
  371. Present.Transparency = 0
  372. Present.CanCollide = true
  373. Present.BrickColor = BrickColor.new("Really black")
  374. Present.Material = "Neon"
  375. Present.Size = Vector3.new(2, 2, 2)
  376.  
  377. local Duh1 = Instance.new("Part", workspace)
  378. Duh1.Anchored = true
  379. Duh1.CanCollide = false
  380. Duh1.Orientation = Vector3.new(0, 0, -40)
  381. Duh1.BrickColor = BrickColor.new("Institutional white")
  382. Duh1.Material = "Neon"
  383. Duh1.Size = Vector3.new(0.336, 2.05, 0.386)
  384. Duh1.Position = Present.Position + Vector3.new(0, 1, 0)
  385. local Duh1Weld = Instance.new("WeldConstraint", Duh1)
  386. Duh1Weld.Part0 = Present
  387. Duh1Weld.Part1 = Duh1
  388. Duh1.Anchored = false
  389. local Duh2 = Instance.new("Part", workspace)
  390. Duh2.Anchored = true
  391. Duh2.CanCollide = false
  392. Duh2.Orientation = Vector3.new(0, 0, 40)
  393. Duh2.BrickColor = BrickColor.new("Institutional white")
  394. Duh2.Material = "Neon"
  395. Duh2.Size = Vector3.new(0.336, 2.05, 0.386)
  396. Duh2.Position = Present.Position + Vector3.new(0, 1, 0)
  397. local Duh2Weld = Instance.new("WeldConstraint", Duh2)
  398. Duh2Weld.Part0 = Present
  399. Duh2Weld.Part1 = Duh2
  400. Duh2.Anchored = false
  401. Present.CFrame = PortalPart.CFrame
  402. Present.Velocity = Char.HumanoidRootPart.CFrame.lookVector * 40
  403. wait(1)
  404. Portal.Orientation = PortalPart2.Orientation
  405. Portal.Size = Vector3.new(5, 0.05, 5)
  406. wait(0.05)
  407. Portal.Orientation = PortalPart.Orientation
  408. Portal.Size = Vector3.new(4.5, 0.05, 4.5)
  409. wait(0.05)
  410. Portal.Orientation = PortalPart.Orientation
  411. Portal.Size = Vector3.new(4, 0.05, 4)
  412. wait(0.05)
  413. Portal.Size = Vector3.new(3, 0.05, 3)
  414. wait(0.05)
  415. Portal.Size = Vector3.new(2, 0.05, 2)
  416. wait(0.05)
  417. Portal:Destroy()
  418. Present.Touched:Connect(function(Something)
  419. if Something.Parent:FindFirstChild("Humanoid") then
  420. if can == true then
  421. Present:Destroy()
  422. Present2:Destroy()
  423. Present3:Destroy()
  424. Duh1:Destroy()
  425. Duh2:Destroy()
  426.  
  427. local Character = Something.parent
  428. local Buff = math.random(1, 2)
  429. if Buff == 1 then
  430. local Aura = Instance.new("Part", workspace)
  431. Aura.BrickColor = BrickColor.new("Institutional white")
  432. Aura.Shape = "Ball"
  433. Aura.Material = Enum.Material.ForceField
  434. Aura.Size = Vector3.new(10, 10, 10)
  435. Aura.CanCollide = true
  436. Aura.Massless = true
  437. Aura.CFrame = Character.HumanoidRootPart.CFrame
  438. local AuraWeld = Instance.new("Weld", Aura)
  439. AuraWeld.Part0 = Character.Head
  440. AuraWeld.Part1 = Aura
  441. Character.Humanoid.Health = Character.Humanoid.MaxHealth
  442. can = false
  443. wait(0.2)
  444. can = true
  445. wait(29.8)
  446. Aura:Destroy()
  447. else
  448. if Buff == 2 then
  449. can = false
  450. Character.Humanoid.WalkSpeed = 42
  451. Character.Humanoid.JumpPower = 75
  452. local Aura2 = Instance.new("Part", workspace)
  453. Aura2.BrickColor = BrickColor.new("Institutional white")
  454. Aura2.Shape = "Ball"
  455. Aura2.Material = Enum.Material.ForceField
  456. Aura2.Size = Vector3.new(2, 2, 2)
  457. Aura2.CanCollide = true
  458. Aura2.CFrame = Character.HumanoidRootPart.CFrame
  459. local Aura2Weld = Instance.new("Weld", Aura2)
  460. Aura2Weld.Part0 = Character.Head
  461. Aura2Weld.Part1 = Aura2
  462. Character.Humanoid.Health = Character.Humanoid.MaxHealth
  463. wait(0.2)
  464. can = true
  465. wait(14.8)
  466. Character.Humanoid.WalkSpeed = 16
  467. Character.Humanoid.JumpPower = 50
  468. end
  469. end
  470. end
  471. end
  472. end)
  473. end)
  474.  
  475. local BadPresent = Instance.new("Tool", Plr.Backpack)
  476. BadPresent.Name = "BadPresent"
  477. BadPresent.RequiresHandle = false
  478. BadPresent.Activated:Connect(function()
  479. local Portal = Instance.new("Part", workspace)
  480. Portal.BrickColor = BrickColor.new("Really black")
  481. Portal.Material = "SmoothPlastic"
  482. Portal.Anchored = true
  483. Portal.CanCollide = false
  484. Portal.CFrame = PortalPart.CFrame
  485. Portal.Size = Vector3.new(0.1, 0.05, 0.1) * 2
  486. wait(0.05)
  487. Portal.Orientation = PortalPart.Orientation
  488. Portal.Size = Vector3.new(0.3, 0.05, 0.3) * 2
  489. wait(0.05)
  490. Portal.Orientation = PortalPart2.Orientation
  491. Portal.Size = Vector3.new(0.5, 0.05, 0.5) * 2
  492. wait(0.05)
  493. Portal.Orientation = PortalPart.Orientation
  494. Portal.Size = Vector3.new(0.7, 0.05, 0.7) * 2
  495. wait(0.05)
  496. Portal.Orientation = PortalPart2.Orientation
  497. Portal.Size = Vector3.new(0.9, 0.05, 0.9) * 2
  498. wait(0.05)
  499. Portal.Orientation = PortalPart.Orientation
  500. Portal.Size = Vector3.new(1.4, 0.05, 1.4) * 2
  501. wait(0.05)
  502. Portal.Orientation = PortalPart2.Orientation
  503. Portal.Size = Vector3.new(2, 0.05, 2) * 2
  504. wait(0.05)
  505. Portal.Orientation = PortalPart.Orientation
  506. Portal.Size = Vector3.new(2.5, 0.05, 2.5) * 2
  507. wait(0.05)
  508. Portal.Orientation = PortalPart2.Orientation
  509. Portal.Size = Vector3.new(3.4, 0.05, 3.4) * 2
  510. wait(0.05)
  511. Portal.Orientation = PortalPart.Orientation
  512. Portal.Size = Vector3.new(4.3, 0.05, 4.3) * 2
  513. local Present = Instance.new("Part", workspace)
  514. local Present2 = Instance.new("Part", workspace)
  515. Present2.Anchored = true
  516. Present2.CanCollide = false
  517. Present2.BrickColor = BrickColor.new("Institutional white")
  518. Present2.Material = "Neon"
  519. Present2.Size = Vector3.new(0.5, 2.1, 2.1) * 2
  520. Present2.CFrame = Present.CFrame
  521. local Present2Weld = Instance.new("WeldConstraint", Present2)
  522. Present2Weld.Part0 = Present
  523. Present2Weld.Part1 = Present2
  524. Present2.Anchored = false
  525. local Present3 = Instance.new("Part", workspace)
  526. Present3.Anchored = true
  527. Present3.CanCollide = false
  528. Present3.BrickColor = BrickColor.new("Institutional white")
  529. Present3.Material = "Neon"
  530. Present3.Size = Vector3.new(2.1, 2.1, 0.5) * 2
  531. Present3.CFrame = Present.CFrame
  532. local Present3Weld = Instance.new("WeldConstraint", Present3)
  533. Present3Weld.Part0 = Present
  534. Present3Weld.Part1 = Present3
  535. Present3.Anchored = false
  536. Present.Transparency = 0
  537. Present.CanCollide = true
  538. Present.BrickColor = BrickColor.new("Really black")
  539. Present.Material = "Neon"
  540. Present.Size = Vector3.new(2, 2, 2) * 2
  541.  
  542. local Duh1 = Instance.new("Part", workspace)
  543. Duh1.Anchored = true
  544. Duh1.CanCollide = false
  545. Duh1.Orientation = Vector3.new(0, 0, -40)
  546. Duh1.BrickColor = BrickColor.new("Institutional white")
  547. Duh1.Material = "Neon"
  548. Duh1.Size = Vector3.new(0.336, 2.05, 0.386) * 2
  549. Duh1.Position = Present.Position + Vector3.new(0, 1, 0)
  550. local Duh1Weld = Instance.new("WeldConstraint", Duh1)
  551. Duh1Weld.Part0 = Present
  552. Duh1Weld.Part1 = Duh1
  553. Duh1.Anchored = false
  554. local Duh2 = Instance.new("Part", workspace)
  555. Duh2.Anchored = true
  556. Duh2.CanCollide = false
  557. Duh2.Orientation = Vector3.new(0, 0, 40)
  558. Duh2.BrickColor = BrickColor.new("Institutional white")
  559. Duh2.Material = "Neon"
  560. Duh2.Size = Vector3.new(0.336, 2.05, 0.386) * 2
  561. Duh2.Position = Present.Position + Vector3.new(0, 1, 0)
  562. local Duh2Weld = Instance.new("WeldConstraint", Duh2)
  563. Duh2Weld.Part0 = Present
  564. Duh2Weld.Part1 = Duh2
  565. Duh2.Anchored = false
  566. Present.CFrame = PortalPart.CFrame
  567. Present.Velocity = Char.HumanoidRootPart.CFrame.lookVector * 40
  568. wait(1)
  569. Portal.Orientation = PortalPart2.Orientation
  570. Portal.Size = Vector3.new(5, 0.05, 5) * 2
  571. wait(0.05)
  572. Portal.Orientation = PortalPart.Orientation
  573. Portal.Size = Vector3.new(4.5, 0.05, 4.5) * 2
  574. wait(0.05)
  575. Portal.Orientation = PortalPart.Orientation
  576. Portal.Size = Vector3.new(4, 0.05, 4) * 2
  577. wait(0.05)
  578. Portal.Size = Vector3.new(3, 0.05, 3) * 2
  579. wait(0.05)
  580. Portal.Size = Vector3.new(2, 0.05, 2) * 2
  581. wait(0.05)
  582. Portal:Destroy()
  583. Present.Touched:Connect(function(Something)
  584. if Something.Parent:FindFirstChild("Humanoid") then
  585. if can == true then
  586. Present:Destroy()
  587. Present2:Destroy()
  588. Present3:Destroy()
  589. Duh1:Destroy()
  590. Duh2:Destroy()
  591. local Character = Something.parent
  592. local Buff = math.random(1, 2)
  593. if Buff == 1 then
  594. can = false
  595. wait(0.2)
  596. can = true
  597. Character.Humanoid.PlatformStand = false
  598. Character["Right Arm"].BrickColor = BrickColor.new("Institutional white")
  599. wait(2)
  600. Character["Right Arm"]:Destroy()
  601. Character["Right Leg"].BrickColor = BrickColor.new("Institutional white")
  602. wait(2)
  603. Character["Right Leg"]:Destroy()
  604. Character["Left Arm"].BrickColor = BrickColor.new("Institutional white")
  605. wait(2)
  606. Character["Left Arm"]:Destroy()
  607. Character["Left Leg"].BrickColor = BrickColor.new("Institutional white")
  608. wait(2)
  609. Character["Left Leg"]:Destroy()
  610. Character["Torso"].BrickColor = BrickColor.new("Institutional white")
  611. wait(6)
  612. Character["Torso"]:Destroy()
  613. else
  614. if Buff == 2 then
  615. can = false
  616. wait(0.2)
  617. can = true
  618. Character.Humanoid.MaxHealth = 100
  619. Character.Humanoid.Health = 99
  620. wait(0.5)
  621. Character.Humanoid.Health = 98
  622. wait(0.5)
  623. Character.Humanoid.Health = 97
  624. wait(0.5)
  625. Character.Humanoid.Health = 96
  626. wait(0.5)
  627. Character.Humanoid.Health = 95
  628. wait(0.5)
  629. Character.Humanoid.Health = 94
  630. wait(0.5)
  631. Character.Humanoid.Health = 93
  632. wait(0.5)
  633. Character.Humanoid.Health = 92
  634. wait(0.5)
  635. Character.Humanoid.Health = 91
  636. wait(0.5)
  637. Character.Humanoid.Health = 90
  638. wait(0.5)
  639. Character.Humanoid.Health = 89
  640. wait(0.5)
  641. Character.Humanoid.Health = 88
  642. wait(0.5)
  643. Character.Humanoid.Health = 87
  644. wait(0.5)
  645. Character.Humanoid.Health = 86
  646. wait(0.5)
  647. Character.Humanoid.Health = 85
  648. wait(0.5)
  649. Character.Humanoid.Health = 84
  650. wait(0.5)
  651. Character.Humanoid.Health = 83
  652. wait(0.5)
  653. Character.Humanoid.Health = 82
  654. wait(0.5)
  655. Character.Humanoid.Health = 81
  656. wait(0.5)
  657. Character.Humanoid.Health = 80
  658. wait(0.5)
  659. Character.Humanoid.Health = 79
  660. wait(0.5)
  661. Character.Humanoid.Health = 78
  662. wait(0.5)
  663. Character.Humanoid.Health = 77
  664. wait(0.5)
  665. Character.Humanoid.Health = 76
  666. wait(0.5)
  667. Character.Humanoid.Health = 75
  668. wait(0.5)
  669. Character.Humanoid.Health = 60
  670. wait(0.5)
  671. Character.Humanoid.Health = 50
  672. wait(0.5)
  673. Character.Humanoid.Health = 40
  674. wait(0.5)
  675. Character.Humanoid.Health = 30
  676. wait(0.5)
  677. Character.Humanoid.Health = 20
  678. wait(0.5)
  679. Character.Humanoid.Health = 10
  680. wait(0.5)
  681. Character.Humanoid.Health = 9
  682. wait(0.5)
  683. Character.Humanoid.Health = 8
  684. wait(0.5)
  685. Character.Humanoid.Health = 7
  686. wait(0.5)
  687. Character.Humanoid.Health = 6
  688. wait(0.5)
  689. Character.Humanoid.Health = 5
  690. wait(0.5)
  691. Character.Humanoid.Health = 4
  692. wait(0.5)
  693. Character.Humanoid.Health = 3
  694. wait(0.5)
  695. Character.Humanoid.Health = 2
  696. wait(0.5)
  697. Character.Humanoid.Health = 1
  698. wait(0.5)
  699. Character.Humanoid.Health = 0
  700. wait(0.1)
  701. Character.Humanoid.WalkSpeed = 1
  702. Character.Humanoid.JumpPower = 1
  703. local Aura2 = Instance.new("Part", Character)
  704. Aura2.BrickColor = BrickColor.new("Institutional white")
  705. Aura2.Shape = "Ball"
  706. Character.Head.BrickColor = BrickColor.new("Institutional white")
  707. Aura2.Material = Enum.Material.ForceField
  708. Aura2.Size = Vector3.new(2, 2, 2)
  709. Aura2.CanCollide = true
  710. Aura2.Velocity = Vector3.new(0, 1000000, 0)
  711. Aura2.CFrame = Character.HumanoidRootPart.CFrame
  712. local Aura2Weld = Instance.new("Weld", Aura2)
  713. Aura2Weld.Part0 = Character.Head
  714. Aura2Weld.Part1 = Aura2
  715. wait(14.8)
  716. Character.Humanoid.WalkSpeed = 16
  717. Character.Humanoid.JumpPower = 50
  718. end
  719. end
  720. end
  721. end
  722. end)
  723. end)
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731.  
  732.  
  733.  
  734.  
  735.  
  736.  
  737.  
  738.  
  739.  
  740.  
  741. local Mouse = Plr:GetMouse()
  742. Mouse.KeyDown:Connect(function(k)
  743. k:lower()
  744. if k == "f" then
  745. print("F")
  746. end
  747. end)
  748.  
  749.  
  750.  
  751.  
  752.  
  753.  
  754.  
  755.  
  756.  
  757.  
  758.  
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765.  
  766.  
  767.  
  768. --// Instance Creation Functions \\--
  769.  
  770.  
  771. function Part(parent,color,material,size,cframe,anchored,cancollide)
  772. local part = IN("Part")
  773. part.Parent = parent or Char
  774. part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0)
  775. part.Material = material or Enum.Material.SmoothPlastic
  776. part.TopSurface,part.BottomSurface=10,10
  777. part.Size = size or V3.N(1,1,1)
  778. part.CFrame = cframe or CF.N(0,0,0)
  779. part.CanCollide = cancollide or false
  780. part.Anchored = anchored or false
  781. return part
  782. end
  783.  
  784. function Weld(part0,part1,c0,c1)
  785. local weld = IN("Weld")
  786. weld.Parent = part0
  787. weld.Part0 = part0
  788. weld.Part1 = part1
  789. weld.C0 = c0 or CF.N()
  790. weld.C1 = c1 or CF.N()
  791. return weld
  792. end
  793.  
  794. function Mesh(parent,meshtype,meshid,textid,scale,offset)
  795. local part = IN("SpecialMesh")
  796. part.MeshId = meshid or ""
  797. part.TextureId = textid or ""
  798. part.Scale = scale or V3.N(1,1,1)
  799. part.Offset = offset or V3.N(0,0,0)
  800. part.MeshType = meshtype or Enum.MeshType.Sphere
  801. part.Parent = parent
  802. return part
  803. end
  804.  
  805. NewInstance = function(instance,parent,properties)
  806. local inst = Instance.new(instance)
  807. inst.Parent = parent
  808. if(properties)then
  809. for i,v in next, properties do
  810. pcall(function() inst[i] = v end)
  811. end
  812. end
  813. return inst;
  814. end
  815.  
  816. function Clone(instance,parent,properties)
  817. local inst = instance:Clone()
  818. inst.Parent = parent
  819. if(properties)then
  820. for i,v in next, properties do
  821. pcall(function() inst[i] = v end)
  822. end
  823. end
  824. return inst;
  825. end
  826.  
  827.  
  828.  
  829.  
  830. --// Customization \\--
  831.  
  832. local Frame_Speed = 60;
  833. local WalkSpeed = 16
  834. local DamageColor = BrickColor.new'White'
  835.  
  836. --// Stop animations \\--
  837. for _,v in next, Hum:GetPlayingAnimationTracks() do
  838. v:Stop();
  839. end
  840.  
  841. pcall(game.Destroy,Char:FindFirstChild'Animate')
  842. pcall(game.Destroy,Hum:FindFirstChild'Animator')
  843.  
  844. --// Joints \\--
  845.  
  846. local LS = NewInstance('Motor',Char,{Part0=Torso,Part1=LArm,C0 = CF.N(-1.5,0.5,0),C1 = CF.N(0,.5,0)})
  847. local RS = NewInstance('Motor',Char,{Part0=Torso,Part1=RArm,C0 = CF.N(1.5,0.5,0),C1 = CF.N(0,.5,0)})
  848. local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5,0)})
  849. local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5,-1,0),C1 = CF.N(0,1,0)})
  850. local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5,-1,0),C1 = CF.N(0,1,0)})
  851. local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
  852.  
  853. local LSC0 = LS.C0
  854. local RSC0 = RS.C0
  855. local NKC0 = NK.C0
  856. local LHC0 = LH.C0
  857. local RHC0 = RH.C0
  858. local RJC0 = RJ.C0
  859.  
  860. --// Artificial HB \\--
  861.  
  862. local ArtificialHB = IN("BindableEvent", script)
  863. ArtificialHB.Name = "Heartbeat"
  864.  
  865. script:WaitForChild("Heartbeat")
  866.  
  867. local tf = 0
  868. local allowframeloss = false
  869. local tossremainder = false
  870. local lastframe = tick()
  871. local frame = 1/Frame_Speed
  872. ArtificialHB:Fire()
  873.  
  874. game:GetService("RunService").Heartbeat:connect(function(s, p)
  875. tf = tf + s
  876. if tf >= frame then
  877. if allowframeloss then
  878. script.Heartbeat:Fire()
  879. lastframe = tick()
  880. else
  881. for i = 1, math.floor(tf / frame) do
  882. ArtificialHB:Fire()
  883. end
  884. lastframe = tick()
  885. end
  886. if tossremainder then
  887. tf = 0
  888. else
  889. tf = tf - frame * math.floor(tf / frame)
  890. end
  891. end
  892. end)
  893.  
  894. function swait(num)
  895. if num == 0 or num == nil then
  896. ArtificialHB.Event:wait()
  897. else
  898. for i = 0, num do
  899. ArtificialHB.Event:wait()
  900. end
  901. end
  902. end
  903.  
  904.  
  905.  
  906.  
  907.  
  908.  
  909. while true do
  910. swait()
  911. Sine = Sine + Change
  912.  
  913. local hitfloor,posfloor = workspace:FindPartOnRay(Ray.new(Root.CFrame.p,((CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector).unit * (4)), Char)
  914.  
  915. local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1)
  916. local State = (Hum.PlatformStand and 'Paralyzed' or Hum.Sit and 'Sit' or not hitfloor and Root.Velocity.y < -1 and "Fall" or not hitfloor and Root.Velocity.y > 1 and "Jump" or hitfloor and Walking and (Hum.WalkSpeed > 24 and "Run" or "Walk") or hitfloor and "Idle")
  917. if(not Effects or not Effects.Parent)then
  918. Effects = IN("Model",Char)
  919. Effects.Name = "Effects"
  920. end
  921. if(State == 'Run')then
  922. local wsVal = 20 / (Hum.WalkSpeed/16)
  923. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  924. Change = 3
  925. RH.C1 = RH.C1:lerp(CF.N(0,1,0)*CF.N(0,0-.2*M.C(Sine/wsVal),0+.4*M.C(Sine/wsVal))*CF.A(M.R(15+25*M.C(Sine/wsVal))+-M.S(Sine/wsVal),0,0),Alpha)
  926. LH.C1 = LH.C1:lerp(CF.N(0,1,0)*CF.N(0,0+.2*M.C(Sine/wsVal),0-.4*M.C(Sine/wsVal))*CF.A(M.R(15-25*M.C(Sine/wsVal))+M.S(Sine/wsVal),0,0),Alpha)
  927. elseif(State == 'Walk')then
  928. local wsVal = 20 / (Hum.WalkSpeed/16)
  929. local Alpha = math.min(.3 * (Hum.WalkSpeed/8),1)
  930. Change = 3
  931. RH.C1 = RH.C1:lerp(CF.N(0,1,0)*CF.N(0,0-.5*M.C(Sine/wsVal)/2,0+.6*M.C(Sine/wsVal)/2)*CF.A(M.R(15-2*M.C(Sine/wsVal))+-M.S(Sine/wsVal)/2.5,0,0),Alpha)
  932. LH.C1 = LH.C1:lerp(CF.N(0,1,0)*CF.N(0,0+.5*M.C(Sine/wsVal)/2,0-.6*M.C(Sine/wsVal)/2)*CF.A(M.R(15+2*M.C(Sine/wsVal))+M.S(Sine/wsVal)/2.5,0,0),Alpha)
  933. else
  934. RH.C1 = RH.C1:lerp(CF.N(0,1,0),.2)
  935. LH.C1 = LH.C1:lerp(CF.N(0,1,0),.2)
  936. end
  937.  
  938. Hum.WalkSpeed = WalkSpeed
  939.  
  940. if(NeutralAnims)then
  941. if(State == 'Idle')then
  942. local Alpha = .1
  943. Change = .75
  944. RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0+.2*M.C(Sine/12),.2*M.C(Sine/6),0)*CF.A(M.R(-5+5*M.C(Sine/12)),0,0),Alpha)
  945. NK.C0 = NK.C0:lerp(NKC0*CF.A(M.R(-5+5*M.C(Sine/12)),0,0),Alpha)
  946. LS.C0 = LS.C0:lerp(LSC0*CF.N(.25,0,0)*CF.A(M.R(-45),0,M.R(45+5*M.C(Sine/12))),Alpha)
  947. RS.C0 = RS.C0:lerp(RSC0*CF.N(-.25,0,0)*CF.A(M.R(-45),0,M.R(-45-5*M.C(Sine/12))),Alpha)
  948. LH.C0 = LH.C0:lerp(LHC0*CF.N(0-.2*M.C(Sine/12),-.2*M.C(Sine/6),0)*CF.A(M.R(5-5*M.C(Sine/12)),M.R(10),0),Alpha)
  949. RH.C0 = RH.C0:lerp(RHC0*CF.N(0-.2*M.C(Sine/12),-.2*M.C(Sine/6),0)*CF.A(M.R(5-5*M.C(Sine/12)),M.R(-10),0),Alpha)
  950. -- idle
  951. elseif(State == 'Run')then
  952. local wsVal = 20 / (Hum.WalkSpeed/16)
  953. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  954. RJ.C0 = RJ.C0:lerp(CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-15+2.5*M.C(Sine/(wsVal/2))),M.R(8*M.C(Sine/wsVal)),0),Alpha)
  955. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  956. LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,0-.3*M.S(Sine/wsVal))*CF.A(M.R(0+45*M.S(Sine/wsVal)),0,M.R(-5)),Alpha)
  957. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,0+.3*M.S(Sine/wsVal))*CF.A(M.R(0-45*M.S(Sine/wsVal)),0,M.R(5)),Alpha)
  958. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
  959. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
  960. elseif(State == 'Walk')then
  961. local wsVal = 20 / (Hum.WalkSpeed/16)
  962. local Alpha = math.min(.3 * (Hum.WalkSpeed/16),1)
  963. RJ.C0 = RJ.C0:lerp(CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-5-2.5*M.C(Sine/(wsVal/2))),M.R(8*M.C(Sine/wsVal)),0),Alpha)
  964. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  965. LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,-.22*M.C(Sine/wsVal))*CF.A(M.R(37*M.C(Sine/wsVal)),0,M.R(-5)),Alpha)
  966. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,.22*M.C(Sine/wsVal))*CF.A(M.R(-37*M.C(Sine/wsVal)),0,M.R(5)),Alpha)
  967. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
  968. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
  969. elseif(State == 'Jump')then
  970. local Alpha = .1
  971. local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
  972. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)),Alpha)
  973. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)),Alpha)
  974. RJ.C0 = RJ.C0:lerp(RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  975. NK.C0 = NK.C0:lerp(NKC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  976. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  977. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  978. elseif(State == 'Fall')then
  979. local Alpha = .1
  980. local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
  981. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
  982. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
  983. RJ.C0 = RJ.C0:lerp(RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  984. NK.C0 = NK.C0:lerp(NKC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  985. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  986. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  987. elseif(State == 'Paralyzed')then
  988. -- paralyzed
  989. elseif(State == 'Sit')then
  990. -- sit
  991. end
  992. end
  993.  
  994. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement