Advertisement
aaaay63746

NEW WORLD FE

Mar 25th, 2020
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 58.18 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")
  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 30 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/30) 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. --[[Nocturna_A._Alteriano_Night.Owl.Inc]]--
  85. --[[the different world by Windowsxd_Infinite
  86. __ __ __ __
  87. /\ \ __/\ \ __ /\ \ /\ \
  88. \ \ \/\ \ \ \/\_\ ___ \_\ \ ___ __ __ __ ____ __ _ \_\ \
  89. \ \ \ \ \ \ \/\ \ /' _ `\ /'_` \ / __`\/\ \/\ \/\ \ /',__\/\ \/'\ /'_` \
  90. \ \ \_/ \_\ \ \ \/\ \/\ \/\ \L\ \/\ \L\ \ \ \_/ \_/ \/\__, `\/> <//\ \L\ \
  91. \ `\___x___/\ \_\ \_\ \_\ \___,_\ \____/\ \___x___/'\/\____//\_/\_\ \___,_\
  92. '\/__//__/ \/_/\/_/\/_/\/__,_ /\/___/ \/__//__/ \/___/ \//\/_/\/__,_ /
  93. ]]
  94. wait(1 / 60)
  95. Effects = { }
  96. script.Name = 'different world'
  97. local Player = owner
  98. local Character = Player.Character
  99.  
  100. local Humanoid = Character:FindFirstChildOfClass('Humanoid')
  101. local hum = Humanoid
  102. local jumppower = 150
  103. local LeftArm = Character["Left Arm"]
  104. local RightArm = Character["Right Arm"]
  105. local LeftLeg = Character["Left Leg"]
  106. local RightLeg = Character["Right Leg"]
  107. local Head = Character.Head
  108. local Torso = Character.Torso
  109. local limited = false
  110. local Camera = game.Workspace.CurrentCamera
  111. local cmon = false
  112. local dying = false
  113. local RootPart = Character.HumanoidRootPart
  114. local RootJoint = RootPart.RootJoint
  115. local jumping = false
  116. local attack = false
  117. local Anim = 'Idle'
  118. local nomusic = false
  119. local soundid = '804615998'
  120. local pit = 1
  121. local form = false
  122. local gunout = false
  123. local attacktype = 1
  124. local amount = 12
  125. local par = Head
  126. if limited == false then
  127. amount = math.huge
  128. end
  129.  
  130. print(amount..' is the maximum amount of lasers')
  131. local bullets = amount
  132. local kicking = false
  133. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  134. local velocity = RootPart.Velocity.y
  135. local sine = 0
  136. local change = 1
  137. local Create = LoadLibrary("RbxUtility").Create
  138.  
  139. local col = Character['Body Colors']
  140. New = function(Object, Parent, Name, Data)
  141. local Object = Instance.new(Object)
  142. for Index, Value in pairs(Data or {}) do
  143. Object[Index] = Value
  144. end
  145. Object.Parent = Parent
  146. Object.Name = Name
  147. return Object
  148. end
  149. for i, v in pairs(Character:GetChildren()) do
  150. if v:IsA("Accessory") then
  151. v:Destroy()
  152. end
  153. end
  154.  
  155. Head:WaitForChild('face', true):Destroy()
  156. Mesh = New("SpecialMesh",LeftLeg,"Mesh",{Offset = Vector3.new(0.100000001, 0, -0.100000001),MeshId = "rbxassetid://1875778314",MeshType = Enum.MeshType.FileMesh,})
  157. Mesh = New("SpecialMesh",LeftArm,"Mesh",{MeshId = "rbxassetid://1875724217",MeshType = Enum.MeshType.FileMesh,})
  158. Mesh = New("SpecialMesh",RightArm,"Mesh",{MeshId = "rbxassetid://1875724217",MeshType = Enum.MeshType.FileMesh,})
  159. Mesh = New("SpecialMesh",Torso,"Mesh",{Offset = Vector3.new(0, 0.0599999987, 0),MeshId = "rbxassetid://1875749311",MeshType = Enum.MeshType.FileMesh,})
  160. Mesh = New("SpecialMesh",RightLeg,"Mesh",{Offset = Vector3.new(-0.100000001, 0, -0.100000001),MeshId = "rbxassetid://1875778314",MeshType = Enum.MeshType.FileMesh,})
  161. Mesh = New("SpecialMesh",Head,"Mesh",{Scale = Vector3.new(0.5, 1, 1),MeshId = "rbxassetid://0",MeshType = Enum.MeshType.Brick,})
  162.  
  163. decals = function()
  164. Decal = New("Decal",Head,"Decal",{Texture = "http://www.roblox.com/asset/?id=1901415828",})
  165. Decal = New("Decal",Head,"Decal",{Face = Enum.NormalId.Top,Texture = "http://www.roblox.com/asset/?id=1901488661",})
  166. Decal = New("Decal",Head,"Decal",{Face = Enum.NormalId.Left,Texture = "http://www.roblox.com/asset/?id=1901527294",})
  167. Decal = New("Decal",Head,"Decal",{Face = Enum.NormalId.Back,Texture = "http://www.roblox.com/asset/?id=1901566530",})
  168. end
  169. --[[
  170. gun = New("Part",RightArm,"gun",{Size = Vector3.new(0.359999955, 0.340000063, 0.409999967),Transparency = 1,CFrame = CFrame.new(1.55999994, 1.82999897, -0.115000002, 1, 0, 0, 0, 0, 1, 0, -1, 0),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  171. Mesh = New("SpecialMesh",gun,"Mesh",{Offset = Vector3.new(0, 0.2, -0.5),Scale = Vector3.new(0.6, 0.6, 0.6),MeshId = "rbxassetid://542124581",TextureId = "rbxassetid://542125034",MeshType = Enum.MeshType.FileMesh,})
  172. mot = New("Weld",gun,"mot",{Part0 = gun,Part1 = RightArm,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 1, 0),C1 = CFrame.new(0.0599999428, -1.17000008, 0.0149999931, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  173. ]]
  174. gun = New("Part",RightArm,"gun",{CanCollide = false,Transparency = 1,Size = Vector3.new(0.359999955, 0.340000063, 0.409999967),CFrame = CFrame.new(1.55999994, 1.82999992, 0.0149999931, 1, 0, 0, 0, 0, 1, 0, -1, 0),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  175. Mesh = New("SpecialMesh",gun,"Mesh",{Offset = Vector3.new(0, 0.200000003, -0.5),Scale = Vector3.new(0.600000024, 0.600000024, 0.600000024),MeshId = "rbxassetid://542124581",TextureId = "rbxassetid://542125034",MeshType = Enum.MeshType.FileMesh,})
  176. mot = New("Weld",gun,"mot",{Part0 = gun,Part1 = RightArm,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 1, 0),C1 = CFrame.new(0.0599999428, -1.17000008, 0.0149999931, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  177. tip = New("Part",RightArm,"tip",{CanCollide = false,Transparency = 1,Transparency = 1,Size = Vector3.new(0.359999955, 0.340000063, 0.409999967),CFrame = CFrame.new(1.55999994, 0.0300002098, -0.675000012, 1, 0, 0, 0, 0, 1, 0, -1, 0),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  178. mot = New("Weld",tip,"mot",{Part0 = tip,Part1 = RightArm,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 1, 0),C1 = CFrame.new(0.0599999428, -2.96999979, -0.675000012, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  179.  
  180. coroutine.wrap(function()
  181. RightLeg.Touched:connect(function(prt)
  182. if prt.Name == 'extra' and prt.ClassName == 'Part' then
  183. local thing = prt:WaitForChild('amount')
  184. if thing ~= nil and thing.Value < 50 then
  185. print('added '.. thing.Value ..' extra energy')
  186. bullets = bullets + thing.Value
  187. prt:Destroy()
  188. end
  189. end
  190. end)
  191. --dab
  192. end)()
  193.  
  194.  
  195.  
  196. col.HeadColor = BrickColor.new('Medium stone grey')
  197. col.LeftArmColor = BrickColor.new('Medium stone grey')
  198. col.RightArmColor = BrickColor.new('Medium stone grey')
  199. col.LeftLegColor = BrickColor.new('Medium stone grey')
  200. col.RightLegColor = BrickColor.new('Medium stone grey')
  201. col.TorsoColor = BrickColor.new('Toothpaste')
  202.  
  203. local ff = Instance.new('ForceField', Character)
  204. ff.Visible = false
  205.  
  206. hum.Name = '32ytd7284y6985y24805yn2839n5298'
  207. hum.MaxHealth = 1000
  208. wait()
  209. hum.Health = 1000
  210. function startm()
  211. if nomusic == false then
  212. local b = Instance.new('Sound', par)
  213. b.SoundId = 'rbxassetid://' ..soundid
  214. b.Looped = true
  215. b.Volume = 3
  216. b.Name = 'lol'
  217. b.Pitch = pit
  218. b:Play()
  219. coroutine.wrap(function()
  220. while true do
  221. timepos = b.TimePosition
  222. if par:FindFirstChild("lol") == nil then
  223. local b = Instance.new('Sound', par)
  224. b.SoundId = 'rbxassetid://'..soundid
  225. b.Looped = true
  226. b.Name = 'lol'
  227. b.Volume = 3
  228. b.Pitch = pit
  229. b.TimePosition = timepos
  230. b:Play()
  231. end
  232. wait()
  233. end
  234. end)()
  235. end
  236. end
  237. local m = Create("Model"){
  238. Parent = Character,
  239. Name = "WeaponModel",
  240. }
  241.  
  242. Humanoid.Animator.Parent = nil
  243. Character.Animate.Parent = nil
  244.  
  245. local newMotor = function(part0, part1, c0, c1)
  246. local w = Create('Motor'){
  247. Parent = part0,
  248. Part0 = part0,
  249. Part1 = part1,
  250. C0 = c0,
  251. C1 = c1,
  252. }
  253. return w
  254. end
  255.  
  256. function clerp(a, b, t)
  257. return a:lerp(b, t)
  258. end
  259.  
  260. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  261. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  262.  
  263. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  264. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  265. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  266. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  267. RootJoint.C1 = CFrame.new(0, 0, 0)
  268. RootJoint.C0 = CFrame.new(0, 0, 0)
  269. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  270. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  271.  
  272. local rarmc1 = RW.C1
  273. local larmc1 = LW.C1
  274. local rlegc1 = RH.C1
  275. local llegc1 = LH.C1
  276.  
  277. local resetc1 = false
  278.  
  279. function PlayAnimationFromTable(table, speed, bool)
  280. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  281. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  282. RW.C0 = clerp(RW.C0, table[3], speed)
  283. LW.C0 = clerp(LW.C0, table[4], speed)
  284. RH.C0 = clerp(RH.C0, table[5], speed)
  285. LH.C0 = clerp(LH.C0, table[6], speed)
  286. if bool == true then
  287. if resetc1 == false then
  288. resetc1 = true
  289. RootJoint.C1 = RootJoint.C1
  290. Torso.Neck.C1 = Torso.Neck.C1
  291. RW.C1 = rarmc1
  292. LW.C1 = larmc1
  293. RH.C1 = rlegc1
  294. LH.C1 = llegc1
  295. end
  296. end
  297. end
  298.  
  299. ArtificialHB = Create("BindableEvent", script){
  300. Parent = script,
  301. Name = "Heartbeat",
  302. }
  303.  
  304. script:WaitForChild("Heartbeat")
  305.  
  306. frame = 1 / 60
  307. tf = 0
  308. allowframeloss = false
  309. tossremainder = false
  310. lastframe = tick()
  311. script.Heartbeat:Fire()
  312.  
  313. game:GetService("RunService").Heartbeat:connect(function(s, p)
  314. tf = tf + s
  315. if tf >= frame then
  316. if allowframeloss then
  317. script.Heartbeat:Fire()
  318. lastframe = tick()
  319. else
  320. for i = 1, math.floor(tf / frame) do
  321. script.Heartbeat:Fire()
  322. end
  323. lastframe = tick()
  324. end
  325. if tossremainder then
  326. tf = 0
  327. else
  328. tf = tf - frame * math.floor(tf / frame)
  329. end
  330. end
  331. end)
  332.  
  333. function swait(num)
  334. if num == 0 or num == nil then
  335. ArtificialHB.Event:wait()
  336. else
  337. for i = 0, num do
  338. ArtificialHB.Event:wait()
  339. end
  340. end
  341. end
  342.  
  343. function RemoveOutlines(part)
  344. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  345. end
  346.  
  347. CFuncs = {
  348. ["Part"] = {
  349. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  350. local Part = Create("Part"){
  351. Parent = Parent,
  352. Reflectance = Reflectance,
  353. Transparency = Transparency,
  354. CanCollide = false,
  355. Locked = true,
  356. BrickColor = BrickColor.new(tostring(BColor)),
  357. Name = Name,
  358. Size = Size,
  359. Material = Material,
  360. }
  361. RemoveOutlines(Part)
  362. return Part
  363. end;
  364. };
  365.  
  366. ["Mesh"] = {
  367. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  368. local Msh = Create(Mesh){
  369. Parent = Part,
  370. Offset = OffSet,
  371. Scale = Scale,
  372. }
  373. if Mesh == "SpecialMesh" then
  374. Msh.MeshType = MeshType
  375. Msh.MeshId = MeshId
  376. end
  377. return Msh
  378. end;
  379. };
  380.  
  381. ["Mesh"] = {
  382. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  383. local Msh = Create(Mesh){
  384. Parent = Part,
  385. Offset = OffSet,
  386. Scale = Scale,
  387. }
  388. if Mesh == "SpecialMesh" then
  389. Msh.MeshType = MeshType
  390. Msh.MeshId = MeshId
  391. end
  392. return Msh
  393. end;
  394. };
  395.  
  396. ["Weld"] = {
  397. Create = function(Parent, Part0, Part1, C0, C1)
  398. local Weld = Create("Weld"){
  399. Parent = Parent,
  400. Part0 = Part0,
  401. Part1 = Part1,
  402. C0 = C0,
  403. C1 = C1,
  404. }
  405. return Weld
  406. end;
  407. };
  408.  
  409. ["Sound"] = {
  410. Create = function(id, par, vol, pit)
  411. coroutine.resume(coroutine.create(function()
  412. local S = Create("Sound"){
  413. Volume = vol,
  414. Pitch = pit or 1,
  415. SoundId = id,
  416. Parent = par or workspace,
  417. }
  418. wait()
  419. S:play()
  420. game:GetService("Debris"):AddItem(S, 6)
  421. end))
  422. end;
  423. };
  424.  
  425. ["ParticleEmitter"] = {
  426. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  427. local fp = Create("ParticleEmitter"){
  428. Parent = Parent,
  429. Color = ColorSequence.new(Color1, Color2),
  430. LightEmission = LightEmission,
  431. Size = Size,
  432. Texture = Texture,
  433. Transparency = Transparency,
  434. ZOffset = ZOffset,
  435. Acceleration = Accel,
  436. Drag = Drag,
  437. LockedToPart = LockedToPart,
  438. VelocityInheritance = VelocityInheritance,
  439. EmissionDirection = EmissionDirection,
  440. Enabled = Enabled,
  441. Lifetime = LifeTime,
  442. Rate = Rate,
  443. Rotation = Rotation,
  444. RotSpeed = RotSpeed,
  445. Speed = Speed,
  446. VelocitySpread = VelocitySpread,
  447. }
  448. return fp
  449. end;
  450. };
  451.  
  452. CreateTemplate = {
  453.  
  454. };
  455. }
  456.  
  457. function rayCast(Position, Direction, Range, Ignore)
  458. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  459. end
  460.  
  461. FindNearestTorso = function(pos)
  462. local list = (game.Workspace:children())
  463. local torso = nil
  464. local dist = 1000
  465. local temp, human, temp2 = nil, nil, nil
  466. for x = 1, #list do
  467. temp2 = list[x]
  468. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  469. temp = temp2:findFirstChild("Torso")
  470. human = temp2:findFirstChild("Humanoid")
  471. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  472. local dohit = true
  473. if dohit == true then
  474. torso = temp
  475. dist = (temp.Position - pos).magnitude
  476. end
  477. end
  478. end
  479. end
  480. return torso, dist
  481. end
  482.  
  483. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  484. if hit.Parent == nil then
  485. return
  486. end
  487. local h = hit.Parent:FindFirstChild("Humanoid")
  488. for _, v in pairs(hit.Parent:children()) do
  489. if v:IsA("Humanoid") then
  490. h = v
  491. end
  492. end
  493. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  494. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  495. if hit.Parent.DebounceHit.Value == true then
  496. return
  497. end
  498. end
  499. local c = Create("ObjectValue"){
  500. Name = "creator",
  501. Value = game:service("Players").LocalPlayer,
  502. Parent = h,
  503. }
  504. game:GetService("Debris"):AddItem(c, .5)
  505. if HitSound ~= nil and HitPitch ~= nil then
  506. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  507. end
  508. local Damage = math.random(minim, maxim)
  509. local blocked = false
  510. local block = hit.Parent:findFirstChild("Block")
  511. if block ~= nil then
  512. if block.className == "IntValue" then
  513. if block.Value > 0 then
  514. blocked = true
  515. block.Value = block.Value - 1
  516. print(block.Value)
  517. end
  518. end
  519. end
  520. if blocked == false then
  521. h.Health = h.Health - Damage
  522. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
  523. else
  524. h.Health = h.Health - (Damage / 2)
  525. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
  526. end
  527. if Type == "Knockdown" then
  528. local hum = hit.Parent.Humanoid
  529. hum.PlatformStand = true
  530. coroutine.resume(coroutine.create(function(HHumanoid)
  531. swait(1)
  532. HHumanoid.PlatformStand = false
  533. end), hum)
  534. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  535. local bodvol = Create("BodyVelocity"){
  536. velocity = angle * knockback,
  537. P = 5000,
  538. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  539. Parent = hit,
  540. }
  541. local rl = Create("BodyAngularVelocity"){
  542. P = 3000,
  543. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  544. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  545. Parent = hit,
  546. }
  547. game:GetService("Debris"):AddItem(bodvol, .5)
  548. game:GetService("Debris"):AddItem(rl, .5)
  549. elseif Type == "Normal" then
  550. local vp = Create("BodyVelocity"){
  551. P = 500,
  552. maxForce = Vector3.new(math.huge, 0, math.huge),
  553. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  554. }
  555. if knockback > 0 then
  556. vp.Parent = hit.Parent.Torso
  557. end
  558. game:GetService("Debris"):AddItem(vp, .5)
  559. elseif Type == "Up" then
  560. local bodyVelocity = Create("BodyVelocity"){
  561. velocity = Vector3.new(0, 20, 0),
  562. P = 5000,
  563. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  564. Parent = hit,
  565. }
  566. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  567. elseif Type == "DarkUp" then
  568. coroutine.resume(coroutine.create(function()
  569. for i = 0, 1, 0.1 do
  570. swait()
  571. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 25, 25, 25, 1, 1, 1, .08, 1)
  572. end
  573. end))
  574. local bodyVelocity = Create("BodyVelocity"){
  575. velocity = Vector3.new(0, 20, 0),
  576. P = 5000,
  577. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  578. Parent = hit,
  579. }
  580. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  581. elseif Type == "Snare" then
  582. local bp = Create("BodyPosition"){
  583. P = 2000,
  584. D = 100,
  585. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  586. position = hit.Parent.Torso.Position,
  587. Parent = hit.Parent.Torso,
  588. }
  589. game:GetService("Debris"):AddItem(bp, 1)
  590. elseif Type == "Freeze" then
  591. local BodPos = Create("BodyPosition"){
  592. P = 50000,
  593. D = 1000,
  594. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  595. position = hit.Parent.Torso.Position,
  596. Parent = hit.Parent.Torso,
  597. }
  598. local BodGy = Create("BodyGyro") {
  599. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  600. P = 20e+003,
  601. Parent = hit.Parent.Torso,
  602. cframe = hit.Parent.Torso.CFrame,
  603. }
  604. hit.Parent.Torso.Anchored = true
  605. coroutine.resume(coroutine.create(function(Part)
  606. swait(1.5)
  607. Part.Anchored = false
  608. end), hit.Parent.Torso)
  609. game:GetService("Debris"):AddItem(BodPos, 3)
  610. game:GetService("Debris"):AddItem(BodGy, 3)
  611. end
  612. local debounce = Create("BoolValue"){
  613. Name = "DebounceHit",
  614. Parent = hit.Parent,
  615. Value = true,
  616. }
  617. game:GetService("Debris"):AddItem(debounce, Delay)
  618. c = Create("ObjectValue"){
  619. Name = "creator",
  620. Value = Player,
  621. Parent = h,
  622. }
  623. game:GetService("Debris"):AddItem(c, .5)
  624. end
  625. end
  626.  
  627. function ShowDamage(Pos, Text, Time, Color, wid)
  628. local Rate = (1 / 30)
  629. local Pos = (Pos or Vector3.new(0, 0, 0))
  630. local Text = (Text or "")
  631. local wid = (wid or 1)
  632. local Time = (Time or 2)
  633. local Color = (Color or Color3.new(1, 0, 1))
  634. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  635. EffectPart.Anchored = true
  636. local BillboardGui = Create("BillboardGui"){
  637. Size = UDim2.new(5, 0, 5, 0),
  638. Adornee = EffectPart,
  639. Parent = EffectPart,
  640. }
  641. local TextLabel = Create("TextLabel"){
  642. BackgroundTransparency = 1,
  643. Size = UDim2.new(1, 0, 1, 0),
  644. Text = Text,
  645. Font = "Arcade",
  646. TextColor3 = Color,
  647. TextScaled = true,
  648. Parent = BillboardGui,
  649. }
  650. game.Debris:AddItem(EffectPart, (Time))
  651. EffectPart.Parent = game:GetService("Workspace")
  652. delay(0, function()
  653. local Frames = (Time / Rate)
  654. for Frame = 1, Frames do
  655. wait(Rate)
  656. local Percent = (Frame / Frames)
  657. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  658. TextLabel.TextTransparency = Percent
  659. end
  660. if EffectPart and EffectPart.Parent then
  661. EffectPart:Destroy()
  662. end
  663. end)
  664. end
  665.  
  666. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  667. for _, c in pairs(workspace:children()) do
  668. local hum = c:findFirstChildOfClass("Humanoid")
  669. if hum ~= nil then
  670. local head = c:findFirstChild("Head")
  671. if head ~= nil then
  672. local targ = head.Position - Part.Position
  673. local mag = targ.magnitude
  674. if mag <= Magnitude and c.Name ~= Player.Name then
  675. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
  676. end
  677. end
  678. end
  679. end
  680. end
  681.  
  682. EffectModel = Create("Model"){
  683. Parent = Character,
  684. Name = "Effects",
  685. }
  686.  
  687. Effects = {
  688. Block = {
  689. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  690. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  691. prt.Anchored = true
  692. prt.CFrame = cframe
  693. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  694. game:GetService("Debris"):AddItem(prt, 10)
  695. if Type == 1 or Type == nil then
  696. table.insert(Effects, {
  697. prt,
  698. "Block1",
  699. delay,
  700. x3,
  701. y3,
  702. z3,
  703. msh
  704. })
  705. elseif Type == 2 then
  706. table.insert(Effects, {
  707. prt,
  708. "Block2",
  709. delay,
  710. x3,
  711. y3,
  712. z3,
  713. msh
  714. })
  715. end
  716. end;
  717. };
  718.  
  719. Implode = {
  720. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  721. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  722. prt.Anchored = true
  723. prt.CFrame = cframe
  724. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  725. game:GetService("Debris"):AddItem(prt, 10)
  726. if Type == 1 or Type == nil then
  727. table.insert(Effects, {
  728. prt,
  729. "Block1",
  730. delay,
  731. x3,
  732. y3,
  733. z3,
  734. msh
  735. })
  736. elseif Type == 2 then
  737. table.insert(Effects, {
  738. prt,
  739. "Block2",
  740. delay,
  741. x3,
  742. y3,
  743. z3,
  744. msh
  745. })
  746. end
  747. end;
  748. };
  749.  
  750. Cylinder = {
  751. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  752. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  753. prt.Anchored = true
  754. prt.CFrame = cframe
  755. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  756. game:GetService("Debris"):AddItem(prt, 10)
  757. table.insert(Effects, {
  758. prt,
  759. "Cylinder",
  760. delay,
  761. x3,
  762. y3,
  763. z3,
  764. msh
  765. })
  766. end;
  767. };
  768. Rect = {
  769. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  770. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  771. prt.Anchored = true
  772. prt.CFrame = cframe
  773. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  774. game:GetService("Debris"):AddItem(prt, 10)
  775. table.insert(Effects, {
  776. prt,
  777. "Cylinder",
  778. delay,
  779. x3,
  780. y3,
  781. z3,
  782. msh
  783. })
  784. end;
  785. };
  786.  
  787. Head = {
  788. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  789. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  790. prt.Anchored = true
  791. prt.CFrame = cframe
  792. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  793. game:GetService("Debris"):AddItem(prt, 10)
  794. table.insert(Effects, {
  795. prt,
  796. "Cylinder",
  797. delay,
  798. x3,
  799. y3,
  800. z3,
  801. msh
  802. })
  803. end;
  804. };
  805.  
  806. Sphere = {
  807. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  808. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  809. prt.Anchored = true
  810. prt.CFrame = cframe
  811. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  812. game:GetService("Debris"):AddItem(prt, 10)
  813. table.insert(Effects, {
  814. prt,
  815. "Cylinder",
  816. delay,
  817. x3,
  818. y3,
  819. z3,
  820. msh
  821. })
  822. end;
  823. };
  824.  
  825. Elect = {
  826. Create = function(cff, x, y, z)
  827. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  828. prt.Anchored = true
  829. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  830. prt.CFrame = CFrame.new(prt.Position)
  831. game:GetService("Debris"):AddItem(prt, 2)
  832. local xval = math.random() / 2
  833. local yval = math.random() / 2
  834. local zval = math.random() / 2
  835. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  836. table.insert(Effects, {
  837. prt,
  838. "Elec",
  839. 0.1,
  840. x,
  841. y,
  842. z,
  843. xval,
  844. yval,
  845. zval
  846. })
  847. end;
  848.  
  849. };
  850.  
  851. Ring = {
  852. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  853. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  854. prt.Anchored = true
  855. prt.CFrame = cframe
  856. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  857. game:GetService("Debris"):AddItem(prt, 10)
  858. table.insert(Effects, {
  859. prt,
  860. "Cylinder",
  861. delay,
  862. x3,
  863. y3,
  864. z3,
  865. msh
  866. })
  867. end;
  868. };
  869.  
  870.  
  871. Wave = {
  872. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  873. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  874. prt.Anchored = true
  875. prt.CFrame = cframe
  876. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  877. game:GetService("Debris"):AddItem(prt, 10)
  878. table.insert(Effects, {
  879. prt,
  880. "Cylinder",
  881. delay,
  882. x3,
  883. y3,
  884. z3,
  885. msh
  886. })
  887. end;
  888. };
  889.  
  890. Break = {
  891. Create = function(brickcolor, cframe, x1, y1, z1)
  892. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  893. prt.Anchored = true
  894. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  895. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  896. local num = math.random(10, 50) / 1000
  897. game:GetService("Debris"):AddItem(prt, 10)
  898. table.insert(Effects, {
  899. prt,
  900. "Shatter",
  901. num,
  902. prt.CFrame,
  903. math.random() - math.random(),
  904. 0,
  905. math.random(50, 100) / 100
  906. })
  907. end;
  908. };
  909.  
  910. Fire = {
  911. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  912. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  913. prt.Anchored = true
  914. prt.CFrame = cframe
  915. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  916. game:GetService("Debris"):AddItem(prt, 10)
  917. table.insert(Effects, {
  918. prt,
  919. "Fire",
  920. delay,
  921. 1,
  922. 1,
  923. 1,
  924. msh
  925. })
  926. end;
  927. };
  928.  
  929. FireWave = {
  930. Create = function(brickcolor, cframe, x1, y1, z1)
  931. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  932. prt.Anchored = true
  933. prt.CFrame = cframe
  934. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  935. local d = Create("Decal"){
  936. Parent = prt,
  937. Texture = "rbxassetid://26356434",
  938. Face = "Top",
  939. }
  940. local d = Create("Decal"){
  941. Parent = prt,
  942. Texture = "rbxassetid://26356434",
  943. Face = "Bottom",
  944. }
  945. game:GetService("Debris"):AddItem(prt, 10)
  946. table.insert(Effects, {
  947. prt,
  948. "FireWave",
  949. 1,
  950. 30,
  951. math.random(400, 600) / 100,
  952. msh
  953. })
  954. end;
  955. };
  956.  
  957. Lightning = {
  958. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  959. local magz = (p0 - p1).magnitude
  960. local curpos = p0
  961. local trz = {
  962. -ofs,
  963. ofs
  964. }
  965. for i = 1, tym do
  966. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  967. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  968. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  969. li.Material = "Neon"
  970. if tym == i then
  971. local magz2 = (curpos - p1).magnitude
  972. li.Size = Vector3.new(th, th, magz2)
  973. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  974. table.insert(Effects, {
  975. li,
  976. "Disappear",
  977. last
  978. })
  979. else
  980. do
  981. do
  982. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  983. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  984. game.Debris:AddItem(li, 10)
  985. table.insert(Effects, {
  986. li,
  987. "Disappear",
  988. last
  989. })
  990. end
  991. end
  992. end
  993. end
  994. end
  995. };
  996.  
  997. EffectTemplate = {
  998.  
  999. };
  1000. }
  1001. script.Name = 'different world'
  1002. local speed = 15
  1003.  
  1004. local anims = {
  1005. punch1 = {
  1006. play = function()
  1007. for i = 0, 1, 0.1 do
  1008. swait()
  1009. PlayAnimationFromTable({
  1010. CFrame.new(-0.0107449368, -0.216572553, 0.265849799, 0.950212896, -0.0244924892, 0.310632408, 1.02195258e-07, 0.996908247, 0.0786035731, -0.311596483, -0.0746901631, 0.947272837) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1011. CFrame.new(0.0950279012, 1.517524, -0.082502462, 0.920527458, 0.0699283779, -0.384364873, -0.0458012633, 0.996384859, 0.0715831444, 0.387980074, -0.0482893325, 0.920400321) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1012. CFrame.new(1.38422894, 0.673871636, -0.86930716, 0.929277241, -0.323129416, -0.178972647, -0.235611483, -0.145362675, -0.960914612, 0.28448388, 0.935124099, -0.211215228) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1013. CFrame.new(-1.23638797, 0.32926473, -0.458237767, 0.867408514, 0.318191469, -0.382565975, -0.477318794, 0.314822704, -0.82039845, -0.140603334, 0.894226551, 0.424958616) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1014. CFrame.new(0.607390761, -1.89009023, -0.202257693, 0.997992873, -0.0622570924, 0.0115969777, 0.0631325841, 0.963713706, -0.25936541, 0.00497117639, 0.259576976, 0.965709627) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1015. CFrame.new(-0.604592323, -1.83469141, 0.0555542186, 0.99391377, 0.10894423, 0.0163347721, -0.109823957, 0.991517901, 0.0695070401, -0.00862380862, -0.0708779395, 0.997447789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1016. }, .3, false)
  1017. end
  1018. end
  1019. };
  1020. ball = {
  1021. play = function()
  1022. for i = 0, 1, 0.1 do
  1023. swait()
  1024. PlayAnimationFromTable({
  1025. CFrame.new(-2.86102272e-06, 1.71999931, -6.86055819e-06, 1, 4.7224965e-22, -4.37113883e-08, -1.95405131e-14, 1.00000751, -4.47034836e-07, 4.37117151e-08, 4.47034836e-07, 1.00000751) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1026. CFrame.new(2.85228111e-06, 1.35999703, -0.199992567, 1, -1.53786814e-08, 4.09167669e-08, 0, 0.936066508, 0.35182327, -4.37113883e-08, -0.351823241, 0.936066508) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1027. CFrame.new(0.840003788, 0.460014343, -0.810002446, 0.704639971, 0.675280571, 0.217897713, 0.044140093, 0.26477614, -0.963299215, -0.708191872, 0.688397229, 0.156764656) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1028. CFrame.new(-0.839995861, 0.529998541, -0.750000954, 0.729142547, -0.631132126, -0.264619231, -0.230401143, 0.137709707, -0.963302374, 0.644411743, 0.763353288, -0.045003552) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1029. CFrame.new(0.57000345, -0.669976175, -1.2000035, 0.999722004, -0.0225840099, 0.00678592594, 0.0235446021, 0.972025096, -0.2336943, -0.00131833623, 0.233789101, 0.972286463) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1030. CFrame.new(-0.439997494, -0.69998008, -1.14999986, 0.999720931, -0.0226266459, 0.0067881369, 0.0235864632, 0.972043037, -0.233615071, -0.00131243642, 0.233709991, 0.972305417) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1031. }, .3, false)
  1032. end
  1033. end
  1034. };
  1035. smash = {
  1036. play = function()
  1037. for i = 0, 1, 0.1 do
  1038. swait()
  1039. PlayAnimationFromTable({
  1040. CFrame.new(1.94293195e-21, -1.11999965, -0.549994707, 1, 2.44334653e-21, -3.80156538e-21, -4.72245409e-22, 0.893125892, 0.449806929, 4.49431016e-21, -0.449806929, 0.893125892) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1041. CFrame.new(0, 1.5119648, -0.134260774, 1, 0, 0, 0, 0.940229893, 0.34054032, 0, -0.34054032, 0.940229893) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1042. CFrame.new(1.5, -0.235795826, -0.421078861, 1, -4.72245409e-22, 4.49431016e-21, 2.44334653e-21, 0.893125892, -0.449806929, -3.80156538e-21, 0.449806929, 0.893125892) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1043. CFrame.new(-1.5, 0.110703774, 0.380448788, 1, 0, 0, 0, 0.830427766, 0.557126522, 0, -0.557126522, 0.830427766) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1044. CFrame.new(0.5, -1.47771955, 0.666540802, 1, 0, 0, 0, 0.850484967, 0.525999546, 0, -0.525999546, 0.850484967) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1045. CFrame.new(-0.5, -0.623993754, -0.717353463, 1, -4.72245409e-22, 4.49431016e-21, 2.44334653e-21, 0.893125892, -0.449806929, -3.80156538e-21, 0.449806929, 0.893125892) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1046. }, .3, false)
  1047. end
  1048. end
  1049. };
  1050. punch2 = {
  1051. play = function()
  1052. for i = 0, 1, 0.1 do
  1053. swait()
  1054. PlayAnimationFromTable({
  1055. CFrame.new(-0.0684909746, -0.216571167, 0.000430204906, 0.984477103, 0.0137971267, -0.174969882, 0, 0.996905446, 0.0786102712, 0.175513014, -0.0773900151, 0.98143059) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1056. CFrame.new(0.0175101534, 1.52462602, -0.172688439, 0.984477103, -0.0555305742, 0.166496783, 0.0137971267, 0.970179021, 0.241996571, -0.174969882, -0.2359429, 0.955885291) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1057. CFrame.new(1.48930418, 0.0307573248, -0.473314196, 0.980572164, -0.188258171, 0.0551109985, 0.0806958377, 0.131063491, -0.988084316, 0.17879191, 0.973335207, 0.14370887) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1058. CFrame.new(-1.66090941, 0.636517406, -0.920002699, 0.982567489, 0.185122967, 0.0170512684, 0.0498865768, -0.174197271, -0.9834463, -0.179088235, 0.967153013, -0.180395678) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1059. CFrame.new(0.607360065, -1.89008546, -0.202268928, 0.997992814, -0.0622575581, 0.0115943104, 0.0631323084, 0.963711381, -0.259373635, 0.00497439504, 0.259584963, 0.965707421) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1060. CFrame.new(-0.604580641, -1.83468735, 0.0555345044, 0.993913651, 0.10894455, 0.0163322985, -0.109824024, 0.991518378, 0.0694989488, -0.008622244, -0.070869647, 0.997448444) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1061. }, .3, false)
  1062. end
  1063. end
  1064. };
  1065. kick = {
  1066. play = function()
  1067. for i = 0, 1, 0.1 do
  1068. swait()
  1069. PlayAnimationFromTable({
  1070. CFrame.new(-0.131061807, -0.222323433, 0.0731982589, -0.0407249853, 0.0785460323, -0.996078312, -0.0807319731, 0.993387222, 0.0816345736, 0.995903611, 0.0837399364, -0.0341144986) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1071. CFrame.new(-0.184342384, 1.50759327, -0.00515897386, -0.0407249853, -0.131115511, 0.990530372, 0.0785460323, 0.987864733, 0.133992031, -0.996078312, 0.0832590461, -0.0299321674) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1072. CFrame.new(1.66859376, 0.0138811618, -0.00489595532, 0.981350243, -0.191684797, 0.0144488961, 0.192214325, 0.979416251, -0.0616246685, -0.00233896822, 0.0632526651, 0.997994781) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1073. CFrame.new(-1.27853525, -0.0793156773, -0.463598907, 0.997092485, -0.0716068894, 0.0260639321, 0.0757341236, 0.893313289, -0.443007529, 0.00843913853, 0.44369331, 0.896138966) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1074. CFrame.new(0.705335557, -1.8330934, -0.201769322, 0.989622712, -0.141240016, 0.0264280811, 0.143219218, 0.954648972, -0.261024535, 0.0116375685, 0.262100786, 0.96497035) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1075. CFrame.new(-1.60584366, -1.35878396, 0.133992612, 0.166210294, 0.970306695, 0.175724834, -0.985117137, 0.171303824, -0.0141165629, -0.0437997244, -0.170763195, 0.984338164) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1076. }, .3, false)
  1077. end
  1078. end
  1079. };
  1080. idle = {
  1081. play = function()
  1082. PlayAnimationFromTable({
  1083. CFrame.new(-0.14138256, -0.216571495, 0.237950996, 0.77377969, 0.0497951508, -0.631494582, 0, 0.996905565, 0.0786088556, 0.63345474, -0.0608259365, 0.771385252) * CFrame.new(0, 0 - 0.1 * math.cos(sine/speed), 0) * CFrame.Angles(0, 0, 0),
  1084. CFrame.new(-2.36225314e-05, 1.52129841, -0.130490974, 0.824229062, -0.0689957589, 0.562037528, 0.0293807425, 0.996423066, 0.0792340413, -0.565493941, -0.0487939045, 0.823307931) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + 0.1 * math.cos(sine/speed), 0, 0),
  1085. CFrame.new(1.04215145, 0.583002925, -0.988996744, 0.927035332, 0.248969361, -0.280392349, -0.0585250594, -0.642532051, -0.764020622, -0.370378822, 0.72468406, -0.581078827) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + 0.1 * math.cos(sine/speed), 0 + 0.1 * math.cos(sine/speed), 0),
  1086. CFrame.new(-1.26441777, 0.322543621, -0.372986406, 0.900779247, 0.295904487, -0.317863494, -0.36590445, 0.122910969, -0.922500432, -0.23390314, 0.947276831, 0.218988389) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + 0.1 * math.cos(sine/speed), 0 + 0.1 * math.cos(sine/speed), 0),
  1087. CFrame.new(0.607379138, -1.89008486, -0.202270091, 0.997992814, -0.0622573122, 0.0115959346, 0.0631324649, 0.963711858, -0.259372175, 0.0049726367, 0.259583652, 0.965707898) * CFrame.new(0, 0 + 0.1 * math.cos(sine/speed), 0) * CFrame.Angles(0, 0, 0),
  1088. CFrame.new(-0.604592443, -1.83468843, 0.0555417985, 0.993913651, 0.108944699, 0.0163314939, -0.109824121, 0.991518497, 0.0694983602, -0.00862157345, -0.0708689541, 0.997448444) * CFrame.new(0, 0 + 0.1 * math.cos(sine/speed), 0) * CFrame.Angles(0, 0, 0),
  1089. }, .3, false)
  1090.  
  1091. end
  1092. };
  1093.  
  1094. walk = {
  1095. play = function()
  1096. PlayAnimationFromTable({
  1097. CFrame.new(0.109261587, -0.173913926, 0.279077232, 0.997577667, -0.0686017871, 0.0115215462, 0.0659179762, 0.985163212, 0.15845634, -0.0222209934, -0.157313049, 0.987298727) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1098. CFrame.new(0.0151925227, 1.53362715, -0.213461131, 0.991616547, 0.0963014811, -0.0861558393, -0.087993823, 0.991530597, 0.0955212787, 0.0946249887, -0.0871393085, 0.991691887) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1099. CFrame.new(1.04216635, 0.58300662, -0.988999605, 0.927035213, 0.248969764, -0.280392677, -0.058524631, -0.642532647, -0.764020205, -0.370379329, 0.724683344, -0.581079423) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1100. CFrame.new(-1.26442409, 0.322548211, -0.372982204, 0.900780141, 0.295904756, -0.317861229, -0.365901619, 0.12290898, -0.922501862, -0.23390463, 0.947277129, 0.21898596) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1101. CFrame.new(0.467722356, -1.88047636, -0.203902811, 0.998356521, 0.0572995394, -0.00115422346, -0.0555915311, 0.963307917, -0.262579054, -0.0139337815, 0.262211591, 0.964909732)* CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 - 35 * math.cos((sine) / 5)), 0, 0),
  1102. CFrame.new(-0.604593396, -1.83468795, 0.0555359796, 0.990936041, 0.124458492, -0.0505571477, -0.120545976, 0.989930212, 0.0742101893, 0.0592841208, -0.0674430802, 0.995960236) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 + 35 * math.cos((sine) / 5)), 0, 0),
  1103. }, .3, false)
  1104. end
  1105. };
  1106.  
  1107. jump = {
  1108. play = function()
  1109. PlayAnimationFromTable({
  1110. CFrame.new(-0, -0.0699987784, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1111. CFrame.new(0, 1.49996114, -0.0999985784, 1, 0, 0, 0, 0.976393402, 0.216000035, 0, -0.216000021, 0.976393461) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1112. CFrame.new(1.96005464, 0.614818871, 0, -0.0459600165, -0.998943329, 0, 0.998943329, -0.0459600128, 0, 0, -0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1113. CFrame.new(-1.95485854, 0.615261137, 0, -0.157674044, 0.98749125, 0, -0.98749125, -0.157674044, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1114. CFrame.new(0.59998256, -1.92995512, 0, 0.99373585, -0.111754626, 0, 0.111754619, 0.993735909, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1115. CFrame.new(-0.510072351, -1.11883473, -0.515735626, 0.993913114, 0.110166967, 0, -0.110166967, 0.993913114, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1116. }, .3, false)
  1117. end
  1118. };
  1119. }
  1120. spawn(function()
  1121. attack = true
  1122. Humanoid.JumpPower = 0
  1123. Humanoid.WalkSpeed = 0
  1124. RightArm.Transparency = 1
  1125. LeftArm.Transparency = 1
  1126. Torso.Transparency = 1
  1127. Head.Transparency = 1
  1128. RightLeg.Transparency = 1
  1129. LeftLeg.Transparency = 1
  1130. anims.smash.play()
  1131. wait(2)
  1132. Effects.Rect.Create(BrickColor.new'Toothpaste',RootPart.CFrame, math.random(200,300), 20000, math.random(200,300), -0.8, -0.8, -0.8, 0.05)
  1133. Humanoid.JumpPower = jumppower
  1134. RightArm.Transparency = 0
  1135. LeftArm.Transparency = 0
  1136. Torso.Transparency = 0
  1137. Head.Transparency = 0
  1138. RightLeg.Transparency = 0
  1139. LeftLeg.Transparency = 0
  1140. Effects.Block.Create(BrickColor.new'Toothpaste', Torso.CFrame, 200, 200, 200, -0.8, -0.8, -0.8, 0.05)
  1141. Effects.Wave.Create(BrickColor.new'Toothpaste', RootPart.CFrame - Vector3.new(0,3,0), 5, 1, 5, 0.1, 0.01, 0.1, 0.06)
  1142.  
  1143. CFuncs['Sound'].Create("rbxassetid://995908246",Torso,10,0.8)
  1144. startm()
  1145. wait(0.5)
  1146. Humanoid.WalkSpeed = 16
  1147. attack = false
  1148. end)
  1149. trans = function()
  1150. form = true
  1151. attack = true
  1152. decals()
  1153. local f = CFuncs['Sound'].Create("rbxassetid://995908246",Torso,10,0.8)
  1154. MagnitudeDamage(RootPart, 20, 10, 20, 10, "Normal", "388826051", 3)
  1155. Effects.Block.Create(BrickColor.new'Toothpaste', Torso.CFrame, 200, 200, 200, 2, 2, 2, 0.05)
  1156. Effects.Wave.Create(BrickColor.new'Toothpaste', RootPart.CFrame - Vector3.new(0,3,0), 8, 1, 8, 0.1, 0.01, 0.1, 0.06)
  1157. pit = 0.9
  1158. if nomusic == false then
  1159. --soundid = '321467240'
  1160. par:WaitForChild'lol':Destroy()
  1161. par = Character
  1162. par:WaitForChild'lol'.Pitch = 0.9
  1163. end
  1164. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.6, 0)), 'Enough!', 1.5, BrickColor.new("Really red").Color,string.len('Enough!')/4)
  1165. hum.MaxHealth = 2000
  1166. wait()
  1167. hum.Health = 2000
  1168. attack = false
  1169. end
  1170. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1171. coroutine.wrap(function()
  1172. while true do wait()
  1173. if form == true and attack == false then
  1174. --RootPart.CFrame*CFrame.new(math.random(-25,25))
  1175. Effects.Block.Create(BrickColor.new'Toothpaste',RootPart.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)), math.random(16,30), math.random(16,30), math.random(16,30), -0.8, -0.8, -0.8, 0.05)
  1176. elseif cmon == true then
  1177.  
  1178. Effects.Block.Create(BrickColor.new'Toothpaste',RootPart.CFrame*CFrame.new(math.random(-25,25),math.random(-25,25),math.random(-25,25)), math.random(200,300), math.random(200,300), math.random(200,300), -0.8, -0.8, -0.8, 0.05)
  1179. Effects.Rect.Create(BrickColor.new'Toothpaste',RootPart.CFrame*CFrame.new(math.random(-200,200),math.random(-200,200),math.random(-200,200)), math.random(200,300), 20000, math.random(200,300), -0.8, -0.8, -0.8, 0.05)
  1180. end
  1181. end
  1182. end)()
  1183. coroutine.wrap(function()
  1184. while true do wait()
  1185. if Humanoid.Health < 500 and form == false and attack == false then
  1186. trans()
  1187. elseif Humanoid.Health < 400 and form == true and attack == false then
  1188. attack = true
  1189. dying = true
  1190. anims.ball.play()
  1191. Humanoid.MaxHealth = math.huge
  1192. wait()
  1193. Humanoid.Health = math.huge
  1194. Humanoid.JumpPower = 0
  1195. Humanoid.HipHeight = 16
  1196. Humanoid.WalkSpeed = 0
  1197. cmon = true
  1198. wait(5)
  1199. cmon = false
  1200. wait(2)
  1201. for i, v in pairs(Head:GetChildren()) do
  1202. if v:IsA("Decal") then
  1203. v:Destroy()
  1204. end
  1205. end
  1206. RightArm.Transparency = 1
  1207. LeftArm.Transparency = 1
  1208. Torso.Transparency = 1
  1209. Head.Transparency = 1
  1210. RightLeg.Transparency = 1
  1211. LeftLeg.Transparency = 1
  1212. RightArm.Anchored = true
  1213. LeftArm.Anchored = true
  1214. Torso.Anchored = true
  1215. Head.Anchored = true
  1216. RightLeg.Anchored = true
  1217. LeftLeg.Anchored = true
  1218.  
  1219. coroutine.wrap(function()
  1220. local f = CFuncs['Sound'].Create("rbxassetid://995908246",Character,10,0.5)
  1221. local echo = Instance.new('EchoSoundEffect', f)
  1222. echo.Delay = 0.4
  1223. echo.Enabled = true
  1224. echo.Feedback = 0.2
  1225. end)()
  1226. MagnitudeDamage(RootPart, 100, 40, 50, 10, "DarkUp", "388826051", 3)
  1227. Effects.Rect.Create(BrickColor.new'Toothpaste',Torso.CFrame, 200, 20000, 200, -0.8, -0.8, -0.8, 0.05)
  1228. Effects.Rect.Create(BrickColor.new'Toothpaste',Torso.CFrame, 100, 20000, 100, -0.8, -0.8, -0.8, 0.05)
  1229. Effects.Rect.Create(BrickColor.new'Toothpaste',Torso.CFrame, 300, 20000, 300, -0.8, -0.8, -0.8, 0.05)
  1230. Effects.Block.Create(BrickColor.new'Toothpaste', Torso.CFrame, 500, 500, 500, 30, 30, 30, 0.006)
  1231. Effects.Block.Create(BrickColor.new'Toothpaste', Torso.CFrame, 300, 300, 300, 30, 30, 30, 0.006)
  1232. Effects.Block.Create(BrickColor.new'Toothpaste', Torso.CFrame, 100, 100, 100, 30, 30, 30, 0.006)
  1233. Humanoid.MaxHealth = 0
  1234. wait()
  1235. Humanoid.Health = 0
  1236. end
  1237. end
  1238. end)()
  1239. script.Name = 'different world'
  1240. function attackone()
  1241. attack = true
  1242. anims.punch1.play()
  1243. if gunout == false then
  1244. if form == false then
  1245. MagnitudeDamage(RightArm, 5, 10, 20, 10, "Normal", "388826051", 3)
  1246. else
  1247. MagnitudeDamage(RightArm, 5, 20, 30, 10, "Normal", "388826051", 3)
  1248. Effects.Block.Create(BrickColor.new'Toothpaste', RightArm.CFrame * CFrame.new(0,-1,0), 16, 16, 16, -0.8, -0.8, -0.8, 0.1)
  1249. end
  1250. elseif gunout == true and bullets ~= 0 then
  1251. local a = Create("Part"){
  1252. Parent = Character,
  1253. Anchored = true,
  1254. CanCollide = false,
  1255. Transparency = 1,
  1256. Size = Vector3.new(0.5,0.2,0.5),
  1257. Position = Mouse.hit.p,
  1258. }
  1259.  
  1260. local p = Create("PointLight"){
  1261. Parent = gun,
  1262. Brightness = 16,
  1263. Range = 8,
  1264. Color = Color3.new(0,0,255)
  1265. }
  1266. local ray = Ray.new(tip.CFrame.p, (Mouse.Hit.p - tip.CFrame.p).unit * 300)
  1267. local part, position = workspace:FindPartOnRay(ray, Character, false, true)
  1268. local distance = (tip.CFrame.p - position).magnitude
  1269. local beam = Create('Part'){
  1270. Parent = Character,
  1271. BrickColor = BrickColor.new("Toothpaste"),
  1272. FormFactor = "Custom",
  1273. Material = "Neon",
  1274. Transparency = 0.25,
  1275. Anchored = true,
  1276. Locked = true,
  1277. CanCollide = false,
  1278. Size = Vector3.new(0.3, 0.3, distance),
  1279. CFrame = CFrame.new(tip.CFrame.p, position) * CFrame.new(0, 0, -distance / 2),
  1280. }
  1281.  
  1282. --http://www.roblox.com/asset/?id=359667865
  1283. CFuncs['Sound'].Create("rbxassetid://995908246",RightArm,5,1)
  1284. if form == false then
  1285. MagnitudeDamage(a, 5, 50, 90, 10, "Normal", "388826051", 3)
  1286. else
  1287. MagnitudeDamage(a, 5, 90, 1000, 10, "Normal", "388826051", 3)
  1288. Effects.Block.Create(BrickColor.new'Toothpaste', a.CFrame, 30, 30, 30, -0.8, -0.8, -0.8, 0.1)
  1289. end
  1290. bullets = bullets - 1
  1291. Effects.Block.Create(BrickColor.new'Toothpaste', tip.CFrame, 16, 16, 16, -0.8, -0.8, -0.8, 0.1)
  1292. --Effects.Block.Create(BrickColor.new'Toothpaste', a.CFrame, 16, 16, 16, -0.8, -0.8, -0.8, 0.1)
  1293. game:service'Debris':AddItem(p,0.1)
  1294. game:service'Debris':AddItem(a,0.1)
  1295. coroutine.wrap(function()
  1296. for i = 0, 1.4, 0.2 do
  1297. swait()
  1298. beam.Transparency = beam.Transparency + 0.1
  1299. beam.Size = beam.Size + Vector3.new(0.1,0.1,0.1)
  1300. end
  1301. game:service'Debris':AddItem(beam,0.1)
  1302. end)()
  1303. elseif bullets == 0 then
  1304. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.6, 0)), 'No energy!', 1.5, BrickColor.new("Really black").Color,string.len('No energy!')/4)
  1305. end
  1306.  
  1307. attack = false
  1308. end
  1309.  
  1310.  
  1311. function attacktwo()
  1312. attack = true
  1313. anims.punch2.play()
  1314. if form == false then
  1315. MagnitudeDamage(LeftArm, 5, 10, 20, 10, "Normal", "388826051", 3)
  1316. else
  1317. MagnitudeDamage(LeftArm, 5, 20, 30, 10, "Normal", "388826051", 3)
  1318. Effects.Block.Create(BrickColor.new'Toothpaste', LeftArm.CFrame * CFrame.new(0,-1,0), 16, 16, 16, -0.8, -0.8, -0.8, 0.1)
  1319. end
  1320. attack = false
  1321. end
  1322. function reload()
  1323. if bullets == 0 and gunout == true then
  1324. attack = true
  1325. anims.punch2.play()
  1326. wait(2)
  1327. bullets = amount
  1328. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.6, 0)), 'Recharged', 1.5, BrickColor.new("Really black").Color,string.len('Recharged')/4)
  1329. attack = false
  1330. end
  1331. end
  1332. function attackthree() -- kick
  1333. attack = true
  1334. kicking = true
  1335. hum.WalkSpeed = 40
  1336. anims.kick.play()
  1337. end
  1338.  
  1339. coroutine.wrap(function()
  1340. while true do
  1341. wait()
  1342. if kicking == true then
  1343. if form == false then
  1344. MagnitudeDamage(LeftLeg, 5, 20, 35, 10, "Normal", "388826051", 3)
  1345. else
  1346. MagnitudeDamage(LeftLeg, 5, 35, 45, 10, "Normal", "388826051", 3)
  1347. end
  1348. RootPart.CFrame = RootPart.CFrame * CFrame.new(0,0,-2)
  1349. end
  1350. end
  1351. end)()
  1352.  
  1353. function atk3end()
  1354. attack = false
  1355. hum.WalkSpeed = 16
  1356. kicking = false
  1357. end
  1358.  
  1359. Mouse.Button1Down:connect(function()
  1360. if attack == false and dying == false and attacktype == 1 then
  1361. attackone()
  1362. if gunout == false then
  1363. attacktype = 2
  1364. end
  1365. elseif attack == false and dying == false and attacktype == 2 then
  1366. attacktwo()
  1367. attacktype = 1
  1368. end
  1369. end)
  1370.  
  1371. hum.Died:connect(function()
  1372. Player.CameraMaxZoomDistance = 400
  1373. Player.CameraMinZoomDistance = 0.5
  1374. end)
  1375. Mouse.KeyDown:connect(function(k)
  1376. k = k:lower()
  1377. if attack == false and dying == false and k == 'z' then
  1378.  
  1379. attackthree()
  1380. elseif attack == false and dying == false and k == 'r' then
  1381. reload()
  1382. elseif attack == false and dying == false and k == 'g' then
  1383. if gunout == true then
  1384. gunout = false
  1385. gun.Transparency = 1
  1386. elseif gunout == false then
  1387. gun.Transparency = 0
  1388.  
  1389. gunout = true
  1390. end
  1391. end
  1392. end)
  1393. script.Name = 'different world'
  1394.  
  1395. Mouse.KeyUp:connect(function(k)
  1396. k = k:lower()
  1397. if k == 'z' and dying == false then
  1398. atk3end()
  1399. end
  1400. end)
  1401. script.Name = 'different world'
  1402. while true do
  1403. swait()
  1404. for i, v in pairs(Character:GetChildren()) do
  1405. if v:IsA("Part") then
  1406. v.Material = "SmoothPlastic"
  1407. elseif v:IsA("Accessory") then
  1408. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1409. end
  1410. end
  1411. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1412. velocity = RootPart.Velocity.y
  1413. sine = sine + change
  1414. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1415. if RootPart.Velocity.y > 1 and hit == nil then
  1416. Anim = "Jump"
  1417. if attack == false then
  1418. if jumping == false then
  1419. --CFuncs['Sound'].Create("rbxassetid://995908246",Torso,10,0.8)
  1420. jumping = true
  1421. end
  1422. anims.jump.play()
  1423. script.Name = 'different world'
  1424. end
  1425. elseif RootPart.Velocity.y < -1 and hit == nil then
  1426. Anim = "Fall"
  1427. if attack == false then
  1428. jumping = false
  1429. anims.jump.play()
  1430. script.Name = 'different world'
  1431. end
  1432. elseif Torsovelocity < 1 and hit ~= nil then
  1433. Anim = "Idle"
  1434. if attack == false then
  1435. change = 1
  1436. anims.idle.play()
  1437. script.Name = 'different world'
  1438.  
  1439. end
  1440. elseif Torsovelocity > 2 and hit ~= nil then
  1441. Anim = "Walk"
  1442. if attack == false then
  1443. anims.walk.play()
  1444. script.Name = 'different world'
  1445. end
  1446. end
  1447. if 0 < #Effects then
  1448. for e = 1, #Effects do
  1449. if Effects[e] ~= nil then
  1450. local Thing = Effects[e]
  1451. if Thing ~= nil then
  1452. local Part = Thing[1]
  1453. local Mode = Thing[2]
  1454. local Delay = Thing[3]
  1455. local IncX = Thing[4]
  1456. local IncY = Thing[5]
  1457. local IncZ = Thing[6]
  1458. if Thing[2] == "Shoot" then
  1459. local Look = Thing[1]
  1460. local move = 30
  1461. if Thing[8] == 3 then
  1462. move = 10
  1463. end
  1464. local hit, pos = rayCast(Thing[4], Thing[1], move, m)
  1465. if Thing[10] ~= nil then
  1466. da = pos
  1467. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  1468. cfa = CFrame.new(Thing[4], pos)
  1469. tehCF = cfa:lerp(cf2, 0.2)
  1470. Thing[1] = tehCF.lookVector
  1471. end
  1472. local mag = (Thing[4] - pos).magnitude
  1473. Effects["Head"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
  1474. if Thing[8] == 2 then
  1475. Effects["Ring"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0), 1, 1, 0.1, 0.5, 0.5, 0.1, 0.1, 1)
  1476. end
  1477. Thing[4] = Thing[4] + Look * move
  1478. Thing[3] = Thing[3] - 1
  1479. if 2 < Thing[5] then
  1480. Thing[5] = Thing[5] - 0.3
  1481. Thing[6] = Thing[6] - 0.3
  1482. end
  1483. if hit ~= nil then
  1484. Thing[3] = 0
  1485. if Thing[8] == 1 or Thing[8] == 3 then
  1486. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1487. else
  1488. if Thing[8] == 2 then
  1489. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1490. if (hit.Parent:findFirstChild("Humanoid")) ~= nil or (hit.Parent.Parent:findFirstChild("Humanoid")) ~= nil then
  1491. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1492. ref.Anchored = true
  1493. ref.CFrame = CFrame.new(pos)
  1494. CFuncs["Sound"].Create("161006093", ref, 1, 1.2)
  1495. game:GetService("Debris"):AddItem(ref, 0.2)
  1496. Effects["Block"].Create(Torso.BrickColor, CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 10, 10, 10, 0.1, 2)
  1497. Effects["Ring"].Create(BrickColor.new("Bright yellow"), CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 4, 4, 0.1, 0.1)
  1498. MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1)
  1499. end
  1500. end
  1501. end
  1502. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1503. ref.Anchored = true
  1504. ref.CFrame = CFrame.new(pos)
  1505. Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  1506. game:GetService("Debris"):AddItem(ref, 1)
  1507. end
  1508. if Thing[3] <= 0 then
  1509. table.remove(Effects, e)
  1510. end
  1511. end
  1512. do
  1513. do
  1514. if Thing[2] == "FireWave" then
  1515. if Thing[3] <= Thing[4] then
  1516. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  1517. Thing[3] = Thing[3] + 1
  1518. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  1519. else
  1520. Part.Parent = nil
  1521. table.remove(Effects, e)
  1522. end
  1523. end
  1524. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  1525. if Thing[1].Transparency <= 1 then
  1526. if Thing[2] == "Block1" then
  1527. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1528. Mesh = Thing[7]
  1529. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1530. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1531.  
  1532. else
  1533. if Thing[2] == "Block2" then
  1534. Thing[1].CFrame = Thing[1].CFrame
  1535. Mesh = Thing[7]
  1536. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1537. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1538. else
  1539. if Thing[2] == "Fire" then
  1540. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  1541. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1542. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1543. else
  1544. if Thing[2] == "Cylinder" then
  1545. Mesh = Thing[7]
  1546. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1547. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1548. else
  1549. if Thing[2] == "Blood" then
  1550. Mesh = Thing[7]
  1551. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1552. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1553. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1554. else
  1555. if Thing[2] == "Elec" then
  1556. Mesh = Thing[10]
  1557. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1558. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1559. else
  1560. if Thing[2] == "Disappear" then
  1561. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1562. else
  1563. if Thing[2] == "Shatter" then
  1564. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1565. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1566. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1567. Thing[6] = Thing[6] + Thing[5]
  1568. end
  1569. end
  1570. end
  1571. end
  1572. end
  1573. end
  1574. end
  1575. end
  1576. else
  1577. Part.Parent = nil
  1578. table.remove(Effects, e)
  1579. end
  1580. end
  1581. end
  1582. end
  1583. end
  1584. end
  1585. end
  1586. end
  1587. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement