Advertisement
iiJosephCats205

teest

Sep 15th, 2019
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.66 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 60 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/60) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83.  
  84. --By iiJoeCats
  85. --Some sources could be copied or stolen from other devs. I gave credit to them.
  86.  
  87. print([[
  88.  
  89. -- The Random Powers by iiJoeCats (DEMO)
  90.  
  91. KEYBINDS:
  92.  
  93. //Main Keybinds
  94. [Q] - Fireball
  95. [E] - Stomp
  96. [R] - Acid Rain
  97. [T] - T-Pose Taunt
  98. [Y] - Tele Hacks
  99. [U] - Bomb
  100.  
  101. //Music Keybinds
  102. [N] - Toggle Music
  103. [M] - Change Music
  104.  
  105. ]])
  106.  
  107. ---------------------------------------------------------------
  108.  
  109. local player = owner
  110. local character = player.Character
  111.  
  112. ---------------------------------------------------------------
  113.  
  114. local rArm = character["Right Arm"]
  115. local lArm = character["Left Arm"]
  116. local rLeg = character["Right Leg"]
  117. local lLeg = character["Left Leg"]
  118.  
  119. -------------------------------------------
  120.  
  121. local attack = false
  122. local targ = nil
  123.  
  124. -------------------------------------------
  125.  
  126. local root = character.HumanoidRootPart
  127. local rootJ = root.RootJoint
  128.  
  129. -------------------------------------------
  130.  
  131. local tors = character.Torso
  132. local head = character.Head
  133. local hum = character:FindFirstChildOfClass("Humanoid")
  134.  
  135. -------------------------------------------
  136.  
  137. local ids = {190423831,209436665,1801935021,491080872,986986864,210779207,1255569288,1251015452,582020393,1563991094,2787753799,2338004840,185558852,1986375341,569913318,586436338,510019324,1591230720,723652641,555947343,394236634,195822354,224584376,1576288222,199265353,322621962,569026863,502771070,408862087,1471935327,236336857,2280063143,334259331,344685843,1479420512,297754476,591661590,1571736139,2988953773,130768805,2516100492,580535766,213546066,2471149989,1033438052,282657398,323226722,418028388,595800581}
  138.  
  139. local theme = Instance.new("Sound",root)
  140. theme.Volume = 4.9
  141. theme.Looped = true
  142. theme.Name = "Mozzys.exe"
  143. theme.SoundId = "rbxassetid://190423831"
  144. theme.MaxDistance = 1000
  145. theme.PlaybackSpeed = 1
  146. theme:Play()
  147.  
  148. ---------------------------------------------------------------
  149.  
  150. --Credit to mustardfoot for the CFrame lerp Function. Edited a bit.
  151. function lerp(weld,startpos,endpos,amntime,longatend)
  152. local waited = 0
  153. for i=1,amntime*100 do
  154. if longatend == true then
  155. startpos = weld.C0
  156. end
  157. weld.C0 = startpos:lerp(endpos,i/(amntime*100))
  158. waited=waited+0.01
  159. game:GetService("RunService").Stepped:wait()
  160. end
  161. end
  162.  
  163. function removeItem(item,timer)
  164. game:GetService("Debris"):AddItem(item,timer)
  165. end
  166.  
  167. function createSoundEffect(parent,id,volume,pitch,timeposition,cleanuptime)
  168. local s = Instance.new("Sound",parent)
  169. s.Volume = volume
  170. s.SoundId = id
  171. s.PlaybackSpeed = pitch
  172. s.TimePosition = timeposition
  173. s:Play()
  174. removeItem(s,cleanuptime)
  175. end
  176.  
  177. ---------------------------------------------------------------
  178.  
  179. local function morph()
  180. local ColorsArray = {
  181. ColorSequenceKeypoint.new(0, Color3.new(1,0,0)),
  182. ColorSequenceKeypoint.new(0.2, Color3.new(1, 0.333333, 0)),
  183. ColorSequenceKeypoint.new(0.4, Color3.new(1, 1, 0)),
  184. ColorSequenceKeypoint.new(0.6, Color3.new(0, 1, 0)),
  185. ColorSequenceKeypoint.new(0.8, Color3.new(0, 0.666667, 1)),
  186. ColorSequenceKeypoint.new(1, Color3.new(0.74902, 0, 1))
  187. }
  188.  
  189. local pe = Instance.new("ParticleEmitter",lArm)
  190. pe.Speed = NumberRange.new(0, 0)
  191. pe.Color = ColorSequence.new(ColorsArray)
  192. pe.LightInfluence = 1
  193. pe.Size = NumberSequence.new(.5,.5)
  194. pe.Lifetime = NumberRange.new(0.5, 0.5)
  195. pe.LockedToPart = false
  196. pe.Rate = 17
  197.  
  198. local pe2 = Instance.new("ParticleEmitter",rLeg)
  199. pe2.Speed = NumberRange.new(0, 0)
  200. pe2.Color = ColorSequence.new(ColorsArray)
  201. pe2.LightInfluence = 1
  202. pe2.Size = NumberSequence.new(.5,.5)
  203. pe2.Lifetime = NumberRange.new(0.5, 0.5)
  204. pe2.LockedToPart = false
  205. pe2.Rate = 17
  206.  
  207. local pe3 = Instance.new("ParticleEmitter",rArm)
  208. pe3.Speed = NumberRange.new(0, 0)
  209. pe3.Color = ColorSequence.new(ColorsArray)
  210. pe3.LightInfluence = 1
  211. pe3.Size = NumberSequence.new(.5,.5)
  212. pe3.Lifetime = NumberRange.new(0.5, 0.5)
  213. pe3.LockedToPart = false
  214. pe3.Rate = 17
  215.  
  216. local pe4 = Instance.new("ParticleEmitter",lLeg)
  217. pe4.Speed = NumberRange.new(0, 0)
  218. pe4.Color = ColorSequence.new(ColorsArray)
  219. pe4.LightInfluence = 1
  220. pe4.Size = NumberSequence.new(.5,.5)
  221. pe4.Lifetime = NumberRange.new(0.5, 0.5)
  222. pe4.LockedToPart = false
  223. pe4.Rate = 17
  224.  
  225. end
  226.  
  227. pcall(function()
  228. morph()
  229. end)
  230.  
  231. ---------------------------------------------------------------
  232.  
  233. mouse.KeyDown:Connect(function(key)
  234.  
  235. if key == "m" then
  236. if not theme.Playing == false then
  237. local pickRand = ids[math.random(1,#ids)]
  238. theme.SoundId = "rbxassetid://"..pickRand
  239. theme:Play()
  240. else
  241. theme:Stop()
  242. end
  243. end
  244. if key == "n" then
  245. theme.Playing = not theme.Playing
  246. end
  247.  
  248. if attack == true then return end
  249. if key == "q" then
  250. attack = true
  251.  
  252. local raWeld = Instance.new("Weld",tors)
  253. raWeld.Part0 = tors
  254. raWeld.Part1 = rArm
  255. raWeld.C0 = CFrame.new(1.5,0,0)
  256.  
  257. local begin = coroutine.wrap(function()
  258. lerp(raWeld,raWeld.C0,CFrame.new(1.5,.5,-.5) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),0.1,true)
  259. end)
  260.  
  261. local fireball = Instance.new("Part",workspace)
  262. game:GetService("Debris"):AddItem(fireball,5)
  263. fireball.Size = Vector3.new(3,3,3)
  264. fireball.Material = Enum.Material.Neon
  265. fireball.BrickColor = BrickColor.new("Really red")
  266. fireball.Transparency = 0.4
  267. fireball.CanCollide = false
  268. fireball.Shape = Enum.PartType.Ball
  269. fireball.CFrame = CFrame.new(tors.Position, Vector3.new(mouse.Hit.p.x,mouse.Hit.p.y,mouse.Hit.p.z))
  270.  
  271. begin()
  272.  
  273. local bv = Instance.new("BodyVelocity",fireball)
  274. bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  275. bv.Velocity = fireball.CFrame.LookVector * 100
  276.  
  277. fireball.Touched:Connect(function(hit)
  278. local humn = hit.Parent:FindFirstChildOfClass("Humanoid")
  279. if humn and humn.Health > 0 then
  280. if hit:IsDescendantOf(character) then return end
  281. local findAlreadyHit = humn.Parent:FindFirstChildOfClass("ObjectValue")
  282. if not findAlreadyHit then
  283. Instance.new("ObjectValue",humn.Parent).Name = "burn"
  284. humn:TakeDamage(math.random(25,47))
  285. wait(1.4)
  286. humn.Parent:FindFirstChildOfClass("ObjectValue"):Destroy()
  287. else
  288. --nothing
  289. end
  290. end
  291. end)
  292.  
  293. local endAnim = coroutine.wrap(function()
  294. lerp(raWeld,raWeld.C0,CFrame.new(1.5,0,0),0.1,true)
  295. raWeld:Destroy()
  296. end)
  297.  
  298. wait(1)
  299. endAnim()
  300.  
  301. attack = false
  302. end
  303. if key == "e" then
  304. attack = true
  305.  
  306. local rLegWeld = Instance.new("Weld",tors)
  307. rLegWeld.Part0 = tors
  308. rLegWeld.Part1 = rLeg
  309. rLegWeld.C0 = CFrame.new(.5,-2,0)
  310.  
  311. local blockEffect = coroutine.wrap(function()
  312. local impact = Instance.new("Part",workspace)
  313. removeItem(impact,3)
  314. createSoundEffect(impact,"rbxassetid://438666141",3,1,0,3.4)
  315. impact.Name = "ImpactCrash"
  316. impact.Anchored = true
  317. impact.Material = "Neon"
  318. impact.TopSurface = "Smooth"
  319. impact.BottomSurface = "Smooth"
  320. impact.Size = Vector3.new(15,.25,15)
  321. impact.BrickColor = BrickColor.new("Bright yellow")
  322. impact.CanCollide = false
  323. impact.CFrame = root.CFrame * (CFrame.new(0,-2.9,0) * CFrame.Angles(0,0,0))
  324.  
  325. local msh = Instance.new("SpecialMesh",impact)
  326. msh.MeshType = Enum.MeshType.Sphere
  327.  
  328. impact.Touched:Connect(function(hit)
  329. local humn = hit.Parent:FindFirstChildOfClass("Humanoid")
  330. if humn and humn.Health > 0 then
  331. if hit:IsDescendantOf(character) then return end
  332. local findAlreadyHit = humn.Parent:FindFirstChildOfClass("ObjectValue")
  333. if not findAlreadyHit then
  334. Instance.new("ObjectValue",humn.Parent).Name = "burn"
  335. humn:TakeDamage(math.random(50,76))
  336. wait(3)
  337. humn.Parent:FindFirstChildOfClass("ObjectValue"):Destroy()
  338. else
  339. --nothing
  340. end
  341. end
  342. end)
  343.  
  344. coroutine.resume(coroutine.create(function()
  345. wait(0.1)
  346. for i = 0,1,0.01 do
  347. wait()
  348. impact.Size = impact.Size + Vector3.new(.5,0,.5)
  349. impact.CFrame = impact.CFrame + Vector3.new(0,0.01,0)
  350. impact.Transparency = impact.Transparency + i
  351. end
  352. end), impact)
  353. end)
  354.  
  355. local resetRootJ = coroutine.wrap(function()
  356. lerp(rootJ,rootJ.C0,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),0.2,true)
  357. end)
  358.  
  359. local begin = coroutine.wrap(function()
  360. lerp(rootJ,rootJ.C0,CFrame.fromEulerAnglesXYZ(math.rad(-70),math.rad(0),math.rad(180)),0.05,true)
  361. end)
  362. --rLegWeld.C0 = CFrame.new(.5,-2,0)
  363. lerp(rLegWeld,rLegWeld.C0,CFrame.new(.5,-1.2,-.5) * CFrame.fromEulerAnglesXYZ(math.rad(-20),math.rad(0),math.rad(0)),0.05,true)
  364. begin()
  365.  
  366. wait(.5)
  367.  
  368. local new = coroutine.wrap(function()
  369. lerp(rLegWeld,rLegWeld.C0,CFrame.new(.5,-1.7,-.5) * CFrame.fromEulerAnglesXYZ(math.rad(20),math.rad(0),math.rad(0)),0.05,true)
  370. end)
  371. lerp(rootJ,rootJ.C0,CFrame.fromEulerAnglesXYZ(math.rad(-110),math.rad(0),math.rad(180)),0.05,true)
  372. new()
  373. wait(0.1)
  374. blockEffect()
  375.  
  376. local returntonorm = coroutine.wrap(function()
  377. lerp(rLegWeld,rLegWeld.C0,CFrame.new(.5,-2,0),0.05,true)
  378. wait(0.1)
  379. end)
  380.  
  381. resetRootJ()
  382. returntonorm()
  383. rLegWeld:Destroy()
  384.  
  385. wait(0.2)
  386. attack = false
  387.  
  388. end
  389. if key == "r" then
  390. attack = true
  391.  
  392. createSoundEffect(workspace,"rbxassetid://1516791621",4,1,0,15)
  393.  
  394. for i = 1,15*15 do
  395. local prt = Instance.new("Part",workspace)
  396. removeItem(prt,4)
  397. prt.Material = Enum.Material.Neon
  398. prt.CanCollide = false
  399. prt.Size = Vector3.new(1,3,1)
  400. prt.BrickColor = BrickColor.new("Lime green")
  401. prt.Transparency = 0.4
  402. prt.Position = root.Position + Vector3.new(math.random(-100,100),350,math.random(-100,100))
  403.  
  404. prt.Touched:Connect(function(hit)
  405. local humn = hit.Parent:FindFirstChildOfClass("Humanoid")
  406. if humn and humn.Health > 0 then
  407. if hit:IsDescendantOf(character) then return end
  408. local findAlreadyHit = humn.Parent:FindFirstChildOfClass("ObjectValue")
  409. if not findAlreadyHit then
  410. Instance.new("ObjectValue",humn.Parent).Name = "ass"
  411. humn:TakeDamage(math.random(5,19))
  412. wait(0.07)
  413. humn.Parent:FindFirstChildOfClass("ObjectValue"):Destroy()
  414. else
  415. --nothing
  416. end
  417. end
  418. end)
  419.  
  420. wait(0.06)
  421. end
  422.  
  423. wait(0.4)
  424.  
  425. attack = false
  426. end
  427. if key == "t" then
  428. attack = true
  429.  
  430. hum.WalkSpeed = 0
  431. hum.JumpPower = 0
  432. character.Animate.Disabled = true
  433.  
  434. local raWeld = Instance.new("Weld",character.Torso)
  435. raWeld.Part0 = character.Torso
  436. raWeld.Part1 = character["Right Arm"]
  437. raWeld.C0 = CFrame.new(1.5,0,0)
  438.  
  439. local laWeld = Instance.new("Weld",character.Torso)
  440. laWeld.Part0 = character.Torso
  441. laWeld.Part1 = character["Left Arm"]
  442. laWeld.C0 = CFrame.new(-1.5,0,0)
  443.  
  444. local arm1 = coroutine.wrap(function()
  445. lerp(raWeld,raWeld.C0,CFrame.new(2,.5,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)),0.05,true)
  446. end)
  447.  
  448. local arm2 = coroutine.wrap(function()
  449. lerp(laWeld,laWeld.C0,CFrame.new(-2,.5,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)),0.05,true)
  450. end)
  451.  
  452. arm1()
  453. arm2()
  454.  
  455.  
  456. createSoundEffect(workspace,"rbxassetid://3154962208",4.6,1,0,1.25)
  457.  
  458. local function reset()
  459. local one = coroutine.wrap(function()
  460. lerp(raWeld,raWeld.C0,CFrame.new(1.5,0,0),0.3,true)
  461. end)
  462. one()
  463. lerp(laWeld,laWeld.C0,CFrame.new(-1.5,0,0),0.3,true)
  464. end
  465.  
  466. wait(4)
  467. reset()
  468. character.Animate.Disabled = false
  469. hum.WalkSpeed = 16
  470. hum.JumpPower = 50
  471. raWeld:Destroy()
  472. laWeld:Destroy()
  473. attack = false
  474. end
  475. if key == "y" then
  476. attack = true
  477. character:MoveTo(mouse.Hit.p + Vector3.new(0,1,0))
  478. wait(3)
  479. attack = false
  480. end
  481. if key == "u" then
  482. attack = true
  483. local prt = Instance.new("Part",workspace)
  484. prt:BreakJoints()
  485. prt.CanCollide = false
  486. prt.Anchored = true
  487. prt.Shape = Enum.PartType.Ball
  488. prt.Name = "Fireball"
  489. prt.Size = Vector3.new(1)
  490. prt.BrickColor = BrickColor.new(255,0,0)
  491. prt.Material = Enum.Material.Neon
  492. prt.Transparency = 0
  493. prt.Position = mouse.Hit.p
  494.  
  495. wait(2)
  496.  
  497. local tService = game:GetService("TweenService")
  498. local info = TweenInfo.new(3,Enum.EasingStyle.Bounce,Enum.EasingDirection.In)
  499.  
  500. local goal = {}
  501. goal.Size = Vector3.new(500,500,500)
  502. goal.Color = Color3.fromRGB(255,255,0)
  503. goal.Transparency = 1
  504.  
  505. local tw = tService:Create(prt,info,goal)
  506. tw:Play()
  507. prt.Touched:Connect(function(hit)
  508. local humn = hit.Parent:FindFirstChildOfClass("Humanoid")
  509. if humn and humn.Health > 0 then
  510. if hit:IsDescendantOf(character) then return end
  511. local findAlreadyHit = humn.Parent:FindFirstChildOfClass("ObjectValue")
  512. if not findAlreadyHit then
  513. Instance.new("ObjectValue",humn.Parent).Name = "wtf"
  514. humn:TakeDamage(math.random(75,99))
  515. wait(4)
  516. humn.Parent:FindFirstChildOfClass("ObjectValue"):Destroy()
  517. else
  518. --nothing
  519. end
  520. end
  521. end)
  522. wait(5)
  523. prt:Destroy()
  524. wait(2)
  525. attack = false
  526. end
  527. end)
  528.  
  529. -----------------------END OF SCRIPT----------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement