Advertisement
doryna2281337

Untitled

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