rcubed1003

smug fe ver

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