Advertisement
samuelrichter66

different world

May 30th, 2019
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 60.79 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code V2 by Mokiros")
  7. local RealPlayer = RealPlayer
  8. script.Parent = RealPlayer.Character
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local Disconnect_Function = function(this)
  12. this[1].Functions[this[2]] = nil
  13. end
  14. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  15. local FakeEvent_Metatable = {__index={
  16. Connect = function(this,f)
  17. local i = tostring(math.random(0,10000))
  18. while this.Functions[i] do
  19. i = tostring(math.random(0,10000))
  20. end
  21. this.Functions[i] = f
  22. return setmetatable({this,i},Disconnect_Metatable)
  23. end
  24. }}
  25. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  26. local function fakeEvent()
  27. return setmetatable({Functions={}},FakeEvent_Metatable)
  28. end
  29.  
  30. --Creating fake input objects with fake variables
  31. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  32. FakeMouse.keyUp = FakeMouse.KeyUp
  33. FakeMouse.keyDown = FakeMouse.KeyDown
  34. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  35. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  36. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  37. end}
  38. --Merged 2 functions into one by checking amount of arguments
  39. CAS.UnbindAction = CAS.BindAction
  40.  
  41. --This function will trigger the events that have been :Connect()'ed
  42. local function TriggerEvent(self,ev,...)
  43. for _,f in pairs(self[ev].Functions) do
  44. f(...)
  45. end
  46. end
  47. FakeMouse.TriggerEvent = TriggerEvent
  48. UIS.TriggerEvent = TriggerEvent
  49.  
  50. --Client communication
  51. local Event = Instance.new("RemoteEvent")
  52. Event.Name = "UserInput_Event"
  53. Event.OnServerEvent:Connect(function(plr,io)
  54. if plr~=RealPlayer then return end
  55. FakeMouse.Target = io.Target
  56. FakeMouse.Hit = io.Hit
  57. if not io.isMouse then
  58. local b = io.UserInputState == Enum.UserInputState.Begin
  59. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  60. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  61. end
  62. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  63. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  64. end
  65. for _,t in pairs(CAS.Actions) do
  66. for _,k in pairs(t.Keys) do
  67. if k==io.KeyCode then
  68. t.Function(t.Name,io.UserInputState,io)
  69. end
  70. end
  71. end
  72. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  73. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  74. end
  75. end)
  76. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  77. local Mouse = owner:GetMouse()
  78. local UIS = game:GetService("UserInputService")
  79. local input = function(io,RobloxHandled)
  80. if RobloxHandled then return end
  81. --Since InputObject is a client-side instance, we create and pass table instead
  82. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  83. end
  84. UIS.InputBegan:Connect(input)
  85. UIS.InputEnded:Connect(input)
  86.  
  87. local h,t
  88. --Give the server mouse data every second frame, but only if the values changed
  89. --If player is not moving their mouse, client won't fire events
  90. local HB = game:GetService("RunService").Heartbeat
  91. while true do
  92. if h~=Mouse.Hit or t~=Mouse.Target then
  93. h,t=Mouse.Hit,Mouse.Target
  94. Event:FireServer({isMouse=true,Target=t,Hit=h})
  95. end
  96. --Wait 2 frames
  97. for i=1,2 do
  98. HB:Wait()
  99. end
  100. end]==],script)
  101.  
  102. ----Sandboxed game object that allows the usage of client-side methods and services
  103. --Real game object
  104. local RealGame = game
  105.  
  106. --Metatable for fake service
  107. local FakeService_Metatable = {
  108. __index = function(self,k)
  109. local s = rawget(self,"_RealService")
  110. if s then
  111. return typeof(s[k])=="function"
  112. and function(_,...)return s[k](s,...)end or s[k]
  113. end
  114. end,
  115. __newindex = function(self,k,v)
  116. local s = rawget(self,"_RealService")
  117. if s then s[k]=v end
  118. end
  119. }
  120. local function FakeService(t,RealService)
  121. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  122. return setmetatable(t,FakeService_Metatable)
  123. end
  124.  
  125. --Fake game object
  126. local FakeGame = {
  127. GetService = function(self,s)
  128. return rawget(self,s) or RealGame:GetService(s)
  129. end,
  130. Players = FakeService({
  131. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  132. },"Players"),
  133. UserInputService = FakeService(UIS,"UserInputService"),
  134. ContextActionService = FakeService(CAS,"ContextActionService"),
  135. RunService = FakeService({
  136. _btrs = {},
  137. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  138. BindToRenderStep = function(self,name,_,fun)
  139. self._btrs[name] = self.Heartbeat:Connect(fun)
  140. end,
  141. UnbindFromRenderStep = function(self,name)
  142. self._btrs[name]:Disconnect()
  143. end,
  144. },"RunService")
  145. }
  146. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  147. FakeGame.service = FakeGame.GetService
  148. FakeService(FakeGame,game)
  149. --Changing owner to fake player object to support owner:GetMouse()
  150. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  151. end
  152.  
  153.  
  154.  
  155. --[[Nocturna_A._Alteriano_Night.Owl.Inc]]--
  156. --[[the different world by Windowsxd_Infinite
  157. __ __ __ __
  158. /\ \ __/\ \ __ /\ \ /\ \
  159. \ \ \/\ \ \ \/\_\ ___ \_\ \ ___ __ __ __ ____ __ _ \_\ \
  160. \ \ \ \ \ \ \/\ \ /' _ `\ /'_` \ / __`\/\ \/\ \/\ \ /',__\/\ \/'\ /'_` \
  161. \ \ \_/ \_\ \ \ \/\ \/\ \/\ \L\ \/\ \L\ \ \ \_/ \_/ \/\__, `\/> <//\ \L\ \
  162. \ `\___x___/\ \_\ \_\ \_\ \___,_\ \____/\ \___x___/'\/\____//\_/\_\ \___,_\
  163. '\/__//__/ \/_/\/_/\/_/\/__,_ /\/___/ \/__//__/ \/___/ \//\/_/\/__,_ /
  164. ]]
  165. wait(1 / 60)
  166. Effects = { }
  167. script.Name = 'different world'
  168. local Player = game.Players.localPlayer
  169. local Character = Player.Character
  170.  
  171. local Humanoid = Character:FindFirstChildOfClass('Humanoid')
  172. local hum = Humanoid
  173. local Mouse = Player:GetMouse()
  174. local jumppower = 150
  175. local LeftArm = Character["Left Arm"]
  176. local RightArm = Character["Right Arm"]
  177. local LeftLeg = Character["Left Leg"]
  178. local RightLeg = Character["Right Leg"]
  179. local Head = Character.Head
  180. local Torso = Character.Torso
  181. local limited = false
  182. local Camera = game.Workspace.CurrentCamera
  183. local cmon = false
  184. local dying = false
  185. local RootPart = Character.HumanoidRootPart
  186. local RootJoint = RootPart.RootJoint
  187. local jumping = false
  188. local attack = false
  189. local Anim = 'Idle'
  190. local nomusic = false
  191. local soundid = '804615998'
  192. local pit = 1
  193. local form = false
  194. local gunout = false
  195. local attacktype = 1
  196. local amount = 12
  197. local par = Head
  198. if limited == false then
  199. amount = math.huge
  200. end
  201.  
  202. print(amount..' is the maximum amount of lasers')
  203. local bullets = amount
  204. local kicking = false
  205. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  206. local velocity = RootPart.Velocity.y
  207. local sine = 0
  208. local change = 1
  209. local Create = LoadLibrary("RbxUtility").Create
  210.  
  211. local col = Character['Body Colors']
  212. New = function(Object, Parent, Name, Data)
  213. local Object = Instance.new(Object)
  214. for Index, Value in pairs(Data or {}) do
  215. Object[Index] = Value
  216. end
  217. Object.Parent = Parent
  218. Object.Name = Name
  219. return Object
  220. end
  221. for i, v in pairs(Character:GetChildren()) do
  222. if v:IsA("Accessory") then
  223. v:Destroy()
  224. end
  225. end
  226.  
  227. Head:WaitForChild('face', true):Destroy()
  228. Mesh = New("SpecialMesh",LeftLeg,"Mesh",{Offset = Vector3.new(0.100000001, 0, -0.100000001),MeshId = "rbxassetid://1875778314",MeshType = Enum.MeshType.FileMesh,})
  229. Mesh = New("SpecialMesh",LeftArm,"Mesh",{MeshId = "rbxassetid://1875724217",MeshType = Enum.MeshType.FileMesh,})
  230. Mesh = New("SpecialMesh",RightArm,"Mesh",{MeshId = "rbxassetid://1875724217",MeshType = Enum.MeshType.FileMesh,})
  231. Mesh = New("SpecialMesh",Torso,"Mesh",{Offset = Vector3.new(0, 0.0599999987, 0),MeshId = "rbxassetid://1875749311",MeshType = Enum.MeshType.FileMesh,})
  232. Mesh = New("SpecialMesh",RightLeg,"Mesh",{Offset = Vector3.new(-0.100000001, 0, -0.100000001),MeshId = "rbxassetid://1875778314",MeshType = Enum.MeshType.FileMesh,})
  233. Mesh = New("SpecialMesh",Head,"Mesh",{Scale = Vector3.new(0.5, 1, 1),MeshId = "rbxassetid://0",MeshType = Enum.MeshType.Brick,})
  234.  
  235. decals = function()
  236. Decal = New("Decal",Head,"Decal",{Texture = "http://www.roblox.com/asset/?id=1901415828",})
  237. Decal = New("Decal",Head,"Decal",{Face = Enum.NormalId.Top,Texture = "http://www.roblox.com/asset/?id=1901488661",})
  238. Decal = New("Decal",Head,"Decal",{Face = Enum.NormalId.Left,Texture = "http://www.roblox.com/asset/?id=1901527294",})
  239. Decal = New("Decal",Head,"Decal",{Face = Enum.NormalId.Back,Texture = "http://www.roblox.com/asset/?id=1901566530",})
  240. end
  241. --[[
  242. 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,})
  243. 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,})
  244. 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),})
  245. ]]
  246. 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,})
  247. 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,})
  248. 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),})
  249. 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,})
  250. 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),})
  251.  
  252. coroutine.wrap(function()
  253. RightLeg.Touched:connect(function(prt)
  254. if prt.Name == 'extra' and prt.ClassName == 'Part' then
  255. local thing = prt:WaitForChild('amount')
  256. if thing ~= nil and thing.Value < 50 then
  257. print('added '.. thing.Value ..' extra energy')
  258. bullets = bullets + thing.Value
  259. prt:Destroy()
  260. end
  261. end
  262. end)
  263. --dab
  264. end)()
  265.  
  266.  
  267.  
  268. col.HeadColor = BrickColor.new('Medium stone grey')
  269. col.LeftArmColor = BrickColor.new('Medium stone grey')
  270. col.RightArmColor = BrickColor.new('Medium stone grey')
  271. col.LeftLegColor = BrickColor.new('Medium stone grey')
  272. col.RightLegColor = BrickColor.new('Medium stone grey')
  273. col.TorsoColor = BrickColor.new('Toothpaste')
  274.  
  275. local ff = Instance.new('ForceField', Character)
  276. ff.Visible = false
  277.  
  278. hum.Name = '32ytd7284y6985y24805yn2839n5298'
  279. hum.MaxHealth = 1000
  280. wait()
  281. hum.Health = 1000
  282. function startm()
  283. if nomusic == false then
  284. local b = Instance.new('Sound', par)
  285. b.SoundId = 'rbxassetid://' ..soundid
  286. b.Looped = true
  287. b.Volume = 3
  288. b.Name = 'lol'
  289. b.Pitch = pit
  290. b:Play()
  291. coroutine.wrap(function()
  292. while true do
  293. timepos = b.TimePosition
  294. if par:FindFirstChild("lol") == nil then
  295. local b = Instance.new('Sound', par)
  296. b.SoundId = 'rbxassetid://'..soundid
  297. b.Looped = true
  298. b.Name = 'lol'
  299. b.Volume = 3
  300. b.Pitch = pit
  301. b.TimePosition = timepos
  302. b:Play()
  303. end
  304. wait()
  305. end
  306. end)()
  307. end
  308. end
  309. local m = Create("Model"){
  310. Parent = Character,
  311. Name = "WeaponModel",
  312. }
  313.  
  314. Humanoid.Animator.Parent = nil
  315. Character.Animate.Parent = nil
  316.  
  317. local newMotor = function(part0, part1, c0, c1)
  318. local w = Create('Motor'){
  319. Parent = part0,
  320. Part0 = part0,
  321. Part1 = part1,
  322. C0 = c0,
  323. C1 = c1,
  324. }
  325. return w
  326. end
  327.  
  328. function clerp(a, b, t)
  329. return a:lerp(b, t)
  330. end
  331.  
  332. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  333. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  334.  
  335. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  336. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  337. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  338. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  339. RootJoint.C1 = CFrame.new(0, 0, 0)
  340. RootJoint.C0 = CFrame.new(0, 0, 0)
  341. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  342. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  343.  
  344. local rarmc1 = RW.C1
  345. local larmc1 = LW.C1
  346. local rlegc1 = RH.C1
  347. local llegc1 = LH.C1
  348.  
  349. local resetc1 = false
  350.  
  351. function PlayAnimationFromTable(table, speed, bool)
  352. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  353. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  354. RW.C0 = clerp(RW.C0, table[3], speed)
  355. LW.C0 = clerp(LW.C0, table[4], speed)
  356. RH.C0 = clerp(RH.C0, table[5], speed)
  357. LH.C0 = clerp(LH.C0, table[6], speed)
  358. if bool == true then
  359. if resetc1 == false then
  360. resetc1 = true
  361. RootJoint.C1 = RootJoint.C1
  362. Torso.Neck.C1 = Torso.Neck.C1
  363. RW.C1 = rarmc1
  364. LW.C1 = larmc1
  365. RH.C1 = rlegc1
  366. LH.C1 = llegc1
  367. end
  368. end
  369. end
  370.  
  371. ArtificialHB = Create("BindableEvent", script){
  372. Parent = script,
  373. Name = "Heartbeat",
  374. }
  375.  
  376. script:WaitForChild("Heartbeat")
  377.  
  378. frame = 1 / 60
  379. tf = 0
  380. allowframeloss = false
  381. tossremainder = false
  382. lastframe = tick()
  383. script.Heartbeat:Fire()
  384.  
  385. game:GetService("RunService").Heartbeat:connect(function(s, p)
  386. tf = tf + s
  387. if tf >= frame then
  388. if allowframeloss then
  389. script.Heartbeat:Fire()
  390. lastframe = tick()
  391. else
  392. for i = 1, math.floor(tf / frame) do
  393. script.Heartbeat:Fire()
  394. end
  395. lastframe = tick()
  396. end
  397. if tossremainder then
  398. tf = 0
  399. else
  400. tf = tf - frame * math.floor(tf / frame)
  401. end
  402. end
  403. end)
  404.  
  405. function swait(num)
  406. if num == 0 or num == nil then
  407. ArtificialHB.Event:wait()
  408. else
  409. for i = 0, num do
  410. ArtificialHB.Event:wait()
  411. end
  412. end
  413. end
  414.  
  415. function RemoveOutlines(part)
  416. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  417. end
  418.  
  419. CFuncs = {
  420. ["Part"] = {
  421. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  422. local Part = Create("Part"){
  423. Parent = Parent,
  424. Reflectance = Reflectance,
  425. Transparency = Transparency,
  426. CanCollide = false,
  427. Locked = true,
  428. BrickColor = BrickColor.new(tostring(BColor)),
  429. Name = Name,
  430. Size = Size,
  431. Material = Material,
  432. }
  433. RemoveOutlines(Part)
  434. return Part
  435. end;
  436. };
  437.  
  438. ["Mesh"] = {
  439. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  440. local Msh = Create(Mesh){
  441. Parent = Part,
  442. Offset = OffSet,
  443. Scale = Scale,
  444. }
  445. if Mesh == "SpecialMesh" then
  446. Msh.MeshType = MeshType
  447. Msh.MeshId = MeshId
  448. end
  449. return Msh
  450. end;
  451. };
  452.  
  453. ["Mesh"] = {
  454. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  455. local Msh = Create(Mesh){
  456. Parent = Part,
  457. Offset = OffSet,
  458. Scale = Scale,
  459. }
  460. if Mesh == "SpecialMesh" then
  461. Msh.MeshType = MeshType
  462. Msh.MeshId = MeshId
  463. end
  464. return Msh
  465. end;
  466. };
  467.  
  468. ["Weld"] = {
  469. Create = function(Parent, Part0, Part1, C0, C1)
  470. local Weld = Create("Weld"){
  471. Parent = Parent,
  472. Part0 = Part0,
  473. Part1 = Part1,
  474. C0 = C0,
  475. C1 = C1,
  476. }
  477. return Weld
  478. end;
  479. };
  480.  
  481. ["Sound"] = {
  482. Create = function(id, par, vol, pit)
  483. coroutine.resume(coroutine.create(function()
  484. local S = Create("Sound"){
  485. Volume = vol,
  486. Pitch = pit or 1,
  487. SoundId = id,
  488. Parent = par or workspace,
  489. }
  490. wait()
  491. S:play()
  492. game:GetService("Debris"):AddItem(S, 6)
  493. end))
  494. end;
  495. };
  496.  
  497. ["ParticleEmitter"] = {
  498. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  499. local fp = Create("ParticleEmitter"){
  500. Parent = Parent,
  501. Color = ColorSequence.new(Color1, Color2),
  502. LightEmission = LightEmission,
  503. Size = Size,
  504. Texture = Texture,
  505. Transparency = Transparency,
  506. ZOffset = ZOffset,
  507. Acceleration = Accel,
  508. Drag = Drag,
  509. LockedToPart = LockedToPart,
  510. VelocityInheritance = VelocityInheritance,
  511. EmissionDirection = EmissionDirection,
  512. Enabled = Enabled,
  513. Lifetime = LifeTime,
  514. Rate = Rate,
  515. Rotation = Rotation,
  516. RotSpeed = RotSpeed,
  517. Speed = Speed,
  518. VelocitySpread = VelocitySpread,
  519. }
  520. return fp
  521. end;
  522. };
  523.  
  524. CreateTemplate = {
  525.  
  526. };
  527. }
  528.  
  529. function rayCast(Position, Direction, Range, Ignore)
  530. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  531. end
  532.  
  533. FindNearestTorso = function(pos)
  534. local list = (game.Workspace:children())
  535. local torso = nil
  536. local dist = 1000
  537. local temp, human, temp2 = nil, nil, nil
  538. for x = 1, #list do
  539. temp2 = list[x]
  540. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  541. temp = temp2:findFirstChild("Torso")
  542. human = temp2:findFirstChild("Humanoid")
  543. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  544. local dohit = true
  545. if dohit == true then
  546. torso = temp
  547. dist = (temp.Position - pos).magnitude
  548. end
  549. end
  550. end
  551. end
  552. return torso, dist
  553. end
  554.  
  555. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  556. if hit.Parent == nil then
  557. return
  558. end
  559. local h = hit.Parent:FindFirstChild("Humanoid")
  560. for _, v in pairs(hit.Parent:children()) do
  561. if v:IsA("Humanoid") then
  562. h = v
  563. end
  564. end
  565. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  566. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  567. if hit.Parent.DebounceHit.Value == true then
  568. return
  569. end
  570. end
  571. local c = Create("ObjectValue"){
  572. Name = "creator",
  573. Value = game:service("Players").LocalPlayer,
  574. Parent = h,
  575. }
  576. game:GetService("Debris"):AddItem(c, .5)
  577. if HitSound ~= nil and HitPitch ~= nil then
  578. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  579. end
  580. local Damage = math.random(minim, maxim)
  581. local blocked = false
  582. local block = hit.Parent:findFirstChild("Block")
  583. if block ~= nil then
  584. if block.className == "IntValue" then
  585. if block.Value > 0 then
  586. blocked = true
  587. block.Value = block.Value - 1
  588. print(block.Value)
  589. end
  590. end
  591. end
  592. if blocked == false then
  593. h.Health = h.Health - Damage
  594. 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)
  595. else
  596. h.Health = h.Health - (Damage / 2)
  597. 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)
  598. end
  599. if Type == "Knockdown" then
  600. local hum = hit.Parent.Humanoid
  601. hum.PlatformStand = true
  602. coroutine.resume(coroutine.create(function(HHumanoid)
  603. swait(1)
  604. HHumanoid.PlatformStand = false
  605. end), hum)
  606. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  607. local bodvol = Create("BodyVelocity"){
  608. velocity = angle * knockback,
  609. P = 5000,
  610. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  611. Parent = hit,
  612. }
  613. local rl = Create("BodyAngularVelocity"){
  614. P = 3000,
  615. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  616. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  617. Parent = hit,
  618. }
  619. game:GetService("Debris"):AddItem(bodvol, .5)
  620. game:GetService("Debris"):AddItem(rl, .5)
  621. elseif Type == "Normal" then
  622. local vp = Create("BodyVelocity"){
  623. P = 500,
  624. maxForce = Vector3.new(math.huge, 0, math.huge),
  625. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  626. }
  627. if knockback > 0 then
  628. vp.Parent = hit.Parent.Torso
  629. end
  630. game:GetService("Debris"):AddItem(vp, .5)
  631. elseif Type == "Up" then
  632. local bodyVelocity = Create("BodyVelocity"){
  633. velocity = Vector3.new(0, 20, 0),
  634. P = 5000,
  635. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  636. Parent = hit,
  637. }
  638. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  639. elseif Type == "DarkUp" then
  640. coroutine.resume(coroutine.create(function()
  641. for i = 0, 1, 0.1 do
  642. swait()
  643. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 25, 25, 25, 1, 1, 1, .08, 1)
  644. end
  645. end))
  646. local bodyVelocity = Create("BodyVelocity"){
  647. velocity = Vector3.new(0, 20, 0),
  648. P = 5000,
  649. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  650. Parent = hit,
  651. }
  652. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  653. elseif Type == "Snare" then
  654. local bp = Create("BodyPosition"){
  655. P = 2000,
  656. D = 100,
  657. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  658. position = hit.Parent.Torso.Position,
  659. Parent = hit.Parent.Torso,
  660. }
  661. game:GetService("Debris"):AddItem(bp, 1)
  662. elseif Type == "Freeze" then
  663. local BodPos = Create("BodyPosition"){
  664. P = 50000,
  665. D = 1000,
  666. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  667. position = hit.Parent.Torso.Position,
  668. Parent = hit.Parent.Torso,
  669. }
  670. local BodGy = Create("BodyGyro") {
  671. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  672. P = 20e+003,
  673. Parent = hit.Parent.Torso,
  674. cframe = hit.Parent.Torso.CFrame,
  675. }
  676. hit.Parent.Torso.Anchored = true
  677. coroutine.resume(coroutine.create(function(Part)
  678. swait(1.5)
  679. Part.Anchored = false
  680. end), hit.Parent.Torso)
  681. game:GetService("Debris"):AddItem(BodPos, 3)
  682. game:GetService("Debris"):AddItem(BodGy, 3)
  683. end
  684. local debounce = Create("BoolValue"){
  685. Name = "DebounceHit",
  686. Parent = hit.Parent,
  687. Value = true,
  688. }
  689. game:GetService("Debris"):AddItem(debounce, Delay)
  690. c = Create("ObjectValue"){
  691. Name = "creator",
  692. Value = Player,
  693. Parent = h,
  694. }
  695. game:GetService("Debris"):AddItem(c, .5)
  696. end
  697. end
  698.  
  699. function ShowDamage(Pos, Text, Time, Color, wid)
  700. local Rate = (1 / 30)
  701. local Pos = (Pos or Vector3.new(0, 0, 0))
  702. local Text = (Text or "")
  703. local wid = (wid or 1)
  704. local Time = (Time or 2)
  705. local Color = (Color or Color3.new(1, 0, 1))
  706. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  707. EffectPart.Anchored = true
  708. local BillboardGui = Create("BillboardGui"){
  709. Size = UDim2.new(5, 0, 5, 0),
  710. Adornee = EffectPart,
  711. Parent = EffectPart,
  712. }
  713. local TextLabel = Create("TextLabel"){
  714. BackgroundTransparency = 1,
  715. Size = UDim2.new(1, 0, 1, 0),
  716. Text = Text,
  717. Font = "Arcade",
  718. TextColor3 = Color,
  719. TextScaled = true,
  720. Parent = BillboardGui,
  721. }
  722. game.Debris:AddItem(EffectPart, (Time))
  723. EffectPart.Parent = game:GetService("Workspace")
  724. delay(0, function()
  725. local Frames = (Time / Rate)
  726. for Frame = 1, Frames do
  727. wait(Rate)
  728. local Percent = (Frame / Frames)
  729. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  730. TextLabel.TextTransparency = Percent
  731. end
  732. if EffectPart and EffectPart.Parent then
  733. EffectPart:Destroy()
  734. end
  735. end)
  736. end
  737.  
  738. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  739. for _, c in pairs(workspace:children()) do
  740. local hum = c:findFirstChildOfClass("Humanoid")
  741. if hum ~= nil then
  742. local head = c:findFirstChild("Head")
  743. if head ~= nil then
  744. local targ = head.Position - Part.Position
  745. local mag = targ.magnitude
  746. if mag <= Magnitude and c.Name ~= Player.Name then
  747. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
  748. end
  749. end
  750. end
  751. end
  752. end
  753.  
  754. EffectModel = Create("Model"){
  755. Parent = Character,
  756. Name = "Effects",
  757. }
  758.  
  759. Effects = {
  760. Block = {
  761. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  762. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  763. prt.Anchored = true
  764. prt.CFrame = cframe
  765. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  766. game:GetService("Debris"):AddItem(prt, 10)
  767. if Type == 1 or Type == nil then
  768. table.insert(Effects, {
  769. prt,
  770. "Block1",
  771. delay,
  772. x3,
  773. y3,
  774. z3,
  775. msh
  776. })
  777. elseif Type == 2 then
  778. table.insert(Effects, {
  779. prt,
  780. "Block2",
  781. delay,
  782. x3,
  783. y3,
  784. z3,
  785. msh
  786. })
  787. end
  788. end;
  789. };
  790.  
  791. Implode = {
  792. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  793. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  794. prt.Anchored = true
  795. prt.CFrame = cframe
  796. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  797. game:GetService("Debris"):AddItem(prt, 10)
  798. if Type == 1 or Type == nil then
  799. table.insert(Effects, {
  800. prt,
  801. "Block1",
  802. delay,
  803. x3,
  804. y3,
  805. z3,
  806. msh
  807. })
  808. elseif Type == 2 then
  809. table.insert(Effects, {
  810. prt,
  811. "Block2",
  812. delay,
  813. x3,
  814. y3,
  815. z3,
  816. msh
  817. })
  818. end
  819. end;
  820. };
  821.  
  822. Cylinder = {
  823. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  824. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  825. prt.Anchored = true
  826. prt.CFrame = cframe
  827. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  828. game:GetService("Debris"):AddItem(prt, 10)
  829. table.insert(Effects, {
  830. prt,
  831. "Cylinder",
  832. delay,
  833. x3,
  834. y3,
  835. z3,
  836. msh
  837. })
  838. end;
  839. };
  840. Rect = {
  841. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  842. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  843. prt.Anchored = true
  844. prt.CFrame = cframe
  845. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  846. game:GetService("Debris"):AddItem(prt, 10)
  847. table.insert(Effects, {
  848. prt,
  849. "Cylinder",
  850. delay,
  851. x3,
  852. y3,
  853. z3,
  854. msh
  855. })
  856. end;
  857. };
  858.  
  859. Head = {
  860. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  861. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  862. prt.Anchored = true
  863. prt.CFrame = cframe
  864. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  865. game:GetService("Debris"):AddItem(prt, 10)
  866. table.insert(Effects, {
  867. prt,
  868. "Cylinder",
  869. delay,
  870. x3,
  871. y3,
  872. z3,
  873. msh
  874. })
  875. end;
  876. };
  877.  
  878. Sphere = {
  879. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  880. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  881. prt.Anchored = true
  882. prt.CFrame = cframe
  883. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  884. game:GetService("Debris"):AddItem(prt, 10)
  885. table.insert(Effects, {
  886. prt,
  887. "Cylinder",
  888. delay,
  889. x3,
  890. y3,
  891. z3,
  892. msh
  893. })
  894. end;
  895. };
  896.  
  897. Elect = {
  898. Create = function(cff, x, y, z)
  899. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  900. prt.Anchored = true
  901. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  902. prt.CFrame = CFrame.new(prt.Position)
  903. game:GetService("Debris"):AddItem(prt, 2)
  904. local xval = math.random() / 2
  905. local yval = math.random() / 2
  906. local zval = math.random() / 2
  907. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  908. table.insert(Effects, {
  909. prt,
  910. "Elec",
  911. 0.1,
  912. x,
  913. y,
  914. z,
  915. xval,
  916. yval,
  917. zval
  918. })
  919. end;
  920.  
  921. };
  922.  
  923. Ring = {
  924. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  925. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  926. prt.Anchored = true
  927. prt.CFrame = cframe
  928. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  929. game:GetService("Debris"):AddItem(prt, 10)
  930. table.insert(Effects, {
  931. prt,
  932. "Cylinder",
  933. delay,
  934. x3,
  935. y3,
  936. z3,
  937. msh
  938. })
  939. end;
  940. };
  941.  
  942.  
  943. Wave = {
  944. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  945. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  946. prt.Anchored = true
  947. prt.CFrame = cframe
  948. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  949. game:GetService("Debris"):AddItem(prt, 10)
  950. table.insert(Effects, {
  951. prt,
  952. "Cylinder",
  953. delay,
  954. x3,
  955. y3,
  956. z3,
  957. msh
  958. })
  959. end;
  960. };
  961.  
  962. Break = {
  963. Create = function(brickcolor, cframe, x1, y1, z1)
  964. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  965. prt.Anchored = true
  966. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  967. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  968. local num = math.random(10, 50) / 1000
  969. game:GetService("Debris"):AddItem(prt, 10)
  970. table.insert(Effects, {
  971. prt,
  972. "Shatter",
  973. num,
  974. prt.CFrame,
  975. math.random() - math.random(),
  976. 0,
  977. math.random(50, 100) / 100
  978. })
  979. end;
  980. };
  981.  
  982. Fire = {
  983. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  984. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  985. prt.Anchored = true
  986. prt.CFrame = cframe
  987. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  988. game:GetService("Debris"):AddItem(prt, 10)
  989. table.insert(Effects, {
  990. prt,
  991. "Fire",
  992. delay,
  993. 1,
  994. 1,
  995. 1,
  996. msh
  997. })
  998. end;
  999. };
  1000.  
  1001. FireWave = {
  1002. Create = function(brickcolor, cframe, x1, y1, z1)
  1003. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  1004. prt.Anchored = true
  1005. prt.CFrame = cframe
  1006. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1007. local d = Create("Decal"){
  1008. Parent = prt,
  1009. Texture = "rbxassetid://26356434",
  1010. Face = "Top",
  1011. }
  1012. local d = Create("Decal"){
  1013. Parent = prt,
  1014. Texture = "rbxassetid://26356434",
  1015. Face = "Bottom",
  1016. }
  1017. game:GetService("Debris"):AddItem(prt, 10)
  1018. table.insert(Effects, {
  1019. prt,
  1020. "FireWave",
  1021. 1,
  1022. 30,
  1023. math.random(400, 600) / 100,
  1024. msh
  1025. })
  1026. end;
  1027. };
  1028.  
  1029. Lightning = {
  1030. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  1031. local magz = (p0 - p1).magnitude
  1032. local curpos = p0
  1033. local trz = {
  1034. -ofs,
  1035. ofs
  1036. }
  1037. for i = 1, tym do
  1038. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  1039. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  1040. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  1041. li.Material = "Neon"
  1042. if tym == i then
  1043. local magz2 = (curpos - p1).magnitude
  1044. li.Size = Vector3.new(th, th, magz2)
  1045. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  1046. table.insert(Effects, {
  1047. li,
  1048. "Disappear",
  1049. last
  1050. })
  1051. else
  1052. do
  1053. do
  1054. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  1055. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  1056. game.Debris:AddItem(li, 10)
  1057. table.insert(Effects, {
  1058. li,
  1059. "Disappear",
  1060. last
  1061. })
  1062. end
  1063. end
  1064. end
  1065. end
  1066. end
  1067. };
  1068.  
  1069. EffectTemplate = {
  1070.  
  1071. };
  1072. }
  1073. script.Name = 'different world'
  1074. local speed = 15
  1075.  
  1076. local anims = {
  1077. punch1 = {
  1078. play = function()
  1079. for i = 0, 1, 0.1 do
  1080. swait()
  1081. PlayAnimationFromTable({
  1082. 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),
  1083. 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),
  1084. 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),
  1085. 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),
  1086. 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),
  1087. 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),
  1088. }, .3, false)
  1089. end
  1090. end
  1091. };
  1092. ball = {
  1093. play = function()
  1094. for i = 0, 1, 0.1 do
  1095. swait()
  1096. PlayAnimationFromTable({
  1097. 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),
  1098. 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),
  1099. 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),
  1100. 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),
  1101. 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),
  1102. 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),
  1103. }, .3, false)
  1104. end
  1105. end
  1106. };
  1107. smash = {
  1108. play = function()
  1109. for i = 0, 1, 0.1 do
  1110. swait()
  1111. PlayAnimationFromTable({
  1112. 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),
  1113. 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),
  1114. 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),
  1115. 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),
  1116. 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),
  1117. 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),
  1118. }, .3, false)
  1119. end
  1120. end
  1121. };
  1122. punch2 = {
  1123. play = function()
  1124. for i = 0, 1, 0.1 do
  1125. swait()
  1126. PlayAnimationFromTable({
  1127. 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),
  1128. 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),
  1129. 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),
  1130. 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),
  1131. 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),
  1132. 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),
  1133. }, .3, false)
  1134. end
  1135. end
  1136. };
  1137. kick = {
  1138. play = function()
  1139. for i = 0, 1, 0.1 do
  1140. swait()
  1141. PlayAnimationFromTable({
  1142. 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),
  1143. 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),
  1144. 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),
  1145. 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),
  1146. 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),
  1147. 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),
  1148. }, .3, false)
  1149. end
  1150. end
  1151. };
  1152. idle = {
  1153. play = function()
  1154. PlayAnimationFromTable({
  1155. 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),
  1156. 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),
  1157. 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),
  1158. 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),
  1159. 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),
  1160. 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),
  1161. }, .3, false)
  1162.  
  1163. end
  1164. };
  1165.  
  1166. walk = {
  1167. play = function()
  1168. PlayAnimationFromTable({
  1169. 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),
  1170. 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),
  1171. 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),
  1172. 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),
  1173. 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),
  1174. 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),
  1175. }, .3, false)
  1176. end
  1177. };
  1178.  
  1179. jump = {
  1180. play = function()
  1181. PlayAnimationFromTable({
  1182. 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),
  1183. 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),
  1184. 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),
  1185. 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),
  1186. 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),
  1187. 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),
  1188. }, .3, false)
  1189. end
  1190. };
  1191. }
  1192. spawn(function()
  1193. attack = true
  1194. Humanoid.JumpPower = 0
  1195. Humanoid.WalkSpeed = 0
  1196. RightArm.Transparency = 1
  1197. LeftArm.Transparency = 1
  1198. Torso.Transparency = 1
  1199. Head.Transparency = 1
  1200. RightLeg.Transparency = 1
  1201. LeftLeg.Transparency = 1
  1202. anims.smash.play()
  1203. wait(2)
  1204. 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)
  1205. Humanoid.JumpPower = jumppower
  1206. RightArm.Transparency = 0
  1207. LeftArm.Transparency = 0
  1208. Torso.Transparency = 0
  1209. Head.Transparency = 0
  1210. RightLeg.Transparency = 0
  1211. LeftLeg.Transparency = 0
  1212. Effects.Block.Create(BrickColor.new'Toothpaste', Torso.CFrame, 200, 200, 200, -0.8, -0.8, -0.8, 0.05)
  1213. Effects.Wave.Create(BrickColor.new'Toothpaste', RootPart.CFrame - Vector3.new(0,3,0), 5, 1, 5, 0.1, 0.01, 0.1, 0.06)
  1214.  
  1215. CFuncs['Sound'].Create("rbxassetid://995908246",Torso,10,0.8)
  1216. startm()
  1217. wait(0.5)
  1218. Humanoid.WalkSpeed = 16
  1219. attack = false
  1220. end)
  1221. trans = function()
  1222. form = true
  1223. attack = true
  1224. decals()
  1225. local f = CFuncs['Sound'].Create("rbxassetid://995908246",Torso,10,0.8)
  1226. MagnitudeDamage(RootPart, 20, 10, 20, 10, "Normal", "388826051", 3)
  1227. Effects.Block.Create(BrickColor.new'Toothpaste', Torso.CFrame, 200, 200, 200, 2, 2, 2, 0.05)
  1228. Effects.Wave.Create(BrickColor.new'Toothpaste', RootPart.CFrame - Vector3.new(0,3,0), 8, 1, 8, 0.1, 0.01, 0.1, 0.06)
  1229. pit = 0.9
  1230. if nomusic == false then
  1231. --soundid = '321467240'
  1232. par:WaitForChild'lol':Destroy()
  1233. par = Character
  1234. par:WaitForChild'lol'.Pitch = 0.9
  1235. end
  1236. 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)
  1237. hum.MaxHealth = 2000
  1238. wait()
  1239. hum.Health = 2000
  1240. attack = false
  1241. end
  1242. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1243. coroutine.wrap(function()
  1244. while true do wait()
  1245. if form == true and attack == false then
  1246. --RootPart.CFrame*CFrame.new(math.random(-25,25))
  1247. 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)
  1248. elseif cmon == true then
  1249.  
  1250. 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)
  1251. 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)
  1252. end
  1253. end
  1254. end)()
  1255. coroutine.wrap(function()
  1256. while true do wait()
  1257. if Humanoid.Health < 500 and form == false and attack == false then
  1258. trans()
  1259. elseif Humanoid.Health < 400 and form == true and attack == false then
  1260. attack = true
  1261. dying = true
  1262. anims.ball.play()
  1263. Humanoid.MaxHealth = math.huge
  1264. wait()
  1265. Humanoid.Health = math.huge
  1266. Humanoid.JumpPower = 0
  1267. Humanoid.HipHeight = 16
  1268. Humanoid.WalkSpeed = 0
  1269. cmon = true
  1270. wait(5)
  1271. cmon = false
  1272. wait(2)
  1273. for i, v in pairs(Head:GetChildren()) do
  1274. if v:IsA("Decal") then
  1275. v:Destroy()
  1276. end
  1277. end
  1278. RightArm.Transparency = 1
  1279. LeftArm.Transparency = 1
  1280. Torso.Transparency = 1
  1281. Head.Transparency = 1
  1282. RightLeg.Transparency = 1
  1283. LeftLeg.Transparency = 1
  1284. RightArm.Anchored = true
  1285. LeftArm.Anchored = true
  1286. Torso.Anchored = true
  1287. Head.Anchored = true
  1288. RightLeg.Anchored = true
  1289. LeftLeg.Anchored = true
  1290.  
  1291. coroutine.wrap(function()
  1292. local f = CFuncs['Sound'].Create("rbxassetid://995908246",Character,10,0.5)
  1293. local echo = Instance.new('EchoSoundEffect', f)
  1294. echo.Delay = 0.4
  1295. echo.Enabled = true
  1296. echo.Feedback = 0.2
  1297. end)()
  1298. MagnitudeDamage(RootPart, 100, 40, 50, 10, "DarkUp", "388826051", 3)
  1299. Effects.Rect.Create(BrickColor.new'Toothpaste',Torso.CFrame, 200, 20000, 200, -0.8, -0.8, -0.8, 0.05)
  1300. Effects.Rect.Create(BrickColor.new'Toothpaste',Torso.CFrame, 100, 20000, 100, -0.8, -0.8, -0.8, 0.05)
  1301. Effects.Rect.Create(BrickColor.new'Toothpaste',Torso.CFrame, 300, 20000, 300, -0.8, -0.8, -0.8, 0.05)
  1302. Effects.Block.Create(BrickColor.new'Toothpaste', Torso.CFrame, 500, 500, 500, 30, 30, 30, 0.006)
  1303. Effects.Block.Create(BrickColor.new'Toothpaste', Torso.CFrame, 300, 300, 300, 30, 30, 30, 0.006)
  1304. Effects.Block.Create(BrickColor.new'Toothpaste', Torso.CFrame, 100, 100, 100, 30, 30, 30, 0.006)
  1305. Humanoid.MaxHealth = 0
  1306. wait()
  1307. Humanoid.Health = 0
  1308. end
  1309. end
  1310. end)()
  1311. script.Name = 'different world'
  1312. function attackone()
  1313. attack = true
  1314. anims.punch1.play()
  1315. if gunout == false then
  1316. if form == false then
  1317. MagnitudeDamage(RightArm, 5, 10, 20, 10, "Normal", "388826051", 3)
  1318. else
  1319. MagnitudeDamage(RightArm, 5, 20, 30, 10, "Normal", "388826051", 3)
  1320. Effects.Block.Create(BrickColor.new'Toothpaste', RightArm.CFrame * CFrame.new(0,-1,0), 16, 16, 16, -0.8, -0.8, -0.8, 0.1)
  1321. end
  1322. elseif gunout == true and bullets ~= 0 then
  1323. local a = Create("Part"){
  1324. Parent = Character,
  1325. Anchored = true,
  1326. CanCollide = false,
  1327. Transparency = 1,
  1328. Size = Vector3.new(0.5,0.2,0.5),
  1329. Position = Mouse.hit.p,
  1330. }
  1331.  
  1332. local p = Create("PointLight"){
  1333. Parent = gun,
  1334. Brightness = 16,
  1335. Range = 8,
  1336. Color = Color3.new(0,0,255)
  1337. }
  1338. local ray = Ray.new(tip.CFrame.p, (Mouse.Hit.p - tip.CFrame.p).unit * 300)
  1339. local part, position = workspace:FindPartOnRay(ray, Character, false, true)
  1340. local distance = (tip.CFrame.p - position).magnitude
  1341. local beam = Create('Part'){
  1342. Parent = Character,
  1343. BrickColor = BrickColor.new("Toothpaste"),
  1344. FormFactor = "Custom",
  1345. Material = "Neon",
  1346. Transparency = 0.25,
  1347. Anchored = true,
  1348. Locked = true,
  1349. CanCollide = false,
  1350. Size = Vector3.new(0.3, 0.3, distance),
  1351. CFrame = CFrame.new(tip.CFrame.p, position) * CFrame.new(0, 0, -distance / 2),
  1352. }
  1353.  
  1354. --http://www.roblox.com/asset/?id=359667865
  1355. CFuncs['Sound'].Create("rbxassetid://995908246",RightArm,5,1)
  1356. if form == false then
  1357. MagnitudeDamage(a, 5, 50, 90, 10, "Normal", "388826051", 3)
  1358. else
  1359. MagnitudeDamage(a, 5, 90, 1000, 10, "Normal", "388826051", 3)
  1360. Effects.Block.Create(BrickColor.new'Toothpaste', a.CFrame, 30, 30, 30, -0.8, -0.8, -0.8, 0.1)
  1361. end
  1362. bullets = bullets - 1
  1363. Effects.Block.Create(BrickColor.new'Toothpaste', tip.CFrame, 16, 16, 16, -0.8, -0.8, -0.8, 0.1)
  1364. --Effects.Block.Create(BrickColor.new'Toothpaste', a.CFrame, 16, 16, 16, -0.8, -0.8, -0.8, 0.1)
  1365. game:service'Debris':AddItem(p,0.1)
  1366. game:service'Debris':AddItem(a,0.1)
  1367. coroutine.wrap(function()
  1368. for i = 0, 1.4, 0.2 do
  1369. swait()
  1370. beam.Transparency = beam.Transparency + 0.1
  1371. beam.Size = beam.Size + Vector3.new(0.1,0.1,0.1)
  1372. end
  1373. game:service'Debris':AddItem(beam,0.1)
  1374. end)()
  1375. elseif bullets == 0 then
  1376. 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)
  1377. end
  1378.  
  1379. attack = false
  1380. end
  1381.  
  1382.  
  1383. function attacktwo()
  1384. attack = true
  1385. anims.punch2.play()
  1386. if form == false then
  1387. MagnitudeDamage(LeftArm, 5, 10, 20, 10, "Normal", "388826051", 3)
  1388. else
  1389. MagnitudeDamage(LeftArm, 5, 20, 30, 10, "Normal", "388826051", 3)
  1390. Effects.Block.Create(BrickColor.new'Toothpaste', LeftArm.CFrame * CFrame.new(0,-1,0), 16, 16, 16, -0.8, -0.8, -0.8, 0.1)
  1391. end
  1392. attack = false
  1393. end
  1394. function reload()
  1395. if bullets == 0 and gunout == true then
  1396. attack = true
  1397. anims.punch2.play()
  1398. wait(2)
  1399. bullets = amount
  1400. 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)
  1401. attack = false
  1402. end
  1403. end
  1404. function attackthree() -- kick
  1405. attack = true
  1406. kicking = true
  1407. hum.WalkSpeed = 40
  1408. anims.kick.play()
  1409. end
  1410.  
  1411. coroutine.wrap(function()
  1412. while true do
  1413. wait()
  1414. if kicking == true then
  1415. if form == false then
  1416. MagnitudeDamage(LeftLeg, 5, 20, 35, 10, "Normal", "388826051", 3)
  1417. else
  1418. MagnitudeDamage(LeftLeg, 5, 35, 45, 10, "Normal", "388826051", 3)
  1419. end
  1420. RootPart.CFrame = RootPart.CFrame * CFrame.new(0,0,-2)
  1421. end
  1422. end
  1423. end)()
  1424.  
  1425. function atk3end()
  1426. attack = false
  1427. hum.WalkSpeed = 16
  1428. kicking = false
  1429. end
  1430.  
  1431. Mouse.Button1Down:connect(function()
  1432. if attack == false and dying == false and attacktype == 1 then
  1433. attackone()
  1434. if gunout == false then
  1435. attacktype = 2
  1436. end
  1437. elseif attack == false and dying == false and attacktype == 2 then
  1438. attacktwo()
  1439. attacktype = 1
  1440. end
  1441. end)
  1442.  
  1443. hum.Died:connect(function()
  1444. Player.CameraMaxZoomDistance = 400
  1445. Player.CameraMinZoomDistance = 0.5
  1446. end)
  1447. Mouse.KeyDown:connect(function(k)
  1448. k = k:lower()
  1449. if attack == false and dying == false and k == 'z' then
  1450.  
  1451. attackthree()
  1452. elseif attack == false and dying == false and k == 'r' then
  1453. reload()
  1454. elseif attack == false and dying == false and k == 'g' then
  1455. if gunout == true then
  1456. gunout = false
  1457. gun.Transparency = 1
  1458. elseif gunout == false then
  1459. gun.Transparency = 0
  1460.  
  1461. gunout = true
  1462. end
  1463. end
  1464. end)
  1465. script.Name = 'different world'
  1466.  
  1467. Mouse.KeyUp:connect(function(k)
  1468. k = k:lower()
  1469. if k == 'z' and dying == false then
  1470. atk3end()
  1471. end
  1472. end)
  1473. script.Name = 'different world'
  1474. while true do
  1475. swait()
  1476. for i, v in pairs(Character:GetChildren()) do
  1477. if v:IsA("Part") then
  1478. v.Material = "SmoothPlastic"
  1479. elseif v:IsA("Accessory") then
  1480. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1481. end
  1482. end
  1483. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1484. velocity = RootPart.Velocity.y
  1485. sine = sine + change
  1486. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1487. if RootPart.Velocity.y > 1 and hit == nil then
  1488. Anim = "Jump"
  1489. if attack == false then
  1490. if jumping == false then
  1491. --CFuncs['Sound'].Create("rbxassetid://995908246",Torso,10,0.8)
  1492. jumping = true
  1493. end
  1494. anims.jump.play()
  1495. script.Name = 'different world'
  1496. end
  1497. elseif RootPart.Velocity.y < -1 and hit == nil then
  1498. Anim = "Fall"
  1499. if attack == false then
  1500. jumping = false
  1501. anims.jump.play()
  1502. script.Name = 'different world'
  1503. end
  1504. elseif Torsovelocity < 1 and hit ~= nil then
  1505. Anim = "Idle"
  1506. if attack == false then
  1507. change = 1
  1508. anims.idle.play()
  1509. script.Name = 'different world'
  1510.  
  1511. end
  1512. elseif Torsovelocity > 2 and hit ~= nil then
  1513. Anim = "Walk"
  1514. if attack == false then
  1515. anims.walk.play()
  1516. script.Name = 'different world'
  1517. end
  1518. end
  1519. if 0 < #Effects then
  1520. for e = 1, #Effects do
  1521. if Effects[e] ~= nil then
  1522. local Thing = Effects[e]
  1523. if Thing ~= nil then
  1524. local Part = Thing[1]
  1525. local Mode = Thing[2]
  1526. local Delay = Thing[3]
  1527. local IncX = Thing[4]
  1528. local IncY = Thing[5]
  1529. local IncZ = Thing[6]
  1530. if Thing[2] == "Shoot" then
  1531. local Look = Thing[1]
  1532. local move = 30
  1533. if Thing[8] == 3 then
  1534. move = 10
  1535. end
  1536. local hit, pos = rayCast(Thing[4], Thing[1], move, m)
  1537. if Thing[10] ~= nil then
  1538. da = pos
  1539. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  1540. cfa = CFrame.new(Thing[4], pos)
  1541. tehCF = cfa:lerp(cf2, 0.2)
  1542. Thing[1] = tehCF.lookVector
  1543. end
  1544. local mag = (Thing[4] - pos).magnitude
  1545. 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)
  1546. if Thing[8] == 2 then
  1547. 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)
  1548. end
  1549. Thing[4] = Thing[4] + Look * move
  1550. Thing[3] = Thing[3] - 1
  1551. if 2 < Thing[5] then
  1552. Thing[5] = Thing[5] - 0.3
  1553. Thing[6] = Thing[6] - 0.3
  1554. end
  1555. if hit ~= nil then
  1556. Thing[3] = 0
  1557. if Thing[8] == 1 or Thing[8] == 3 then
  1558. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1559. else
  1560. if Thing[8] == 2 then
  1561. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1562. if (hit.Parent:findFirstChild("Humanoid")) ~= nil or (hit.Parent.Parent:findFirstChild("Humanoid")) ~= nil then
  1563. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1564. ref.Anchored = true
  1565. ref.CFrame = CFrame.new(pos)
  1566. CFuncs["Sound"].Create("161006093", ref, 1, 1.2)
  1567. game:GetService("Debris"):AddItem(ref, 0.2)
  1568. 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)
  1569. 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)
  1570. MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1)
  1571. end
  1572. end
  1573. end
  1574. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1575. ref.Anchored = true
  1576. ref.CFrame = CFrame.new(pos)
  1577. Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  1578. game:GetService("Debris"):AddItem(ref, 1)
  1579. end
  1580. if Thing[3] <= 0 then
  1581. table.remove(Effects, e)
  1582. end
  1583. end
  1584. do
  1585. do
  1586. if Thing[2] == "FireWave" then
  1587. if Thing[3] <= Thing[4] then
  1588. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  1589. Thing[3] = Thing[3] + 1
  1590. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  1591. else
  1592. Part.Parent = nil
  1593. table.remove(Effects, e)
  1594. end
  1595. end
  1596. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  1597. if Thing[1].Transparency <= 1 then
  1598. if Thing[2] == "Block1" then
  1599. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1600. Mesh = Thing[7]
  1601. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1602. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1603.  
  1604. else
  1605. if Thing[2] == "Block2" then
  1606. Thing[1].CFrame = Thing[1].CFrame
  1607. Mesh = Thing[7]
  1608. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1609. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1610. else
  1611. if Thing[2] == "Fire" then
  1612. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  1613. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1614. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1615. else
  1616. if Thing[2] == "Cylinder" then
  1617. Mesh = Thing[7]
  1618. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1619. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1620. else
  1621. if Thing[2] == "Blood" then
  1622. Mesh = Thing[7]
  1623. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1624. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1625. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1626. else
  1627. if Thing[2] == "Elec" then
  1628. Mesh = Thing[10]
  1629. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1630. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1631. else
  1632. if Thing[2] == "Disappear" then
  1633. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1634. else
  1635. if Thing[2] == "Shatter" then
  1636. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1637. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1638. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1639. Thing[6] = Thing[6] + Thing[5]
  1640. end
  1641. end
  1642. end
  1643. end
  1644. end
  1645. end
  1646. end
  1647. end
  1648. else
  1649. Part.Parent = nil
  1650. table.remove(Effects, e)
  1651. end
  1652. end
  1653. end
  1654. end
  1655. end
  1656. end
  1657. end
  1658. end
  1659. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement