Advertisement
sneakydodge123

laser

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