Advertisement
Synpase_X

Diff world

Dec 16th, 2020 (edited)
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. print("Original by Shackluster, Edit by prostoRobot")
  6. script.Parent = Player.Character
  7.  
  8. --RemoteEvent for communicating
  9. local Event = Instance.new("RemoteEvent")
  10. Event.Name = "UserInput_Event"
  11.  
  12. --Fake event to make stuff like Mouse.KeyDown work
  13. local function fakeEvent()
  14. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  15. t.connect = t.Connect
  16. return t
  17. end
  18.  
  19. --Creating fake input objects with fake variables
  20. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  21. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  22. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  23. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  24. end}
  25. --Merged 2 functions into one by checking amount of arguments
  26. CAS.UnbindAction = CAS.BindAction
  27.  
  28. --This function will trigger the events that have been :Connect()'ed
  29. local function te(self,ev,...)
  30. local t = m[ev]
  31. if t and t._fakeEvent and t.Function then
  32. t.Function(...)
  33. end
  34. end
  35. m.TrigEvent = te
  36. UIS.TrigEvent = te
  37.  
  38. Event.OnServerEvent:Connect(function(plr,io)
  39. if plr~=Player then return end
  40. if io.isMouse then
  41. m.Target = io.Target
  42. m.Hit = io.Hit
  43. else
  44. local b = io.UserInputState == Enum.UserInputState.Begin
  45. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  46. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  47. end
  48. for _,t in pairs(CAS.Actions) do
  49. for _,k in pairs(t.Keys) do
  50. if k==io.KeyCode then
  51. t.Function(t.Name,io.UserInputState,io)
  52. end
  53. end
  54. end
  55. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  56. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  57. end
  58. end)
  59. Event.Parent = NLS([==[
  60. local Player = game:GetService("Players").LocalPlayer
  61. local Event = script:WaitForChild("UserInput_Event")
  62.  
  63. local UIS = game:GetService("UserInputService")
  64. local input = function(io,a)
  65. if a then return end
  66. --Since InputObject is a client-side instance, we create and pass table instead
  67. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  68. end
  69. UIS.InputBegan:Connect(input)
  70. UIS.InputEnded:Connect(input)
  71.  
  72. local Mouse = Player:GetMouse()
  73. local h,t
  74. --Give the server mouse data 30 times every second, but only if the values changed
  75. --If player is not moving their mouse, client won't fire events
  76. while wait(1/30) do
  77. if h~=Mouse.Hit or t~=Mouse.Target then
  78. h,t=Mouse.Hit,Mouse.Target
  79. Event:FireServer({isMouse=true,Target=t,Hit=h})
  80. end
  81. end]==],Player.Character)
  82. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  83. end
  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 = '1539245059'
  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. --542124581 mesh
  170. -- 542125034 texture
  171. --[[
  172. 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,})
  173. 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,})
  174. 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),})
  175. ]]
  176. gun = New("Part",RightArm,"gun",{CanCollide = false,Transparency = 1,Size = Vector3.new(0.359999955, 0.340000063, 0.409999967),CFrame = CFrame.new(0.55999994, 0.82999992, 0.0149999931, 1, 0, 0, 0, 0, 1, 0, -1, 0),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  177. Mesh = New("SpecialMesh",gun,"Mesh",{Offset = Vector3.new(0, 0.200000003, -0.5),Scale = Vector3.new(0.600000024, 0.600000024, 0.600000024),MeshId = "rbxassetid://4711447529",TextureId = "rbxassetid://4711447557",MeshType = Enum.MeshType.FileMesh,})
  178. 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),})
  179. 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,})
  180. 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),})
  181.  
  182. coroutine.wrap(function()
  183. RightLeg.Touched:connect(function(prt)
  184. if prt.Name == 'extra' and prt.ClassName == 'Part' then
  185. local thing = prt:WaitForChild('amount')
  186. if thing ~= nil and thing.Value < 50 then
  187. print('added '.. thing.Value ..' extra energy')
  188. bullets = bullets + thing.Value
  189. prt:Destroy()
  190. end
  191. end
  192. end)
  193. --dab
  194. end)()
  195.  
  196.  
  197.  
  198. col.HeadColor = BrickColor.new('Medium stone grey')
  199. col.LeftArmColor = BrickColor.new('Medium stone grey')
  200. col.RightArmColor = BrickColor.new('Medium stone grey')
  201. col.LeftLegColor = BrickColor.new('Medium stone grey')
  202. col.RightLegColor = BrickColor.new('Medium stone grey')
  203. col.TorsoColor = BrickColor.new('Toothpaste')
  204.  
  205. local ff = Instance.new('ForceField', Character)
  206. ff.Visible = false
  207.  
  208. hum.Name = '32ytd7284y6985y24805yn2839n5298'
  209. hum.MaxHealth = 9999
  210. wait()
  211. hum.Health = 9999
  212. function startm()
  213. if nomusic == false then
  214. local b = Instance.new('Sound', par)
  215. b.SoundId = 'rbxassetid://' ..soundid
  216. b.Looped = true
  217. b.Volume = 3
  218. b.Name = 'lol'
  219. b.Pitch = pit
  220. b:Play()
  221. coroutine.wrap(function()
  222. while true do
  223. timepos = b.TimePosition
  224. if par:FindFirstChild("lol") == nil then
  225. local b = Instance.new('Sound', par)
  226. b.SoundId = 'rbxassetid://'..soundid
  227. b.Looped = true
  228. b.Name = 'lol'
  229. b.Volume = 3
  230. b.Pitch = pit
  231. b.TimePosition = timepos
  232. b:Play()
  233. end
  234. wait()
  235. end
  236. end)()
  237. end
  238. end
  239. local m = Create("Model"){
  240. Parent = Character,
  241. Name = "WeaponModel",
  242. }
  243.  
  244. Humanoid.Animator.Parent = nil
  245. Character.Animate.Parent = nil
  246.  
  247. local newMotor = function(part0, part1, c0, c1)
  248. local w = Create('Motor'){
  249. Parent = part0,
  250. Part0 = part0,
  251. Part1 = part1,
  252. C0 = c0,
  253. C1 = c1,
  254. }
  255. return w
  256. end
  257.  
  258. function clerp(a, b, t)
  259. return a:lerp(b, t)
  260. end
  261.  
  262. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  263. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  264.  
  265. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  266. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  267. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  268. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  269. RootJoint.C1 = CFrame.new(0, 0, 0)
  270. RootJoint.C0 = CFrame.new(0, 0, 0)
  271. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  272. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  273.  
  274. local rarmc1 = RW.C1
  275. local larmc1 = LW.C1
  276. local rlegc1 = RH.C1
  277. local llegc1 = LH.C1
  278.  
  279. local resetc1 = false
  280.  
  281. function PlayAnimationFromTable(table, speed, bool)
  282. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  283. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  284. RW.C0 = clerp(RW.C0, table[3], speed)
  285. LW.C0 = clerp(LW.C0, table[4], speed)
  286. RH.C0 = clerp(RH.C0, table[5], speed)
  287. LH.C0 = clerp(LH.C0, table[6], speed)
  288. if bool == true then
  289. if resetc1 == false then
  290. resetc1 = true
  291. RootJoint.C1 = RootJoint.C1
  292. Torso.Neck.C1 = Torso.Neck.C1
  293. RW.C1 = rarmc1
  294. LW.C1 = larmc1
  295. RH.C1 = rlegc1
  296. LH.C1 = llegc1
  297. end
  298. end
  299. end
  300.  
  301. ArtificialHB = Create("BindableEvent", script){
  302. Parent = script,
  303. Name = "Heartbeat",
  304. }
  305.  
  306. script:WaitForChild("Heartbeat")
  307.  
  308. frame = 1 / 60
  309. tf = 0
  310. allowframeloss = false
  311. tossremainder = false
  312. lastframe = tick()
  313. script.Heartbeat:Fire()
  314.  
  315. game:GetService("RunService").Heartbeat:connect(function(s, p)
  316. tf = tf + s
  317. if tf >= frame then
  318. if allowframeloss then
  319. script.Heartbeat:Fire()
  320. lastframe = tick()
  321. else
  322. for i = 1, math.floor(tf / frame) do
  323. script.Heartbeat:Fire()
  324. end
  325. lastframe = tick()
  326. end
  327. if tossremainder then
  328. tf = 0
  329. else
  330. tf = tf - frame * math.floor(tf / frame)
  331. end
  332. end
  333. end)
  334.  
  335. function swait(num)
  336. if num == 0 or num == nil then
  337. ArtificialHB.Event:wait()
  338. else
  339. for i = 0, num do
  340. ArtificialHB.Event:wait()
  341. end
  342. end
  343. end
  344.  
  345. function RemoveOutlines(part)
  346. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  347. end
  348.  
  349. CFuncs = {
  350. ["Part"] = {
  351. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  352. local Part = Create("Part"){
  353. Parent = Parent,
  354. Reflectance = Reflectance,
  355. Transparency = Transparency,
  356. CanCollide = false,
  357. Locked = true,
  358. BrickColor = BrickColor.new(tostring(BColor)),
  359. Name = Name,
  360. Size = Size,
  361. Material = Material,
  362. }
  363. RemoveOutlines(Part)
  364. return Part
  365. end;
  366. };
  367.  
  368. ["Mesh"] = {
  369. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  370. local Msh = Create(Mesh){
  371. Parent = Part,
  372. Offset = OffSet,
  373. Scale = Scale,
  374. }
  375. if Mesh == "SpecialMesh" then
  376. Msh.MeshType = MeshType
  377. Msh.MeshId = MeshId
  378. end
  379. return Msh
  380. end;
  381. };
  382.  
  383. ["Mesh"] = {
  384. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  385. local Msh = Create(Mesh){
  386. Parent = Part,
  387. Offset = OffSet,
  388. Scale = Scale,
  389. }
  390. if Mesh == "SpecialMesh" then
  391. Msh.MeshType = MeshType
  392. Msh.MeshId = MeshId
  393. end
  394. return Msh
  395. end;
  396. };
  397.  
  398. ["Weld"] = {
  399. Create = function(Parent, Part0, Part1, C0, C1)
  400. local Weld = Create("Weld"){
  401. Parent = Parent,
  402. Part0 = Part0,
  403. Part1 = Part1,
  404. C0 = C0,
  405. C1 = C1,
  406. }
  407. return Weld
  408. end;
  409. };
  410.  
  411. ["Sound"] = {
  412. Create = function(id, par, vol, pit)
  413. coroutine.resume(coroutine.create(function()
  414. local S = Create("Sound"){
  415. Volume = vol,
  416. Pitch = pit or 1,
  417. SoundId = id,
  418. Parent = par or workspace,
  419. }
  420. wait()
  421. S:play()
  422. game:GetService("Debris"):AddItem(S, 6)
  423. end))
  424. end;
  425. };
  426.  
  427. ["ParticleEmitter"] = {
  428. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  429. local fp = Create("ParticleEmitter"){
  430. Parent = Parent,
  431. Color = ColorSequence.new(Color1, Color2),
  432. LightEmission = LightEmission,
  433. Size = Size,
  434. Texture = Texture,
  435. Transparency = Transparency,
  436. ZOffset = ZOffset,
  437. Acceleration = Accel,
  438. Drag = Drag,
  439. LockedToPart = LockedToPart,
  440. VelocityInheritance = VelocityInheritance,
  441. EmissionDirection = EmissionDirection,
  442. Enabled = Enabled,
  443. Lifetime = LifeTime,
  444. Rate = Rate,
  445. Rotation = Rotation,
  446. RotSpeed = RotSpeed,
  447. Speed = Speed,
  448. VelocitySpread = VelocitySpread,
  449. }
  450. return fp
  451. end;
  452. };
  453.  
  454. CreateTemplate = {
  455.  
  456. };
  457. }
  458.  
  459. function rayCast(Position, Direction, Range, Ignore)
  460. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  461. end
  462.  
  463. FindNearestTorso = function(pos)
  464. local list = (game.Workspace:children())
  465. local torso = nil
  466. local dist = 1000
  467. local temp, human, temp2 = nil, nil, nil
  468. for x = 1, #list do
  469. temp2 = list[x]
  470. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  471. temp = temp2:findFirstChild("Torso")
  472. human = temp2:findFirstChild("Humanoid")
  473. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  474. local dohit = true
  475. if dohit == true then
  476. torso = temp
  477. dist = (temp.Position - pos).magnitude
  478. end
  479. end
  480. end
  481. end
  482. return torso, dist
  483. end
  484.  
  485. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  486. if hit.Parent == nil then
  487. return
  488. end
  489. local h = hit.Parent:FindFirstChild("Humanoid")
  490. for _, v in pairs(hit.Parent:children()) do
  491. if v:IsA("Humanoid") then
  492. h = v
  493. end
  494. end
  495. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  496. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  497. if hit.Parent.DebounceHit.Value == true then
  498. return
  499. end
  500. end
  501. local c = Create("ObjectValue"){
  502. Name = "creator",
  503. Value = owner,
  504. Parent = h,
  505. }
  506. game:GetService("Debris"):AddItem(c, .5)
  507. if HitSound ~= nil and HitPitch ~= nil then
  508. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  509. end
  510. local Damage = math.random(minim, maxim)
  511. local blocked = false
  512. local block = hit.Parent:findFirstChild("Block")
  513. if block ~= nil then
  514. if block.className == "IntValue" then
  515. if block.Value > 0 then
  516. blocked = true
  517. block.Value = block.Value - 1
  518. print(block.Value)
  519. end
  520. end
  521. end
  522. if blocked == false then
  523. h.Health = h.Health - Damage
  524. 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)
  525. else
  526. h.Health = h.Health - (Damage / 2)
  527. 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)
  528. end
  529. if Type == "Knockdown" then
  530. local hum = hit.Parent.Humanoid
  531. hum.PlatformStand = true
  532. coroutine.resume(coroutine.create(function(HHumanoid)
  533. swait(1)
  534. HHumanoid.PlatformStand = false
  535. end), hum)
  536. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  537. local bodvol = Create("BodyVelocity"){
  538. velocity = angle * knockback,
  539. P = 5000,
  540. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  541. Parent = hit,
  542. }
  543. local rl = Create("BodyAngularVelocity"){
  544. P = 3000,
  545. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  546. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  547. Parent = hit,
  548. }
  549. game:GetService("Debris"):AddItem(bodvol, .5)
  550. game:GetService("Debris"):AddItem(rl, .5)
  551. elseif Type == "Normal" then
  552. local vp = Create("BodyVelocity"){
  553. P = 500,
  554. maxForce = Vector3.new(math.huge, 0, math.huge),
  555. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  556. }
  557. if knockback > 0 then
  558. vp.Parent = hit.Parent.Torso
  559. end
  560. game:GetService("Debris"):AddItem(vp, .5)
  561. elseif Type == "Up" then
  562. local bodyVelocity = Create("BodyVelocity"){
  563. velocity = Vector3.new(0, 20, 0),
  564. P = 5000,
  565. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  566. Parent = hit,
  567. }
  568. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  569. elseif Type == "DarkUp" then
  570. coroutine.resume(coroutine.create(function()
  571. for i = 0, 1, 0.1 do
  572. swait()
  573. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 25, 25, 25, 1, 1, 1, .08, 1)
  574. end
  575. end))
  576. local bodyVelocity = Create("BodyVelocity"){
  577. velocity = Vector3.new(0, 20, 0),
  578. P = 5000,
  579. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  580. Parent = hit,
  581. }
  582. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  583. elseif Type == "Snare" then
  584. local bp = Create("BodyPosition"){
  585. P = 2000,
  586. D = 100,
  587. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  588. position = hit.Parent.Torso.Position,
  589. Parent = hit.Parent.Torso,
  590. }
  591. game:GetService("Debris"):AddItem(bp, 1)
  592. elseif Type == "Freeze" then
  593. local BodPos = Create("BodyPosition"){
  594. P = 50000,
  595. D = 1000,
  596. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  597. position = hit.Parent.Torso.Position,
  598. Parent = hit.Parent.Torso,
  599. }
  600. local BodGy = Create("BodyGyro") {
  601. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  602. P = 20e+003,
  603. Parent = hit.Parent.Torso,
  604. cframe = hit.Parent.Torso.CFrame,
  605. }
  606. hit.Parent.Torso.Anchored = true
  607. coroutine.resume(coroutine.create(function(Part)
  608. swait(1.5)
  609. Part.Anchored = false
  610. end), hit.Parent.Torso)
  611. game:GetService("Debris"):AddItem(BodPos, 3)
  612. game:GetService("Debris"):AddItem(BodGy, 3)
  613. end
  614. local debounce = Create("BoolValue"){
  615. Name = "DebounceHit",
  616. Parent = hit.Parent,
  617. Value = true,
  618. }
  619. game:GetService("Debris"):AddItem(debounce, Delay)
  620. c = Create("ObjectValue"){
  621. Name = "creator",
  622. Value = Player,
  623. Parent = h,
  624. }
  625. game:GetService("Debris"):AddItem(c, .5)
  626. end
  627. end
  628.  
  629. function ShowDamage(Pos, Text, Time, Color, wid)
  630. local Rate = (1 / 30)
  631. local Pos = (Pos or Vector3.new(0, 0, 0))
  632. local Text = (Text or "")
  633. local wid = (wid or 1)
  634. local Time = (Time or 2)
  635. local Color = (Color or Color3.new(1, 0, 1))
  636. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  637. EffectPart.Anchored = true
  638. local BillboardGui = Create("BillboardGui"){
  639. Size = UDim2.new(5, 0, 5, 0),
  640. Adornee = EffectPart,
  641. Parent = EffectPart,
  642. }
  643. local TextLabel = Create("TextLabel"){
  644. BackgroundTransparency = 1,
  645. Size = UDim2.new(1, 0, 1, 0),
  646. Text = Text,
  647. Font = "Arcade",
  648. TextColor3 = Color,
  649. TextScaled = true,
  650. Parent = BillboardGui,
  651. }
  652. game.Debris:AddItem(EffectPart, (Time))
  653. EffectPart.Parent = game:GetService("Workspace")
  654. delay(0, function()
  655. local Frames = (Time / Rate)
  656. for Frame = 1, Frames do
  657. wait(Rate)
  658. local Percent = (Frame / Frames)
  659. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  660. TextLabel.TextTransparency = Percent
  661. end
  662. if EffectPart and EffectPart.Parent then
  663. EffectPart:Destroy()
  664. end
  665. end)
  666. end
  667.  
  668. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  669. for _, c in pairs(workspace:children()) do
  670. local hum = c:findFirstChildOfClass("Humanoid")
  671. if hum ~= nil then
  672. local head = c:findFirstChild("Head")
  673. if head ~= nil then
  674. local targ = head.Position - Part.Position
  675. local mag = targ.magnitude
  676. if mag <= Magnitude and c.Name ~= Player.Name then
  677. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
  678. end
  679. end
  680. end
  681. end
  682. end
  683.  
  684. EffectModel = Create("Model"){
  685. Parent = Character,
  686. Name = "Effects",
  687. }
  688.  
  689. Effects = {
  690. Block = {
  691. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  692. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  693. prt.Anchored = true
  694. prt.CFrame = cframe
  695. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  696. game:GetService("Debris"):AddItem(prt, 10)
  697. if Type == 1 or Type == nil then
  698. table.insert(Effects, {
  699. prt,
  700. "Block1",
  701. delay,
  702. x3,
  703. y3,
  704. z3,
  705. msh
  706. })
  707. elseif Type == 2 then
  708. table.insert(Effects, {
  709. prt,
  710. "Block2",
  711. delay,
  712. x3,
  713. y3,
  714. z3,
  715. msh
  716. })
  717. end
  718. end;
  719. };
  720.  
  721. Implode = {
  722. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  723. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  724. prt.Anchored = true
  725. prt.CFrame = cframe
  726. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  727. game:GetService("Debris"):AddItem(prt, 10)
  728. if Type == 1 or Type == nil then
  729. table.insert(Effects, {
  730. prt,
  731. "Block1",
  732. delay,
  733. x3,
  734. y3,
  735. z3,
  736. msh
  737. })
  738. elseif Type == 2 then
  739. table.insert(Effects, {
  740. prt,
  741. "Block2",
  742. delay,
  743. x3,
  744. y3,
  745. z3,
  746. msh
  747. })
  748. end
  749. end;
  750. };
  751.  
  752. Cylinder = {
  753. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  754. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  755. prt.Anchored = true
  756. prt.CFrame = cframe
  757. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  758. game:GetService("Debris"):AddItem(prt, 10)
  759. table.insert(Effects, {
  760. prt,
  761. "Cylinder",
  762. delay,
  763. x3,
  764. y3,
  765. z3,
  766. msh
  767. })
  768. end;
  769. };
  770. Rect = {
  771. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  772. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  773. prt.Anchored = true
  774. prt.CFrame = cframe
  775. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  776. game:GetService("Debris"):AddItem(prt, 10)
  777. table.insert(Effects, {
  778. prt,
  779. "Cylinder",
  780. delay,
  781. x3,
  782. y3,
  783. z3,
  784. msh
  785. })
  786. end;
  787. };
  788.  
  789. Head = {
  790. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  791. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  792. prt.Anchored = true
  793. prt.CFrame = cframe
  794. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  795. game:GetService("Debris"):AddItem(prt, 10)
  796. table.insert(Effects, {
  797. prt,
  798. "Cylinder",
  799. delay,
  800. x3,
  801. y3,
  802. z3,
  803. msh
  804. })
  805. end;
  806. };
  807.  
  808. Sphere = {
  809. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  810. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  811. prt.Anchored = true
  812. prt.CFrame = cframe
  813. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  814. game:GetService("Debris"):AddItem(prt, 10)
  815. table.insert(Effects, {
  816. prt,
  817. "Cylinder",
  818. delay,
  819. x3,
  820. y3,
  821. z3,
  822. msh
  823. })
  824. end;
  825. };
  826.  
  827. Elect = {
  828. Create = function(cff, x, y, z)
  829. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  830. prt.Anchored = true
  831. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  832. prt.CFrame = CFrame.new(prt.Position)
  833. game:GetService("Debris"):AddItem(prt, 2)
  834. local xval = math.random() / 2
  835. local yval = math.random() / 2
  836. local zval = math.random() / 2
  837. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  838. table.insert(Effects, {
  839. prt,
  840. "Elec",
  841. 0.1,
  842. x,
  843. y,
  844. z,
  845. xval,
  846. yval,
  847. zval
  848. })
  849. end;
  850.  
  851. };
  852.  
  853. Ring = {
  854. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  855. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  856. prt.Anchored = true
  857. prt.CFrame = cframe
  858. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  859. game:GetService("Debris"):AddItem(prt, 10)
  860. table.insert(Effects, {
  861. prt,
  862. "Cylinder",
  863. delay,
  864. x3,
  865. y3,
  866. z3,
  867. msh
  868. })
  869. end;
  870. };
  871.  
  872.  
  873. Wave = {
  874. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  875. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  876. prt.Anchored = true
  877. prt.CFrame = cframe
  878. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  879. game:GetService("Debris"):AddItem(prt, 10)
  880. table.insert(Effects, {
  881. prt,
  882. "Cylinder",
  883. delay,
  884. x3,
  885. y3,
  886. z3,
  887. msh
  888. })
  889. end;
  890. };
  891.  
  892. Break = {
  893. Create = function(brickcolor, cframe, x1, y1, z1)
  894. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  895. prt.Anchored = true
  896. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  897. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  898. local num = math.random(10, 50) / 1000
  899. game:GetService("Debris"):AddItem(prt, 10)
  900. table.insert(Effects, {
  901. prt,
  902. "Shatter",
  903. num,
  904. prt.CFrame,
  905. math.random() - math.random(),
  906. 0,
  907. math.random(50, 100) / 100
  908. })
  909. end;
  910. };
  911.  
  912. Fire = {
  913. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  914. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  915. prt.Anchored = true
  916. prt.CFrame = cframe
  917. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  918. game:GetService("Debris"):AddItem(prt, 10)
  919. table.insert(Effects, {
  920. prt,
  921. "Fire",
  922. delay,
  923. 1,
  924. 1,
  925. 1,
  926. msh
  927. })
  928. end;
  929. };
  930.  
  931. FireWave = {
  932. Create = function(brickcolor, cframe, x1, y1, z1)
  933. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  934. prt.Anchored = true
  935. prt.CFrame = cframe
  936. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  937. local d = Create("Decal"){
  938. Parent = prt,
  939. Texture = "rbxassetid://26356434",
  940. Face = "Top",
  941. }
  942. local d = Create("Decal"){
  943. Parent = prt,
  944. Texture = "rbxassetid://26356434",
  945. Face = "Bottom",
  946. }
  947. game:GetService("Debris"):AddItem(prt, 10)
  948. table.insert(Effects, {
  949. prt,
  950. "FireWave",
  951. 1,
  952. 30,
  953. math.random(400, 600) / 100,
  954. msh
  955. })
  956. end;
  957. };
  958.  
  959. Lightning = {
  960. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  961. local magz = (p0 - p1).magnitude
  962. local curpos = p0
  963. local trz = {
  964. -ofs,
  965. ofs
  966. }
  967. for i = 1, tym do
  968. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  969. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  970. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  971. li.Material = "Neon"
  972. if tym == i then
  973. local magz2 = (curpos - p1).magnitude
  974. li.Size = Vector3.new(th, th, magz2)
  975. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  976. table.insert(Effects, {
  977. li,
  978. "Disappear",
  979. last
  980. })
  981. else
  982. do
  983. do
  984. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  985. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  986. game.Debris:AddItem(li, 10)
  987. table.insert(Effects, {
  988. li,
  989. "Disappear",
  990. last
  991. })
  992. end
  993. end
  994. end
  995. end
  996. end
  997. };
  998.  
  999. EffectTemplate = {
  1000.  
  1001. };
  1002. }
  1003. script.Name = 'different world'
  1004. local speed = 15
  1005.  
  1006. local anims = {
  1007. punch1 = {
  1008. play = function()
  1009. for i = 0, 1, 0.1 do
  1010. swait()
  1011. PlayAnimationFromTable({
  1012. 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),
  1013. 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),
  1014. 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),
  1015. 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),
  1016. 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),
  1017. 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),
  1018. }, .3, false)
  1019. end
  1020. end
  1021. };
  1022. ball = {
  1023. play = function()
  1024. for i = 0, 1, 0.1 do
  1025. swait()
  1026. PlayAnimationFromTable({
  1027. 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),
  1028. 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),
  1029. 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),
  1030. 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),
  1031. 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),
  1032. 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),
  1033. }, .3, false)
  1034. end
  1035. end
  1036. };
  1037. smash = {
  1038. play = function()
  1039. for i = 0, 1, 0.1 do
  1040. swait()
  1041. PlayAnimationFromTable({
  1042. 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),
  1043. 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),
  1044. 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),
  1045. 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),
  1046. 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),
  1047. 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),
  1048. }, .3, false)
  1049. end
  1050. end
  1051. };
  1052. punch2 = {
  1053. play = function()
  1054. for i = 0, 1, 0.1 do
  1055. swait()
  1056. PlayAnimationFromTable({
  1057. 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),
  1058. 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),
  1059. 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),
  1060. 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),
  1061. 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),
  1062. 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),
  1063. }, .3, false)
  1064. end
  1065. end
  1066. };
  1067. kick = {
  1068. play = function()
  1069. for i = 0, 1, 0.1 do
  1070. swait()
  1071. PlayAnimationFromTable({
  1072. 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),
  1073. 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),
  1074. 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),
  1075. 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),
  1076. 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),
  1077. 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),
  1078. }, .3, false)
  1079. end
  1080. end
  1081. };
  1082. idle = {
  1083. play = function()
  1084. PlayAnimationFromTable({
  1085. 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),
  1086. 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),
  1087. 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),
  1088. 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),
  1089. 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),
  1090. 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),
  1091. }, .3, false)
  1092.  
  1093. end
  1094. };
  1095.  
  1096. walk = {
  1097. play = function()
  1098. PlayAnimationFromTable({
  1099. 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),
  1100. 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),
  1101. 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),
  1102. 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),
  1103. 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),
  1104. 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),
  1105. }, .3, false)
  1106. end
  1107. };
  1108.  
  1109. jump = {
  1110. play = function()
  1111. PlayAnimationFromTable({
  1112. 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),
  1113. 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),
  1114. 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),
  1115. 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),
  1116. 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),
  1117. 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),
  1118. }, .3, false)
  1119. end
  1120. };
  1121. }
  1122. spawn(function()
  1123. attack = true
  1124. Humanoid.JumpPower = 0
  1125. Humanoid.WalkSpeed = 0
  1126. RightArm.Transparency = 1
  1127. LeftArm.Transparency = 1
  1128. Torso.Transparency = 1
  1129. Head.Transparency = 1
  1130. RightLeg.Transparency = 1
  1131. LeftLeg.Transparency = 1
  1132. anims.smash.play()
  1133. wait(2)
  1134. 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)
  1135. Humanoid.JumpPower = jumppower
  1136. RightArm.Transparency = 0
  1137. LeftArm.Transparency = 0
  1138. Torso.Transparency = 0
  1139. Head.Transparency = 0
  1140. RightLeg.Transparency = 0
  1141. LeftLeg.Transparency = 0
  1142. Effects.Block.Create(BrickColor.new'Toothpaste', Torso.CFrame, 200, 200, 200, -0.8, -0.8, -0.8, 0.05)
  1143. Effects.Wave.Create(BrickColor.new'Toothpaste', RootPart.CFrame - Vector3.new(0,3,0), 5, 1, 5, 0.1, 0.01, 0.1, 0.06)
  1144.  
  1145. CFuncs['Sound'].Create("rbxassetid://995908246",Torso,10,0.8)
  1146. startm()
  1147. wait(0.5)
  1148. Humanoid.WalkSpeed = 16
  1149. attack = false
  1150. end)
  1151. trans = function()
  1152. form = true
  1153. attack = true
  1154. decals()
  1155. local f = CFuncs['Sound'].Create("rbxassetid://995908246",Torso,10,0.8)
  1156. MagnitudeDamage(RootPart, 20, 10, 20, 10, "Normal", "388826051", 3)
  1157. Effects.Block.Create(BrickColor.new'Toothpaste', Torso.CFrame, 200, 200, 200, 2, 2, 2, 0.05)
  1158. Effects.Wave.Create(BrickColor.new'Toothpaste', RootPart.CFrame - Vector3.new(0,3,0), 8, 1, 8, 0.1, 0.01, 0.1, 0.06)
  1159. pit = 0.9
  1160. if nomusic == false then
  1161. --soundid = '321467240'
  1162. par:WaitForChild'lol':Destroy()
  1163. par = Character
  1164. par:WaitForChild'lol'.Pitch = 0.9
  1165. end
  1166. 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)
  1167. hum.MaxHealth = 2000
  1168. wait()
  1169. hum.Health = 2000
  1170. attack = false
  1171. end
  1172. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1173. coroutine.wrap(function()
  1174. while true do wait()
  1175. if form == true and attack == false then
  1176. --RootPart.CFrame*CFrame.new(math.random(-25,25))
  1177. 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)
  1178. elseif cmon == true then
  1179.  
  1180. 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)
  1181. 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)
  1182. end
  1183. end
  1184. end)()
  1185. coroutine.wrap(function()
  1186. while true do wait()
  1187. if Humanoid.Health < 500 and form == false and attack == false then
  1188. trans()
  1189. elseif Humanoid.Health < 400 and form == true and attack == false then
  1190. attack = true
  1191. dying = true
  1192. anims.ball.play()
  1193. Humanoid.MaxHealth = math.huge
  1194. wait()
  1195. Humanoid.Health = math.huge
  1196. Humanoid.JumpPower = 0
  1197. Humanoid.HipHeight = 16
  1198. Humanoid.WalkSpeed = 0
  1199. cmon = true
  1200. wait(5)
  1201. cmon = false
  1202. wait(2)
  1203. for i, v in pairs(Head:GetChildren()) do
  1204. if v:IsA("Decal") then
  1205. v:Destroy()
  1206. end
  1207. end
  1208. RightArm.Transparency = 1
  1209. LeftArm.Transparency = 1
  1210. Torso.Transparency = 1
  1211. Head.Transparency = 1
  1212. RightLeg.Transparency = 1
  1213. LeftLeg.Transparency = 1
  1214. RightArm.Anchored = true
  1215. LeftArm.Anchored = true
  1216. Torso.Anchored = true
  1217. Head.Anchored = true
  1218. RightLeg.Anchored = true
  1219. LeftLeg.Anchored = true
  1220.  
  1221. coroutine.wrap(function()
  1222. local f = CFuncs['Sound'].Create("rbxassetid://995908246",Character,10,0.5)
  1223. local echo = Instance.new('EchoSoundEffect', f)
  1224. echo.Delay = 0.4
  1225. echo.Enabled = true
  1226. echo.Feedback = 0.2
  1227. end)()
  1228. MagnitudeDamage(RootPart, 100, 40, 50, 10, "DarkUp", "388826051", 3)
  1229. Effects.Rect.Create(BrickColor.new'Toothpaste',Torso.CFrame, 200, 20000, 200, -0.8, -0.8, -0.8, 0.05)
  1230. Effects.Rect.Create(BrickColor.new'Toothpaste',Torso.CFrame, 100, 20000, 100, -0.8, -0.8, -0.8, 0.05)
  1231. Effects.Rect.Create(BrickColor.new'Toothpaste',Torso.CFrame, 300, 20000, 300, -0.8, -0.8, -0.8, 0.05)
  1232. Effects.Block.Create(BrickColor.new'Toothpaste', Torso.CFrame, 500, 500, 500, 30, 30, 30, 0.006)
  1233. Effects.Block.Create(BrickColor.new'Toothpaste', Torso.CFrame, 300, 300, 300, 30, 30, 30, 0.006)
  1234. Effects.Block.Create(BrickColor.new'Toothpaste', Torso.CFrame, 100, 100, 100, 30, 30, 30, 0.006)
  1235. Humanoid.MaxHealth = 0
  1236. wait()
  1237. Humanoid.Health = 0
  1238. end
  1239. end
  1240. end)()
  1241. script.Name = 'different world'
  1242. function attackone()
  1243. attack = true
  1244. anims.punch1.play()
  1245. if gunout == false then
  1246. if form == false then
  1247. MagnitudeDamage(RightArm, 5, 10, 20, 10, "Normal", "388826051", 3)
  1248. else
  1249. MagnitudeDamage(RightArm, 5, 20, 30, 10, "Normal", "388826051", 3)
  1250. Effects.Block.Create(BrickColor.new'Toothpaste', RightArm.CFrame * CFrame.new(0,-1,0), 16, 16, 16, -0.8, -0.8, -0.8, 0.1)
  1251. end
  1252. elseif gunout == true and bullets ~= 0 then
  1253. local p = Create("PointLight"){
  1254. Parent = gun,
  1255. Brightness = 16,
  1256. Range = 8,
  1257. Color = Color3.new(0,0,255)
  1258. }
  1259. local a = Create("Part"){
  1260. Parent = Character,
  1261. Anchored = true,
  1262. CanCollide = false,
  1263. Transparency = 1,
  1264. Size = Vector3.new(0.5,0.2,0.5),
  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
  1588.  
  1589. local Bb = Instance.new("BillboardGui")
  1590. Bb.Size = UDim2.new(3,0,3,0)
  1591. BB.Adornee = Head
  1592.  
  1593. local Txl = Instance.new("TextLabel")
  1594. Txl.Parent = Bb
  1595. Txl.BackgroundTransparency = 1
  1596. Txl.Size = UDim2.new(1, 0, 1, 0)
  1597. Txl.Text = "boomer"
  1598. Txl.TextScaled = true
  1599. Txl.Font = Enum.Font.ArialBold
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement