Advertisement
voidscriptbuilderr

FE thing

Jul 27th, 2019
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 42.43 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code V2 by Mokiros")
  7. local RealPlayer = RealPlayer
  8. script.Parent = RealPlayer.Character
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local Disconnect_Function = function(this)
  12. this[1].Functions[this[2]] = nil
  13. end
  14. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  15. local FakeEvent_Metatable = {__index={
  16. Connect = function(this,f)
  17. local i = tostring(math.random(0,10000))
  18. while this.Functions[i] do
  19. i = tostring(math.random(0,10000))
  20. end
  21. this.Functions[i] = f
  22. return setmetatable({this,i},Disconnect_Metatable)
  23. end
  24. }}
  25. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  26. local function fakeEvent()
  27. return setmetatable({Functions={}},FakeEvent_Metatable)
  28. end
  29.  
  30. --Creating fake input objects with fake variables
  31. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  32. FakeMouse.keyUp = FakeMouse.KeyUp
  33. FakeMouse.keyDown = FakeMouse.KeyDown
  34. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  35. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  36. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  37. end}
  38. --Merged 2 functions into one by checking amount of arguments
  39. CAS.UnbindAction = CAS.BindAction
  40.  
  41. --This function will trigger the events that have been :Connect()'ed
  42. local function TriggerEvent(self,ev,...)
  43. for _,f in pairs(self[ev].Functions) do
  44. f(...)
  45. end
  46. end
  47. FakeMouse.TriggerEvent = TriggerEvent
  48. UIS.TriggerEvent = TriggerEvent
  49.  
  50. --Client communication
  51. local Event = Instance.new("RemoteEvent")
  52. Event.Name = "UserInput_Event"
  53. Event.OnServerEvent:Connect(function(plr,io)
  54. if plr~=RealPlayer then return end
  55. FakeMouse.Target = io.Target
  56. FakeMouse.Hit = io.Hit
  57. if not io.isMouse then
  58. local b = io.UserInputState == Enum.UserInputState.Begin
  59. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  60. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  61. end
  62. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  63. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  64. end
  65. for _,t in pairs(CAS.Actions) do
  66. for _,k in pairs(t.Keys) do
  67. if k==io.KeyCode then
  68. t.Function(t.Name,io.UserInputState,io)
  69. end
  70. end
  71. end
  72. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  73. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  74. end
  75. end)
  76. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  77. local Mouse = owner:GetMouse()
  78. local UIS = game:GetService("UserInputService")
  79. local input = function(io,RobloxHandled)
  80. if RobloxHandled then return end
  81. --Since InputObject is a client-side instance, we create and pass table instead
  82. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  83. end
  84. UIS.InputBegan:Connect(input)
  85. UIS.InputEnded:Connect(input)
  86.  
  87. local h,t
  88. --Give the server mouse data every second frame, but only if the values changed
  89. --If player is not moving their mouse, client won't fire events
  90. local HB = game:GetService("RunService").Heartbeat
  91. while true do
  92. if h~=Mouse.Hit or t~=Mouse.Target then
  93. h,t=Mouse.Hit,Mouse.Target
  94. Event:FireServer({isMouse=true,Target=t,Hit=h})
  95. end
  96. --Wait 2 frames
  97. for i=1,2 do
  98. HB:Wait()
  99. end
  100. end]==],script)
  101.  
  102. ----Sandboxed game object that allows the usage of client-side methods and services
  103. --Real game object
  104. local RealGame = game
  105.  
  106. --Metatable for fake service
  107. local FakeService_Metatable = {
  108. __index = function(self,k)
  109. local s = rawget(self,"_RealService")
  110. if s then
  111. return typeof(s[k])=="function"
  112. and function(_,...)return s[k](s,...)end or s[k]
  113. end
  114. end,
  115. __newindex = function(self,k,v)
  116. local s = rawget(self,"_RealService")
  117. if s then s[k]=v end
  118. end
  119. }
  120. local function FakeService(t,RealService)
  121. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  122. return setmetatable(t,FakeService_Metatable)
  123. end
  124.  
  125. --Fake game object
  126. local FakeGame = {
  127. GetService = function(self,s)
  128. return rawget(self,s) or RealGame:GetService(s)
  129. end,
  130. Players = FakeService({
  131. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  132. },"Players"),
  133. UserInputService = FakeService(UIS,"UserInputService"),
  134. ContextActionService = FakeService(CAS,"ContextActionService"),
  135. RunService = FakeService({
  136. _btrs = {},
  137. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  138. BindToRenderStep = function(self,name,_,fun)
  139. self._btrs[name] = self.Heartbeat:Connect(fun)
  140. end,
  141. UnbindFromRenderStep = function(self,name)
  142. self._btrs[name]:Disconnect()
  143. end,
  144. },"RunService")
  145. }
  146. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  147. FakeGame.service = FakeGame.GetService
  148. FakeService(FakeGame,game)
  149. --Changing owner to fake player object to support owner:GetMouse()
  150. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  151. end
  152. --//====================================================\\--
  153. --|| CREATED BY SHACKLUSTER
  154. --\\====================================================//--
  155.  
  156.  
  157.  
  158. wait(0.2)
  159.  
  160.  
  161.  
  162. Player = game:GetService("Players").LocalPlayer
  163. PlayerGui = Player.PlayerGui
  164. Cam = workspace.CurrentCamera
  165. Backpack = Player.Backpack
  166. Character = Player.Character
  167. Humanoid = Character.Humanoid
  168. Mouse = Player:GetMouse()
  169. RootPart = Character["HumanoidRootPart"]
  170. Torso = Character["Torso"]
  171. Head = Character["Head"]
  172. RightArm = Character["Right Arm"]
  173. LeftArm = Character["Left Arm"]
  174. RightLeg = Character["Right Leg"]
  175. LeftLeg = Character["Left Leg"]
  176. RootJoint = RootPart["RootJoint"]
  177. Neck = Torso["Neck"]
  178. RightShoulder = Torso["Right Shoulder"]
  179. LeftShoulder = Torso["Left Shoulder"]
  180. RightHip = Torso["Right Hip"]
  181. LeftHip = Torso["Left Hip"]
  182. local sick = Instance.new("Sound",Character)
  183. sick.SoundId = "rbxassetid://853707984"
  184. sick.Looped = true
  185. sick.Pitch = 1
  186. sick.Volume = 1
  187. sick:Play()
  188.  
  189. IT = Instance.new
  190. CF = CFrame.new
  191. VT = Vector3.new
  192. RAD = math.rad
  193. C3 = Color3.new
  194. UD2 = UDim2.new
  195. BRICKC = BrickColor.new
  196. ANGLES = CFrame.Angles
  197. EULER = CFrame.fromEulerAnglesXYZ
  198. COS = math.cos
  199. ACOS = math.acos
  200. SIN = math.sin
  201. ASIN = math.asin
  202. ABS = math.abs
  203. MRANDOM = math.random
  204. FLOOR = math.floor
  205.  
  206. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  207. local NEWMESH = IT(MESH)
  208. if MESH == "SpecialMesh" then
  209. NEWMESH.MeshType = MESHTYPE
  210. if MESHID ~= "nil" and MESHID ~= "" then
  211. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  212. end
  213. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  214. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  215. end
  216. end
  217. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  218. NEWMESH.Scale = SCALE
  219. NEWMESH.Parent = PARENT
  220. return NEWMESH
  221. end
  222.  
  223. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  224. local NEWPART = IT("Part")
  225. NEWPART.formFactor = FORMFACTOR
  226. NEWPART.Reflectance = REFLECTANCE
  227. NEWPART.Transparency = TRANSPARENCY
  228. NEWPART.CanCollide = false
  229. NEWPART.Locked = true
  230. NEWPART.Anchored = true
  231. if ANCHOR == false then
  232. NEWPART.Anchored = false
  233. end
  234. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  235. NEWPART.Name = NAME
  236. NEWPART.Size = SIZE
  237. NEWPART.Position = Torso.Position
  238. NEWPART.Material = MATERIAL
  239. NEWPART:BreakJoints()
  240. NEWPART.Parent = PARENT
  241. return NEWPART
  242. end
  243.  
  244. --//=================================\\
  245. --|| CUSTOMIZATION
  246. --\\=================================//
  247.  
  248. Player_Size = 1 --Size of the player.
  249. Animation_Speed = 3
  250. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  251.  
  252. local Speed = 16
  253. local Effects2 = {}
  254.  
  255. --//=================================\\
  256. --|| END OF CUSTOMIZATION
  257. --\\=================================//
  258.  
  259. local function weldBetween(a, b)
  260. local weldd = Instance.new("ManualWeld")
  261. weldd.Part0 = a
  262. weldd.Part1 = b
  263. weldd.C0 = CFrame.new()
  264. weldd.C1 = b.CFrame:inverse() * a.CFrame
  265. weldd.Parent = a
  266. return weldd
  267. end
  268.  
  269. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  270. local acs = Instance.new("Part")
  271. acs.CanCollide = false
  272. acs.Anchored = false
  273. acs.Size = Vector3.new(0,0,0)
  274. acs.CFrame = attachmentpart.CFrame
  275. acs.Parent = Character
  276. acs.BrickColor = color
  277. local meshs = Instance.new("SpecialMesh")
  278. meshs.MeshId = mesh
  279. meshs.TextureId = texture
  280. meshs.Parent = acs
  281. meshs.Scale = scale
  282. meshs.Offset = offset
  283. weldBetween(attachmentpart,acs)
  284. end
  285.  
  286. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  287. if TYPE == "Gem" then
  288. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  289. acs.Anchored = false
  290. acs.CanCollide = false
  291. acs.CFrame = PART.CFrame
  292. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  293. weldBetween(PART,acs)
  294. elseif TYPE == "Skull" then
  295. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  296. acs.Anchored = false
  297. acs.CanCollide = false
  298. acs.CFrame = PART.CFrame
  299. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  300. weldBetween(PART,acs)
  301. elseif TYPE == "Eye" then
  302. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  303. acs.Anchored = false
  304. acs.CanCollide = false
  305. acs.CFrame = PART.CFrame
  306. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  307. weldBetween(PART,acs)
  308. end
  309. end
  310.  
  311. --//=================================\\
  312. --|| USEFUL VALUES
  313. --\\=================================//
  314.  
  315. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  316. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  317. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  318. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  319. local CHANGEDEFENSE = 0
  320. local CHANGEDAMAGE = 0
  321. local CHANGEMOVEMENT = 0
  322. local ANIM = "Idle"
  323. local ATTACK = false
  324. local EQUIPPED = false
  325. local HOLD = false
  326. local COMBO = 1
  327. local Rooted = false
  328. local SINE = 0
  329. local KEYHOLD = false
  330. local CHANGE = 2 / Animation_Speed
  331. local WALKINGANIM = false
  332. local WALK = 0
  333. local VALUE1 = false
  334. local HITFLOOR = nil
  335. local VALUE2 = false
  336. local ROBLOXIDLEANIMATION = IT("Animation")
  337. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  338. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  339. --ROBLOXIDLEANIMATION.Parent = Humanoid
  340. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  341. WEAPONGUI.Name = "Weapon GUI"
  342. local Weapon = IT("Model")
  343. Weapon.Name = "Adds"
  344. local Delete = IT("Model",Character)
  345. Delete.Name = "Banlist"
  346. local Effects = IT("Folder", Weapon)
  347. Effects.Name = "Effects"
  348. local ANIMATOR = Humanoid.Animator
  349. local ANIMATE = Character.Animate
  350. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  351. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  352. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  353. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  354. local UNANCHOR = true
  355.  
  356. local SKILLTEXTCOLOR = C3(0,0,0)
  357.  
  358. --//=================================\\
  359. --\\=================================//
  360.  
  361.  
  362. --//=================================\\
  363. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  364. --\\=================================//
  365.  
  366. ArtificialHB = Instance.new("BindableEvent", script)
  367. ArtificialHB.Name = "ArtificialHB"
  368.  
  369. script:WaitForChild("ArtificialHB")
  370.  
  371. frame = Frame_Speed
  372. tf = 0
  373. allowframeloss = false
  374. tossremainder = false
  375. lastframe = tick()
  376. script.ArtificialHB:Fire()
  377.  
  378. game:GetService("RunService").Heartbeat:connect(function(s, p)
  379. tf = tf + s
  380. if tf >= frame then
  381. if allowframeloss then
  382. script.ArtificialHB:Fire()
  383. lastframe = tick()
  384. else
  385. for i = 1, math.floor(tf / frame) do
  386. script.ArtificialHB:Fire()
  387. end
  388. lastframe = tick()
  389. end
  390. if tossremainder then
  391. tf = 0
  392. else
  393. tf = tf - frame * math.floor(tf / frame)
  394. end
  395. end
  396. end)
  397.  
  398. --//=================================\\
  399. --\\=================================//
  400.  
  401.  
  402.  
  403.  
  404.  
  405. --//=================================\\
  406. --|| SOME FUNCTIONS
  407. --\\=================================//
  408.  
  409. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  410. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  411. end
  412.  
  413. function PositiveAngle(NUMBER)
  414. if NUMBER >= 0 then
  415. NUMBER = 0
  416. end
  417. return NUMBER
  418. end
  419.  
  420. function NegativeAngle(NUMBER)
  421. if NUMBER <= 0 then
  422. NUMBER = 0
  423. end
  424. return NUMBER
  425. end
  426.  
  427. function Swait(NUMBER)
  428. if NUMBER == 0 or NUMBER == nil then
  429. ArtificialHB.Event:wait()
  430. else
  431. for i = 1, NUMBER do
  432. ArtificialHB.Event:wait()
  433. end
  434. end
  435. end
  436.  
  437. function QuaternionFromCFrame(cf)
  438. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  439. local trace = m00 + m11 + m22
  440. if trace > 0 then
  441. local s = math.sqrt(1 + trace)
  442. local recip = 0.5 / s
  443. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  444. else
  445. local i = 0
  446. if m11 > m00 then
  447. i = 1
  448. end
  449. if m22 > (i == 0 and m00 or m11) then
  450. i = 2
  451. end
  452. if i == 0 then
  453. local s = math.sqrt(m00 - m11 - m22 + 1)
  454. local recip = 0.5 / s
  455. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  456. elseif i == 1 then
  457. local s = math.sqrt(m11 - m22 - m00 + 1)
  458. local recip = 0.5 / s
  459. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  460. elseif i == 2 then
  461. local s = math.sqrt(m22 - m00 - m11 + 1)
  462. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  463. end
  464. end
  465. end
  466.  
  467. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  468. local xs, ys, zs = x + x, y + y, z + z
  469. local wx, wy, wz = w * xs, w * ys, w * zs
  470. local xx = x * xs
  471. local xy = x * ys
  472. local xz = x * zs
  473. local yy = y * ys
  474. local yz = y * zs
  475. local zz = z * zs
  476. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  477. end
  478.  
  479. function QuaternionSlerp(a, b, t)
  480. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  481. local startInterp, finishInterp;
  482. if cosTheta >= 0.0001 then
  483. if (1 - cosTheta) > 0.0001 then
  484. local theta = ACOS(cosTheta)
  485. local invSinTheta = 1 / SIN(theta)
  486. startInterp = SIN((1 - t) * theta) * invSinTheta
  487. finishInterp = SIN(t * theta) * invSinTheta
  488. else
  489. startInterp = 1 - t
  490. finishInterp = t
  491. end
  492. else
  493. if (1 + cosTheta) > 0.0001 then
  494. local theta = ACOS(-cosTheta)
  495. local invSinTheta = 1 / SIN(theta)
  496. startInterp = SIN((t - 1) * theta) * invSinTheta
  497. finishInterp = SIN(t * theta) * invSinTheta
  498. else
  499. startInterp = t - 1
  500. finishInterp = t
  501. end
  502. end
  503. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  504. end
  505.  
  506. function Clerp(a, b, t)
  507. local qa = {QuaternionFromCFrame(a)}
  508. local qb = {QuaternionFromCFrame(b)}
  509. local ax, ay, az = a.x, a.y, a.z
  510. local bx, by, bz = b.x, b.y, b.z
  511. local _t = 1 - t
  512. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  513. end
  514.  
  515. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  516. local frame = IT("Frame")
  517. frame.BackgroundTransparency = TRANSPARENCY
  518. frame.BorderSizePixel = BORDERSIZEPIXEL
  519. frame.Position = POSITION
  520. frame.Size = SIZE
  521. frame.BackgroundColor3 = COLOR
  522. frame.BorderColor3 = BORDERCOLOR
  523. frame.Name = NAME
  524. frame.Parent = PARENT
  525. return frame
  526. end
  527.  
  528. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  529. local label = IT("TextLabel")
  530. label.BackgroundTransparency = 1
  531. label.Size = UD2(1, 0, 1, 0)
  532. label.Position = UD2(0, 0, 0, 0)
  533. label.TextColor3 = TEXTCOLOR
  534. label.TextStrokeTransparency = STROKETRANSPARENCY
  535. label.TextTransparency = TRANSPARENCY
  536. label.FontSize = TEXTFONTSIZE
  537. label.Font = TEXTFONT
  538. label.BorderSizePixel = BORDERSIZEPIXEL
  539. label.TextScaled = false
  540. label.Text = TEXT
  541. label.Name = NAME
  542. label.Parent = PARENT
  543. return label
  544. end
  545.  
  546. function NoOutlines(PART)
  547. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  548. end
  549.  
  550.  
  551. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  552. local NEWWELD = IT(TYPE)
  553. NEWWELD.Part0 = PART0
  554. NEWWELD.Part1 = PART1
  555. NEWWELD.C0 = C0
  556. NEWWELD.C1 = C1
  557. NEWWELD.Parent = PARENT
  558. return NEWWELD
  559. end
  560.  
  561. local SOUND = IT("Sound",nil)
  562.  
  563. function CreateSound(ID, PARENT, VOLUME, PITCH)
  564. local NEWSOUND = nil
  565. coroutine.resume(coroutine.create(function()
  566. NEWSOUND = SOUND:Clone()
  567. NEWSOUND.Parent = PARENT
  568. NEWSOUND.Volume = VOLUME
  569. NEWSOUND.Pitch = PITCH
  570. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  571. Swait()
  572. NEWSOUND:play()
  573. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  574. end))
  575. return NEWSOUND
  576. end
  577.  
  578. function CFrameFromTopBack(at, top, back)
  579. local right = top:Cross(back)
  580. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  581. end
  582.  
  583. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  584. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  585. local mesh = IT("SpecialMesh",wave)
  586. mesh.MeshType = "FileMesh"
  587. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  588. mesh.Scale = SIZE
  589. mesh.Offset = VT(0,0,-SIZE.X/8)
  590. wave.CFrame = CFRAME
  591. coroutine.resume(coroutine.create(function(PART)
  592. for i = 1, WAIT do
  593. Swait()
  594. mesh.Scale = mesh.Scale + GROW
  595. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  596. if DOESROT == true then
  597. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  598. end
  599. wave.Transparency = wave.Transparency + (0.5/WAIT)
  600. if wave.Transparency > 0.99 then
  601. wave:remove()
  602. end
  603. end
  604. end))
  605. end
  606.  
  607. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  608. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  609. local mesh = IT("SpecialMesh",wave)
  610. mesh.MeshType = "Sphere"
  611. mesh.Scale = SIZE
  612. mesh.Offset = VT(0,0,0)
  613. wave.CFrame = CFRAME
  614. coroutine.resume(coroutine.create(function(PART)
  615. for i = 1, WAIT do
  616. Swait()
  617. mesh.Scale = mesh.Scale + GROW
  618. wave.Transparency = wave.Transparency + (1/WAIT)
  619. if wave.Transparency > 0.99 then
  620. wave:remove()
  621. end
  622. end
  623. end))
  624. end
  625.  
  626. function MakeForm(PART,TYPE)
  627. if TYPE == "Cyl" then
  628. local MSH = IT("CylinderMesh",PART)
  629. elseif TYPE == "Ball" then
  630. local MSH = IT("SpecialMesh",PART)
  631. MSH.MeshType = "Sphere"
  632. elseif TYPE == "Wedge" then
  633. local MSH = IT("SpecialMesh",PART)
  634. MSH.MeshType = "Wedge"
  635. end
  636. end
  637.  
  638. function CheckTableForString(Table, String)
  639. for i, v in pairs(Table) do
  640. if string.find(string.lower(String), string.lower(v)) then
  641. return true
  642. end
  643. end
  644. return false
  645. end
  646.  
  647. function CheckIntangible(Hit)
  648. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  649. if Hit and Hit.Parent then
  650. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  651. return true
  652. end
  653. end
  654. return false
  655. end
  656.  
  657. Debris = game:GetService("Debris")
  658.  
  659. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  660. local Direction = CFrame.new(StartPos, Vec).lookVector
  661. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  662. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  663. if RayHit and CheckIntangible(RayHit) then
  664. if DelayIfHit then
  665. wait()
  666. end
  667. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  668. end
  669. return RayHit, RayPos, RayNormal
  670. end
  671.  
  672. function turnto(position)
  673. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  674. end
  675.  
  676. --//=================================\\
  677. --|| WEAPON CREATION
  678. --\\=================================//
  679.  
  680. local HandlePart = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0, 0, 0),false)
  681. local HandleMesh = CreateMesh("SpecialMesh", HandlePart, "FileMesh", "10604848", "10605252", VT(1,1,1), VT(0, 2.7, 0))
  682. local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, RightArm, HandlePart, CF(0,-0.8,0) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
  683.  
  684. for _, c in pairs(Weapon:GetChildren()) do
  685. if c.ClassName == "Part" then
  686. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  687. end
  688. end
  689.  
  690. Weapon.Parent = Character
  691.  
  692. Humanoid.Died:connect(function()
  693. ATTACK = true
  694. end)
  695.  
  696. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  697. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  698.  
  699. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[CLICK+HOLD] Ban Slam", SKILLTEXTCOLOR, 7, "Garamond", 0, 2, 1, "Text 1")
  700. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Teleport", SKILLTEXTCOLOR, 8, "Garamond", 0, 2, 1, "Text 2")
  701.  
  702. --//=================================\\
  703. --|| DAMAGING
  704. --\\=================================//
  705.  
  706. function BAN(CHARACTER)
  707. local BANFOLDER = IT("Folder",Effects)
  708. local naeeym2 = Instance.new("BillboardGui",BANFOLDER)
  709. naeeym2.AlwaysOnTop = false
  710. naeeym2.Size = UDim2.new(5,35,2,35)
  711. naeeym2.StudsOffset = Vector3.new(0,1,0)
  712. naeeym2.Name = "AAAA"
  713. local tecks2 = Instance.new("TextLabel",naeeym2)
  714. tecks2.BackgroundTransparency = 1
  715. tecks2.TextScaled = true
  716. tecks2.BorderSizePixel = 0
  717. tecks2.Text = "BANNED"
  718. tecks2.Font = "Code"
  719. tecks2.TextSize = 30
  720. tecks2.TextStrokeTransparency = 1
  721. tecks2.TextColor3 = Color3.new(1,0,0)
  722. tecks2.TextStrokeColor3 = Color3.new(1,0,0)
  723. tecks2.Size = UDim2.new(1,0,0.5,0)
  724. tecks2.Parent = naeeym2
  725. for i,v in ipairs(CHARACTER:GetChildren()) do
  726. if v.ClassName == "Part" or v.ClassName == "MeshPart" then
  727. if v.Name ~= "HumanoidRootPart" then
  728. local BOD = v:Clone()
  729. BOD.CanCollide = false
  730. BOD.Anchored = true
  731. BOD.CFrame = v.CFrame
  732. BOD.Parent = BANFOLDER
  733. BOD.Material = "Neon"
  734. BOD.Color = C3(1,0,0)
  735. if BOD:FindFirstChildOfClass("Decal") then
  736. BOD:FindFirstChildOfClass("Decal"):remove()
  737. end
  738. if BOD.Name == "Head" then
  739. naeeym2.Adornee = BOD
  740. end
  741. if BOD.ClassName == "MeshPart" then
  742. BOD.TextureID = ""
  743. end
  744. end
  745. end
  746. end
  747. CHARACTER:remove()
  748. coroutine.resume(coroutine.create(function()
  749. for i = 1, 50 do
  750. Swait()
  751. for i,v in ipairs(BANFOLDER:GetChildren()) do
  752. if v.ClassName == "Part" or v.ClassName == "MeshPart" then
  753. v.Transparency = 1
  754. end
  755. naeeym2.Enabled = false
  756. end
  757. Swait()
  758. for i,v in ipairs(BANFOLDER:GetChildren()) do
  759. if v.ClassName == "Part" or v.ClassName == "MeshPart" then
  760. v.Transparency = 0
  761. end
  762. naeeym2.Enabled = true
  763. end
  764. end
  765. BANFOLDER:remove()
  766. end))
  767. end
  768.  
  769. function BANNEAREST(POS,RANGE)
  770. for i,v in ipairs(workspace:GetChildren()) do
  771. local body = v:GetChildren()
  772. for part = 1, #body do
  773. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  774. if(body[part].Position - POS).Magnitude < RANGE then
  775. if v:FindFirstChildOfClass("Humanoid") then
  776. BAN(v)
  777. if game.Players:FindFirstChild(v.Name) then
  778. local Value = IT("BoolValue",Delete)
  779. Value.Name = v.Name
  780. end
  781. end
  782. end
  783. end
  784. end
  785. end
  786. end
  787.  
  788. --//=================================\\
  789. --|| ATTACK FUNCTIONS AND STUFF
  790. --\\=================================//
  791.  
  792. function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  793. if FLOOR ~= nil then
  794. coroutine.resume(coroutine.create(function()
  795. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
  796. PART.CFrame = CF(POSITION)
  797. for i = 1, 45 do
  798. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  799. RingPiece.Material = FLOOR.Material
  800. RingPiece.Color = FLOOR.Color
  801. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  802. Debris:AddItem(RingPiece,SWAIT/100)
  803. end
  804. PART:remove()
  805. end))
  806. end
  807. end
  808.  
  809. function BANSLAM()
  810. ATTACK = true
  811. Rooted = false
  812. repeat
  813. for i=0, 0.2, 0.1 / Animation_Speed do
  814. Swait()
  815. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -0.8, 0) * ANGLES(RAD(-90), RAD(-45), RAD(0)),2 / Animation_Speed)
  816. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 7) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  817. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 2 / Animation_Speed)
  818. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(250), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  819. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, 0.5) * ANGLES(RAD(250), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  820. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 2 / Animation_Speed)
  821. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 2 / Animation_Speed)
  822. end
  823. for i=0, 0.08, 0.1 / Animation_Speed do
  824. Swait()
  825. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-90), RAD(-45), RAD(0)), 2 / Animation_Speed)
  826. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 2) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed)
  827. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed)
  828. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(120), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  829. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(120), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  830. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  831. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  832. end
  833. for i=0, 0.08, 0.1 / Animation_Speed do
  834. Swait()
  835. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-70), RAD(-45), RAD(0)), 2 / Animation_Speed)
  836. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 2) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed)
  837. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed)
  838. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  839. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  840. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  841. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  842. end
  843. CreateSound("147722910", Effects, 10, 1)
  844. BANNEAREST(RootPart.CFrame*CF(0,0,-6).p,25)
  845. if HITFLOOR ~= nil then
  846. CreateSound("289842971", HandlePart, 10, 1)
  847. CreateSound("289842971", HandlePart, 10, 1)
  848. CreateSound("289842971", HandlePart, 10, 1)
  849. CreateSound("289842971", HandlePart, 10, 1)
  850. CreateDebreeRing(HITFLOOR,RootPart.CFrame*CF(0,-5,-6).p,5,VT(8,8,8),35)
  851. end
  852. CreateWave(VT(25,0,25),45,RootPart.CFrame*CF(0,-5,-6),true,2,"Really red",VT(0,3,0))
  853. CreateWave(VT(25,0,25),45,RootPart.CFrame*CF(0,-5,-6),true,-2,"Really red",VT(0,3,0))
  854. for i=0, 0.1, 0.1 / Animation_Speed do
  855. Swait()
  856. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-70), RAD(-45), RAD(0)), 2 / Animation_Speed)
  857. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1.8) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed)
  858. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed)
  859. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  860. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  861. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  862. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  863. end
  864. if HOLD == true then
  865. for i=0, 0.08, 0.1 / Animation_Speed do
  866. Swait()
  867. if HOLD == false then
  868. break
  869. end
  870. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-90), RAD(-45), RAD(0)), 2 / Animation_Speed)
  871. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 2) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed)
  872. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed)
  873. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(120), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  874. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(120), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  875. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  876. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  877. end
  878. end
  879. until HOLD == false
  880. for i=0, 1, 0.1 / Animation_Speed do
  881. Swait()
  882. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-70), RAD(-45), RAD(0)), 2 / Animation_Speed)
  883. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1.8) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed)
  884. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed)
  885. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  886. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  887. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  888. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  889. end
  890. for i=0, 5, 0.1 / Animation_Speed do
  891. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, 0) * ANGLES(RAD(200), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  892. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -0.8, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  893. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  894. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  895. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  896. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  897. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  898. end
  899. ATTACK = false
  900. Rooted = false
  901. end
  902.  
  903. --//=================================\\
  904. --|| ASSIGN THINGS TO KEYS
  905. --\\=================================//
  906.  
  907. function MouseDown(Mouse)
  908. HOLD = true
  909. if ATTACK == false then
  910. BANSLAM()
  911. end
  912. end
  913.  
  914. function MouseUp(Mouse)
  915. HOLD = false
  916. end
  917.  
  918. function KeyDown(Key)
  919. KEYHOLD = true
  920. if Key == "b" and ATTACK == false then
  921. local pos = RootPart.Position
  922. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3,0),pos)
  923. CreateSound("769380905", Torso, 10, 1)
  924. end
  925.  
  926. if Key == "t" then
  927. CreateSound("1058417264", Head, 10, 1)
  928. Delete:ClearAllChildren()
  929. end
  930. end
  931.  
  932. function KeyUp(Key)
  933. KEYHOLD = false
  934. end
  935.  
  936. Mouse.Button1Down:connect(function(NEWKEY)
  937. MouseDown(NEWKEY)
  938. end)
  939. Mouse.Button1Up:connect(function(NEWKEY)
  940. MouseUp(NEWKEY)
  941. end)
  942. Mouse.KeyDown:connect(function(NEWKEY)
  943. KeyDown(NEWKEY)
  944. end)
  945. Mouse.KeyUp:connect(function(NEWKEY)
  946. KeyUp(NEWKEY)
  947. end)
  948.  
  949. --//=================================\\
  950. --\\=================================//
  951.  
  952.  
  953. function unanchor()
  954. if UNANCHOR == true then
  955. g = Character:GetChildren()
  956. for i = 1, #g do
  957. if g[i].ClassName == "Part" then
  958. g[i].Anchored = false
  959. end
  960. end
  961. end
  962. end
  963.  
  964.  
  965. --//=================================\\
  966. --|| WRAP THE WHOLE SCRIPT UP
  967. --\\=================================//
  968.  
  969. Humanoid.Changed:connect(function(Jump)
  970. if Jump == "Jump" and (Disable_Jump == true) then
  971. Humanoid.Jump = false
  972. end
  973. end)
  974.  
  975. Speed = 23
  976.  
  977. while true do
  978. Swait()
  979. ANIMATE.Parent = nil
  980. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  981. IDLEANIMATION:Play()
  982. SINE = SINE + CHANGE
  983. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  984. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  985. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  986. HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  987. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  988. if ATTACK == false then
  989. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, 0) * ANGLES(RAD(200), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  990. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -0.8, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  991. end
  992. if ANIM == "Walk" and TORSOVELOCITY > 1 and ATTACK == false then
  993. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  994. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  995. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  996. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  997. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or (ATTACK == true) then
  998. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  999. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1000. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1001. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1002. end
  1003. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1004. ANIM = "Jump"
  1005. if ATTACK == false then
  1006. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1007. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1008. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1009. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1010. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1011. end
  1012. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1013. ANIM = "Fall"
  1014. if ATTACK == false then
  1015. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1016. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1017. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1018. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1019. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1020. end
  1021. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1022. ANIM = "Idle"
  1023. if ATTACK == false then
  1024. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1025. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1026. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1027. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1028. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1029. end
  1030. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1031. ANIM = "Walk"
  1032. WALK = WALK + 1 / Animation_Speed
  1033. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1034. WALK = 0
  1035. if WALKINGANIM == true then
  1036. WALKINGANIM = false
  1037. elseif WALKINGANIM == false then
  1038. WALKINGANIM = true
  1039. end
  1040. end
  1041. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1042. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1043. if ATTACK == false then
  1044. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1045. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1046. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  1047. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1048. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1049. end
  1050. end
  1051. unanchor()
  1052. Humanoid.MaxHealth = "inf"
  1053. Humanoid.Health = "inf"
  1054. if Rooted == false then
  1055. Disable_Jump = false
  1056. Humanoid.WalkSpeed = Speed
  1057. elseif Rooted == true then
  1058. Disable_Jump = true
  1059. Humanoid.WalkSpeed = 0
  1060. end
  1061. local MATHS = {"0","1"}
  1062. Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]
  1063. Humanoid.PlatformStand = false
  1064. local GAME = game.Players:GetChildren()
  1065. for PLAYER = 1, #GAME do
  1066. local PLAY = GAME[PLAYER]
  1067. if PLAY.Character ~= nil and Delete:FindFirstChild(PLAY.Name) then
  1068. PLAY.Character:remove()
  1069. end
  1070. end
  1071. end
  1072.  
  1073. --//=================================\\
  1074. --\\=================================//
  1075.  
  1076.  
  1077.  
  1078.  
  1079.  
  1080. --//====================================================\\--
  1081. --|| END OF SCRIPT
  1082. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement