Advertisement
doryna2281337

Untitled

Oct 29th, 2019
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ----------------------------------------------------------------
  2. --//xdielivex's universal loader\\--
  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://0"
  213. --------------------------------
  214. local naeeym2 = Instance.new("BillboardGui",char)
  215. naeeym2.AlwaysOnTop = true
  216. naeeym2.Size = UDim2.new(5,35,2,35)
  217. naeeym2.StudsOffset = Vector3.new(0,2,0)
  218. naeeym2.Adornee = hed
  219. naeeym2.Name = "Name"
  220.  
  221. local tecks2 = Instance.new("TextLabel",naeeym2)
  222. tecks2.BackgroundTransparency = 1
  223. tecks2.TextScaled = true
  224. tecks2.BorderSizePixel = 0
  225. tecks2.Text = ""
  226. tecks2.Font = "Fantasy"
  227. tecks2.TextSize = 30
  228. tecks2.TextStrokeTransparency = 0
  229. tecks2.TextColor3 = BrickColor.new('Really red').Color
  230. tecks2.TextStrokeColor3 = BrickColor.new('Really black').Color
  231. tecks2.Size = UDim2.new(1,0,0.5,0)
  232. tecks2.Parent = naeeym2
  233. textfag = tecks2
  234. tecks2.Text = ""
  235. tecks2.Text = "script by xdielivex"
  236. wait(2)
  237. tecks2.Text = ""
  238. coroutine.resume(coroutine.create(function()
  239. while textfag ~= nil do
  240. swait()
  241. textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3))
  242. textfag.Rotation = math.random(-3,3)
  243. end
  244. end))
  245. -------------------------------------------------------
  246. wait(0.2)
  247. local plr = game:service'Players'.LocalPlayer
  248. local char = plr.Character
  249. local hum = char.Humanoid
  250. local hed = char.Head
  251. local root = char.HumanoidRootPart
  252. local rootj = root.RootJoint
  253. local tors = char.Torso
  254. local ra = char["Right Arm"]
  255. local la = char["Left Arm"]
  256. local rl = char["Right Leg"]
  257. local ll = char["Left Leg"]
  258. local neck = tors["Neck"]
  259. local mouse = plr:GetMouse()
  260. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  261. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  262. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  263. local maincolor = BrickColor.new("Plum")
  264.  
  265. -------------------------------------------------------
  266. --Start Good Stuff--
  267. -------------------------------------------------------
  268. cam = game.Workspace.CurrentCamera
  269. CF = CFrame.new
  270. angles = CFrame.Angles
  271. attack = false
  272. Euler = CFrame.fromEulerAnglesXYZ
  273. Rad = math.rad
  274. IT = Instance.new
  275. BrickC = BrickColor.new
  276. Cos = math.cos
  277. Acos = math.acos
  278. Sin = math.sin
  279. Asin = math.asin
  280. Abs = math.abs
  281. Mrandom = math.random
  282. Floor = math.floor
  283. -------------------------------------------------------
  284. --End Good Stuff--
  285. -------------------------------------------------------
  286. -------------------------------------------------------
  287. --Start HeartBeat--
  288. -------------------------------------------------------
  289. ArtificialHB = Instance.new("BindableEvent", script)
  290. ArtificialHB.Name = "Heartbeat"
  291. script:WaitForChild("Heartbeat")
  292.  
  293. frame = 1 / 60
  294. tf = 0
  295. allowframeloss = false
  296. tossremainder = false
  297.  
  298.  
  299. lastframe = tick()
  300. script.Heartbeat:Fire()
  301.  
  302.  
  303. game:GetService("RunService").Heartbeat:connect(function(s, p)
  304. tf = tf + s
  305. if tf >= frame then
  306. if allowframeloss then
  307. script.Heartbeat:Fire()
  308. lastframe = tick()
  309. else
  310. for i = 1, math.floor(tf / frame) do
  311. script.Heartbeat:Fire()
  312. end
  313. lastframe = tick()
  314. end
  315. if tossremainder then
  316. tf = 0
  317. else
  318. tf = tf - frame * math.floor(tf / frame)
  319. end
  320. end
  321. end)
  322. -------------------------------------------------------
  323. --End HeartBeat--
  324. -------------------------------------------------------
  325.  
  326. -------------------------------------------------------
  327. --Start Important Functions--
  328. -------------------------------------------------------
  329. function swait(num)
  330. if num == 0 or num == nil then
  331. game:service("RunService").Stepped:wait(0)
  332. else
  333. for i = 0, num do
  334. game:service("RunService").Stepped:wait(0)
  335. end
  336. end
  337. end
  338. function thread(f)
  339. coroutine.resume(coroutine.create(f))
  340. end
  341. function clerp(a, b, t)
  342. local qa = {
  343. QuaternionFromCFrame(a)
  344. }
  345. local qb = {
  346. QuaternionFromCFrame(b)
  347. }
  348. local ax, ay, az = a.x, a.y, a.z
  349. local bx, by, bz = b.x, b.y, b.z
  350. local _t = 1 - t
  351. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  352. end
  353. function QuaternionFromCFrame(cf)
  354. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  355. local trace = m00 + m11 + m22
  356. if trace > 0 then
  357. local s = math.sqrt(1 + trace)
  358. local recip = 0.5 / s
  359. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  360. else
  361. local i = 0
  362. if m00 < m11 then
  363. i = 1
  364. end
  365. if m22 > (i == 0 and m00 or m11) then
  366. i = 2
  367. end
  368. if i == 0 then
  369. local s = math.sqrt(m00 - m11 - m22 + 1)
  370. local recip = 0.5 / s
  371. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  372. elseif i == 1 then
  373. local s = math.sqrt(m11 - m22 - m00 + 1)
  374. local recip = 0.5 / s
  375. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  376. elseif i == 2 then
  377. local s = math.sqrt(m22 - m00 - m11 + 1)
  378. local recip = 0.5 / s
  379. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  380. end
  381. end
  382. end
  383. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  384. local xs, ys, zs = x + x, y + y, z + z
  385. local wx, wy, wz = w * xs, w * ys, w * zs
  386. local xx = x * xs
  387. local xy = x * ys
  388. local xz = x * zs
  389. local yy = y * ys
  390. local yz = y * zs
  391. local zz = z * zs
  392. 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))
  393. end
  394. function QuaternionSlerp(a, b, t)
  395. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  396. local startInterp, finishInterp
  397. if cosTheta >= 1.0E-4 then
  398. if 1 - cosTheta > 1.0E-4 then
  399. local theta = math.acos(cosTheta)
  400. local invSinTheta = 1 / Sin(theta)
  401. startInterp = Sin((1 - t) * theta) * invSinTheta
  402. finishInterp = Sin(t * theta) * invSinTheta
  403. else
  404. startInterp = 1 - t
  405. finishInterp = t
  406. end
  407. elseif 1 + cosTheta > 1.0E-4 then
  408. local theta = math.acos(-cosTheta)
  409. local invSinTheta = 1 / Sin(theta)
  410. startInterp = Sin((t - 1) * theta) * invSinTheta
  411. finishInterp = Sin(t * theta) * invSinTheta
  412. else
  413. startInterp = t - 1
  414. finishInterp = t
  415. end
  416. 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
  417. end
  418. function rayCast(Position, Direction, Range, Ignore)
  419. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  420. end
  421. local RbxUtility = LoadLibrary("RbxUtility")
  422. local Create = RbxUtility.Create
  423.  
  424. -------------------------------------------------------
  425. --Start Damage Function--
  426. -------------------------------------------------------
  427. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  428. if hit.Parent == nil then
  429. return
  430. end
  431. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  432. for _, v in pairs(hit.Parent:children()) do
  433. if v:IsA("Humanoid") then
  434. h = v
  435. end
  436. end
  437. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  438.  
  439. hit.Parent:FindFirstChild("Head"):BreakJoints()
  440. end
  441.  
  442. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  443. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  444. if hit.Parent.DebounceHit.Value == true then
  445. return
  446. end
  447. end
  448. if insta == true then
  449. hit.Parent:FindFirstChild("Head"):BreakJoints()
  450. end
  451. local c = Create("ObjectValue"){
  452. Name = "creator",
  453. Value = game:service("Players").LocalPlayer,
  454. Parent = h,
  455. }
  456. game:GetService("Debris"):AddItem(c, .5)
  457. if HitSound ~= nil and HitPitch ~= nil then
  458. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  459. end
  460. local Damage = math.random(minim, maxim)
  461. local blocked = false
  462. local block = hit.Parent:findFirstChild("Block")
  463. if block ~= nil then
  464. if block.className == "IntValue" then
  465. if block.Value > 0 then
  466. blocked = true
  467. block.Value = block.Value - 1
  468. print(block.Value)
  469. end
  470. end
  471. end
  472. if blocked == false then
  473. h.Health = h.Health - Damage
  474. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  475. else
  476. h.Health = h.Health - (Damage / 2)
  477. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  478. end
  479. if Type == "Knockdown" then
  480. local hum = hit.Parent.Humanoid
  481. hum.PlatformStand = true
  482. coroutine.resume(coroutine.create(function(HHumanoid)
  483. swait(1)
  484. HHumanoid.PlatformStand = false
  485. end), hum)
  486. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  487. local bodvol = Create("BodyVelocity"){
  488. velocity = angle * knockback,
  489. P = 5000,
  490. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  491. Parent = hit,
  492. }
  493. local rl = Create("BodyAngularVelocity"){
  494. P = 3000,
  495. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  496. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  497. Parent = hit,
  498. }
  499. game:GetService("Debris"):AddItem(bodvol, .5)
  500. game:GetService("Debris"):AddItem(rl, .5)
  501. elseif Type == "Normal" then
  502. local vp = Create("BodyVelocity"){
  503. P = 500,
  504. maxForce = Vector3.new(math.huge, 0, math.huge),
  505. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  506. }
  507. if knockback > 0 then
  508. vp.Parent = hit.Parent.Torso
  509. end
  510. game:GetService("Debris"):AddItem(vp, .5)
  511. elseif Type == "Up" then
  512. local bodyVelocity = Create("BodyVelocity"){
  513. velocity = Vector3.new(0, 20, 0),
  514. P = 5000,
  515. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  516. Parent = hit,
  517. }
  518. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  519. elseif Type == "DarkUp" then
  520. coroutine.resume(coroutine.create(function()
  521. for i = 0, 1, 0.1 do
  522. swait()
  523. Effects.Block.Create(BrickColor.new("Really red"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  524. end
  525. end))
  526. local bodyVelocity = Create("BodyVelocity"){
  527. velocity = Vector3.new(0, 20, 0),
  528. P = 5000,
  529. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  530. Parent = hit,
  531. }
  532. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  533. elseif Type == "Snare" then
  534. local bp = Create("BodyPosition"){
  535. P = 2000,
  536. D = 100,
  537. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  538. position = hit.Parent.Torso.Position,
  539. Parent = hit.Parent.Torso,
  540. }
  541. game:GetService("Debris"):AddItem(bp, 1)
  542. elseif Type == "Freeze" then
  543. local BodPos = Create("BodyPosition"){
  544. P = 50000,
  545. D = 1000,
  546. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  547. position = hit.Parent.Torso.Position,
  548. Parent = hit.Parent.Torso,
  549. }
  550. local BodGy = Create("BodyGyro") {
  551. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  552. P = 20e+003,
  553. Parent = hit.Parent.Torso,
  554. cframe = hit.Parent.Torso.CFrame,
  555. }
  556. hit.Parent.Torso.Anchored = true
  557. coroutine.resume(coroutine.create(function(Part)
  558. swait(1.5)
  559. Part.Anchored = false
  560. end), hit.Parent.Torso)
  561. game:GetService("Debris"):AddItem(BodPos, 3)
  562. game:GetService("Debris"):AddItem(BodGy, 3)
  563. end
  564. local debounce = Create("BoolValue"){
  565. Name = "DebounceHit",
  566. Parent = hit.Parent,
  567. Value = true,
  568. }
  569. game:GetService("Debris"):AddItem(debounce, Delay)
  570. c = Create("ObjectValue"){
  571. Name = "creator",
  572. Value = Player,
  573. Parent = h,
  574. }
  575. game:GetService("Debris"):AddItem(c, .5)
  576. end
  577. end
  578. -------------------------------------------------------
  579. --End Damage Function--
  580. -------------------------------------------------------
  581.  
  582. -------------------------------------------------------
  583. --Start Damage Function Customization--
  584. -------------------------------------------------------
  585. function ShowDamage(Pos, Text, Time, Color)
  586. local Rate = (1 / 30)
  587. local Pos = (Pos or Vector3.new(0, 0, 0))
  588. local Text = (Text or "")
  589. local Time = (Time or 2)
  590. local Color = (Color or Color3.new(255, 255, 1))
  591. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  592. EffectPart.Anchored = true
  593. local BillboardGui = Create("BillboardGui"){
  594. Size = UDim2.new(3, 0, 3, 0),
  595. Adornee = EffectPart,
  596. Parent = EffectPart,
  597. }
  598. local TextLabel = Create("TextLabel"){
  599. BackgroundTransparency = 1,
  600. Size = UDim2.new(1, 0, 1, 0),
  601. Text = Text,
  602. Font = "Bodoni",
  603. TextColor3 = Color,
  604. TextScaled = true,
  605. TextStrokeColor3 = Color3.fromRGB(220, 188, 129),
  606. Parent = BillboardGui,
  607. }
  608. game.Debris:AddItem(EffectPart, (Time))
  609. EffectPart.Parent = game:GetService("Workspace")
  610. delay(0, function()
  611. local Frames = (Time / Rate)
  612. for Frame = 1, Frames do
  613. wait(Rate)
  614. local Percent = (Frame / Frames)
  615. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  616. TextLabel.TextTransparency = Percent
  617. end
  618. if EffectPart and EffectPart.Parent then
  619. EffectPart:Destroy()
  620. end
  621. end)
  622. end
  623. -------------------------------------------------------
  624. --End Damage Function Customization--
  625. -------------------------------------------------------
  626.  
  627. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  628. for _, c in pairs(workspace:children()) do
  629. local hum = c:findFirstChild("Humanoid")
  630. if hum ~= nil then
  631. local head = c:findFirstChild("Head")
  632. if head ~= nil then
  633. local targ = head.Position - Part.Position
  634. local mag = targ.magnitude
  635. if magni >= mag and c.Name ~= plr.Name then
  636. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  637. end
  638. end
  639. end
  640. end
  641. end
  642.  
  643.  
  644. CFuncs = {
  645. Part = {
  646. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  647. local Part = Create("Part")({
  648. Parent = Parent,
  649. Reflectance = Reflectance,
  650. Transparency = Transparency,
  651. CanCollide = false,
  652. Locked = true,
  653. BrickColor = BrickColor.new(tostring(BColor)),
  654. Name = Name,
  655. Size = Size,
  656. Material = Material
  657. })
  658. RemoveOutlines(Part)
  659. return Part
  660. end
  661. },
  662. Mesh = {
  663. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  664. local Msh = Create(Mesh)({
  665. Parent = Part,
  666. Offset = OffSet,
  667. Scale = Scale
  668. })
  669. if Mesh == "SpecialMesh" then
  670. Msh.MeshType = MeshType
  671. Msh.MeshId = MeshId
  672. end
  673. return Msh
  674. end
  675. },
  676. Mesh = {
  677. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  678. local Msh = Create(Mesh)({
  679. Parent = Part,
  680. Offset = OffSet,
  681. Scale = Scale
  682. })
  683. if Mesh == "SpecialMesh" then
  684. Msh.MeshType = MeshType
  685. Msh.MeshId = MeshId
  686. end
  687. return Msh
  688. end
  689. },
  690. Weld = {
  691. Create = function(Parent, Part0, Part1, C0, C1)
  692. local Weld = Create("Weld")({
  693. Parent = Parent,
  694. Part0 = Part0,
  695. Part1 = Part1,
  696. C0 = C0,
  697. C1 = C1
  698. })
  699. return Weld
  700. end
  701. },
  702. Sound = {
  703. Create = function(id, par, vol, pit)
  704. coroutine.resume(coroutine.create(function()
  705. local S = Create("Sound")({
  706. Volume = vol,
  707. Pitch = pit or 1,
  708. SoundId = id,
  709. Parent = par or workspace
  710. })
  711. wait()
  712. S:play()
  713. game:GetService("Debris"):AddItem(S, 6)
  714. end))
  715. end
  716. },
  717. ParticleEmitter = {
  718. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  719. local fp = Create("ParticleEmitter")({
  720. Parent = Parent,
  721. Color = ColorSequence.new(Color1, Color2),
  722. LightEmission = LightEmission,
  723. Size = Size,
  724. Texture = Texture,
  725. Transparency = Transparency,
  726. ZOffset = ZOffset,
  727. Acceleration = Accel,
  728. Drag = Drag,
  729. LockedToPart = LockedToPart,
  730. VelocityInheritance = VelocityInheritance,
  731. EmissionDirection = EmissionDirection,
  732. Enabled = Enabled,
  733. Lifetime = LifeTime,
  734. Rate = Rate,
  735. Rotation = Rotation,
  736. RotSpeed = RotSpeed,
  737. Speed = Speed,
  738. VelocitySpread = VelocitySpread
  739. })
  740. return fp
  741. end
  742. }
  743. }
  744. function RemoveOutlines(part)
  745. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  746. end
  747. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  748. local Part = Create("Part")({
  749. formFactor = FormFactor,
  750. Parent = Parent,
  751. Reflectance = Reflectance,
  752. Transparency = Transparency,
  753. CanCollide = false,
  754. Locked = true,
  755. BrickColor = BrickColor.new(tostring(BColor)),
  756. Name = Name,
  757. Size = Size,
  758. Material = Material
  759. })
  760. RemoveOutlines(Part)
  761. return Part
  762. end
  763. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  764. local Msh = Create(Mesh)({
  765. Parent = Part,
  766. Offset = OffSet,
  767. Scale = Scale
  768. })
  769. if Mesh == "SpecialMesh" then
  770. Msh.MeshType = MeshType
  771. Msh.MeshId = MeshId
  772. end
  773. return Msh
  774. end
  775. function CreateWeld(Parent, Part0, Part1, C0, C1)
  776. local Weld = Create("Weld")({
  777. Parent = Parent,
  778. Part0 = Part0,
  779. Part1 = Part1,
  780. C0 = C0,
  781. C1 = C1
  782. })
  783. return Weld
  784. end
  785.  
  786.  
  787.  
  788. -------------------------------------------------------
  789. --End Effect Function--
  790. -------------------------------------------------------
  791. function Cso(ID, PARENT, VOLUME, PITCH)
  792. local NSound = nil
  793. coroutine.resume(coroutine.create(function()
  794. NSound = IT("Sound", PARENT)
  795. NSound.Volume = VOLUME
  796. NSound.Pitch = PITCH
  797. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  798. swait()
  799. NSound:play()
  800. game:GetService("Debris"):AddItem(NSound, 50)
  801. end))
  802. return NSound
  803. end
  804. function CameraEnshaking(Length, Intensity)
  805. coroutine.resume(coroutine.create(function()
  806. local intensity = 1 * Intensity
  807. local rotM = 0.01 * Intensity
  808. for i = 0, Length, 0.1 do
  809. swait()
  810. intensity = intensity - 0.05 * Intensity / Length
  811. rotM = rotM - 5.0E-4 * Intensity / Length
  812. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  813. 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)
  814. end
  815. hum.CameraOffset = Vector3.new(0, 0, 0)
  816. end))
  817. end
  818. -------------------------------------------------------
  819. --End Important Functions--
  820. -------------------------------------------------------
  821.  
  822. ----------------------------------------------------------------------------------
  823. hum.WalkSpeed = 20
  824. hum.JumpPower = 60
  825. ----------------------------------------------------------------------------------
  826. local AddInstance = function(Object, ...)
  827. local Obj = Instance.new(Object)
  828. for i,v in next,(...) do
  829. Obj[i] = v
  830. end
  831. return Obj
  832. end
  833. ----------------------------------------------------
  834.  
  835.  
  836. local Reaper = AddInstance("Part",{
  837. Parent = hed,
  838. CFrame = hed.CFrame,
  839. formFactor = "Symmetric",
  840. Size = Vector3.new(1, 1, 1),
  841. CanCollide = false,
  842. TopSurface = "Smooth",
  843. BottomSurface = "Smooth",
  844. Locked = true,
  845. })
  846. local Weld = AddInstance("Weld",{
  847. Parent = Reaper,
  848. Part0 = hed,
  849. C0 = CFrame.new(0, 1.45, 0)*CFrame.Angles(0, 0, 0),
  850. Part1 = Reaper,
  851. })
  852. local Mesh = AddInstance("SpecialMesh",{
  853. Parent = Reaper,
  854. MeshId = "rbxassetid://0",
  855. TextureId = "rbxassetid://0",
  856. Scale = Vector3.new(0.85,0.85,0.85),
  857. VertexColor = Vector3.new(1, 1, 1),
  858. })
  859.  
  860. -------------------------------------------------------
  861. IT = Instance.new
  862. CF = CFrame.new
  863. VT = Vector3.new
  864. RAD = math.rad
  865. C3 = Color3.new
  866. UD2 = UDim2.new
  867. BRICKC = BrickColor.new
  868. ANGLES = CFrame.Angles
  869. EULER = CFrame.fromEulerAnglesXYZ
  870. COS = math.cos
  871. ACOS = math.acos
  872. SIN = math.sin
  873. ASIN = math.asin
  874. ABS = math.abs
  875. MRANDOM = math.random
  876. FLOOR = math.floor
  877.  
  878. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  879. local label = IT("TextLabel")
  880. label.BackgroundTransparency = 1
  881. label.Size = UD2(1, 0, 1, 0)
  882. label.Position = UD2(0, 0, 0, 0)
  883. label.TextColor3 = TEXTCOLOR
  884. label.TextStrokeTransparency = STROKETRANSPARENCY
  885. label.TextTransparency = TRANSPARENCY
  886. label.FontSize = TEXTFONTSIZE
  887. label.Font = TEXTFONT
  888. label.BorderSizePixel = BORDERSIZEPIXEL
  889. label.TextScaled = false
  890. label.Text = TEXT
  891. label.Name = NAME
  892. label.Parent = PARENT
  893. return label
  894. end
  895.  
  896. function chatfunc(text)
  897. local chat = coroutine.wrap(function()
  898. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  899. Character:FindFirstChild("TalkingBillBoard"):destroy()
  900. end
  901. local Bill = Instance.new("BillboardGui",Character)
  902. Bill.Size = UDim2.new(0,100,0,40)
  903. Bill.StudsOffset = Vector3.new(0,3,0)
  904. Bill.Adornee = Character.Head
  905. Bill.Name = "TalkingBillBoard"
  906. local Hehe = Instance.new("TextLabel",Bill)
  907. Hehe.BackgroundTransparency = 1
  908. Hehe.BorderSizePixel = 0
  909. Hehe.Text = ""
  910. Hehe.Font = "Bodoni"
  911. Hehe.TextSize = 40
  912. Hehe.TextStrokeTransparency = 0
  913. Hehe.Size = UDim2.new(1,0,0.5,0)
  914. coroutine.resume(coroutine.create(function()
  915. while Hehe ~= nil do
  916. swait()
  917. Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  918. Hehe.Rotation = math.random(-5,5)
  919. Hehe.TextColor3 = Color3.new(220, 188, 129)
  920. Hehe.TextStrokeColor3 = Color3.new(220, 188, 129)
  921. end
  922. end))
  923. for i = 1,string.len(text),1 do
  924. swait()
  925. Hehe.Text = string.sub(text,1,i)
  926. end
  927. swait(90)--Re[math.random(1, 93)]
  928. for i = 0, 1, .025 do
  929. swait()
  930. Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
  931. Hehe.TextStrokeTransparency = i
  932. Hehe.TextTransparency = i
  933. end
  934. Bill:Destroy()
  935. end)
  936. chat()
  937. end
  938.  
  939. function onChatted(msg)
  940. chatfunc(msg)
  941. end
  942.  
  943. Player.Chatted:connect(onChatted)
  944.  
  945. local Hair = AddInstance("Part",{
  946. Parent = hed,
  947. CFrame = hed.CFrame,
  948. formFactor = "Symmetric",
  949. Size = Vector3.new(1, 1, 1),
  950. CanCollide = false,
  951. TopSurface = "Smooth",
  952. BottomSurface = "Smooth",
  953. Locked = true,
  954. })
  955. local Weld = AddInstance("Weld",{
  956. Parent = Hair,
  957. Part0 = hed,
  958. C0 = CFrame.new(0, 0.3, 0.45)*CFrame.Angles(0, 480.5, 0),
  959. Part1 = Hair,
  960. })
  961. local Mesh = AddInstance("SpecialMesh",{
  962. Parent = Hair,
  963. MeshId = "rbxassetid://430736398",
  964. TextureId = "rbxassetid://869796655",
  965. Scale = Vector3.new(1,1,1),
  966. VertexColor = Vector3.new(1, 1, 1),
  967. })
  968. local har3 = Instance.new("Part", char.Head)
  969. har3.BrickColor = BrickColor.new("Black")
  970. har3.Name = "Hair"
  971. har3.formFactor = 0
  972. har3.Size = Vector3.new(0,-0.25,0)
  973. har3.BottomSurface = 0
  974. har3.TopSurface = 0
  975. har3.CanCollide = false
  976. Mesh3 = Instance.new("SpecialMesh",har3)
  977. Mesh3.MeshId = "rbxassetid://1018860047"
  978. Mesh3.Scale=Vector3.new(1.01, .99, 1.01)
  979. local bWeld = Instance.new("Weld", char.Head)
  980. bWeld.Part0 = char.Head
  981. bWeld.Part1 = har3
  982. bWeld.C1 = CFrame.new(0,-.1,.3)
  983.  
  984. swait()
  985. plr = game.Players.LocalPlayer
  986. char = plr.Character
  987. mouse = plr:GetMouse()
  988. whitecolor = Color3.new(220, 188, 129)
  989. epicmode = false
  990. normal = true
  991. for i,v in pairs(char:GetChildren()) do
  992. if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then
  993. v:Destroy()
  994. end
  995. end
  996. local shirt = Instance.new("Shirt",char)
  997. shirt.ShirtTemplate = "rbxassetid://0"
  998. local pants = Instance.new("Pants",char)
  999. pants.PantsTemplate = "rbxassetid://0"
  1000. local bdycolors = char["Body Colors"]
  1001. bdycolors.HeadColor3 = whitecolor
  1002. bdycolors.LeftArmColor3 = whitecolor
  1003. bdycolors.LeftLegColor3 = whitecolor
  1004. bdycolors.RightArmColor3 = whitecolor
  1005. bdycolors.RightLegColor3 = whitecolor
  1006. bdycolors.TorsoColor3 = whitecolor
  1007. for i,v in pairs(char:GetChildren()) do
  1008. if v.ClassName == "Hat" or v.ClassName == "Accessory" then
  1009. v:Destroy()
  1010. end
  1011. end
  1012.  
  1013. local BC = Character["Body Colors"]
  1014. BC.HeadColor = BrickColor.new("Flame yellowish orange")
  1015. BC.LeftArmColor = BrickColor.new("Flame yellowish orange")
  1016. BC.LeftLegColor = BrickColor.new("Flame yellowish orange")
  1017. BC.RightArmColor = BrickColor.new("Flame yellowish orange")
  1018. BC.RightLegColor = BrickColor.new("Flame yellowish orange")
  1019. BC.TorsoColor = BrickColor.new("Curry")
  1020. --music time--
  1021.  
  1022. print("Made by xdielivex.")
  1023.  
  1024. print("xdielivex's sound loader")
  1025.  
  1026. print("play (ID) [Changes song]")
  1027.  
  1028. print("pitch (#) [normal pitch is '10'][THIS IS FIXED AAAAAAAAAAAAAAAAAA, Sound.Pitch was Depreciated and never knew, hence why it never worked]")
  1029.  
  1030.  
  1031.  
  1032. local Player = owner
  1033.  
  1034. local Character = Player.Character
  1035.  
  1036. local H = Character["Head"]
  1037.  
  1038. local multiplier = 4
  1039.  
  1040. local ltdb = false
  1041.  
  1042. local Cloud = Instance.new('Part',Character)
  1043.  
  1044. Cloud.Size = Vector3.new(1,1,1)
  1045.  
  1046. Cloud.Anchored = true
  1047.  
  1048. Cloud.CanCollide = false
  1049.  
  1050. Cloud.Transparency = 0
  1051.  
  1052.  
  1053.  
  1054. local CloudMesh = Instance.new('SpecialMesh',Cloud)
  1055.  
  1056. CloudMesh.Scale = Vector3.new(5,1,5)
  1057.  
  1058. CloudMesh.MeshId = "http://www.roblox.com/asset/?id=0"
  1059.  
  1060. CloudMesh.Offset = Vector3.new(0,1,0)
  1061.  
  1062.  
  1063. local loudness = 0
  1064.  
  1065.  
  1066.  
  1067. local S = Instance.new('Sound',Cloud)
  1068.  
  1069. S.SoundId = "rbxassetid://0"
  1070.  
  1071. S.Looped = true
  1072.  
  1073. S.Volume = 8
  1074.  
  1075. S.PlaybackSpeed = 1
  1076.  
  1077. S.MaxDistance = 100
  1078.  
  1079. S:Play()
  1080.  
  1081.  
  1082. local Volume = 5
  1083.  
  1084.  
  1085.  
  1086. local Rain = Instance.new('ParticleEmitter',Cloud)
  1087.  
  1088. Rain.Color = ColorSequence.new(Color3.new(1,1,1),Color3.fromRGB(175,255,255))
  1089.  
  1090. Rain.Size = NumberSequence.new(.5)
  1091.  
  1092. Rain.Texture = "http://www.roblox.com/asset/?id=241876428"
  1093.  
  1094. Rain.Transparency = NumberSequence.new(0,.6)
  1095.  
  1096. Rain.Acceleration = Vector3.new(0,-150,0)
  1097.  
  1098. Rain.Lifetime = NumberRange.new(5,10)
  1099.  
  1100. Rain.Rate = 100
  1101.  
  1102.  
  1103.  
  1104. local Shade = Instance.new('PointLight',Cloud)
  1105.  
  1106. Shade.Range = 10
  1107.  
  1108. Shade.Color = Color3.fromRGB(50,50,50)
  1109.  
  1110. Shade.Enabled = true
  1111.  
  1112. Shade.Shadows = true
  1113.  
  1114.  
  1115.  
  1116. local rad = math.rad
  1117.  
  1118. local sin = math.sin
  1119.  
  1120. local tan = math.tan
  1121.  
  1122. local cos = math.cos
  1123.  
  1124. Player.Chatted:connect(function(m)
  1125.  
  1126. if m:match("play%s%d+") then
  1127.  
  1128. S:Stop()
  1129.  
  1130. S.SoundId = "rbxassetid://"..m:match("play%s(%d+)")
  1131.  
  1132. S:Play()
  1133.  
  1134. elseif m:match("volume%s%d+") then
  1135.  
  1136. S.Volume = m:match("volume%s(%d+)")
  1137.  
  1138. Volume = m:match("volume%s(%d+)")
  1139.  
  1140. elseif m:match("pitch%s%d+") then
  1141.  
  1142. S.PlaybackSpeed = m:match("pitch%s(%d+)")/10
  1143.  
  1144. elseif m:match("snow") then
  1145.  
  1146. Rain.Texture = "http://www.roblox.com/asset/?id=605668174"
  1147.  
  1148. Rain.Acceleration = Vector3.new(0,-10,0)
  1149.  
  1150. Rain.Lifetime = NumberRange.new(15,20)
  1151.  
  1152. Rain.Size = NumberSequence.new(.2)
  1153.  
  1154. elseif m:match("rain") then
  1155.  
  1156. Rain.Texture = "http://www.roblox.com/asset/?id=241876428"
  1157.  
  1158. Rain.Acceleration = Vector3.new(0,-150,0)
  1159.  
  1160. Rain.Lifetime = NumberRange.new(5,10)
  1161.  
  1162. Rain.Size = NumberSequence.new(.5)
  1163.  
  1164. elseif m:match("rate%s%d+") then
  1165.  
  1166. multiplier = m:match("rate%s(%d+)")
  1167.  
  1168. elseif m:match("rr") then
  1169.  
  1170. print(Rain.Rate)
  1171.  
  1172. elseif m:match("pbs") then
  1173.  
  1174. print(S.PlaybackSpeed)
  1175.  
  1176. elseif m:match("rot") then
  1177.  
  1178. print(Cloud.Rotation)
  1179.  
  1180. end
  1181. end)
  1182.  
  1183.  
  1184.  
  1185. function Weld(x,y)
  1186.  
  1187. local w = Instance.new("Weld")
  1188.  
  1189. w.Part0 = x
  1190.  
  1191. w.Part1 = y
  1192.  
  1193. w.Name = tostring(y.Name).."_Weld"
  1194.  
  1195. w.Parent = x
  1196.  
  1197. return w
  1198.  
  1199. end
  1200.  
  1201.  
  1202.  
  1203. function Clerp(start,destination,increment)
  1204.  
  1205. local function slerp(a,b,c)return (1-c)*a+(c*b)end
  1206.  
  1207. local c1 = {start.X,start.Y,start.Z,start:toEulerAnglesXYZ()}
  1208.  
  1209. local c2 = {destination.X,destination.Y,destination.Z,destination:toEulerAnglesXYZ()}
  1210.  
  1211. for i,v in pairs(c1)do c1[i] = slerp(v,c2[i],increment)end
  1212.  
  1213. return CFrame.new(c1[1],c1[2],c1[3])*CFrame.Angles(c1[4],c1[5],c1[6])
  1214.  
  1215. end
  1216.  
  1217.  
  1218.  
  1219. DrawLightning = function(Start,End,Times,Offset,Color,Thickness)
  1220.  
  1221. if Start.y>End.y then
  1222.  
  1223. local magz = (Start - End).magnitude
  1224.  
  1225. local curpos = Start
  1226.  
  1227. local trz = {-Offset,Offset}
  1228.  
  1229. for i=1,Times do
  1230.  
  1231. local li = Instance.new("Part",workspace)
  1232.  
  1233. li.TopSurface =10
  1234.  
  1235. li.BottomSurface = 10
  1236.  
  1237. li.Anchored = true
  1238.  
  1239. li.Transparency = 0
  1240.  
  1241. li.BrickColor = Color
  1242.  
  1243. li.formFactor = "Custom"
  1244.  
  1245. li.CanCollide = false
  1246.  
  1247. li.Size = Vector3.new(Thickness,Thickness,magz/Times)
  1248.  
  1249. local lt=Instance.new("SpotLight",li)
  1250.  
  1251. lt.Range=16
  1252.  
  1253. lt.Brightness=5
  1254.  
  1255. lt.Shadows=true
  1256.  
  1257. lt.Angle=45
  1258.  
  1259. lt.Face="Top"
  1260.  
  1261. lt.Color=li.BrickColor.Color
  1262.  
  1263. local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  1264.  
  1265. local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
  1266.  
  1267. if Times == i then
  1268.  
  1269. local magz2 = (curpos - End).magnitude
  1270.  
  1271. li.Size = Vector3.new(Thickness,Thickness,magz2)
  1272.  
  1273. li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
  1274.  
  1275. else
  1276.  
  1277. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  1278.  
  1279. end
  1280.  
  1281. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p Spawn(function() for i=1,5 do wait() li.Transparency = li.Transparency+.2 end li:Destroy() end)
  1282.  
  1283. end
  1284.  
  1285. for i,x in pairs(workspace:GetChildren()) do if x:IsA'Model' and x:findFirstChild('Head') and x~=Character and x.Name~="Zuu_Roku" then
  1286.  
  1287. for a,v in pairs(x:GetChildren()) do if v:IsA'Humanoid' then if (x.Head.CFrame.p-End).magnitude<10 then x:BreakJoints() end end end end end
  1288.  
  1289. end
  1290.  
  1291. end
  1292.  
  1293.  
  1294.  
  1295. Mouse.Button1Down:connect(function()
  1296.  
  1297. if ltdb==false then
  1298.  
  1299. ltdb=true
  1300.  
  1301. DrawLightning(Cloud.CFrame.p,Mouse.Hit.p,5,.5,BrickColor.new("New Yeller"),.2)
  1302.  
  1303. wait()
  1304.  
  1305. ltdb=false
  1306.  
  1307. end
  1308.  
  1309. end)
  1310.  
  1311. local Spinny = 0
  1312.  
  1313. local NoU = 0
  1314.  
  1315. while true do
  1316.  
  1317. Rain.Rate = (S.PlaybackLoudness + 1) * multiplier/5
  1318.  
  1319. game:GetService('RunService').RenderStepped:wait()
  1320.  
  1321. local HP = H.CFrame.p
  1322.  
  1323. local sizer = S.PlaybackLoudness/55 + 5
  1324.  
  1325. Cloud.Size = Vector3.new(sizer,1,sizer)
  1326.  
  1327. Shade.Range = sizer
  1328.  
  1329. CloudMesh.Scale = Vector3.new(sizer,5,sizer)
  1330.  
  1331. Cloud.CFrame = Clerp(Cloud.CFrame, CFrame.new(HP + Vector3.new(0,4,0))*CFrame.Angles(0,rad(90),0), .1)
  1332.  
  1333. Cloud.BrickColor = BrickColor.new(Color3.fromRGB(255 - S.PlaybackLoudness/2, 255-S.PlaybackLoudness/2, 255-S.PlaybackLoudness/2))
  1334. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement