Advertisement
cr8brooo

tes3

Dec 10th, 2021 (edited)
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.47 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,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. --HOKUTO, NO SHINKEN!--
  147. ----------------------------------------------------------------
  148. --By CKbackup (Sugarie Saffron) --
  149. --YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw--
  150. --Discord: Sugarie Saffron#4705 --
  151. ----------------------------------------------------------------
  152.  
  153. print([[
  154. Edit by ameture Joker/Saiyan_Savages
  155. --------------------------------
  156. Bored out of my mind making this
  157. --------------------------------
  158. (Keys)
  159. M - Mute/Play Music
  160. P - Time mechanations
  161.  
  162. K/L/J - Change song
  163.  
  164. Click - Final Hour Mark
  165. Q - Teleport
  166. Z - Final Hour Trigger
  167. ]])
  168.  
  169. player = game.Players.LocalPlayer
  170. mouse = player:GetMouse()
  171. chara = player.Character
  172. equipped = false
  173. del = false
  174. attacking = false
  175. atkd = false
  176. hum = chara:FindFirstChildOfClass("Humanoid")
  177. debby = game.Debris
  178. ws = 18.5
  179. hum.WalkSpeed = 18.5
  180.  
  181.  
  182.  
  183. ArtificialHB = Instance.new("BindableEvent", script)
  184. ArtificialHB.Name = "Heartbeat"
  185. script:WaitForChild("Heartbeat")
  186. frame = 0.03333333333333
  187. tf = 0
  188. allowframeloss = false
  189. tossremainder = false
  190. lastframe = tick()
  191. script.Heartbeat:Fire()
  192. game:GetService("RunService").Heartbeat:connect(function(s, p)
  193. tf = tf + s
  194. if tf >= frame then
  195. if allowframeloss then
  196. script.Heartbeat:Fire()
  197. lastframe = tick()
  198. else
  199. for i = 1, math.floor(tf / frame) do
  200. script.Heartbeat:Fire()
  201. end
  202. lastframe = tick()
  203. end
  204. if tossremainder then
  205. tf = 0
  206. else
  207. tf = tf - frame * math.floor(tf / frame)
  208. end
  209. end
  210. end)
  211. function swait(num)
  212. if num == 0 or num == nil then
  213. ArtificialHB.Event:wait()
  214. else
  215. for i = 0, num*30 do
  216. ArtificialHB.Event:wait()
  217. end
  218. end
  219. end
  220.  
  221. New = function(Object, Parent, Name, Data)
  222. local Object = Instance.new(Object)
  223. for Index, Value in pairs(Data or {}) do
  224. Object[Index] = Value
  225. end
  226. Object.Parent = Parent
  227. Object.Name = Name
  228. return Object
  229. end
  230.  
  231. RightArm = New("Model",chara,"RightArm",{})
  232. MainPart = New("Part",RightArm,"MainPart",{Transparency = 1,Transparency = 1,Size = Vector3.new(1, 2, 1),CFrame = CFrame.new(0.5, 3.00000787, -3.50019717, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  233. Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara["Right Arm"],C1 = CFrame.new(0, -1.00135803e-005, -0.000197172165, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  234. Emit2Part = New("Part",RightArm,"Emit2Part",{BrickColor = BrickColor.new("Royal purple"),Material = Enum.Material.Neon,Transparency = 1,Transparency = 1,Size = Vector3.new(1, 2, 1),CFrame = CFrame.new(0.5, 2.10001373, -3.5001967, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0, 0.74902),})
  235. Mesh = New("SpecialMesh",Emit2Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,})
  236. Weld = New("ManualWeld",Emit2Part,"Weld",{Part0 = Emit2Part,Part1 = MainPart,C1 = CFrame.new(0, -0.899994135, 4.76837158e-007, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  237. LeftArm = New("Model",chara,"LeftArm",{})
  238. MainPart = New("Part",LeftArm,"MainPart",{Transparency = 1,Transparency = 1,Size = Vector3.new(1, 2, 1),CFrame = CFrame.new(-2.50000024, 3.00000787, -3.50019717, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  239. Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara["Left Arm"],C1 = CFrame.new(-2.38418579e-007, -1.00135803e-005, -0.000197172165, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  240. EmitPart = New("Part",LeftArm,"EmitPart",{BrickColor = BrickColor.new("Royal purple"),Material = Enum.Material.Neon,Transparency = 1,Transparency = 1,Size = Vector3.new(1, 2, 1),CFrame = CFrame.new(-2.5, 2.10001373, -3.5001967, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0, 0.74902),})
  241. Mesh = New("SpecialMesh",EmitPart,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,})
  242. Weld = New("ManualWeld",EmitPart,"Weld",{Part0 = EmitPart,Part1 = MainPart,C1 = CFrame.new(2.38418579e-007, -0.899994135, 4.76837158e-007, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  243.  
  244. lach = LeftArm:GetChildren()
  245. rach = RightArm:GetChildren()
  246.  
  247. local pemit = Instance.new("ParticleEmitter")
  248. pemit.Name = "beter"
  249. pemit.Enabled = false
  250. pemit.LightEmission = 1
  251. pemit.Size = NumberSequence.new(1,0)
  252. pemit.Transparency = NumberSequence.new(0,1)
  253. pemit.Texture = "rbxassetid://2677102618"
  254. pemit.Lifetime = NumberRange.new(.5)
  255. pemit.Acceleration = Vector3.new(0,20,0)
  256. pemit.Rate = 70
  257. pemit.Rotation = NumberRange.new(0,360)
  258. pemit.Speed = NumberRange.new(3)
  259. pemit.RotSpeed = NumberRange.new(100)
  260. pemit.VelocitySpread = 120
  261. pemit.ZOffset = -.5
  262.  
  263. for i, v in pairs(chara:GetChildren()) do
  264. if v ~= chara.HumanoidRootPart and v:IsA("BasePart") then
  265. pemit:Clone().Parent = v
  266. end
  267. if v:IsA("ShirtGraphic") or v:IsA("Shirt") or v:IsA("Pants") then
  268. v:Destroy()
  269. end
  270. if v.Name == "Chest" then
  271. for a, t in pairs(v:GetChildren()) do
  272. if t ~= v.MainPart and t ~= v.Tail then
  273. t:Destroy()
  274. end
  275. end
  276. end
  277. if v.Name == "FakeHeadM" then
  278. v.FakeHead.Normal.Texture = "http://www.roblox.com/asset/?id=1000657824"
  279. for a, t in pairs(v:GetChildren()) do
  280. if t.Name == "SpecPart" then
  281. t:Destroy()
  282. end
  283. end
  284. end
  285. end
  286.  
  287. ShadowHead = New("Part",chara,"ShadowHeads",{BrickColor = BrickColor.new("Really red"),Size = Vector3.new(1.20000005, 0.600000024, 1),CFrame = CFrame.new(68.5999985, 0.700013041, 9.89999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  288. Mesh = New("SpecialMesh",ShadowHead,"Mesh",{Scale = Vector3.new(0, 0, 0),})
  289. Weld = New("ManualWeld",ShadowHead,"Weld",{Part0 = ShadowHead,Part1 = chara.Head,C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  290. ShadowHead.Transparency = 1
  291.  
  292. --LACM = New("CharacterMesh",chara,"LACM",{MeshId = "32328397",BodyPart = "LeftArm"})
  293. --LLCM = New("CharacterMesh",chara,"LLCM",{MeshId = "319336109",BodyPart = "LeftLeg"})
  294. --RACM = New("CharacterMesh",chara,"RACM",{MeshId = "32328563",BodyPart = "RightArm"})
  295. --RLCM = New("CharacterMesh",chara,"RLCM",{MeshId = "319336155",BodyPart = "RightLeg"})
  296. --TOCM = New("CharacterMesh",chara,"TOCM",{MeshId = "32328670",BodyPart = "Torso"})
  297.  
  298. local shi = Instance.new("Shirt",chara)
  299. shi.ShirtTemplate = "http://www.roblox.com/asset/?id=767533301"
  300. local pan = Instance.new("Pants",chara)
  301. pan.PantsTemplate = "http://www.roblox.com/asset/?id=2673193810"
  302. local gshi = Instance.new("ShirtGraphic",nil)
  303. gshi.Graphic = "http://www.roblox.com/asset/?id=114844135"
  304.  
  305. --Sounds--
  306. function LoadSnd(id,loop,vol,pit)
  307. local snd = New("Sound",chara.Head,"Sound",{SoundId = "rbxassetid://"..id,Looped = loop,Volume = vol,Pitch = pit})
  308. return snd
  309. end
  310. --AtataSnd = LoadSnd(160189066,1471213022,false,1,1)
  311. --DeadSnd = LoadSnd(5037247979,false,1,1)
  312. Music = LoadSnd(0,true,1,1)
  313. Music.Parent = chara
  314.  
  315. --Play Sound in Part--
  316. function PlaySnd(snd,part,pitch,vol)
  317. local sound = Instance.new("Sound",part)
  318. sound.PlayOnRemove = true
  319. sound.SoundId = "rbxassetid://"..snd
  320. sound.PlaybackSpeed = pitch
  321. sound.Volume = vol
  322. sound:Destroy()
  323. end
  324.  
  325. function CamShake(par,magni,env,dur)
  326. coroutine.wrap(function()
  327. for i=0,dur*60 do
  328. swait()
  329. hum.CameraOffset = Vector3.new(math.random(-(env*10),(env*10))/10,math.random(-(env*10),(env*10))/10,math.random(-(env*10),(env*10))/10)
  330. end
  331. hum.CameraOffset = Vector3.new(0,0,0)
  332. end)()
  333. end
  334.  
  335. --function PlaySnd2(snd,part)
  336. --local sound = snd:Clone()
  337. --sound.Parent = part
  338. --sound.PlayOnRemove = true
  339. --sound:Destroy()
  340. --end
  341.  
  342. maincol = "Really black"
  343.  
  344. function CreateTrailObj(parent,color1,color2,ofsx,ofsz)
  345. local Att1 = New("Attachment",parent,"Att1",{Position = Vector3.new(ofsx,parent.Size.Y/2,ofsz)})
  346. local Att2 = New("Attachment",parent,"Att2",{Position = Vector3.new(ofsx,-(parent.Size.Y/2),ofsz)})
  347. local TEff = New("Trail",parent,"TrailEff",{Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new(color1).Color),ColorSequenceKeypoint.new(1,BrickColor.new(color2).Color)}),Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,.5),NumberSequenceKeypoint.new(1,1)}),Attachment0 = Att1,Attachment1 = Att2,Enabled = false,Lifetime = .5,MinLength = .001})
  348. return TEff
  349. end
  350.  
  351. RPunchT = CreateTrailObj(chara["Right Arm"],"Really black","White",0,0)
  352. LPunchT = CreateTrailObj(chara["Left Arm"],"New Yeller","Really red",0,0)
  353. RKickT = CreateTrailObj(chara["Right Leg"],"White","Really blue",0,0)
  354. LKickT = CreateTrailObj(chara["Left Leg"],"White","Really black",0,0)
  355.  
  356. --Punch Hit Effect--
  357. function PunchEff(pos)
  358. local p = Instance.new("Part",game.Workspace)
  359. p.Size = Vector3.new(1,1,1)
  360. p.BrickColor = BrickColor.new(maincol)
  361. p.Material = "Neon"
  362. p.Anchored = true
  363. p.CanCollide = false
  364. p.CFrame = pos
  365. CamShake(p,10,.7,.1)
  366. local pm = Instance.new("SpecialMesh",p)
  367. pm.MeshType = "Torso"
  368. coroutine.resume(coroutine.create(function()
  369. for i = 0,1,.05 do
  370. swait()
  371. p.Transparency = i
  372. pm.Scale = Vector3.new(2*i,2*i,2*i)
  373. end
  374. swait()
  375. p:Destroy()
  376. end))
  377. end
  378. function BigHitEff(pos)
  379. for i = 1, 5 do
  380. local p = Instance.new("Part",game.Workspace)
  381. p.Size = Vector3.new(1,1,1)
  382. p.BrickColor = BrickColor.new("Lime green")
  383. p.Material = "Neon"
  384. p.Anchored = true
  385. p.CanCollide = false
  386. p.CFrame = pos * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
  387. local pm = Instance.new("SpecialMesh",p)
  388. pm.MeshType = "Sphere"
  389. pm.Scale = Vector3.new(.5,0,.5)
  390. local disp = coroutine.wrap(function()
  391. for i = 0,1,.05 do
  392. swait()
  393. p.Transparency = i
  394. pm.Scale = Vector3.new(2*i,2*i,2*i)
  395. end
  396. swait()
  397. p:Destroy()
  398. end)
  399. disp()
  400. local p = Instance.new("Part",game.Workspace)
  401. p.Size = Vector3.new(1,1,1)
  402. p.BrickColor = BrickColor.new("Really black")
  403. p.Material = "Neon"
  404. p.Anchored = true
  405. p.CanCollide = false
  406. p.CFrame = pos * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
  407. CamShake(p,10,1,.4)
  408. local pm = Instance.new("SpecialMesh",p)
  409. pm.MeshType = "Torso"
  410. pm.Scale = Vector3.new(.5,.5,.5)
  411. local disp = coroutine.wrap(function()
  412. for i = 0,1,.05 do
  413. swait()
  414. p.Transparency = i
  415. pm.Scale = Vector3.new(.5*i,.5*i,.5*i)
  416. pm.Offset = Vector3.new(0,8*i,0)
  417. end
  418. swait()
  419. p:Destroy()
  420. end)
  421. disp()
  422. end
  423. end
  424.  
  425. --Damage Function--
  426. function dealdmg(dude)
  427. if dude ~= chara and dude:IsDescendantOf(chara) == false then
  428. if dude:FindFirstChild("IsAlreadyDead") == nil then
  429. local vall = Instance.new("ObjectValue",dude)
  430. vall.Name = "IsAlreadyDead"
  431. local faceg = Instance.new("BillboardGui",dude)
  432. faceg.Name = "IsAlreadyDeadBillBoardGui"
  433. faceg.Size = UDim2.new(4,0,4,0)
  434. faceg.Adornee = dude.Head
  435. faceg.StudsOffset = Vector3.new(0,5.5,0)
  436. local simgl = Instance.new("ImageLabel",faceg)
  437. simgl.Position = UDim2.new(0,0,0,0)
  438. simgl.Size = UDim2.new(1,0,1,0)
  439. simgl.Image = "http://www.roblox.com/asset/?id=1600519556"
  440. simgl.BackgroundTransparency = 1
  441. end
  442. local vall = Instance.new("ObjectValue",dude)
  443. vall.Name = "IsHit"
  444. debby:AddItem(vall,.01)
  445. local bfos = Instance.new("BodyVelocity",dude.Head)
  446. bfos.P = 200000
  447. bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P)
  448. bfos.Velocity = Vector3.new(0,0,0) --+ chara.HumanoidRootPart.CFrame.lookVector * kbx
  449. game.Debris:AddItem(bfos,.5)
  450. end
  451. end
  452.  
  453. --Explode Hitbox--
  454. function ExHitbox(rad,pos,damage,env,toim,kby,kbx)
  455. local E = Instance.new("Explosion")
  456. E.Position = pos
  457. E.Parent = game.Workspace
  458. E.BlastRadius = rad
  459. E.BlastPressure = 0
  460. E.Visible = true
  461. E.Hit:connect(function(hit)
  462. if hit.Parent:FindFirstChildOfClass("Humanoid")~=nil then
  463. dealdmg(hit.Parent,damage,env,toim,kby,kbx)
  464. end
  465. end)
  466. end
  467. function PExHitbox()
  468. local E = Instance.new("Explosion",workspace)
  469. E.Position = chara.HumanoidRootPart.Position + chara.HumanoidRootPart.CFrame.lookVector*3
  470. E.BlastRadius = 60
  471. E.BlastPressure = 0
  472. E.Visible = false
  473. debby:AddItem(E,.05)
  474. E.Hit:connect(function(hit)
  475. if hit.Parent:FindFirstChildOfClass("Humanoid")~=nil then
  476. if punchactive == true then
  477. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil and hit.Parent.Name ~= "Salvo_Starly" then
  478. dealdmg(hit.Parent)
  479.  
  480. PunchEff(hit.CFrame + Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1)))
  481. end
  482. end
  483. if hpunchactive == true then
  484. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent.Name ~= "Salvo_Starly" then
  485. dealdmg(hit.Parent)
  486.  
  487. --HERE--
  488. coroutine.resume(coroutine.create(function()
  489. if hit.Parent.Head:FindFirstChildOfClass("BodyVelocity") then
  490. hit.Parent.Head:FindFirstChildOfClass("BodyVelocity"):Destroy()
  491. end
  492. local bfos = Instance.new("BodyVelocity",hit.Parent.Head)
  493. bfos.P = 100000
  494. bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P)
  495. bfos.Velocity = chara.HumanoidRootPart.CFrame.lookVector * 100
  496. game.Debris:AddItem(bfos,.5)
  497. hit.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
  498. swait(2)
  499. hit.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false
  500. end))
  501. end
  502. end
  503. end
  504. end)
  505. end
  506.  
  507. --Punch Touch--
  508. dela = .05
  509. punchactive = false
  510. function punchhit(hit)
  511. if punchactive == true then
  512. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
  513. dealdmg(hit.Parent)
  514. PlaySnd(1471213022,hit.Parent.Head,1,1)
  515. PunchEff(hit.CFrame)
  516. end
  517. end
  518. end
  519. Emit2Part.Touched:connect(punchhit)
  520. EmitPart.Touched:connect(punchhit)
  521.  
  522. --Chat Function--
  523. function chatfunc(text,dude)
  524. coroutine.resume(coroutine.create(function()
  525. if dude:FindFirstChild("TalkingBillBoard")~= nil then
  526. dude:FindFirstChild("TalkingBillBoard"):destroy()
  527. end
  528. local naeeym2 = Instance.new("BillboardGui",chara)
  529. naeeym2.Size = UDim2.new(0,100,0,40)
  530. naeeym2.StudsOffset = Vector3.new(0,3,0)
  531. naeeym2.Adornee = dude.Head
  532. naeeym2.Name = "TalkingBillBoard"
  533. local tecks2 = Instance.new("TextLabel",naeeym2)
  534. tecks2.BackgroundTransparency = 1
  535. tecks2.BorderSizePixel = 0
  536. tecks2.Text = ""
  537. tecks2.Font = "Antique"
  538. tecks2.FontSize = "Size24"
  539. tecks2.TextStrokeTransparency = 0
  540. tecks2.TextColor3 = Color3.new(1,0.2,0.2)
  541. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  542. tecks2.Size = UDim2.new(1,0,0.5,0)
  543. coroutine.resume(coroutine.create(function()
  544. for i = 1,string.len(text),1 do
  545. tecks2.Text = string.sub(text,1,i)
  546. swait(0.01)
  547. end
  548. swait(1)
  549. for i = 1, 5 do
  550. swait(.01)
  551. tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
  552. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
  553. tecks2.TextTransparency = tecks2.TextTransparency + .2
  554. end
  555. naeeym2:Destroy()
  556. end))
  557. end))
  558. end
  559.  
  560. --function onChatted(msg)
  561. --chatfunc(msg,chara)
  562. --end
  563. --player.Chatted:connect(onChatted)
  564.  
  565. --Clerp Animations--
  566. TC = chara.HumanoidRootPart.RootJoint
  567. HC = chara.Torso.Neck
  568. RAC = chara.Torso["Right Shoulder"]
  569. LAC = chara.Torso["Left Shoulder"]
  570. RLC = chara.Torso["Right Hip"]
  571. LLC = chara.Torso["Left Hip"]
  572. TCF = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  573. HCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  574. RACF = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  575. LACF = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  576. RLCF = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  577. LLCF = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  578. RWF = CFrame.new(-1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  579. LWF = CFrame.new(1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  580. RLWF = CFrame.new(-.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  581. LLWF = CFrame.new(.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  582. grp = Instance.new("Model",chara)
  583. RW = nil
  584. LW = nil
  585. RLW = nil
  586. LLW = nil
  587.  
  588. function AddLegWelds()
  589. RLW = Instance.new("Weld",chara["Right Leg"])
  590. RLW.Part1 = HC.Parent
  591. RLW.Part0 = chara["Right Leg"]
  592. RLW.C0 = RLWF
  593. LLW = Instance.new("Weld",chara["Left Leg"])
  594. LLW.Part1 = HC.Parent
  595. LLW.Part0 = chara["Left Leg"]
  596. LLW.C0 = LLWF
  597. end
  598.  
  599. function AddArmWelds()
  600. RW = Instance.new("Weld",HC.Parent)
  601. RW.Part1 = HC.Parent
  602. RW.Part0 = chara["Right Arm"]
  603. RW.C0 = RWF
  604. LW = Instance.new("Weld",HC.Parent)
  605. LW.Part1 = HC.Parent
  606. LW.Part0 = chara["Left Arm"]
  607. LW.C0 = LWF
  608. end
  609.  
  610. function DestroyLegWelds()
  611. RLC = New("Motor6D",chara.Torso,"Right Hip",{Part0 = chara.Torso,Part1 = chara["Right Leg"],C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),})
  612. LLC = New("Motor6D",chara.Torso,"Left Hip",{Part0 = chara.Torso,Part1 = chara["Left Leg"],C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),})
  613. RLW:Destroy()
  614. LLW:Destroy()
  615. end
  616.  
  617. function DestroyArmWelds()
  618. RAC = New("Motor6D",chara.Torso,"Right Shoulder",{Part0 = chara.Torso,Part1 = chara["Right Arm"],C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0),C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)})
  619. LAC = New("Motor6D",chara.Torso,"Left Shoulder",{Part0 = chara.Torso,Part1 = chara["Left Arm"],C0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)})
  620. RW:Destroy()
  621. LW:Destroy()
  622. end
  623.  
  624. function clerp(a,b,c)
  625. return a:lerp(b,c)
  626. end
  627.  
  628. ITCF = TCF
  629. IHCF = HCF
  630. IRWF = RWF
  631. ILWF = LWF
  632.  
  633. function res()
  634. TC.C0 = ITCF
  635. HC.C0 = IHCF
  636. end
  637. res()
  638.  
  639. --Teleport--
  640. function Teleport()
  641. PlaySnd(153613030,chara.Head,1,1)
  642. for i, v in pairs(chara:GetChildren()) do
  643. if v:IsA("BasePart") then
  644. local trace = Instance.new("Part",game.Workspace)
  645. trace.Size = v.Size
  646. trace.Position = v.Position
  647. trace.CFrame = v.CFrame
  648. trace.Anchored = true
  649. trace.CanCollide = false
  650. trace.BrickColor = BrickColor.new("Really red")
  651. trace.Material = "Neon"
  652. coroutine.resume(coroutine.create(function()
  653. for i = 0,2,.1 do
  654. swait()
  655. trace.Transparency = 0
  656. end
  657. trace:Destroy()
  658. end))
  659. end
  660. end
  661. chara.Torso.CFrame = mouse.Hit + Vector3.new(0,3,0)
  662. end
  663.  
  664. --Keys--
  665. holdingdown = false
  666. function onButton1Down()
  667. holdingdown = true
  668. if del == false then
  669. del = true
  670. AddArmWelds()
  671. for i = 0,.6,.1 do
  672. swait()
  673. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),ITCF,.6-i)
  674. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-10),0,0),IHCF,.6-i)
  675. RW.C0 = clerp(RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-20)),IRWF,.6-i)
  676. LW.C0 = clerp(LWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(20)),ILWF,.6-i)
  677. end
  678. punchactive = true
  679. local AtataSnd = LoadSnd(446961725,false,1,1)
  680. AtataSnd:Play() --PlaySnd(160189066,chara.Head,1,1)
  681. if dudes[no]:FindFirstChildOfClass("Humanoid").Health > 1 then
  682. chatfunc("You have been marked",dudes[no])
  683. end
  684.  
  685. local punches = 0
  686. repeat
  687. swait()
  688. RW.C0 = (RWF + Vector3.new(math.rad(-10,10),math.random(1,2),math.random(0,1))) * CFrame.fromEulerAnglesXYZ(math.rad(-100+math.random(-15,15)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15)))
  689. LW.C0 = (LWF + Vector3.new(math.rad(-10,10),math.random(1,2),math.random(0,1))) * CFrame.fromEulerAnglesXYZ(math.rad(-100+math.random(-15,15)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15)))
  690. TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(math.random(-10,10)),0)
  691. coroutine.resume(coroutine.create(function()
  692. local part1 = Instance.new("Part",workspace)
  693. part1.Size = Vector3.new(1,2,1)
  694. part1.CanCollide = false
  695. part1.Anchored = true
  696. part1.BrickColor = chara["Right Arm"].BrickColor
  697. part1.CFrame = chara["Right Arm"].CFrame
  698. local part2 = Instance.new("Part",workspace)
  699. part2.Size = Vector3.new(1,2,1)
  700. part2.CanCollide = false
  701. part2.Anchored = true
  702. part2.BrickColor = chara["Left Arm"].BrickColor
  703. part2.CFrame = chara["Left Arm"].CFrame
  704. if chara:FindFirstChildOfClass("CharacterMesh") then
  705. local mh = Instance.new("SpecialMesh",part1)
  706. mh.MeshId = "rbxassetid://279174886"
  707. mh.Scale = Vector3.new(1.1,1.1,1.1)
  708. local mh = Instance.new("SpecialMesh",part2)
  709. mh.MeshId = "rbxassetid://279174949"
  710. mh.Scale = Vector3.new(1.1,1.1,1.1)
  711. end
  712. coroutine.resume(coroutine.create(function()
  713. for i = .4,1,.1 do
  714. swait()
  715. part1.Transparency = i
  716. part2.Transparency = i
  717. end
  718. part1:Destroy()
  719. part2:Destroy()
  720. end))
  721. end))
  722. PExHitbox()
  723. punches = punches + 1
  724. until holdingdown == false or punches >= 0
  725. punchactive = false
  726. LW.C0 = ILWF
  727. AtataSnd:Stop()
  728. AtataSnd.TimePosition = 0
  729. AtataSnd:Play()
  730. hpunchactive = true
  731. chatfunc("You have been marked",dude)
  732. for i = 0,.6,.2 do
  733. swait()
  734. TC.C0 = clerp((TCF - Vector3.new(0,0,2)) * CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(-10),0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(-10),math.rad(10),0),.6-i)
  735. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-10),math.rad(10),0),HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(-10),0),.6-i)
  736. RW.C0 = clerp((RWF + Vector3.new(0,1,-1)) * CFrame.fromEulerAnglesXYZ(math.rad(-100),0,0),(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-100),0,0),.6-i)
  737. end
  738. PExHitbox()
  739. swait()
  740. TC.C0 = (TCF - Vector3.new(0,0,2)) * CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(-10),0)
  741. HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(math.rad(-10),math.rad(10),0)
  742. RW.C0 = (RWF + Vector3.new(0,1,1)) * CFrame.fromEulerAnglesXYZ(math.rad(-100),0,0)
  743. swait(.2)
  744. hpunchactive = false
  745. punchactive = false
  746. swait(.5)
  747. for i = 0,.6,.1 do
  748. swait()
  749. TC.C0 = clerp((TCF - Vector3.new(0,0,2)) * CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(-10),0),ITCF,.4+i)
  750. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-10),math.rad(10),0),IHCF,.4+i)
  751. RW.C0 = clerp((RWF + Vector3.new(0,1,1)) * CFrame.fromEulerAnglesXYZ(math.rad(-100),0,0),IRWF,.4+i)
  752. LW.C0 = ILWF
  753. end
  754. DestroyArmWelds()
  755. walking = false
  756. AtataSnd.TimePosition = 0
  757. debby:AddItem(AtataSnd,2)
  758. del = false
  759. end
  760. end
  761. function onButton2Down()
  762. if del == false then
  763. del = true
  764. AddArmWelds()
  765. ShadowHead.Transparency = 0
  766. for i = 0,.6,.05 do
  767. swait()
  768. TC.C0 = ITCF
  769. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),.4+i)
  770. RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),.4+i)
  771. LW.C0 = ILWF
  772. end
  773. RW.C0 = (RWF + Vector3.new(0,.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  774. local DeadSnd = LoadSnd(5037247979,false,1,1)
  775. DeadSnd:Play() --PlaySnd(5037247979,workspace,1,1)
  776. chatfunc("Prepare yourself...",chara)
  777. swait(2.8)
  778. local dudes = {}
  779. for i, v in pairs(workspace:GetDescendants()) do
  780. if v:IsA("ObjectValue") and v.Name == "IsAlreadyDead" and v.Parent:FindFirstChildOfClass("Humanoid") then
  781. table.insert(dudes,v.Parent)
  782. end
  783. end
  784. if #dudes == 0 then
  785. DeadSnd:Destroy()
  786. end
  787. for no = 1, #dudes do
  788. coroutine.resume(coroutine.create(function()
  789. dudes[no].IsAlreadyDeadBillBoardGui:Destroy()
  790. if dudes[no]:FindFirstChildOfClass("Humanoid").Health > 1 then
  791. chatfunc("The clock has reached the 12th hour",dudes[no])
  792. end
  793. debby:AddItem(DeadSnd,6)
  794. swait(.5)
  795. for i, v in pairs(dudes[no]:GetChildren()) do
  796. if v:IsA("BasePart") then
  797. v.Anchored = true
  798. end
  799. end
  800.  
  801. dudes[no]:BreakJoints()
  802. for oa = 1, 5 do
  803. local effp = Instance.new("Part",workspace)
  804. effp.CanCollide = true
  805. effp.BottomSurface = 0
  806. effp.TopSurface = 0
  807. effp.Size = Vector3.new(1,1,1)
  808. effp.Anchored = true
  809. effp.CFrame = (dudes[no].Head.CFrame * CFrame.new(0,-1.5,0)) * CFrame.fromEulerAnglesXYZ(math.rad(math.random(0,359)),math.rad(math.random(0,359)),math.rad(math.random(0,359)))
  810. effp.Material = "Neon"
  811. effp.BrickColor = BrickColor.new("Crimson")
  812. local efm = Instance.new("BlockMesh",effp)
  813. CamShake(effp,20,1,.4)
  814. coroutine.resume(coroutine.create(function()
  815. for a = 0,1,.01 do
  816. efm.Scale = Vector3.new(2-a*2,1000*a,2-a*2)
  817. effp.Transparency = a
  818. swait()
  819. end
  820. effp:Destroy()
  821. end))
  822. end
  823. for i, v in pairs(dudes[no]:GetChildren()) do
  824. if v:IsA("BasePart") then
  825. v.Anchored = false
  826. end
  827. end
  828. for a, v in pairs(dudes[no]:GetChildren()) do
  829. if v:IsA("BasePart") then
  830. local bodpos = Instance.new("BodyPosition",v)
  831. bodpos.Position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  832. v.BrickColor = BrickColor.new("White")
  833. v.Material = "Neon"
  834. end
  835. end
  836. for d = 0,1,.1 do
  837. for i, v in pairs(dudes[no]:GetChildren()) do
  838. if v:IsA("BasePart") then
  839. v.Transparency = d
  840. swait()
  841. end
  842. end
  843. end
  844. for i, v in pairs(dudes[no]:GetChildren()) do
  845. if v:IsA("BasePart") then
  846. v:Destroy()
  847. end
  848. end
  849. end))
  850. end
  851. for i = 0,.6,.05 do
  852. swait()
  853. TC.C0 = ITCF
  854. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),.6-i)
  855. RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),.6-i)
  856. LW.C0 = ILWF
  857. end
  858. ShadowHead.Transparency = 1
  859. DestroyArmWelds()
  860. walking = false
  861. del = false
  862. end
  863. end
  864.  
  865. rage = false
  866. if mouse then
  867. mouse.Button1Down:connect(onButton1Down)
  868. mouse.Button1Up:connect(function()
  869. holdingdown = false
  870. end)
  871. mouse.KeyDown:connect(function(key)
  872. if key == "n" then
  873. onButton2Down()
  874. elseif key == "p" then
  875. if rage == false then
  876. for i, v in pairs(chara:GetDescendants()) do
  877. if v.Name == "beter" then
  878. v.Enabled = true
  879. end
  880. end
  881. rage = true
  882. elseif rage == true then
  883. for i, v in pairs(chara:GetDescendants()) do
  884. if v.Name == "beter" then
  885. v.Enabled = false
  886. end
  887. end
  888. rage = false
  889. end
  890. elseif key == "t" then
  891. Teleport()
  892. elseif key == "m" then
  893. if Music.IsPlaying == true then
  894. Music:Stop()
  895. elseif Music.IsPlaying == false then
  896. Music:Play()
  897. end
  898. elseif key == "k" then
  899. Music.SoundId = "rbxassetid://6350377739"
  900. elseif key == "l" then
  901. Music.SoundId = "rbxassetid://2683437205"
  902. elseif key == "j" then
  903. Music.SoundId = "rbxassetid://5108618911"
  904. end
  905. end)
  906. --mouse.KeyUp:connect(onKeyUp)
  907. end
  908.  
  909. --Loop Function--
  910. walking = false
  911. toim = 0
  912. while true do
  913. swait()
  914. hum.Name = "hoomanood"
  915. hum.Health = math.huge
  916. hum.MaxHealth = math.huge
  917. --if gkeydown == true then
  918. --coroutine.resume(coroutine.create(function()
  919. --onButton1Down()
  920. --end))
  921. --end
  922. toim = toim + .1
  923. if del == false then attacking = false elseif del == true then attacking = true end
  924. torvel = (chara.HumanoidRootPart.Velocity*Vector3.new(1,0,1)).magnitude
  925. if torvel < 1 and walking == true and del == false and atkd == false and attacking == false then
  926. for i = 0,1,.25 do
  927. swait()
  928. if del == false and attacking == false then
  929. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),ITCF,i)
  930. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),IHCF,i)
  931. --RW.C0 = IRWF
  932. --LW.C0 = IRWF
  933. end
  934. end
  935. walking = false
  936. elseif torvel > 1 and walking == false and del == false and atkd == false and attacking == false then
  937. for i = 0,1,.25 do
  938. swait()
  939. if del == false and attacking == false then
  940. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),ITCF,1-i)
  941. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),IHCF,1-i)
  942. --RW.C0 = IRWF
  943. --LW.C0 = ILWF
  944. end
  945. end
  946. walking = true
  947. else
  948. end
  949. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement