Advertisement
TheClassicMeme

test1

May 14th, 2017
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.96 KB | None | 0 0
  1. player = game.Players.LocalPlayer
  2. chara = player.Character
  3. debby = game.Debris
  4. Mouse = player:GetMouse()
  5. chara.Humanoid.WalkSpeed = 16
  6. atkd = false
  7. targetted = nil
  8.  
  9. --Outfit--
  10. New = function(Object, Parent, Name, Data)
  11. local Object = Instance.new(Object)
  12. for Index, Value in pairs(Data or {}) do
  13. Object[Index] = Value
  14. end
  15. Object.Parent = Parent
  16. Object.Name = Name
  17. return Object
  18. end
  19.  
  20. Greatswordu = nil
  21. GBoxhit = nil
  22. Scythe = nil
  23. SBoxhit = nil
  24. RDaggeru = nil
  25. LDaggeru = nil
  26. D1Boxhit = nil
  27. D2Boxhit = nil
  28. --good--
  29. crosshair = Instance.new("BillboardGui",chara)
  30. crosshair.Size = UDim2.new(10,0,10,0)
  31. crosshair.Enabled = false
  32. imgl = Instance.new("ImageLabel",crosshair)
  33. imgl.Position = UDim2.new(0,0,0,0)
  34. imgl.Size = UDim2.new(1,0,1,0)
  35. imgl.Image = "rbxassetid://233522684"
  36. imgl.BackgroundTransparency = 1
  37. imgl.ImageColor3 = Color3.new(1,0,0)
  38.  
  39. --Spell Circle--
  40.  
  41. Void = nil
  42. VoidParts = {}
  43. Equipped = false
  44.  
  45. function RayCast(Position, Direction, MaxDistance, IgnoreList)
  46. return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList)
  47. end
  48.  
  49. Player = player
  50. Character = chara
  51.  
  52. Humanoid = Character:FindFirstChild("Humanoid")
  53. Torso = Character:FindFirstChild("Torso")
  54. if not Player or not Humanoid or Humanoid.Health == 0 or not Torso then
  55. return
  56. end
  57. Equipped = true
  58. Void = Instance.new("Model")
  59. Void.Name = "Void"
  60. Angle = 0
  61. for i = 1, 1 do
  62. local VoidPart = Instance.new("Part")
  63. VoidPart.Name = "VoidPart"
  64. VoidPart.Transparency = 1
  65. VoidPart.BrickColor = BrickColor.new("Really black")
  66. VoidPart.Material = Enum.Material.Plastic
  67. VoidPart.Shape = Enum.PartType.Block
  68. VoidPart.FormFactor = Enum.FormFactor.Custom
  69. VoidPart.TopSurface = Enum.SurfaceType.Smooth
  70. VoidPart.BottomSurface = Enum.SurfaceType.Smooth
  71. VoidPart.Anchored = true
  72. VoidPart.CanCollide = false
  73. VoidPart.Locked = true
  74. VoidPart.Size = Vector3.new(10, 0.2, 10)
  75. local BlockMesh = Instance.new("BlockMesh")
  76. BlockMesh.Scale = Vector3.new(1, (1 + (0.005 * i)), 1)
  77. BlockMesh.Parent = VoidPart
  78. VoidPart.Parent = Void
  79. local Star = Instance.new("Decal", VoidPart)
  80. Star.Texture = "http://www.roblox.com/asset/?id=1"
  81. Star.Face = "Top"
  82. local Light = Instance.new("PointLight", VoidPart)
  83. Light.Color = Color3.new(1,0,0)
  84. Light.Brightness = 1
  85. Light.Range = 1
  86. table.insert(VoidParts, VoidPart)
  87. end
  88. Spawn(function()
  89. while Equipped and Humanoid.Parent and Humanoid.Health > 0 and Torso.Parent do
  90. if Angle == 360 then
  91. Angle = 0
  92. end
  93. Angle = Angle + 0.05
  94. local Hit, EndPosition = RayCast(Torso.Position, Vector3.new(0, -1, 0), (Torso.Size.Y * 6.5), {Character})
  95. if Hit then
  96. if not Void.Parent then
  97. Void.Parent = Character
  98. end
  99. for i, v in pairs(VoidParts) do
  100. v.CFrame = CFrame.new(Torso.Position.X, EndPosition.Y, Torso.Position.Z) * CFrame.Angles(0, (Angle + i), 0)
  101. end
  102. else
  103. Void.Parent = nil
  104. end
  105. wait()
  106. end
  107. end)
  108.  
  109. --Sounds--
  110. function LoadSnd(id,loop,vol,pit)
  111. local snd = New("Sound",chara,"Sound",{SoundId = "rbxassetid://"..id,Looped = loop,Volume = vol,Pitch = pit})
  112. return snd
  113. end
  114. Music = LoadSnd(623948311,true,1,1)
  115. StartUpSnd = LoadSnd(98333808,false,1,1)
  116. SwingSnd = LoadSnd(62339698,false,1,.8)
  117. Swing2Snd = LoadSnd(12222208,false,1,1)
  118. HitSnd = LoadSnd(153092274,false,1,1)
  119. HitPunchSnd = LoadSnd(153092227,false,1,1)
  120. DodgeSnd = LoadSnd(232210079,false,1,1)
  121. ExpSnd = LoadSnd(142070127,false,1,1)
  122. FlySnd = LoadSnd(169445602,false,1,1)
  123. BExpSnd = LoadSnd(258057783,false,5,1)
  124. ClawDashSnd = LoadSnd(62339698,false,1,.5)
  125. deathmus = LoadSnd(395580552,true,5,1)
  126. deathex = LoadSnd(258057783,false,5,1)
  127. --Grunt1Snd = LoadSnd(159882486,false,1,1.1)
  128. --Grunt2Snd = LoadSnd(159882466,false,1,1.1)
  129. --Grunt3Snd = LoadSnd(159972643,false,1,1.1)
  130. --Grunt4Snd = LoadSnd(159882584,false,1,1.1)
  131. --YouIdiotSnd = LoadSnd(160212768,false,1,1.1)
  132. --DieSnd = LoadSnd(159882598,false,1,1.1)
  133. --Laugh1Snd = LoadSnd(160212549,false,1,1.1)
  134. --Laugh2Snd = LoadSnd(159882561,false,1,1.1)
  135. --Laugh3Snd = LoadSnd(160212812,false,1,1.1)
  136. ChargeSnd = LoadSnd(137463716,false,1,1)
  137. LasSnd = LoadSnd(162246701,false,1,1)
  138. LasLoopSnd = LoadSnd(162246683,true,1,1)
  139. ChatSnd = LoadSnd(565939471,false,1,1)
  140. RStompSnd = LoadSnd(2760979,false,1,1)
  141. SuperSnd = LoadSnd(178452241,false,1,1)
  142. GunFlameSnd = LoadSnd(32656754,false,1,1)
  143. OrbSnd = LoadSnd(233091161,false,1,1)
  144. ElectricSnd = LoadSnd(231917975,false,1,1)
  145. LightsOutSnd = LoadSnd(231917794,false,1,1)
  146. SkyKickSnd = LoadSnd(12222208,false,1,.5)
  147. SkyBeamSnd = LoadSnd(260433522,false,1,1)
  148. TargetSnd = LoadSnd(613361563,false,1,1)
  149. SV1Snd = LoadSnd(28144425,false,1,.265)
  150. SV2Snd = LoadSnd(2697431,false,1,.3)
  151. SVHitSnd = LoadSnd(62339698,false,1,.3)
  152. IceBreakSnd = LoadSnd(357568316,false,1,1)
  153. FreezeSnd = LoadSnd(203936153,false,1,1)
  154. IceBreak2Snd = LoadSnd(87015121,false,1,1)
  155.  
  156. --Play Sound in Part--
  157. function PlaySnd(snd,part)
  158. local sound = snd:Clone()
  159. sound.PlayOnRemove = true
  160. sound.Parent = part
  161. sound:Destroy()
  162. end
  163.  
  164. --Target Select--
  165. function TargetSelect(person)
  166. local dd=coroutine.wrap(function()
  167. if targetted ~= person then
  168. targetted = person
  169. for i = 0,30,10 do
  170. wait(.05)
  171. crosshair.Size = UDim2.new(40-i,0,40-i,0)
  172. end
  173. end
  174. end)
  175. dd()
  176. end
  177.  
  178. --Damage Function--
  179. function dealdmg(dude,damage,env,toim)
  180. hurt = coroutine.wrap(function(dude2,damage2,env2,toim2)
  181. if dude ~= chara and dude:FindFirstChild("IsHit") == nil then
  182. TargetSelect(dude)
  183. dude.Humanoid.MaxHealth = 100
  184. finaldmg = damage + math.random(-env,env)
  185. dude.Humanoid.Health = dude.Humanoid.Health - finaldmg
  186. local vall = Instance.new("ObjectValue",dude)
  187. vall.Name = "IsHit"
  188. debby:AddItem(vall,toim)
  189. local naeeym2 = Instance.new("BillboardGui",dude)
  190. naeeym2.Size = UDim2.new(0,100,0,40)
  191. naeeym2.StudsOffset = Vector3.new(0,3,0)
  192. naeeym2.Adornee = dude.Head
  193. naeeym2.Name = "TalkingBillBoard"
  194. local tecks2 = Instance.new("TextLabel",naeeym2)
  195. tecks2.BackgroundTransparency = 1
  196. tecks2.BorderSizePixel = 0
  197. tecks2.Text = "-"..finaldmg
  198. tecks2.Font = "SciFi"
  199. tecks2.FontSize = "Size24"
  200. tecks2.TextStrokeTransparency = 0
  201. tecks2.TextColor3 = Color3.new(1,0.6,0)
  202. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  203. tecks2.Size = UDim2.new(1,0,0.5,0)
  204. local healb = Instance.new("Part",chara)
  205. healb.Shape = 0
  206. healb.Name = "HealBall"
  207. healb.BrickColor = BrickColor.new("Institutional white")
  208. healb.Material = "Neon"
  209. healb.Size = Vector3.new(1,1,1)
  210. healb.CanCollide = false
  211. healb.CFrame = dude.Head.CFrame
  212. local p1mit = Instance.new("ParticleEmitter",healb)
  213. p1mit.Texture = "rbxasset://textures/particles/fire_main.dds"
  214. p1mit.LightEmission = 1
  215. p1mit.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,0,0)),ColorSequenceKeypoint.new(1,Color3.new(1,0,0))})
  216. p1mit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
  217. p1mit.Lifetime = NumberRange.new(1)
  218. p1mit.Rate = 10000
  219. p1mit.Rotation = NumberRange.new(0,359)
  220. p1mit.RotSpeed = NumberRange.new(100)
  221. p1mit.Speed = NumberRange.new(0)
  222. local vv = Instance.new("ObjectValue",healb)
  223. vv.Name = "vv"
  224. healb.Touched:connect(function(hit)
  225. if hit.Parent == chara and hit.Name ~= "HealBall" and healb.Anchored == false and healb:FindFirstChild("vv") == nil then
  226. healb.Anchored = true
  227. local finalhth = finaldmg/2
  228. chara.Humanoid.Health = chara.Humanoid.Health + finalhth
  229. local naeeym2 = Instance.new("BillboardGui",dude)
  230. naeeym2.Size = UDim2.new(0,100,0,40)
  231. naeeym2.StudsOffset = Vector3.new(0,3,0)
  232. naeeym2.Adornee = chara.Head
  233. naeeym2.Name = "TalkingBillBoard"
  234. local tecks2 = Instance.new("TextLabel",naeeym2)
  235. tecks2.BackgroundTransparency = 1
  236. tecks2.BorderSizePixel = 0
  237. tecks2.Text = "+"..finalhth
  238. tecks2.Font = "SciFi"
  239. tecks2.FontSize = "Size24"
  240. tecks2.TextStrokeTransparency = 0
  241. tecks2.TextColor3 = Color3.new(0,1,0)
  242. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  243. tecks2.Size = UDim2.new(1,0,0.5,0)
  244. for i = 1, 5 do
  245. wait(.1)
  246. tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
  247. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
  248. tecks2.TextTransparency = tecks2.TextTransparency + .2
  249. healb.Transparency = healb.Transparency + .2
  250. end
  251. naeeym2:Destroy()
  252. healb:Destroy()
  253. end
  254. end)
  255. local bp = Instance.new("BodyPosition",healb)
  256. bp.D = 1000
  257. bp.MaxForce = Vector3.new(100,100,100)
  258. bp.Position = dude.Head.Position + Vector3.new(0,math.random(-5,10),0) + chara.HumanoidRootPart.CFrame.lookVector*20 + chara.HumanoidRootPart.CFrame.rightVector*math.random(-20,20)
  259. local ee = coroutine.wrap(function()
  260. wait(.5)
  261. vv:Destroy()
  262. while healb do
  263. wait()
  264. bp.Position = chara.Torso.Position
  265. end
  266. end)
  267. ee()
  268. for i = 1, 5 do
  269. wait(.1)
  270. tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
  271. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
  272. tecks2.TextTransparency = tecks2.TextTransparency + .2
  273. end
  274. naeeym2:Destroy()
  275. end
  276. end)
  277. hurt(dude,damage,env,toim)
  278. end
  279. --Chat Function--
  280. function chatfunc(text)
  281. local chat = coroutine.wrap(function()
  282. if chara:FindFirstChild("TalkingBillBoard")~= nil then
  283. chara:FindFirstChild("TalkingBillBoard"):destroy()
  284. end
  285. local naeeym2 = Instance.new("BillboardGui",chara)
  286. naeeym2.Size = UDim2.new(0,100,0,40)
  287. naeeym2.StudsOffset = Vector3.new(0,3,0)
  288. naeeym2.Adornee = chara.Head
  289. naeeym2.Name = "TalkingBillBoard"
  290. local tecks2 = Instance.new("TextLabel",naeeym2)
  291. tecks2.BackgroundTransparency = 1
  292. tecks2.BorderSizePixel = 0
  293. tecks2.Text = ""
  294. tecks2.Font = "Fantasy"
  295. tecks2.FontSize = "Size24"
  296. tecks2.TextStrokeTransparency = 0
  297. tecks2.TextColor3 = Color3.new(1,1,1)
  298. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  299. tecks2.Size = UDim2.new(1,0,0.5,0)
  300. for i = 1,string.len(text),1 do
  301. PlaySnd(ChatSnd,chara)
  302. tecks2.Text = string.sub(text,1,i)
  303. wait(0.01)
  304. end
  305. wait(1)
  306. for i = 1, 5 do
  307. wait(.01)
  308. tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
  309. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
  310. tecks2.TextTransparency = tecks2.TextTransparency + .2
  311. end
  312. naeeym2:Destroy()
  313. end)
  314. chat()
  315. end
  316.  
  317. function onChatted(msg)
  318. chatfunc(msg)
  319. end
  320. player.Chatted:connect(onChatted)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement