Advertisement
doryna2281337

Untitled

Aug 18th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.46 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. local rp = RealPlayer
  6. script.Parent = rp.Character
  7.  
  8. --RemoteEvent for communicating
  9. local Event = Instance.new("RemoteEvent")
  10. Event.Name = "UserInput_Event"
  11.  
  12. --Fake event to make stuff like Mouse.KeyDown work
  13. local function fakeEvent()
  14. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  15. t.connect = t.Connect
  16. return t
  17. end
  18.  
  19. --Creating fake input objects with fake variables
  20. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  21. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  22. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  23. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  24. end}
  25. --Merged 2 functions into one by checking amount of arguments
  26. CAS.UnbindAction = CAS.BindAction
  27.  
  28. --This function will trigger the events that have been :Connect()'ed
  29. local function te(self,ev,...)
  30. local t = m[ev]
  31. if t and t._fakeEvent then
  32. for _,f in pairs(t.Functions) do
  33. f(...)
  34. end
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=rp then return end
  42. m.Target = io.Target
  43. m.Hit = io.Hit
  44. if not io.isMouse then
  45. local b = io.UserInputState == Enum.UserInputState.Begin
  46. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  47. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  48. end
  49. for _,t in pairs(CAS.Actions) do
  50. for _,k in pairs(t.Keys) do
  51. if k==io.KeyCode then
  52. t.Function(t.Name,io.UserInputState,io)
  53. end
  54. end
  55. end
  56. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  57. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  58. end
  59. end)
  60. Event.Parent = NLS([==[
  61. local Player = game:GetService("Players").LocalPlayer
  62. local Event = script:WaitForChild("UserInput_Event")
  63.  
  64. local Mouse = Player:GetMouse()
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local h,t
  75. --Give the server mouse data 30 times every second, but only if the values changed
  76. --If player is not moving their mouse, client won't fire events
  77. while wait(1/30) do
  78. if h~=Mouse.Hit or t~=Mouse.Target then
  79. h,t=Mouse.Hit,Mouse.Target
  80. Event:FireServer({isMouse=true,Target=t,Hit=h})
  81. end
  82. end]==],Player.Character)
  83.  
  84. ----Sandboxed game object that allows the usage of client-side methods and services
  85. --Real game object
  86. local _rg = game
  87.  
  88. --Metatable for fake service
  89. local fsmt = {
  90. __index = function(self,k)
  91. local s = rawget(self,"_RealService")
  92. if s then return s[k] end
  93. end,
  94. __newindex = function(self,k,v)
  95. local s = rawget(self,"_RealService")
  96. if s then s[k]=v end
  97. end,
  98. __call = function(self,...)
  99. local s = rawget(self,"_RealService")
  100. if s then return s(...) end
  101. end
  102. }
  103. local function FakeService(t,RealService)
  104. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  105. return setmetatable(t,fsmt)
  106. end
  107.  
  108. --Fake game object
  109. local g = {
  110. GetService = function(self,s)
  111. return self[s]
  112. end,
  113. Players = FakeService({
  114. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  115. },"Players"),
  116. UserInputService = FakeService(UIS,"UserInputService"),
  117. ContextActionService = FakeService(CAS,"ContextActionService"),
  118. }
  119. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  120. g.service = g.GetService
  121.  
  122. g.RunService = FakeService({
  123. RenderStepped = _rg:GetService("RunService").Heartbeat,
  124. BindToRenderStep = function(self,name,_,fun)
  125. self._btrs[name] = self.Heartbeat:Connect(fun)
  126. end,
  127. UnbindFromRenderStep = function(self,name)
  128. self._btrs[name]:Disconnect()
  129. end,
  130. },"RunService")
  131.  
  132. setmetatable(g,{
  133. __index=function(self,s)
  134. return _rg:GetService(s) or typeof(_rg[s])=="function"
  135. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  136. end,
  137. __newindex = fsmt.__newindex,
  138. __call = fsmt.__call
  139. })
  140. --Changing owner to fake player object to support owner:GetMouse()
  141. game,owner = g,g.Players.LocalPlayer
  142. end
  143.  
  144. Player = owner
  145. PlayerGui = Player.PlayerGui
  146. Cam = workspace.CurrentCamera
  147. Backpack = Player.Backpack
  148. Character = Player.Character
  149. Humanoid = Character.Humanoid
  150. Mouse = Player:GetMouse()
  151. RootPart = Character["HumanoidRootPart"]
  152. Torso = Character["Torso"]
  153. Head = Character["Head"]
  154. RightArm = Character["Right Arm"]
  155. LeftArm = Character["Left Arm"]
  156. RightLeg = Character["Right Leg"]
  157. LeftLeg = Character["Left Leg"]
  158. RootJoint = RootPart["RootJoint"]
  159. Neck = Torso["Neck"]
  160. RightShoulder = Torso["Right Shoulder"]
  161. LeftShoulder = Torso["Left Shoulder"]
  162. RightHip = Torso["Right Hip"]
  163. LeftHip = Torso["Left Hip"]
  164.  
  165. removeuseless = game:GetService("Debris")
  166. laff = Instance.new("Sound",Head)
  167. tauntdebounce = false
  168. Character = Player.Character
  169. Humanoid = Character.Humanoid
  170. ---------
  171. plr = game.Players.LocalPlayer
  172. chara = plr.Character
  173. mouse = plr:GetMouse()
  174. Create = Instance.new
  175. Huge = math.huge
  176.  
  177. Player = game:GetService("Players").LocalPlayer
  178. PlayerGui = Player.PlayerGui
  179. Cam = workspace.CurrentCamera
  180. Backpack = Player.Backpack
  181. Character = Player.Character
  182. char = Player.Character
  183. Humanoid = Character.Humanoid
  184. Mouse = Player:GetMouse()
  185. RootPart = Character["HumanoidRootPart"]
  186. Torso = Character["Torso"]
  187. Head = Character["Head"]
  188. RightArm = Character["Right Arm"]
  189. LeftArm = Character["Left Arm"]
  190. RightLeg = Character["Right Leg"]
  191. LeftLeg = Character["Left Leg"]
  192. RootJoint = RootPart["RootJoint"]
  193. Neck = Torso["Neck"]
  194. RightShoulder = Torso["Right Shoulder"]
  195. LeftShoulder = Torso["Left Shoulder"]
  196. RightHip = Torso["Right Hip"]
  197. LeftHip = Torso["Left Hip"]
  198.  
  199. local Orin = "http://www.roblox.com/asset/?id=1065951398"
  200. Head.face.Texture = Orin
  201. function weld(a, b, acf)
  202. local w = Instance.new("Weld", a)
  203. w.Part0 = a
  204. w.Part1 = b
  205. w.C0 = acf
  206. end
  207. --------------------------------
  208. char.Head.face.Texture = "rbxassetid://0"
  209. --------------------------------
  210. local naeeym2 = Instance.new("BillboardGui",char)
  211. naeeym2.AlwaysOnTop = true
  212. naeeym2.Size = UDim2.new(5,35,2,35)
  213. naeeym2.StudsOffset = Vector3.new(0,2,0)
  214. naeeym2.Adornee = hed
  215. naeeym2.Name = "Name"
  216.  
  217. local tecks2 = Instance.new("TextLabel",naeeym2)
  218. tecks2.BackgroundTransparency = 1
  219. tecks2.TextScaled = true
  220. tecks2.BorderSizePixel = 0
  221. tecks2.Text = ""
  222. tecks2.Font = "Fantasy"
  223. tecks2.TextSize = 30
  224. tecks2.TextStrokeTransparency = 0
  225. tecks2.TextColor3 = BrickColor.new('Really red').Color
  226. tecks2.TextStrokeColor3 = BrickColor.new('Really black').Color
  227. tecks2.Size = UDim2.new(1,0,0.5,0)
  228. tecks2.Parent = naeeym2
  229. textfag = tecks2
  230. tecks2.Text = ""
  231. tecks2.Text = "script by xdielivex"
  232. wait(1)
  233. tecks2.Text = "Oii the teapot"
  234. wait(1)
  235. tecks2.Text = ""
  236. coroutine.resume(coroutine.create(function()
  237. while textfag ~= nil do
  238. swait()
  239. textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3))
  240. textfag.Rotation = math.random(-3,3)
  241. end
  242. end))
  243. -------------------------------------------------------
  244. wait(0.2)
  245. local plr = game:service'Players'.LocalPlayer
  246. local char = plr.Character
  247. local hum = char.Humanoid
  248. local hed = char.Head
  249. local root = char.HumanoidRootPart
  250. local rootj = root.RootJoint
  251. local tors = char.Torso
  252. local ra = char["Right Arm"]
  253. local la = char["Left Arm"]
  254. local rl = char["Right Leg"]
  255. local ll = char["Left Leg"]
  256. local neck = tors["Neck"]
  257. local mouse = plr:GetMouse()
  258. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  259. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  260. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  261. local maincolor = BrickColor.new("Plum")
  262.  
  263. -------------------------------------------------------
  264. --Start Good Stuff--
  265. -------------------------------------------------------
  266. cam = game.Workspace.CurrentCamera
  267. CF = CFrame.new
  268. angles = CFrame.Angles
  269. attack = false
  270. Euler = CFrame.fromEulerAnglesXYZ
  271. Rad = math.rad
  272. IT = Instance.new
  273. BrickC = BrickColor.new
  274. Cos = math.cos
  275. Acos = math.acos
  276. Sin = math.sin
  277. Asin = math.asin
  278. Abs = math.abs
  279. Mrandom = math.random
  280. Floor = math.floor
  281. -------------------------------------------------------
  282. --End Good Stuff--
  283. -------------------------------------------------------
  284. -------------------------------------------------------
  285. --Start HeartBeat--
  286. -------------------------------------------------------
  287. ArtificialHB = Instance.new("BindableEvent", script)
  288. ArtificialHB.Name = "Heartbeat"
  289. script:WaitForChild("Heartbeat")
  290.  
  291. frame = 1 / 60
  292. tf = 0
  293. allowframeloss = false
  294. tossremainder = false
  295.  
  296.  
  297. lastframe = tick()
  298. script.Heartbeat:Fire()
  299.  
  300.  
  301. game:GetService("RunService").Heartbeat:connect(function(s, p)
  302. tf = tf + s
  303. if tf >= frame then
  304. if allowframeloss then
  305. script.Heartbeat:Fire()
  306. lastframe = tick()
  307. else
  308. for i = 1, math.floor(tf / frame) do
  309. script.Heartbeat:Fire()
  310. end
  311. lastframe = tick()
  312. end
  313. if tossremainder then
  314. tf = 0
  315. else
  316. tf = tf - frame * math.floor(tf / frame)
  317. end
  318. end
  319. end)
  320. -------------------------------------------------------
  321. --End HeartBeat--
  322. -------------------------------------------------------
  323.  
  324. -------------------------------------------------------
  325. --Start Important Functions--
  326. -------------------------------------------------------
  327. function swait(num)
  328. if num == 0 or num == nil then
  329. game:service("RunService").Stepped:wait(0)
  330. else
  331. for i = 0, num do
  332. game:service("RunService").Stepped:wait(0)
  333. end
  334. end
  335. end
  336. function thread(f)
  337. coroutine.resume(coroutine.create(f))
  338. end
  339. function clerp(a, b, t)
  340. local qa = {
  341. QuaternionFromCFrame(a)
  342. }
  343. local qb = {
  344. QuaternionFromCFrame(b)
  345. }
  346. local ax, ay, az = a.x, a.y, a.z
  347. local bx, by, bz = b.x, b.y, b.z
  348. local _t = 1 - t
  349. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  350. end
  351. function QuaternionFromCFrame(cf)
  352. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  353. local trace = m00 + m11 + m22
  354. if trace > 0 then
  355. local s = math.sqrt(1 + trace)
  356. local recip = 0.5 / s
  357. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  358. else
  359. local i = 0
  360. if m00 < m11 then
  361. i = 1
  362. end
  363. if m22 > (i == 0 and m00 or m11) then
  364. i = 2
  365. end
  366. if i == 0 then
  367. local s = math.sqrt(m00 - m11 - m22 + 1)
  368. local recip = 0.5 / s
  369. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  370. elseif i == 1 then
  371. local s = math.sqrt(m11 - m22 - m00 + 1)
  372. local recip = 0.5 / s
  373. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  374. elseif i == 2 then
  375. local s = math.sqrt(m22 - m00 - m11 + 1)
  376. local recip = 0.5 / s
  377. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  378. end
  379. end
  380. end
  381. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  382. local xs, ys, zs = x + x, y + y, z + z
  383. local wx, wy, wz = w * xs, w * ys, w * zs
  384. local xx = x * xs
  385. local xy = x * ys
  386. local xz = x * zs
  387. local yy = y * ys
  388. local yz = y * zs
  389. local zz = z * zs
  390. 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))
  391. end
  392. function QuaternionSlerp(a, b, t)
  393. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  394. local startInterp, finishInterp
  395. if cosTheta >= 1.0E-4 then
  396. if 1 - cosTheta > 1.0E-4 then
  397. local theta = math.acos(cosTheta)
  398. local invSinTheta = 1 / Sin(theta)
  399. startInterp = Sin((1 - t) * theta) * invSinTheta
  400. finishInterp = Sin(t * theta) * invSinTheta
  401. else
  402. startInterp = 1 - t
  403. finishInterp = t
  404. end
  405. elseif 1 + cosTheta > 1.0E-4 then
  406. local theta = math.acos(-cosTheta)
  407. local invSinTheta = 1 / Sin(theta)
  408. startInterp = Sin((t - 1) * theta) * invSinTheta
  409. finishInterp = Sin(t * theta) * invSinTheta
  410. else
  411. startInterp = t - 1
  412. finishInterp = t
  413. end
  414. 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
  415. end
  416. function rayCast(Position, Direction, Range, Ignore)
  417. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  418. end
  419. local RbxUtility = LoadLibrary("RbxUtility")
  420. local Create = RbxUtility.Create
  421.  
  422. -------------------------------------------------------
  423. --Start Damage Function--
  424. -------------------------------------------------------
  425. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  426. if hit.Parent == nil then
  427. return
  428. end
  429. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  430. for _, v in pairs(hit.Parent:children()) do
  431. if v:IsA("Humanoid") then
  432. h = v
  433. end
  434. end
  435. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  436.  
  437. hit.Parent:FindFirstChild("Head"):BreakJoints()
  438. end
  439.  
  440. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  441. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  442. if hit.Parent.DebounceHit.Value == true then
  443. return
  444. end
  445. end
  446. if insta == true then
  447. hit.Parent:FindFirstChild("Head"):BreakJoints()
  448. end
  449. local c = Create("ObjectValue"){
  450. Name = "creator",
  451. Value = game:service("Players").LocalPlayer,
  452. Parent = h,
  453. }
  454. game:GetService("Debris"):AddItem(c, .5)
  455. if HitSound ~= nil and HitPitch ~= nil then
  456. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  457. end
  458. local Damage = math.random(minim, maxim)
  459. local blocked = false
  460. local block = hit.Parent:findFirstChild("Block")
  461. if block ~= nil then
  462. if block.className == "IntValue" then
  463. if block.Value > 0 then
  464. blocked = true
  465. block.Value = block.Value - 1
  466. print(block.Value)
  467. end
  468. end
  469. end
  470. if blocked == false then
  471. h.Health = h.Health - Damage
  472. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  473. else
  474. h.Health = h.Health - (Damage / 2)
  475. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  476. end
  477. if Type == "Knockdown" then
  478. local hum = hit.Parent.Humanoid
  479. hum.PlatformStand = true
  480. coroutine.resume(coroutine.create(function(HHumanoid)
  481. swait(1)
  482. HHumanoid.PlatformStand = false
  483. end), hum)
  484. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  485. local bodvol = Create("BodyVelocity"){
  486. velocity = angle * knockback,
  487. P = 5000,
  488. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  489. Parent = hit,
  490. }
  491. local rl = Create("BodyAngularVelocity"){
  492. P = 3000,
  493. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  494. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  495. Parent = hit,
  496. }
  497. game:GetService("Debris"):AddItem(bodvol, .5)
  498. game:GetService("Debris"):AddItem(rl, .5)
  499. elseif Type == "Normal" then
  500. local vp = Create("BodyVelocity"){
  501. P = 500,
  502. maxForce = Vector3.new(math.huge, 0, math.huge),
  503. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  504. }
  505. if knockback > 0 then
  506. vp.Parent = hit.Parent.Torso
  507. end
  508. game:GetService("Debris"):AddItem(vp, .5)
  509. elseif Type == "Up" then
  510. local bodyVelocity = Create("BodyVelocity"){
  511. velocity = Vector3.new(0, 20, 0),
  512. P = 5000,
  513. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  514. Parent = hit,
  515. }
  516. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  517. elseif Type == "DarkUp" then
  518. coroutine.resume(coroutine.create(function()
  519. for i = 0, 1, 0.1 do
  520. swait()
  521. Effects.Block.Create(BrickColor.new("Really red"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  522. end
  523. end))
  524. local bodyVelocity = Create("BodyVelocity"){
  525. velocity = Vector3.new(0, 20, 0),
  526. P = 5000,
  527. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  528. Parent = hit,
  529. }
  530. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  531. elseif Type == "Snare" then
  532. local bp = Create("BodyPosition"){
  533. P = 2000,
  534. D = 100,
  535. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  536. position = hit.Parent.Torso.Position,
  537. Parent = hit.Parent.Torso,
  538. }
  539. game:GetService("Debris"):AddItem(bp, 1)
  540. elseif Type == "Freeze" then
  541. local BodPos = Create("BodyPosition"){
  542. P = 50000,
  543. D = 1000,
  544. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  545. position = hit.Parent.Torso.Position,
  546. Parent = hit.Parent.Torso,
  547. }
  548. local BodGy = Create("BodyGyro") {
  549. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  550. P = 20e+003,
  551. Parent = hit.Parent.Torso,
  552. cframe = hit.Parent.Torso.CFrame,
  553. }
  554. hit.Parent.Torso.Anchored = true
  555. coroutine.resume(coroutine.create(function(Part)
  556. swait(1.5)
  557. Part.Anchored = false
  558. end), hit.Parent.Torso)
  559. game:GetService("Debris"):AddItem(BodPos, 3)
  560. game:GetService("Debris"):AddItem(BodGy, 3)
  561. end
  562. local debounce = Create("BoolValue"){
  563. Name = "DebounceHit",
  564. Parent = hit.Parent,
  565. Value = true,
  566. }
  567. game:GetService("Debris"):AddItem(debounce, Delay)
  568. c = Create("ObjectValue"){
  569. Name = "creator",
  570. Value = Player,
  571. Parent = h,
  572. }
  573. game:GetService("Debris"):AddItem(c, .5)
  574. end
  575. end
  576. -------------------------------------------------------
  577. --End Damage Function--
  578. -------------------------------------------------------
  579.  
  580. -------------------------------------------------------
  581. --Start Damage Function Customization--
  582. -------------------------------------------------------
  583. function ShowDamage(Pos, Text, Time, Color)
  584. local Rate = (1 / 30)
  585. local Pos = (Pos or Vector3.new(0, 0, 0))
  586. local Text = (Text or "")
  587. local Time = (Time or 2)
  588. local Color = (Color or Color3.new(255, 255, 1))
  589. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  590. EffectPart.Anchored = true
  591. local BillboardGui = Create("BillboardGui"){
  592. Size = UDim2.new(3, 0, 3, 0),
  593. Adornee = EffectPart,
  594. Parent = EffectPart,
  595. }
  596. local TextLabel = Create("TextLabel"){
  597. BackgroundTransparency = 1,
  598. Size = UDim2.new(1, 0, 1, 0),
  599. Text = Text,
  600. Font = "Bodoni",
  601. TextColor3 = Color,
  602. TextScaled = true,
  603. TextStrokeColor3 = Color3.fromRGB(220, 188, 129),
  604. Parent = BillboardGui,
  605. }
  606. game.Debris:AddItem(EffectPart, (Time))
  607. EffectPart.Parent = game:GetService("Workspace")
  608. delay(0, function()
  609. local Frames = (Time / Rate)
  610. for Frame = 1, Frames do
  611. wait(Rate)
  612. local Percent = (Frame / Frames)
  613. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  614. TextLabel.TextTransparency = Percent
  615. end
  616. if EffectPart and EffectPart.Parent then
  617. EffectPart:Destroy()
  618. end
  619. end)
  620. end
  621. -------------------------------------------------------
  622. --End Damage Function Customization--
  623. -------------------------------------------------------
  624.  
  625. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  626. for _, c in pairs(workspace:children()) do
  627. local hum = c:findFirstChild("Humanoid")
  628. if hum ~= nil then
  629. local head = c:findFirstChild("Head")
  630. if head ~= nil then
  631. local targ = head.Position - Part.Position
  632. local mag = targ.magnitude
  633. if magni >= mag and c.Name ~= plr.Name then
  634. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  635. end
  636. end
  637. end
  638. end
  639. end
  640.  
  641.  
  642. CFuncs = {
  643. Part = {
  644. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  645. local Part = Create("Part")({
  646. Parent = Parent,
  647. Reflectance = Reflectance,
  648. Transparency = Transparency,
  649. CanCollide = false,
  650. Locked = true,
  651. BrickColor = BrickColor.new(tostring(BColor)),
  652. Name = Name,
  653. Size = Size,
  654. Material = Material
  655. })
  656. RemoveOutlines(Part)
  657. return Part
  658. end
  659. },
  660. Mesh = {
  661. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  662. local Msh = Create(Mesh)({
  663. Parent = Part,
  664. Offset = OffSet,
  665. Scale = Scale
  666. })
  667. if Mesh == "SpecialMesh" then
  668. Msh.MeshType = MeshType
  669. Msh.MeshId = MeshId
  670. end
  671. return Msh
  672. end
  673. },
  674. Mesh = {
  675. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  676. local Msh = Create(Mesh)({
  677. Parent = Part,
  678. Offset = OffSet,
  679. Scale = Scale
  680. })
  681. if Mesh == "SpecialMesh" then
  682. Msh.MeshType = MeshType
  683. Msh.MeshId = MeshId
  684. end
  685. return Msh
  686. end
  687. },
  688. Weld = {
  689. Create = function(Parent, Part0, Part1, C0, C1)
  690. local Weld = Create("Weld")({
  691. Parent = Parent,
  692. Part0 = Part0,
  693. Part1 = Part1,
  694. C0 = C0,
  695. C1 = C1
  696. })
  697. return Weld
  698. end
  699. },
  700. Sound = {
  701. Create = function(id, par, vol, pit)
  702. coroutine.resume(coroutine.create(function()
  703. local S = Create("Sound")({
  704. Volume = vol,
  705. Pitch = pit or 1,
  706. SoundId = id,
  707. Parent = par or workspace
  708. })
  709. wait()
  710. S:play()
  711. game:GetService("Debris"):AddItem(S, 6)
  712. end))
  713. end
  714. },
  715. ParticleEmitter = {
  716. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  717. local fp = Create("ParticleEmitter")({
  718. Parent = Parent,
  719. Color = ColorSequence.new(Color1, Color2),
  720. LightEmission = LightEmission,
  721. Size = Size,
  722. Texture = Texture,
  723. Transparency = Transparency,
  724. ZOffset = ZOffset,
  725. Acceleration = Accel,
  726. Drag = Drag,
  727. LockedToPart = LockedToPart,
  728. VelocityInheritance = VelocityInheritance,
  729. EmissionDirection = EmissionDirection,
  730. Enabled = Enabled,
  731. Lifetime = LifeTime,
  732. Rate = Rate,
  733. Rotation = Rotation,
  734. RotSpeed = RotSpeed,
  735. Speed = Speed,
  736. VelocitySpread = VelocitySpread
  737. })
  738. return fp
  739. end
  740. }
  741. }
  742. function RemoveOutlines(part)
  743. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  744. end
  745. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  746. local Part = Create("Part")({
  747. formFactor = FormFactor,
  748. Parent = Parent,
  749. Reflectance = Reflectance,
  750. Transparency = Transparency,
  751. CanCollide = false,
  752. Locked = true,
  753. BrickColor = BrickColor.new(tostring(BColor)),
  754. Name = Name,
  755. Size = Size,
  756. Material = Material
  757. })
  758. RemoveOutlines(Part)
  759. return Part
  760. end
  761. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  762. local Msh = Create(Mesh)({
  763. Parent = Part,
  764. Offset = OffSet,
  765. Scale = Scale
  766. })
  767. if Mesh == "SpecialMesh" then
  768. Msh.MeshType = MeshType
  769. Msh.MeshId = MeshId
  770. end
  771. return Msh
  772. end
  773. function CreateWeld(Parent, Part0, Part1, C0, C1)
  774. local Weld = Create("Weld")({
  775. Parent = Parent,
  776. Part0 = Part0,
  777. Part1 = Part1,
  778. C0 = C0,
  779. C1 = C1
  780. })
  781. return Weld
  782. end
  783.  
  784.  
  785.  
  786. -------------------------------------------------------
  787. --End Effect Function--
  788. -------------------------------------------------------
  789. function Cso(ID, PARENT, VOLUME, PITCH)
  790. local NSound = nil
  791. coroutine.resume(coroutine.create(function()
  792. NSound = IT("Sound", PARENT)
  793. NSound.Volume = VOLUME
  794. NSound.Pitch = PITCH
  795. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  796. swait()
  797. NSound:play()
  798. game:GetService("Debris"):AddItem(NSound, 50)
  799. end))
  800. return NSound
  801. end
  802. function CameraEnshaking(Length, Intensity)
  803. coroutine.resume(coroutine.create(function()
  804. local intensity = 1 * Intensity
  805. local rotM = 0.01 * Intensity
  806. for i = 0, Length, 0.1 do
  807. swait()
  808. intensity = intensity - 0.05 * Intensity / Length
  809. rotM = rotM - 5.0E-4 * Intensity / Length
  810. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  811. cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM)
  812. end
  813. hum.CameraOffset = Vector3.new(0, 0, 0)
  814. end))
  815. end
  816. -------------------------------------------------------
  817. --End Important Functions--
  818. -------------------------------------------------------
  819.  
  820. ----------------------------------------------------------------------------------
  821. hum.WalkSpeed = 20
  822. hum.JumpPower = 60
  823. ----------------------------------------------------------------------------------
  824. local AddInstance = function(Object, ...)
  825. local Obj = Instance.new(Object)
  826. for i,v in next,(...) do
  827. Obj[i] = v
  828. end
  829. return Obj
  830. end
  831. ----------------------------------------------------
  832.  
  833.  
  834. local Reaper = AddInstance("Part",{
  835. Parent = hed,
  836. CFrame = hed.CFrame,
  837. formFactor = "Symmetric",
  838. Size = Vector3.new(1, 1, 1),
  839. CanCollide = false,
  840. TopSurface = "Smooth",
  841. BottomSurface = "Smooth",
  842. Locked = true,
  843. })
  844. local Weld = AddInstance("Weld",{
  845. Parent = Reaper,
  846. Part0 = hed,
  847. C0 = CFrame.new(0, 1.45, 0)*CFrame.Angles(0, 0, 0),
  848. Part1 = Reaper,
  849. })
  850. local Mesh = AddInstance("SpecialMesh",{
  851. Parent = Reaper,
  852. MeshId = "rbxassetid://0",
  853. TextureId = "rbxassetid://0",
  854. Scale = Vector3.new(0.85,0.85,0.85),
  855. VertexColor = Vector3.new(1, 1, 1),
  856. })
  857.  
  858. -------------------------------------------------------
  859. IT = Instance.new
  860. CF = CFrame.new
  861. VT = Vector3.new
  862. RAD = math.rad
  863. C3 = Color3.new
  864. UD2 = UDim2.new
  865. BRICKC = BrickColor.new
  866. ANGLES = CFrame.Angles
  867. EULER = CFrame.fromEulerAnglesXYZ
  868. COS = math.cos
  869. ACOS = math.acos
  870. SIN = math.sin
  871. ASIN = math.asin
  872. ABS = math.abs
  873. MRANDOM = math.random
  874. FLOOR = math.floor
  875.  
  876. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  877. local label = IT("TextLabel")
  878. label.BackgroundTransparency = 1
  879. label.Size = UD2(1, 0, 1, 0)
  880. label.Position = UD2(0, 0, 0, 0)
  881. label.TextColor3 = TEXTCOLOR
  882. label.TextStrokeTransparency = STROKETRANSPARENCY
  883. label.TextTransparency = TRANSPARENCY
  884. label.FontSize = TEXTFONTSIZE
  885. label.Font = TEXTFONT
  886. label.BorderSizePixel = BORDERSIZEPIXEL
  887. label.TextScaled = false
  888. label.Text = TEXT
  889. label.Name = NAME
  890. label.Parent = PARENT
  891. return label
  892. end
  893.  
  894. function chatfunc(text)
  895. local chat = coroutine.wrap(function()
  896. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  897. Character:FindFirstChild("TalkingBillBoard"):destroy()
  898. end
  899. local Bill = Instance.new("BillboardGui",Character)
  900. Bill.Size = UDim2.new(0,100,0,40)
  901. Bill.StudsOffset = Vector3.new(0,3,0)
  902. Bill.Adornee = Character.Head
  903. Bill.Name = "TalkingBillBoard"
  904. local Hehe = Instance.new("TextLabel",Bill)
  905. Hehe.BackgroundTransparency = 1
  906. Hehe.BorderSizePixel = 0
  907. Hehe.Text = ""
  908. Hehe.Font = "Bodoni"
  909. Hehe.TextSize = 40
  910. Hehe.TextStrokeTransparency = 0
  911. Hehe.Size = UDim2.new(1,0,0.5,0)
  912. coroutine.resume(coroutine.create(function()
  913. while Hehe ~= nil do
  914. swait()
  915. Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  916. Hehe.Rotation = math.random(-5,5)
  917. Hehe.TextColor3 = Color3.new(220, 188, 129)
  918. Hehe.TextStrokeColor3 = Color3.new(220, 188, 129)
  919. end
  920. end))
  921. for i = 1,string.len(text),1 do
  922. swait()
  923. Hehe.Text = string.sub(text,1,i)
  924. end
  925. swait(90)--Re[math.random(1, 93)]
  926. for i = 0, 1, .025 do
  927. swait()
  928. Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
  929. Hehe.TextStrokeTransparency = i
  930. Hehe.TextTransparency = i
  931. end
  932. Bill:Destroy()
  933. end)
  934. chat()
  935. end
  936.  
  937. function onChatted(msg)
  938. chatfunc(msg)
  939. end
  940.  
  941. Player.Chatted:connect(onChatted)
  942.  
  943.  
  944. local Hair = AddInstance("Part",{
  945. Parent = hed,
  946. CFrame = hed.CFrame,
  947. formFactor = "Symmetric",
  948. Size = Vector3.new(1, 1, 1),
  949. CanCollide = false,
  950. TopSurface = "Smooth",
  951. BottomSurface = "Smooth",
  952. Locked = true,
  953. })
  954. local Weld = AddInstance("Weld",{
  955. Parent = Hair,
  956. Part0 = hed,
  957. C0 = CFrame.new(0, 0, 0)*CFrame.Angles(0, 480.5, 0),
  958. Part1 = Hair,
  959. })
  960. local Mesh = AddInstance("SpecialMesh",{
  961. Parent = Hair,
  962. MeshId = "rbxassetid://553688034",
  963. TextureId = "rbxassetid://869796655",
  964. Scale = Vector3.new(2,2,2),
  965. VertexColor = Vector3.new(1, 1, 1),
  966. })
  967.  
  968.  
  969. swait()
  970. plr = game.Players.LocalPlayer
  971. char = plr.Character
  972. mouse = plr:GetMouse()
  973. whitecolor = Color3.new(220, 188, 129)
  974. epicmode = false
  975. normal = true
  976. for i,v in pairs(char:GetChildren()) do
  977. if v.ClassName == "Hat" or v.ClassName == "Accessory" then
  978. v:Destroy()
  979. end
  980. end
  981.  
  982. cam = game.Workspace.CurrentCamera
  983. CF = CFrame.new
  984. angles = CFrame.Angles
  985. attack = false
  986. Euler = CFrame.fromEulerAnglesXYZ
  987. Rad = math.rad
  988. IT = Instance.new
  989. BrickC = BrickColor.new
  990. Cos = math.cos
  991. Acos = math.acos
  992. Sin = math.sin
  993. Asin = math.asin
  994. Abs = math.abs
  995. Mrandom = math.random
  996. Floor = math.floor
  997.  
  998. themee = Instance.new("Sound", Head)
  999. themee.Volume = 1
  1000. themee.Name = "themee"
  1001. themee.Looped = true
  1002.  
  1003. id = 1713855118
  1004. themee.SoundId = "rbxassetid://"..id
  1005. themee:Play()
  1006.  
  1007.  
  1008.  
  1009. function Eviscerate(dude)
  1010. if dude.Name ~= char then
  1011. local bgf = IT("BodyGyro", dude.Head)
  1012. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1013. local val = IT("BoolValue", dude)
  1014. val.Name = "IsHit"
  1015. local ds = coroutine.wrap(function()
  1016. dude:WaitForChild("Head"):BreakJoints()
  1017. wait(0.5)
  1018. target = nil
  1019. coroutine.resume(coroutine.create(function()
  1020. for i, v in pairs(dude:GetChildren()) do
  1021. if v:IsA("Accessory") then
  1022. v:Destroy()
  1023. end
  1024. if v:IsA("Humanoid") then
  1025. v:Destroy()
  1026. end
  1027. if v:IsA("CharacterMesh") then
  1028. v:Destroy()
  1029. end
  1030. if v:IsA("Model") then
  1031. v:Destroy()
  1032. end
  1033. if v:IsA("Part") or v:IsA("MeshPart") then
  1034. for x, o in pairs(v:GetChildren()) do
  1035. if o:IsA("Decal") then
  1036. o:Destroy()
  1037. end
  1038. end
  1039. coroutine.resume(coroutine.create(function()
  1040. v.Material = "Neon"
  1041. v.CanCollide = false
  1042. local PartEmmit1 = IT("ParticleEmitter", v)
  1043. PartEmmit1.LightEmission = 1
  1044. PartEmmit1.Texture = "rbxassetid://243160943"
  1045. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1046. PartEmmit1.Rate = 150
  1047. PartEmmit1.Lifetime = NumberRange.new(1)
  1048. PartEmmit1.Size = NumberSequence.new({
  1049. NumberSequenceKeypoint.new(0, 0.75, 0),
  1050. NumberSequenceKeypoint.new(1, 0, 0)
  1051. })
  1052. PartEmmit1.Transparency = NumberSequence.new({
  1053. NumberSequenceKeypoint.new(0, 0, 0),
  1054. NumberSequenceKeypoint.new(1, 1, 0)
  1055. })
  1056. PartEmmit1.Speed = NumberRange.new(0, 0)
  1057. PartEmmit1.VelocitySpread = 30000
  1058. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  1059. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  1060. local BodPoss = IT("BodyPosition", v)
  1061. BodPoss.P = 3000
  1062. BodPoss.D = 1000
  1063. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1064. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1065. v.Color = maincolor.Color
  1066. coroutine.resume(coroutine.create(function()
  1067. for i = 0, 49 do
  1068. swait(1)
  1069. v.Transparency = v.Transparency + 0.08
  1070. end
  1071. wait(0.5)
  1072. PartEmmit1.Enabled = false
  1073. wait(3)
  1074. v:Destroy()
  1075. dude:Destroy()
  1076. end))
  1077. end))
  1078. end
  1079. end
  1080. end))
  1081. end)
  1082. ds()
  1083. end
  1084. end
  1085.  
  1086. function FindNearestHead(Position, Distance, SinglePlayer)
  1087. if SinglePlayer then
  1088. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  1089. end
  1090. local List = {}
  1091. for i, v in pairs(workspace:GetChildren()) do
  1092. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  1093. table.insert(List, v)
  1094. end
  1095. end
  1096. return List
  1097. end
  1098.  
  1099.  
  1100. function Ban()
  1101. Cso("2220756150", hed, 10, 1.1)
  1102. Cso("2847401943", hed, 10, 1.1)
  1103. for i, v in pairs(FindNearestHead(mouse.Hit.p, 14.5)) do
  1104. if v:FindFirstChild("Head") then
  1105. Eviscerate(v)
  1106. end
  1107. end
  1108.  
  1109. end
  1110.  
  1111. mouse.Button1Down:connect(function(key)
  1112. if attack == false then
  1113. Ban()
  1114. end
  1115. end)
  1116. -----------------------------------------------
  1117.  
  1118.  
  1119. mouse.KeyDown:connect(function(Press)
  1120. Press=Press:lower()
  1121. if Press=='z' then
  1122. id = 0
  1123. themee.SoundId = "rbxassetid://"..id
  1124. themee:Play()
  1125. end
  1126. end)
  1127.  
  1128. mouse.KeyDown:connect(function(Press)
  1129. Press=Press:lower()
  1130. if Press=='f' then
  1131. dist = (tors.Position - mouse.Hit.p).magnitude
  1132. if dist <= 10000 then
  1133. tors.CFrame = CFrame.new(mouse.Hit.p) + Vector3.new(0,3,0)
  1134. end
  1135. end
  1136. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement