Advertisement
Lukas17

Untitled

Mar 16th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.11 KB | None | 0 0
  1. --Player Stuff--
  2. player = game:GetService("Players").LocalPlayer
  3. chara = player.Character
  4.  
  5.  
  6.  
  7. ch = chara:GetChildren()
  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. function ScatterEff(part)
  21. local eff1 = Instance.new("ParticleEmitter",part)
  22. eff1.Size = NumberSequence.new(.1)
  23. eff1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.9,0),NumberSequenceKeypoint.new(1,1)})
  24. eff1.LightEmission = 1
  25. eff1.Lifetime = NumberRange.new(1)
  26. eff1.Speed = NumberRange.new(1)
  27. eff1.Rate = 100
  28. eff1.VelocitySpread = 10000
  29. eff1.Texture = "rbxassetid://347504241"
  30. eff1.Color = ColorSequence.new(Color3.new(0,1,0))
  31. local eff2 = Instance.new("ParticleEmitter",part)
  32. eff2.Size = NumberSequence.new(.1)
  33. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.9,0),NumberSequenceKeypoint.new(1,1)})
  34. eff2.LightEmission = 1
  35. eff2.Lifetime = NumberRange.new(1)
  36. eff2.Speed = NumberRange.new(1)
  37. eff2.Rate = 100
  38. eff2.VelocitySpread = 10000
  39. eff2.Texture = "rbxassetid://347504259"
  40. eff2.Color = ColorSequence.new(Color3.new(0,1,0))
  41. end
  42.  
  43. function BurningEff(part)
  44. local eff1 = Instance.new("ParticleEmitter",part)
  45. eff1.Size = NumberSequence.new(.1)
  46. eff1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.2,0),NumberSequenceKeypoint.new(1,1)})
  47. eff1.LightEmission = 1
  48. eff1.Lifetime = NumberRange.new(1)
  49. eff1.Speed = NumberRange.new(0)
  50. eff1.Rate = 100
  51. eff1.Texture = "rbxassetid://347504241"
  52. eff1.Acceleration = Vector3.new(0,10,0)
  53. eff1.Color = ColorSequence.new(Color3.new(0,1,0))
  54. local eff2 = Instance.new("ParticleEmitter",part)
  55. eff2.Size = NumberSequence.new(.1)
  56. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.2,0),NumberSequenceKeypoint.new(1,1)})
  57. eff2.LightEmission = 1
  58. eff2.Lifetime = NumberRange.new(1)
  59. eff2.Speed = NumberRange.new(0)
  60. eff2.Rate = 100
  61. eff2.Texture = "rbxassetid://347504259"
  62. eff2.Acceleration = Vector3.new(0,10,0)
  63. eff2.Color = ColorSequence.new(Color3.new(0,1,0))
  64. local eff3 = Instance.new("ParticleEmitter",part)
  65. eff3.Size = NumberSequence.new(1)
  66. eff3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
  67. eff3.LightEmission = 1
  68. eff3.Lifetime = NumberRange.new(1)
  69. eff3.Speed = NumberRange.new(0)
  70. eff3.Rate = 100
  71. eff3.Texture = "rbxasset://textures/particles/fire_main.dds"
  72. eff3.Acceleration = Vector3.new(0,10,0)
  73. eff3.Color = ColorSequence.new(Color3.new(0,1,0))
  74. end
  75.  
  76. for _, prt in pairs(ch) do
  77. if prt:IsA("BasePart") then
  78. ScatterEff(prt)
  79. end
  80. end
  81.  
  82. local Hitbox = chara.RightHand
  83.  
  84. --Sounds--
  85. slashsnd = New("Sound",chara.HumanoidRootPart,"Slash",{SoundId = "rbxassetid://28144425",PlaybackSpeed = .7,Volume = 5})
  86. hitsnd = New("Sound",chara.HumanoidRootPart,"Hit",{SoundId = "rbxassetid://429400881",PlaybackSpeed = .7,Volume = 5})
  87. telesnd = New("Sound",chara.HumanoidRootPart,"Tele",{SoundId = "rbxassetid://2767090",PlaybackSpeed = .7,Volume = 5})
  88. burnsnd = New("Sound",chara.HumanoidRootPart,"Burn",{SoundId = "rbxassetid://32791565",PlaybackSpeed = .7,Volume = 5})
  89. music1 = New("Sound",chara.HumanoidRootPart,"Music1",{SoundId = "rbxassetid://151038517",PlaybackSpeed = .5,Volume = 10,Looped = true})
  90. music2 = New("Sound",chara.HumanoidRootPart,"Music2",{SoundId = "rbxassetid://11984351",PlaybackSpeed = .2,Volume = 5,Looped = true})
  91. deathmus = New("Sound",chara.HumanoidRootPart,"DeathMus",{SoundId = "rbxassetid://19094700",PlaybackSpeed = .5,Volume = 5,Looped = true})
  92. deathex = New("Sound",chara.HumanoidRootPart,"DeathEx",{SoundId = "rbxassetid://11984351",PlaybackSpeed = 1,Volume = 5})
  93. music1:Play()
  94. music2:Play()
  95. chara:WaitForChild("Humanoid")
  96. --Animations--
  97. swinganim = chara.Humanoid:LoadAnimation(New("Animation",chara,"Swing",{AnimationId = "rbxassetid://907119286"}))
  98.  
  99. --Name Tag--
  100. local naeeym = Instance.new("BillboardGui",chara)
  101. naeeym.Size = UDim2.new(0,100,0,40)
  102. naeeym.StudsOffset = Vector3.new(0,2,0)
  103. naeeym.Adornee = chara.Head
  104. local tecks = Instance.new("TextLabel",naeeym)
  105. tecks.BackgroundTransparency = 1
  106. tecks.BorderSizePixel = 0
  107. tecks.Text = "John Doe"
  108. tecks.Font = "Fantasy"
  109. tecks.FontSize = "Size24"
  110. tecks.TextStrokeTransparency = 0
  111. tecks.TextStrokeColor3 = Color3.new(0,0,0)
  112. tecks.TextColor3 = Color3.new(0,0,0)
  113. tecks.Size = UDim2.new(1,0,0.5,0)
  114.  
  115. --Skybox--
  116. skybox = Instance.new("Part",chara)
  117. skybox.Size = Vector3.new(0,0,0)
  118. skybox.Anchored = true
  119. skybox.CanCollide = true
  120. skyboxmesh = Instance.new("SpecialMesh",skybox)
  121. skyboxmesh.MeshId = "http://www.roblox.com/asset/?id=1527559"
  122. skyboxmesh.TextureId = "http://www.roblox.com/asset/?id=1529455"
  123. skyboxmesh.VertexColor = Vector3.new(1,0,0)
  124. skyboxmesh.Scale = Vector3.new(-3000,-1000,-3000)
  125.  
  126. --Soul Steal--
  127. function SoulSteal(pos)
  128. local soulst = coroutine.wrap(function()
  129. local soul = Instance.new("Part",chara)
  130. soul.Size = Vector3.new(0,0,0)
  131. soul.CanCollide = false
  132. soul.Anchored = false
  133. soul.Position = pos
  134. soul.CFrame = CFrame.new(pos.X,pos.Y,pos.Z)
  135. soul.Transparency = 1
  136. local ptc = Instance.new("ParticleEmitter",soul)
  137. ptc.Texture = "http://www.roblox.com/asset/?id=413366101"
  138. ptc.Size = NumberSequence.new(.5)
  139. ptc.LockedToPart = true
  140. ptc.Speed = NumberRange.new(0)
  141. ptc.Lifetime = NumberRange.new(9999)
  142. local bodpos = Instance.new("BodyPosition",soul)
  143. bodpos.Position = pos
  144. wait(2)
  145. soul.Touched:connect(function(hit)
  146. if hit.Parent == chara then
  147. soul:Destroy()
  148. end
  149. end)
  150. while soul do
  151. wait(.1)
  152. bodpos.Position = chara.HumanoidRootPart.Position
  153. end
  154. end)
  155. soulst()
  156. end
  157.  
  158. --Death of a Mortal--
  159. function KillMortal(hitdude)
  160. local torsy = nil
  161. if hitdude:FindFirstChild("Torso")~=nil then
  162. torsy = hitdude.Torso
  163. elseif hitdude:FindFirstChild("UpperTorso")~=nil then
  164. torsy = hitdude.UpperTorso
  165. end
  166. local val = Instance.new("ObjectValue",hitdude)
  167. val.Name = "HasBeenHit"
  168. hitdude:BreakJoints()
  169. hitdude.Humanoid:Destroy()
  170. SoulSteal(torsy.Position)
  171. local chi = hitdude:GetChildren()
  172. for i = 1, #chi do
  173. if chi[i].ClassName == "Part" or chi[i].ClassName == "MeshPart" then
  174. local bodpos = Instance.new("BodyPosition",chi[i])
  175. bodpos.Position = chi[i].Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  176. ScatterEff(chi[i])
  177. chi[i].BrickColor = BrickColor.new("Really black")
  178. end
  179. end
  180. for i = 1, 4 do
  181. for i = 1, #chi do
  182. if chi[i].ClassName == "Part" or chi[i].ClassName == "MeshPart" then
  183. chi[i].Transparency = chi[i].Transparency + .25
  184. wait(.01)
  185. end
  186. end
  187. end
  188. for i = 1, #chi do
  189. if chi[i].ClassName == "Part" or chi[i].ClassName == "MeshPart" then
  190. chi[i]:Destroy()
  191. end
  192. end
  193. end
  194.  
  195. --Arm Touch--
  196. bladeactive = false
  197. Hitbox.Touched:connect(function(hit)
  198. if bladeactive == true then
  199. if hit.Parent:FindFirstChild("Humanoid")~= nil and hit.Parent:FindFirstChild("HasBeenHit")== nil and hit.Parent ~= chara then
  200. hitsnd:Play()
  201. KillMortal(hit.Parent)
  202. end
  203. end
  204. end)
  205.  
  206. --Teleport--
  207. function Teleport(pos)
  208. telesnd:Play()
  209. local ch = chara:GetChildren()
  210. for i = 1, #ch do
  211. if ch[i].ClassName == "Part" and ch[i].Name ~= "HumanoidRootPart" then
  212. local trace = Instance.new("Part",game.Workspace)
  213. trace.Size = ch[i].Size
  214. trace.Material = "Neon"
  215. trace.BrickColor = BrickColor.new("Really black")
  216. trace.Transparency = .3
  217. trace.CanCollide = false
  218. trace.Anchored = true
  219. trace.CFrame = ch[i].CFrame
  220. if ch[i].Name == "Head" then
  221. mehs = Instance.new("CylinderMesh",trace)
  222. mehs.Scale = Vector3.new(1.25,1.25,1.25)
  223. end
  224. tracedisappear = coroutine.wrap(function()
  225. wait(1)
  226. for i = 1, 7 do
  227. wait(.1)
  228. trace.Transparency = trace.Transparency + .1
  229. end
  230. trace:Destroy()
  231. end)
  232. tracedisappear()
  233. end
  234. end
  235. chara.HumanoidRootPart.CFrame = CFrame.new(pos.X,pos.Y,pos.Z)
  236. end
  237.  
  238. --Grab--
  239. function Grab(mouse)
  240. local hit = mouse.Target
  241. if hit ~= nil then
  242. if hit.Parent:FindFirstChild("Humanoid")~=nil then
  243. local torsy = nil
  244. if hit.Parent:FindFirstChild("Torso")~=nil then
  245. torsy = hit.Parent.Torso
  246. elseif hit.Parent:FindFirstChild("UpperTorso")~=nil then
  247. torsy = hit.Parent.UpperTorso
  248. end
  249. local bodpos = Instance.new("BodyPosition",torsy)
  250. bodpos.Position = torsy.Position
  251. wait(1)
  252. burnsnd:Play()
  253. hit.Parent.Humanoid.MaxHealth = 100
  254. bodpos.Position = bodpos.Position + Vector3.new(0,4,0)
  255. for i = 1, 10 do
  256. wait(.1)
  257. BurningEff(torsy)
  258. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 10
  259. end
  260. KillMortal(hit.Parent)
  261. end
  262. else end
  263. end
  264.  
  265. --Button1Down--
  266. dell = false
  267. function onButton1Down()
  268. if dell == false then
  269. dell = true
  270. swinganim:Play()
  271. bladeactive = true
  272. slashsnd:Play()
  273. wait(.7)
  274. bladeactive = false
  275. dell = false
  276. swinganim:Stop()
  277. end
  278. end
  279.  
  280. --KeyDowns--
  281. function onKeyDown(key)
  282. if key == "z" then
  283. Teleport(Mouse.Hit.p + Vector3.new(0,2,0))
  284. elseif key == "x" then
  285. Grab(Mouse)
  286. end
  287. end
  288.  
  289. --Mouse Functions--
  290. Mouse = player:GetMouse()
  291. if Mouse then
  292. Mouse.Button1Down:connect(onButton1Down)
  293. Mouse.KeyDown:connect(onKeyDown)
  294. end
  295.  
  296. --Death--
  297. chara.Humanoid.Died:connect(function()
  298. local pat = Instance.new("Part",game.Workspace)
  299. pat.Transparency = 1
  300. pat.Anchored = true
  301. pat.CFrame = chara.HumanoidRootPart.CFrame
  302. naeeym.Parent = pat
  303. naeeym.Adornee = pat
  304. skybox.Parent = game.Workspace
  305. tecks.Text = "BAD CHOICE"
  306. tecks.FontSize = "Size48"
  307. tecks.TextColor3 = Color3.new(1,0,0)
  308. music1:Stop()
  309. music2:Stop()
  310. deathmus.Parent = game.Workspace
  311. deathex.Parent = game.Workspace
  312. deathmus:Play()
  313. deathex:Play()
  314. game.Lighting.OutdoorAmbient = Color3.new(0,0,0)
  315. game.Lighting.TimeOfDay = "00:00:00"
  316. game.Lighting.FogColor = Color3.new(0,0,0)
  317. game.Lighting.FogEnd = 1000
  318. local ex = Instance.new("Explosion",game.Workspace)
  319. ex.Position = chara.HumanoidRootPart.Position
  320. ex.Visible = false
  321. ex.BlastRadius = 999999999999999999999999
  322. ex.BlastPressure = 9999999999999999999999999
  323. end)
  324.  
  325. --Loop Function--
  326. while true do
  327. wait(.01)
  328. chance = math.random(0,100)
  329. if chance < 10 then
  330. sel = math.random(1,3)
  331. if sel == 1 then
  332. tecks.Text = "10100101011110"
  333. elseif sel == 2 then
  334. tecks.Text = "1010101111"
  335. elseif sel == 3 then
  336. tecks.Text = "10101010001100101"
  337. end
  338. else tecks.Text = "Grim"
  339. end
  340. if chara.Humanoid.Health > 0 then
  341. chara.Humanoid.MaxHealth = math.huge
  342. chara.Humanoid.Health = math.huge
  343. game.Lighting.OutdoorAmbient = Color3.new(0,1,0)
  344. game.Lighting.Ambient = Color3.new(0,1,0)
  345. ch = chara:GetChildren()
  346. for i = 1, #ch do
  347. if ch[i].ClassName == "Accessory" or ch[i].ClassName == "Hat" then
  348. ch[i]:Destroy()
  349. end
  350. end
  351. tools = player.Backpack:GetChildren()
  352. for i = 1, #tools do
  353. if tools[i].ClassName == "HopperBin" then
  354. tools[i]:Destroy()
  355. end
  356. end
  357. skybox.CFrame = skybox.CFrame * CFrame.fromEulerAnglesXYZ(0,math.rad(1),0)
  358. tecks.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3))
  359. local jtrace = Instance.new("Part",game.Workspace)
  360. jtrace.Name = "JDTrace"
  361. jtrace.Size = Vector3.new(10,0,10)
  362. jtrace.Position = chara.HumanoidRootPart.Position
  363. jtrace.CFrame = chara.HumanoidRootPart.CFrame - Vector3.new(0,3,0)
  364. jtrace.Anchored = true
  365. jtrace.CanCollide = false
  366. jtrace.BrickColor = BrickColor.new("Really black")
  367. jtrace.Material = "Granite"
  368. BurningEff(jtrace)
  369. game.Debris:AddItem(jtrace,1)
  370. end
  371. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement