Advertisement
Amokah

Warning CHARA

May 5th, 2018
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.04 KB | None | 0 0
  1. game.Lighting.TimeOfDay = "01:00:00:"
  2.  
  3. -- Created by Nebula_Zorua --
  4. -- Your DeTERMINATION --
  5. -- Y o u a c t l i k e y o u h a v e a c h o i c e. =) --
  6. -- Discord: Nebula the Zorua#6969
  7. -- Youtube: https://www.youtube.com/channel/UCo9oU9dCw8jnuVLuy4_SATA
  8.  
  9.  
  10. --// Initializing \\--
  11. local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
  12. local Plrs = S.Players
  13. local Plr = Plrs.LocalPlayer
  14. local Char = Plr.Character
  15. local Hum = Char:FindFirstChildOfClass'Humanoid'
  16. local RArm = Char["Right Arm"]
  17. local LArm = Char["Left Arm"]
  18. local RLeg = Char["Right Leg"]
  19. local LLeg = Char["Left Leg"]
  20. local Root = Char:FindFirstChild'HumanoidRootPart'
  21. local Torso = Char.Torso
  22. local Head = Char.Head
  23. local NeutralAnims = true
  24. local Attack = false
  25. local BloodPuddles = {}
  26. local Effects = {}
  27. local Debounces = {Debounces={}}
  28. local Mouse = Plr:GetMouse()
  29. local Hit = {}
  30. local Sine = 0
  31. local Change = 1
  32. local Souls = 0
  33. --// Debounce System \\--
  34.  
  35.  
  36. function Debounces:New(name,cooldown)
  37. local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
  38. setmetatable(aaaaa,{__index = Debounces})
  39. Debounces.Debounces[name] = aaaaa
  40. return aaaaa
  41. end
  42.  
  43. function Debounces:Use(overrideUsable)
  44. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  45. if(self.Usable or overrideUsable)then
  46. self.Usable = false
  47. self.CoolingDown = true
  48. local LastUse = time()
  49. self.LastUse = LastUse
  50. delay(self.Cooldown or 2,function()
  51. if(self.LastUse == LastUse)then
  52. self.CoolingDown = false
  53. self.Usable = true
  54. end
  55. end)
  56. end
  57. end
  58.  
  59. function Debounces:Get(name)
  60. assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
  61. for i,v in next, Debounces.Debounces do
  62. if(i == name)then
  63. return v;
  64. end
  65. end
  66. end
  67.  
  68. function Debounces:GetProgressPercentage()
  69. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  70. if(self.CoolingDown and not self.Usable)then
  71. return math.max(
  72. math.floor(
  73. (
  74. (time()-self.LastUse)/self.Cooldown or 2
  75. )*100
  76. )
  77. )
  78. else
  79. return 100
  80. end
  81. end
  82.  
  83. --// Shortcut Variables \\--
  84. local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
  85. local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
  86. local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
  87. local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
  88. local R3 = {N=Region3.new}
  89. local De = S.Debris
  90. local WS = workspace
  91. local Lght = S.Lighting
  92. local RepS = S.ReplicatedStorage
  93. local IN = Instance.new
  94. local CSK = ColorSequenceKeypoint.new
  95. local CS = ColorSequence.new
  96. --// Instance Creation Functions \\--
  97.  
  98. function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
  99. local Sound = IN("Sound")
  100. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  101. Sound.Pitch = pitch or 1
  102. Sound.Volume = volume or 1
  103. Sound.Looped = looped or false
  104. if(autoPlay)then
  105. coroutine.wrap(function()
  106. repeat wait() until Sound.IsLoaded
  107. Sound.Playing = autoPlay or false
  108. end)()
  109. end
  110. if(not looped and effect)then
  111. Sound.Stopped:connect(function()
  112. Sound.Volume = 0
  113. Sound:destroy()
  114. end)
  115. elseif(effect)then
  116. warn("Sound can't be looped and a sound effect!")
  117. end
  118. Sound.Parent =parent or Torso
  119. return Sound
  120. end
  121. function Part(parent,color,material,size,cframe,anchored,cancollide)
  122. local part = IN("Part")
  123. part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0)
  124. part.Material = (material or Enum.Material.SmoothPlastic)
  125. part.TopSurface,part.BottomSurface=10,10
  126. part.Size = (size or V3.N(1,1,1))
  127. part.CFrame = (cframe or CF.N(0,0,0))
  128. part.Anchored = (anchored or false)
  129. part.CanCollide = (cancollide or false)
  130. part.Parent = (parent or Char)
  131. return part
  132. end
  133. function Mesh(parent,meshtype,meshid,textid,scale,offset)
  134. local part = IN("SpecialMesh")
  135. part.MeshId = meshid or ""
  136. part.TextureId = textid or ""
  137. part.Scale = scale or V3.N(1,1,1)
  138. part.Offset = offset or V3.N(0,0,0)
  139. part.MeshType = meshtype or Enum.MeshType.Sphere
  140. part.Parent = parent
  141. return part
  142. end
  143.  
  144. NewInstance = function(instance,parent,properties)
  145. local inst = Instance.new(instance,parent)
  146. if(properties)then
  147. for i,v in next, properties do
  148. pcall(function() inst[i] = v end)
  149. end
  150. end
  151. return inst;
  152. end
  153.  
  154.  
  155.  
  156. --// Extended ROBLOX tables \\--
  157. local Instance = setmetatable({ClearChildrenOfClass = function(where,class,recursive) local children = (recursive and where:GetDescendants() or where:GetChildren()) for _,v in next, children do if(v:IsA(class))then v:destroy();end;end;end},{__index = Instance})
  158. --// Customization \\--
  159.  
  160. local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this
  161. local Remove_Hats = false
  162. local Remove_Clothing = true
  163. local PlayerSize = 1
  164. local DamageColor = BrickColor.new'Really red'
  165. local MusicID = 384598104
  166. local WalkSpeed = 8
  167. local MaxSouls = 100
  168. local MaxHealth = 500
  169.  
  170.  
  171. if(_G.RefusedAnimation == nil) then _G.RefusedAnimation = false end
  172.  
  173. --// Weapon and GUI creation, and Character Customization \\--
  174.  
  175. if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
  176. if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
  177. local Effects = IN("Folder",Char)
  178. Effects.Name = "Effects"
  179.  
  180. Hum.MaxHealth = MaxHealth
  181. Hum.Health = MaxHealth
  182.  
  183. local Knife = NewInstance("Part",Char,{Name='Knife',Size=V3.N(.4,3,.7),Anchored=false,CanCollide=false,Locked=true,Archivable=false,Reflectance=.01,Color=C3.N(0,0,0)})
  184. local KnifeMesh = Mesh(Knife,Enum.MeshType.FileMesh,"rbxassetid://121944778","rbxassetid://362719969",V3.N(1,1,1),V3.N())
  185. local AuraEmitter = NewInstance("ParticleEmitter",Knife,{EmissionDirection='Back',Color=CS{CSK(0,C3.N(1,0,0)),CSK(0.5,C3.N(1,1,0)),CSK(1,C3.RGB(255,191,0))},LightEmission=.5,LightInfluence=0,Size=NumberSequence.new(0.3),Texture="rbxassetid://141116476",Transparency=NumberSequence.new(0,1),LockedToPart=true,Lifetime=NumberRange.new(1),Rate=150,Speed=NumberRange.new(0)})
  186. local FireEmitter = NewInstance("ParticleEmitter",Knife,{EmissionDirection='Back',Color=CS(C3.N(1,0,0),C3.N(1,0,0)),LightEmission=.5,LightInfluence=0,Size=NumberSequence.new{NumberSequenceKeypoint.new(0,.5,0),NumberSequenceKeypoint.new(0.755,0,0),NumberSequenceKeypoint.new(1,0,0)},Texture="rbxassetid://141116476",Transparency=NumberSequence.new(0.35,1),Lifetime=NumberRange.new(1,2),Rate=150,Speed=NumberRange.new(3)})
  187.  
  188. local KTrail = NewInstance("Trail",Knife,{
  189. Attachment0=NewInstance("Attachment",Knife,{Position=V3.N(0,-.4,0)}),
  190. Attachment1=NewInstance("Attachment",Knife,{Position=V3.N(0,1.2,0)}),
  191. Color=CS(C3.N(1,0,0)),
  192. Enabled=false,
  193. Transparency=NumberSequence.new(0,1),
  194. Lifetime=1.25,
  195. })
  196. local Hair = Part(Char,C3.N(0,0,0),Enum.Material.SmoothPlastic,V3.N(1,1,1),CF.N(),false,false)
  197. local HairMesh = Mesh(Hair,Enum.MeshType.FileMesh,"rbxassetid://250264520","rbxassetid://75975464",V3.N(1.05,1.05,1.05),V3.N())
  198.  
  199. NewInstance("PointLight",Knife,{Color=C3.N(1,0,0),Range=10,Brightness=3})
  200.  
  201.  
  202. Hum.DisplayDistanceType = 'None'
  203.  
  204. local naeeym2 = IN("BillboardGui",Char)
  205. naeeym2.AlwaysOnTop = true
  206. naeeym2.Size = UDim2.new(5,35,2,15)
  207. naeeym2.StudsOffset = V3.N(0,2.5,0)
  208. naeeym2.Adornee = Char.Head
  209. naeeym2.Name = "Name"
  210. naeeym2.PlayerToHideFrom = Plr
  211. local tecks2 = IN("TextLabel",naeeym2)
  212. tecks2.BackgroundTransparency = 1
  213. tecks2.TextScaled = true
  214. tecks2.BorderSizePixel = 0
  215. tecks2.Text = "Chara"
  216. tecks2.Font = Enum.Font.Bodoni
  217. tecks2.TextSize = 30
  218. tecks2.TextStrokeTransparency = 0
  219. tecks2.TextColor3 = C3.N(0,0,0)
  220. tecks2.TextStrokeColor3 = C3.N(.7,0,0)
  221. tecks2.Size = UDim2.new(1,0,0.5,0)
  222. tecks2.Parent = naeeym2
  223.  
  224.  
  225. IN("Shirt",Char)
  226. IN("Pants",Char)
  227.  
  228. Hum.WalkSpeed = WalkSpeed
  229. if(PlayerSize ~= 1)then
  230. for _,v in next, Char:GetDescendats() do
  231. if(v:IsA'BasePart')then
  232. v.Size = v.Size * PlayerSize
  233. end
  234. end
  235. end
  236.  
  237.  
  238. for i = 1, 35 do
  239. local FACE = Part(Char,C3.N(0,0,0),Enum.Material.Neon,V3.N(1.01,.5,1.01),CF.N(),false,false)
  240. FACE.Transparency = 0+(i-1)/35.2
  241. FACE.Name = 'ShadowFace'
  242. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  243. NewInstance("Weld",Head,{Part0=Head,Part1=FACE,C0=CF.N(0,.35-(i-1)/75,0)})
  244. --CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
  245. end
  246.  
  247. local LEye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false)
  248. local LEyeM = Mesh(LEye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N())
  249. local LEyeW = NewInstance("Weld",LEye,{Part0=Head,Part1=LEye,C0=CF.N(-.2,.2,-.49)})
  250.  
  251. local REye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false)
  252. local REyeM = Mesh(REye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N())
  253. local REyeW = NewInstance("Weld",REye,{Part0=Head,Part1=REye,C0=CF.N(.2,.2,-.49)})
  254.  
  255.  
  256. pcall(function()
  257. Char.LeftWing:destroy()
  258. Char.ReaperShadowHead:destroy()
  259. end)
  260.  
  261.  
  262. local Music = Sound(Torso,MusicID,1,3,true,false,true)
  263. Music.Name = 'Music'
  264.  
  265. --// Stop animations \\--
  266. for _,v in next, Hum:GetPlayingAnimationTracks() do
  267. v:Stop();
  268. end
  269.  
  270. pcall(game.Destroy,Char:FindFirstChild'Animate')
  271. pcall(game.Destroy,Hum:FindFirstChild'Animator')
  272.  
  273. --// Joints \\--
  274.  
  275. local LS = NewInstance('Motor',Char,{Part0=Torso,Part1=LArm,C0 = CF.N(-1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)})
  276. local RS = NewInstance('Motor',Char,{Part0=Torso,Part1=RArm,C0 = CF.N(1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)})
  277. local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)})
  278. local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  279. local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * P…
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement