Advertisement
mememasterYT

ssssssmmmuggg

Aug 20th, 2019
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.26 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://1065951398"
  209. --------------------------------
  210.  
  211. -------------------------------------------------------
  212. wait(0.2)
  213. local plr = game:service'Players'.LocalPlayer
  214. local char = plr.Character
  215. local hum = char.Humanoid
  216. local hed = char.Head
  217. local root = char.HumanoidRootPart
  218. local rootj = root.RootJoint
  219. local tors = char.Torso
  220. local ra = char["Right Arm"]
  221. local la = char["Left Arm"]
  222. local rl = char["Right Leg"]
  223. local ll = char["Left Leg"]
  224. local neck = tors["Neck"]
  225. local mouse = plr:GetMouse()
  226. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  227. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  228. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  229. local maincolor = BrickColor.new("Plum")
  230.  
  231. -------------------------------------------------------
  232. --Start Good Stuff--
  233. -------------------------------------------------------
  234. cam = game.Workspace.CurrentCamera
  235. CF = CFrame.new
  236. angles = CFrame.Angles
  237. attack = false
  238. Euler = CFrame.fromEulerAnglesXYZ
  239. Rad = math.rad
  240. IT = Instance.new
  241. BrickC = BrickColor.new
  242. Cos = math.cos
  243. Acos = math.acos
  244. Sin = math.sin
  245. Asin = math.asin
  246. Abs = math.abs
  247. Mrandom = math.random
  248. Floor = math.floor
  249. -------------------------------------------------------
  250. --End Good Stuff--
  251. -------------------------------------------------------
  252. -------------------------------------------------------
  253. --Start HeartBeat--
  254. -------------------------------------------------------
  255. ArtificialHB = Instance.new("BindableEvent", script)
  256. ArtificialHB.Name = "Heartbeat"
  257. script:WaitForChild("Heartbeat")
  258.  
  259. frame = 1 / 60
  260. tf = 0
  261. allowframeloss = false
  262. tossremainder = false
  263.  
  264.  
  265. lastframe = tick()
  266. script.Heartbeat:Fire()
  267.  
  268.  
  269. game:GetService("RunService").Heartbeat:connect(function(s, p)
  270. tf = tf + s
  271. if tf >= frame then
  272. if allowframeloss then
  273. script.Heartbeat:Fire()
  274. lastframe = tick()
  275. else
  276. for i = 1, math.floor(tf / frame) do
  277. script.Heartbeat:Fire()
  278. end
  279. lastframe = tick()
  280. end
  281. if tossremainder then
  282. tf = 0
  283. else
  284. tf = tf - frame * math.floor(tf / frame)
  285. end
  286. end
  287. end)
  288. -------------------------------------------------------
  289. --End HeartBeat--
  290. -------------------------------------------------------
  291.  
  292. -------------------------------------------------------
  293. --Start Important Functions--
  294. -------------------------------------------------------
  295. function swait(num)
  296. if num == 0 or num == nil then
  297. game:service("RunService").Stepped:wait(0)
  298. else
  299. for i = 0, num do
  300. game:service("RunService").Stepped:wait(0)
  301. end
  302. end
  303. end
  304. function thread(f)
  305. coroutine.resume(coroutine.create(f))
  306. end
  307. function clerp(a, b, t)
  308. local qa = {
  309. QuaternionFromCFrame(a)
  310. }
  311. local qb = {
  312. QuaternionFromCFrame(b)
  313. }
  314. local ax, ay, az = a.x, a.y, a.z
  315. local bx, by, bz = b.x, b.y, b.z
  316. local _t = 1 - t
  317. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  318. end
  319. function QuaternionFromCFrame(cf)
  320. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  321. local trace = m00 + m11 + m22
  322. if trace > 0 then
  323. local s = math.sqrt(1 + trace)
  324. local recip = 0.5 / s
  325. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  326. else
  327. local i = 0
  328. if m00 < m11 then
  329. i = 1
  330. end
  331. if m22 > (i == 0 and m00 or m11) then
  332. i = 2
  333. end
  334. if i == 0 then
  335. local s = math.sqrt(m00 - m11 - m22 + 1)
  336. local recip = 0.5 / s
  337. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  338. elseif i == 1 then
  339. local s = math.sqrt(m11 - m22 - m00 + 1)
  340. local recip = 0.5 / s
  341. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  342. elseif i == 2 then
  343. local s = math.sqrt(m22 - m00 - m11 + 1)
  344. local recip = 0.5 / s
  345. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  346. end
  347. end
  348. end
  349. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  350. local xs, ys, zs = x + x, y + y, z + z
  351. local wx, wy, wz = w * xs, w * ys, w * zs
  352. local xx = x * xs
  353. local xy = x * ys
  354. local xz = x * zs
  355. local yy = y * ys
  356. local yz = y * zs
  357. local zz = z * zs
  358. 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))
  359. end
  360. function QuaternionSlerp(a, b, t)
  361. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  362. local startInterp, finishInterp
  363. if cosTheta >= 1.0E-4 then
  364. if 1 - cosTheta > 1.0E-4 then
  365. local theta = math.acos(cosTheta)
  366. local invSinTheta = 1 / Sin(theta)
  367. startInterp = Sin((1 - t) * theta) * invSinTheta
  368. finishInterp = Sin(t * theta) * invSinTheta
  369. else
  370. startInterp = 1 - t
  371. finishInterp = t
  372. end
  373. elseif 1 + cosTheta > 1.0E-4 then
  374. local theta = math.acos(-cosTheta)
  375. local invSinTheta = 1 / Sin(theta)
  376. startInterp = Sin((t - 1) * theta) * invSinTheta
  377. finishInterp = Sin(t * theta) * invSinTheta
  378. else
  379. startInterp = t - 1
  380. finishInterp = t
  381. end
  382. 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
  383. end
  384. function rayCast(Position, Direction, Range, Ignore)
  385. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  386. end
  387. local RbxUtility = LoadLibrary("RbxUtility")
  388. local Create = RbxUtility.Create
  389.  
  390. -------------------------------------------------------
  391. --Start Damage Function--
  392. -------------------------------------------------------
  393. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  394. if hit.Parent == nil then
  395. return
  396. end
  397. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  398. for _, v in pairs(hit.Parent:children()) do
  399. if v:IsA("Humanoid") then
  400. h = v
  401. end
  402. end
  403. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  404.  
  405. hit.Parent:FindFirstChild("Head"):BreakJoints()
  406. end
  407.  
  408. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  409. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  410. if hit.Parent.DebounceHit.Value == true then
  411. return
  412. end
  413. end
  414. if insta == true then
  415. hit.Parent:FindFirstChild("Head"):BreakJoints()
  416. end
  417. local c = Create("ObjectValue"){
  418. Name = "creator",
  419. Value = game:service("Players").LocalPlayer,
  420. Parent = h,
  421. }
  422. game:GetService("Debris"):AddItem(c, .5)
  423. if HitSound ~= nil and HitPitch ~= nil then
  424. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  425. end
  426. local Damage = math.random(minim, maxim)
  427. local blocked = false
  428. local block = hit.Parent:findFirstChild("Block")
  429. if block ~= nil then
  430. if block.className == "IntValue" then
  431. if block.Value > 0 then
  432. blocked = true
  433. block.Value = block.Value - 1
  434. print(block.Value)
  435. end
  436. end
  437. end
  438. if blocked == false then
  439. h.Health = h.Health - Damage
  440. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  441. else
  442. h.Health = h.Health - (Damage / 2)
  443. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  444. end
  445. if Type == "Knockdown" then
  446. local hum = hit.Parent.Humanoid
  447. hum.PlatformStand = true
  448. coroutine.resume(coroutine.create(function(HHumanoid)
  449. swait(1)
  450. HHumanoid.PlatformStand = false
  451. end), hum)
  452. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  453. local bodvol = Create("BodyVelocity"){
  454. velocity = angle * knockback,
  455. P = 5000,
  456. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  457. Parent = hit,
  458. }
  459. local rl = Create("BodyAngularVelocity"){
  460. P = 3000,
  461. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  462. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  463. Parent = hit,
  464. }
  465. game:GetService("Debris"):AddItem(bodvol, .5)
  466. game:GetService("Debris"):AddItem(rl, .5)
  467. elseif Type == "Normal" then
  468. local vp = Create("BodyVelocity"){
  469. P = 500,
  470. maxForce = Vector3.new(math.huge, 0, math.huge),
  471. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  472. }
  473. if knockback > 0 then
  474. vp.Parent = hit.Parent.Torso
  475. end
  476. game:GetService("Debris"):AddItem(vp, .5)
  477. elseif Type == "Up" then
  478. local bodyVelocity = Create("BodyVelocity"){
  479. velocity = Vector3.new(0, 20, 0),
  480. P = 5000,
  481. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  482. Parent = hit,
  483. }
  484. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  485. elseif Type == "DarkUp" then
  486. coroutine.resume(coroutine.create(function()
  487. for i = 0, 1, 0.1 do
  488. swait()
  489. Effects.Block.Create(BrickColor.new("Really red"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  490. end
  491. end))
  492. local bodyVelocity = Create("BodyVelocity"){
  493. velocity = Vector3.new(0, 20, 0),
  494. P = 5000,
  495. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  496. Parent = hit,
  497. }
  498. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  499. elseif Type == "Snare" then
  500. local bp = Create("BodyPosition"){
  501. P = 2000,
  502. D = 100,
  503. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  504. position = hit.Parent.Torso.Position,
  505. Parent = hit.Parent.Torso,
  506. }
  507. game:GetService("Debris"):AddItem(bp, 1)
  508. elseif Type == "Freeze" then
  509. local BodPos = Create("BodyPosition"){
  510. P = 50000,
  511. D = 1000,
  512. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  513. position = hit.Parent.Torso.Position,
  514. Parent = hit.Parent.Torso,
  515. }
  516. local BodGy = Create("BodyGyro") {
  517. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  518. P = 20e+003,
  519. Parent = hit.Parent.Torso,
  520. cframe = hit.Parent.Torso.CFrame,
  521. }
  522. hit.Parent.Torso.Anchored = true
  523. coroutine.resume(coroutine.create(function(Part)
  524. swait(1.5)
  525. Part.Anchored = false
  526. end), hit.Parent.Torso)
  527. game:GetService("Debris"):AddItem(BodPos, 3)
  528. game:GetService("Debris"):AddItem(BodGy, 3)
  529. end
  530. local debounce = Create("BoolValue"){
  531. Name = "DebounceHit",
  532. Parent = hit.Parent,
  533. Value = true,
  534. }
  535. game:GetService("Debris"):AddItem(debounce, Delay)
  536. c = Create("ObjectValue"){
  537. Name = "creator",
  538. Value = Player,
  539. Parent = h,
  540. }
  541. game:GetService("Debris"):AddItem(c, .5)
  542. end
  543. end
  544. -------------------------------------------------------
  545. --End Damage Function--
  546. -------------------------------------------------------
  547.  
  548. -------------------------------------------------------
  549. --Start Damage Function Customization--
  550. -------------------------------------------------------
  551. function ShowDamage(Pos, Text, Time, Color)
  552. local Rate = (1 / 30)
  553. local Pos = (Pos or Vector3.new(0, 0, 0))
  554. local Text = (Text or "")
  555. local Time = (Time or 2)
  556. local Color = (Color or Color3.new(255, 255, 1))
  557. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  558. EffectPart.Anchored = true
  559. local BillboardGui = Create("BillboardGui"){
  560. Size = UDim2.new(3, 0, 3, 0),
  561. Adornee = EffectPart,
  562. Parent = EffectPart,
  563. }
  564. local TextLabel = Create("TextLabel"){
  565. BackgroundTransparency = 1,
  566. Size = UDim2.new(1, 0, 1, 0),
  567. Text = Text,
  568. Font = "Bodoni",
  569. TextColor3 = Color,
  570. TextScaled = true,
  571. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  572. Parent = BillboardGui,
  573. }
  574. game.Debris:AddItem(EffectPart, (Time))
  575. EffectPart.Parent = game:GetService("Workspace")
  576. delay(0, function()
  577. local Frames = (Time / Rate)
  578. for Frame = 1, Frames do
  579. wait(Rate)
  580. local Percent = (Frame / Frames)
  581. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  582. TextLabel.TextTransparency = Percent
  583. end
  584. if EffectPart and EffectPart.Parent then
  585. EffectPart:Destroy()
  586. end
  587. end)
  588. end
  589. -------------------------------------------------------
  590. --End Damage Function Customization--
  591. -------------------------------------------------------
  592.  
  593. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  594. for _, c in pairs(workspace:children()) do
  595. local hum = c:findFirstChild("Humanoid")
  596. if hum ~= nil then
  597. local head = c:findFirstChild("Head")
  598. if head ~= nil then
  599. local targ = head.Position - Part.Position
  600. local mag = targ.magnitude
  601. if magni >= mag and c.Name ~= plr.Name then
  602. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  603. end
  604. end
  605. end
  606. end
  607. end
  608.  
  609.  
  610. CFuncs = {
  611. Part = {
  612. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  613. local Part = Create("Part")({
  614. Parent = Parent,
  615. Reflectance = Reflectance,
  616. Transparency = Transparency,
  617. CanCollide = false,
  618. Locked = true,
  619. BrickColor = BrickColor.new(tostring(BColor)),
  620. Name = Name,
  621. Size = Size,
  622. Material = Material
  623. })
  624. RemoveOutlines(Part)
  625. return Part
  626. end
  627. },
  628. Mesh = {
  629. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  630. local Msh = Create(Mesh)({
  631. Parent = Part,
  632. Offset = OffSet,
  633. Scale = Scale
  634. })
  635. if Mesh == "SpecialMesh" then
  636. Msh.MeshType = MeshType
  637. Msh.MeshId = MeshId
  638. end
  639. return Msh
  640. end
  641. },
  642. Mesh = {
  643. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  644. local Msh = Create(Mesh)({
  645. Parent = Part,
  646. Offset = OffSet,
  647. Scale = Scale
  648. })
  649. if Mesh == "SpecialMesh" then
  650. Msh.MeshType = MeshType
  651. Msh.MeshId = MeshId
  652. end
  653. return Msh
  654. end
  655. },
  656. Weld = {
  657. Create = function(Parent, Part0, Part1, C0, C1)
  658. local Weld = Create("Weld")({
  659. Parent = Parent,
  660. Part0 = Part0,
  661. Part1 = Part1,
  662. C0 = C0,
  663. C1 = C1
  664. })
  665. return Weld
  666. end
  667. },
  668. Sound = {
  669. Create = function(id, par, vol, pit)
  670. coroutine.resume(coroutine.create(function()
  671. local S = Create("Sound")({
  672. Volume = vol,
  673. Pitch = pit or 1,
  674. SoundId = id,
  675. Parent = par or workspace
  676. })
  677. wait()
  678. S:play()
  679. game:GetService("Debris"):AddItem(S, 6)
  680. end))
  681. end
  682. },
  683. ParticleEmitter = {
  684. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  685. local fp = Create("ParticleEmitter")({
  686. Parent = Parent,
  687. Color = ColorSequence.new(Color1, Color2),
  688. LightEmission = LightEmission,
  689. Size = Size,
  690. Texture = Texture,
  691. Transparency = Transparency,
  692. ZOffset = ZOffset,
  693. Acceleration = Accel,
  694. Drag = Drag,
  695. LockedToPart = LockedToPart,
  696. VelocityInheritance = VelocityInheritance,
  697. EmissionDirection = EmissionDirection,
  698. Enabled = Enabled,
  699. Lifetime = LifeTime,
  700. Rate = Rate,
  701. Rotation = Rotation,
  702. RotSpeed = RotSpeed,
  703. Speed = Speed,
  704. VelocitySpread = VelocitySpread
  705. })
  706. return fp
  707. end
  708. }
  709. }
  710. function RemoveOutlines(part)
  711. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  712. end
  713. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  714. local Part = Create("Part")({
  715. formFactor = FormFactor,
  716. Parent = Parent,
  717. Reflectance = Reflectance,
  718. Transparency = Transparency,
  719. CanCollide = false,
  720. Locked = true,
  721. BrickColor = BrickColor.new(tostring(BColor)),
  722. Name = Name,
  723. Size = Size,
  724. Material = Material
  725. })
  726. RemoveOutlines(Part)
  727. return Part
  728. end
  729. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  730. local Msh = Create(Mesh)({
  731. Parent = Part,
  732. Offset = OffSet,
  733. Scale = Scale
  734. })
  735. if Mesh == "SpecialMesh" then
  736. Msh.MeshType = MeshType
  737. Msh.MeshId = MeshId
  738. end
  739. return Msh
  740. end
  741. function CreateWeld(Parent, Part0, Part1, C0, C1)
  742. local Weld = Create("Weld")({
  743. Parent = Parent,
  744. Part0 = Part0,
  745. Part1 = Part1,
  746. C0 = C0,
  747. C1 = C1
  748. })
  749. return Weld
  750. end
  751.  
  752.  
  753.  
  754. -------------------------------------------------------
  755. --End Effect Function--
  756. -------------------------------------------------------
  757. function Cso(ID, PARENT, VOLUME, PITCH)
  758. local NSound = nil
  759. coroutine.resume(coroutine.create(function()
  760. NSound = IT("Sound", PARENT)
  761. NSound.Volume = VOLUME
  762. NSound.Pitch = PITCH
  763. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  764. swait()
  765. NSound:play()
  766. game:GetService("Debris"):AddItem(NSound, 50)
  767. end))
  768. return NSound
  769. end
  770. function CameraEnshaking(Length, Intensity)
  771. coroutine.resume(coroutine.create(function()
  772. local intensity = 1 * Intensity
  773. local rotM = 0.01 * Intensity
  774. for i = 0, Length, 0.1 do
  775. swait()
  776. intensity = intensity - 0.05 * Intensity / Length
  777. rotM = rotM - 5.0E-4 * Intensity / Length
  778. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  779. 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)
  780. end
  781. hum.CameraOffset = Vector3.new(0, 0, 0)
  782. end))
  783. end
  784. -------------------------------------------------------
  785. --End Important Functions--
  786. -------------------------------------------------------
  787.  
  788. ----------------------------------------------------------------------------------
  789. hum.WalkSpeed = 16
  790. hum.JumpPower = 57
  791. ----------------------------------------------------------------------------------
  792. local AddInstance = function(Object, ...)
  793. local Obj = Instance.new(Object)
  794. for i,v in next,(...) do
  795. Obj[i] = v
  796. end
  797. return Obj
  798. end
  799. ----------------------------------------------------
  800.  
  801. local Reaper = AddInstance("Part",{
  802. Parent = hed,
  803. CFrame = hed.CFrame,
  804. formFactor = "Symmetric",
  805. Size = Vector3.new(1, 1, 1),
  806. CanCollide = false,
  807. TopSurface = "Smooth",
  808. BottomSurface = "Smooth",
  809. Locked = true,
  810. })
  811. local Weld = AddInstance("Weld",{
  812. Parent = Reaper,
  813. Part0 = hed,
  814. C0 = CFrame.new(0, 1.45, 0)*CFrame.Angles(0, 0, 0),
  815. Part1 = Reaper,
  816. })
  817. local Mesh = AddInstance("SpecialMesh",{
  818. Parent = Reaper,
  819. MeshId = "rbxassetid://2711178",
  820. TextureId = "rbxassetid://2938935864",
  821. Scale = Vector3.new(0.85,0.85,0.85),
  822. VertexColor = Vector3.new(1, 1, 1),
  823. })
  824.  
  825. -------------------------------------------------------
  826. local Hair = AddInstance("Part",{
  827. Parent = hed,
  828. CFrame = hed.CFrame,
  829. formFactor = "Symmetric",
  830. Size = Vector3.new(1, 1, 1),
  831. CanCollide = false,
  832. TopSurface = "Smooth",
  833. BottomSurface = "Smooth",
  834. Locked = true,
  835. })
  836. local Weld = AddInstance("Weld",{
  837. Parent = Hair,
  838. Part0 = hed,
  839. C0 = CFrame.new(-0.05, 0.35, 0.4)*CFrame.Angles(0, 0, 0),
  840. Part1 = Hair,
  841. })
  842. local Mesh = AddInstance("SpecialMesh",{
  843. Parent = Hair,
  844. MeshId = "rbxassetid://1138830322",
  845. TextureId = "rbxassetid://869796655",
  846. Scale = Vector3.new(0.6,0.6,0.6),
  847. VertexColor = Vector3.new(1, 1, 1),
  848. })
  849. -------------------------------------------------------
  850. local Cape = AddInstance("Part",{
  851. Parent = Torso,
  852. CFrame = Torso.CFrame,
  853. formFactor = "Symmetric",
  854. Size = Vector3.new(1, 1, 1),
  855. CanCollide = false,
  856. TopSurface = "Smooth",
  857. BottomSurface = "Smooth",
  858. Locked = true,
  859. })
  860. local Weld = AddInstance("Weld",{
  861. Parent = Cape,
  862. Part0 = Torso,
  863. C0 = CFrame.new(0, -0.2, 0.35)*CFrame.Angles(0, 0, 0),
  864. Part1 = Cape,
  865. })
  866. local Mesh = AddInstance("SpecialMesh",{
  867. Parent = Cape,
  868. MeshId = "rbxassetid://114046169",
  869. TextureId = "rbxassetid://501524456",
  870. Scale = Vector3.new(1.3,1.3,1.3),
  871. VertexColor = Vector3.new(1, 1, 1),
  872. })
  873. ---------------------------------------------------------------
  874. wait(1)
  875. plr = game.Players.LocalPlayer
  876. char = plr.Character
  877. mouse = plr:GetMouse()
  878. whitecolor = Color3.new(255,255,1)
  879. epicmode = false
  880. normal = true
  881. for i,v in pairs(char:GetChildren()) do
  882. if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then
  883. v:Destroy()
  884. end
  885. end
  886. local shirt = Instance.new("Shirt",char)
  887. shirt.ShirtTemplate = "rbxassetid://1408840214"
  888. local pants = Instance.new("Pants",char)
  889. pants.PantsTemplate = "rbxassetid://1409282652"
  890. local bdycolors = char["Body Colors"]
  891. bdycolors.HeadColor3 = whitecolor
  892. bdycolors.LeftArmColor3 = whitecolor
  893. bdycolors.LeftLegColor3 = whitecolor
  894. bdycolors.RightArmColor3 = whitecolor
  895. bdycolors.RightLegColor3 = whitecolor
  896. bdycolors.TorsoColor3 = whitecolor
  897. for i,v in pairs(char:GetChildren()) do
  898. if v.ClassName == "Hat" or v.ClassName == "Accessory" then
  899. v:Destroy()
  900. end
  901. end
  902.  
  903.  
  904.  
  905. local BC = Character["Body Colors"]
  906. BC.HeadColor = BrickColor.new("Pastel brown")
  907. BC.LeftArmColor = BrickColor.new("Pastel brown")
  908. BC.LeftLegColor = BrickColor.new("Pastel brown")
  909. BC.RightArmColor = BrickColor.new("Pastel brown")
  910. BC.RightLegColor = BrickColor.new("Pastel brown")
  911. BC.TorsoColor = BrickColor.new("Pastel brown")
  912.  
  913. -----------------------------------------------
  914.  
  915. theme = Instance.new("Sound", Head)
  916. theme.Volume = 0.7
  917. theme.Name = "theme"
  918. theme.Looped = true
  919.  
  920. mouse.KeyDown:connect(function(Press)
  921. Press=Press:lower()
  922. if Press=='z' then
  923. id = 0
  924. theme.SoundId = "rbxassetid://"..id
  925. theme:Play()
  926. end
  927. end)
  928.  
  929. mouse.KeyDown:connect(function(Press)
  930. Press=Press:lower()
  931. if Press=='c' then
  932. id = 1191722766
  933. theme.SoundId = "rbxassetid://"..id
  934. theme:Play()
  935. end
  936. end)
  937.  
  938. mouse.KeyDown:connect(function(Press)
  939. Press=Press:lower()
  940. if Press=='v' then
  941. id = 2377141094
  942. theme.SoundId = "rbxassetid://"..id
  943. theme:Play()
  944. end
  945. end)
  946.  
  947. mouse.KeyDown:connect(function(Press)
  948. Press=Press:lower()
  949. if Press=='b' then
  950. id = 1129466633
  951. theme.SoundId = "rbxassetid://"..id
  952. theme:Play()
  953. end
  954. end)
  955.  
  956. mouse.KeyDown:connect(function(Press)
  957. Press=Press:lower()
  958. if Press=='n' then
  959. id = 1117396305
  960. theme.SoundId = "rbxassetid://"..id
  961. theme:Play()
  962. end
  963. end)
  964.  
  965. mouse.KeyDown:connect(function(Press)
  966. Press=Press:lower()
  967. if Press=='m' then
  968. id = 991980152
  969. theme.SoundId = "rbxassetid://"..id
  970. theme:Play()
  971. end
  972. end)
  973.  
  974. mouse.KeyDown:connect(function(Press)
  975. Press=Press:lower()
  976. if Press=='x' then
  977. id = 2279080577
  978. theme.SoundId = "rbxassetid://"..id
  979. theme:Play()
  980. end
  981. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement