Advertisement
Infintyboy

veryyes

Sep 2nd, 2018
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 47.65 KB | None | 0 0
  1.  
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6.     local rp = RealPlayer
  7.     script.Parent = rp.Character
  8.    
  9.     --RemoteEvent for communicating
  10.     local Event = Instance.new("RemoteEvent")
  11.     Event.Name = "UserInput_Event"
  12.  
  13.     --Fake event to make stuff like Mouse.KeyDown work
  14.     local function fakeEvent()
  15.         local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16.         t.connect = t.Connect
  17.         return t
  18.     end
  19.  
  20.     --Creating fake input objects with fake variables
  21.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25.     end}
  26.     --Merged 2 functions into one by checking amount of arguments
  27.     CAS.UnbindAction = CAS.BindAction
  28.  
  29.     --This function will trigger the events that have been :Connect()'ed
  30.     local function te(self,ev,...)
  31.         local t = m[ev]
  32.         if t and t._fakeEvent then
  33.             for _,f in pairs(t.Functions) do
  34.                 f(...)
  35.             end
  36.         end
  37.     end
  38.     m.TrigEvent = te
  39.     UIS.TrigEvent = te
  40.  
  41.     Event.OnServerEvent:Connect(function(plr,io)
  42.         if plr~=rp then return end
  43.         m.Target = io.Target
  44.         m.Hit = io.Hit
  45.         if not io.isMouse then
  46.             local b = io.UserInputState == Enum.UserInputState.Begin
  47.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48.                 return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49.             end
  50.             for _,t in pairs(CAS.Actions) do
  51.                 for _,k in pairs(t.Keys) do
  52.                     if k==io.KeyCode then
  53.                         t.Function(t.Name,io.UserInputState,io)
  54.                     end
  55.                 end
  56.             end
  57.             m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58.             UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59.         end
  60.     end)
  61.     Event.Parent = NLS([==[
  62.     local Player = game:GetService("Players").LocalPlayer
  63.     local Event = script:WaitForChild("UserInput_Event")
  64.  
  65.     local Mouse = Player:GetMouse()
  66.     Mouse = Player:GetMouse()
  67.     local UIS = game:GetService("UserInputService")
  68.     local input = function(io,a)
  69.         if a then return end
  70.         --Since InputObject is a client-side instance, we create and pass table instead
  71.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  72.     end
  73.     UIS.InputBegan:Connect(input)
  74.     UIS.InputEnded:Connect(input)
  75.  
  76.     local h,t
  77.     --Give the server mouse data 30 times every second, but only if the values changed
  78.     --If player is not moving their mouse, client won't fire events
  79.     while wait(1/30) do
  80.         if h~=Mouse.Hit or t~=Mouse.Target then
  81.             h,t=Mouse.Hit,Mouse.Target
  82.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  83.         end
  84.     end]==],Player.Character)
  85.  
  86.     ----Sandboxed game object that allows the usage of client-side methods and services
  87.     --Real game object
  88.     local _rg = game
  89.  
  90.     --Metatable for fake service
  91.     local fsmt = {
  92.         __index = function(self,k)
  93.             local s = rawget(self,"_RealService")
  94.             if s then return s[k] end
  95.         end,
  96.         __newindex = function(self,k,v)
  97.             local s = rawget(self,"_RealService")
  98.             if s then s[k]=v end
  99.         end,
  100.         __call = function(self,...)
  101.             local s = rawget(self,"_RealService")
  102.             if s then return s(...) end
  103.         end
  104.     }
  105.     local function FakeService(t,RealService)
  106.         t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  107.         return setmetatable(t,fsmt)
  108.     end
  109.  
  110.     --Fake game object
  111.     local g = {
  112.         GetService = function(self,s)
  113.             return self[s]
  114.         end,
  115.         Players = FakeService({
  116.             LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  117.         },"Players"),
  118.         UserInputService = FakeService(UIS,"UserInputService"),
  119.         ContextActionService = FakeService(CAS,"ContextActionService"),
  120.     }
  121.     rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  122.     g.service = g.GetService
  123.    
  124.     g.RunService = FakeService({
  125.         RenderStepped = _rg:GetService("RunService").Heartbeat,
  126.         BindToRenderStep = function(self,name,_,fun)
  127.  
  128.         end,
  129.         UnbindFromRenderStep = function(self,name)
  130.             self._btrs[name]:Disconnect()
  131.         end,
  132.     },"RunService")
  133.  
  134.     setmetatable(g,{
  135.         __index=function(self,s)
  136.             return _rg:GetService(s) or typeof(_rg[s])=="function"
  137.             and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  138.         end,
  139.         __newindex = fsmt.__newindex,
  140.         __call = fsmt.__call
  141.     })
  142.     --Changing owner to fake player object to support owner:GetMouse()
  143.     game,owner = g,g.Players.LocalPlayer
  144. end
  145.  
  146. local cansilence = true
  147.  
  148. function SHUTUPXDD()
  149.     if cansilence then
  150.         cansilence = false
  151.         local function search(instance)
  152.             for i,v in pairs(instance:GetChildren()) do
  153.                 search(v)
  154.                 if v.ClassName == "Sound" then
  155.                     if v.Parent ~= game.Players.LocalPlayer.Character then
  156.                         v.Volume = 0
  157.                     end
  158.                 end
  159.             end
  160.         end
  161.         search(workspace)
  162.         wait(3)
  163.         cansilence = false
  164.     end
  165. end
  166.  
  167. game:GetService("RunService").RenderStepped:connect(SHUTUPXDD)
  168.  
  169. Player_Size = 1
  170.  
  171. wait()
  172. local Player = owner
  173.  
  174.  
  175. Player = owner
  176. PlayerGui = Player.PlayerGui
  177. Cam = workspace.CurrentCamera
  178. Backpack = Player.Backpack
  179. Character = Player.Character
  180. Humanoid = Character.Humanoid
  181. Humanoid:Destroy()
  182. IT = Instance.new
  183. Humanoid = IT("Humanoid",Character)
  184. wait(0.000001)
  185. Animator = IT("Animator",Humanoid)
  186. RootPart = Character["HumanoidRootPart"]
  187. Torso = Character["Torso"]
  188. Head = Character["Head"]
  189. RightArm = Character["Right Arm"]
  190. LeftArm = Character["Left Arm"]
  191. RightLeg = Character["Right Leg"]
  192. LeftLeg = Character["Left Leg"]
  193. RootJoint = RootPart["RootJoint"]
  194. Neck = Torso["Neck"]
  195. RightShoulder = Torso["Right Shoulder"]
  196. LeftShoulder = Torso["Left Shoulder"]
  197. RightHip = Torso["Right Hip"]
  198. LeftHip = Torso["Left Hip"]
  199. local sick = Instance.new("Sound",RootPart)
  200.  
  201. CF = CFrame.new
  202. VT = Vector3.new
  203. RAD = math.rad
  204. C3 = Color3.new
  205. UD2 = UDim2.new
  206. BRICKC = BrickColor.new
  207. ANGLES = CFrame.Angles
  208. EULER = CFrame.fromEulerAnglesXYZ
  209. COS = math.cos
  210. ACOS = math.acos
  211. SIN = math.sin
  212. ASIN = math.asin
  213. ABS = math.abs
  214. MRANDOM = math.random
  215. FLOOR = math.floor
  216.  
  217. Animation_Speed = 3
  218. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  219. local Speed = 20
  220. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  221. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  222. player = owner
  223. chara = player.Character
  224. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  225. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  226. local DAMAGEMULTIPLIER = 1
  227. local ANIM = "Idle"
  228. local ATTACK = false
  229. local EQUIPPED = false
  230. local HOLD = false
  231. local COMBO = 1
  232. local Rooted = false
  233. local SINE = 0
  234. local KEYHOLD = false
  235. local CHANGE = 2 / Animation_Speed
  236. local WALKINGANIM = false
  237. local VALUE1 = false
  238. local VALUE2 = false
  239. local ROBLOXIDLEANIMATION = IT("Animation")
  240. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  241. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  242. --ROBLOXIDLEANIMATION.Parent = Humanoid
  243. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  244. WEAPONGUI.Name = "Weapon GUI"
  245. local Weapon = IT("Model")
  246. Weapon.Name = "Adds"
  247. local Effects = IT("Folder", Weapon)
  248. Effects.Name = "Effects"
  249. local ANIMATOR = Humanoid.Animator
  250. local ANIMATE = Character.Animate
  251. local UNANCHOR = true
  252. local MODE = "BadCop"
  253. local Character = Player.Character
  254. local plr = owner
  255. local Humanoid = Character.Humanoid
  256. local char = plr.Character
  257. local hum = char.Humanoid
  258. local ra = char["Right Arm"]
  259. local la= char["Left Arm"]
  260. local rl= char["Right Leg"]
  261. local ll = char["Left Leg"]
  262. local hed = char.Head
  263. local root = char.HumanoidRootPart
  264. local rootj = root.RootJoint
  265. local tors = char.Torso
  266. local LeftArm = Character["Left Arm"]
  267. local RightArm = Character["Right Arm"]
  268. local LeftLeg = Character["Left Leg"]
  269. local RightLeg = Character["Right Leg"]
  270. local Head = Character.Head
  271. local Torso = Character.Torso
  272. local mouse = plr:GetMouse()
  273. local Mouse = plr:GetMouse()
  274. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  275. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  276. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  277. local cam = game.Workspace.CurrentCamera
  278. trazx = Instance.new("ParticleEmitter")
  279. c = game.Players.LocalPlayer.Character
  280. local sine=0
  281.  
  282. hum.MaxHealth = "Inf"
  283. hum.Health = "Inf"
  284.  
  285. local forcefield = Instance.new("ForceField",char)
  286. forcefield.Name = "FEARMECOWARDS"
  287. forcefield.Visible = false
  288. -----------------------------------------------------------
  289. h = char.Head
  290. t = char.Torso
  291. rs = t["Right Shoulder"]
  292. ls = t["Left Shoulder"]
  293. rh = t["Right Hip"]
  294. lh = t["Left Hip"]
  295. nec = t.Neck
  296. rut = char.HumanoidRootPart
  297. rutj = rut.RootJoint
  298. it = Instance.new
  299.  
  300. -------------------------------------------------------
  301. --Start Good Stuff--
  302. -------------------------------------------------------
  303. CF = CFrame.new
  304. angles = CFrame.Angles
  305. attack = false
  306. timetofly = true
  307. Euler = CFrame.fromEulerAnglesXYZ
  308. Rad = math.rad
  309. IT = Instance.new
  310. BrickC = BrickColor.new
  311. Cos = math.cos
  312. Acos = math.acos
  313. Sin = math.sin
  314. Asin = math.asin
  315. Abs = math.abs
  316. Mrandom = math.random
  317. Floor = math.floor
  318. random = math.random
  319. radian = math.rad
  320. Vec3 = Vector3.new
  321. cFrame = CFrame.new
  322. Euler = CFrame.fromEulerAnglesXYZ
  323. -------------------------------------------------------
  324. --End Good Stuff--
  325. -------------------------------------------------------
  326. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  327. RSH, LSH = nil, nil
  328. RW = Instance.new("Weld")
  329. LW = Instance.new("Weld")
  330. RH = tors["Right Hip"]
  331. LH = tors["Left Hip"]
  332. RSH = tors["Right Shoulder"]
  333. LSH = tors["Left Shoulder"]
  334. RSH.Parent = nil
  335. LSH.Parent = nil
  336. RW.Name = "RW"
  337. RW.Part0 = tors
  338. RW.C0 = CF(1.5, 0.5, 0)
  339. RW.C1 = CF(0, 0.5, 0)
  340. RW.Part1 = ra
  341. RW.Parent = tors
  342. LW.Name = "LW"
  343. LW.Part0 = tors
  344. LW.C0 = CF(-1.5, 0.5, 0)
  345. LW.C1 = CF(0, 0.5, 0)
  346. LW.Part1 = la
  347. LW.Parent = tors
  348. Effects = {}
  349.  
  350. BTAUNT = Instance.new("Sound", tors)
  351. BTAUNT.SoundId = "http://www.roblox.com/asset/?id=1535995263"
  352. BTAUNT.Volume = 10
  353. BTAUNT.Pitch = 1
  354. BTAUNT.Looped = false
  355. BTAUNT.TimePosition = 0.2
  356.  
  357. brda = Instance.new("Part",char) brda.Transparency = 1 brda.CanCollide = false brda.Size = Vector3.new(1.248, 1.264, 0.16) brdam = Instance.new("SpecialMesh",brda) brdam.Scale = Vector3.new(0.003, 0.003, 0.003) brdam.MeshType = "FileMesh" brdam.MeshId = "rbxassetid://1614924885" brdam.TextureId = "rbxassetid://1614940093" brdaw = Instance.new("Weld",ra) brdaw.Part0 = ra brdaw.Part1 = brda brdaw.C0 = CFrame.fromEulerAnglesXYZ(0,4.7,3) brdaw.C0 = brdaw.C0 * CFrame.new(0,1.3,0)
  358.  
  359. bat = Instance.new("Part", game.Players.LocalPlayer.Character)
  360. bat.Size = Vector3.new(1, 1, 5)
  361. bat.CanCollide = false
  362. bat:BreakJoints()
  363.  
  364. LeDrink = it("Model")
  365. LeDrink.Parent = char
  366. LeDrink.Name = "LeDrink"
  367. RHe = it("Part")
  368. RHe.Parent = LeDrink
  369. RHe.BrickColor = BrickColor.new("Really black")
  370. RHe.Locked = true
  371. RHe.CanCollide = false
  372. RHe.Transparency = 1
  373. PMesh = it("SpecialMesh")
  374. RHe.formFactor =  "Symmetric"
  375. PMesh.MeshType = "FileMesh"
  376. PMesh.MeshId = "rbxassetid://10470609"
  377. PMesh.TextureId = "rbxassetid://111405256"
  378. PMesh.Scale = Vector3.new(1.3, 1.4, 1.3)
  379. PMesh.Parent = RHe
  380. local RWeld = it("Weld")
  381. RWeld.Parent = RHe
  382. RWeld.Part0 = RHe
  383. RWeld.Part1 = ra
  384. RWeld.C0 = CF(-1.2, -0.5, 0) * angles(Rad(90), Rad(0), Rad(90))
  385.  
  386. LeChips = it("Model")
  387. LeChips.Parent = char
  388. LeChips.Name = "LeChips"
  389. RHk = it("Part")
  390. RHk.Parent = LeChips
  391. RHk.BrickColor = BrickColor.new("Really black")
  392. RHk.Locked = true
  393. RHk.CanCollide = false
  394. RHk.Transparency = 1
  395. PMeshe = it("SpecialMesh")
  396. RHk.formFactor =  "Symmetric"
  397. PMeshe.MeshType = "FileMesh"
  398. PMeshe.MeshId = "rbxassetid://19106014"
  399. PMeshe.TextureId = "rbxassetid://342435650"
  400. PMeshe.Scale = Vector3.new(1, 1.4, 0.8)
  401. PMeshe.Parent = RHk
  402. local RWelds = it("Weld")
  403. RWelds.Parent = RHk
  404. RWelds.Part0 = RHk
  405. RWelds.Part1 = ra
  406. RWelds.C0 = CF(-1.2, -0.5, 0) * angles(Rad(90), Rad(0), Rad(90))
  407.  
  408. local LeDrink = "wiplolnotyet"
  409. local LeChips = "wipaswelllol"
  410. local Sitt = false
  411.  
  412. -------------------------------------------------------
  413. --Start HeartBeat--
  414. -------------------------------------------------------
  415. ArtificialHB = Instance.new("BindableEvent", script)
  416. ArtificialHB.Name = "Heartbeat"
  417. script:WaitForChild("Heartbeat")
  418.  
  419. frame = 1 / 60
  420. tf = 0
  421. allowframeloss = false
  422. tossremainder = false
  423.  
  424.  
  425. lastframe = tick()
  426. script.Heartbeat:Fire()
  427.  
  428.  
  429. game:GetService("RunService").Heartbeat:connect(function(s, p)
  430.     tf = tf + s
  431.     if tf >= frame then
  432.         if allowframeloss then
  433.             script.Heartbeat:Fire()
  434.             lastframe = tick()
  435.         else
  436.             for i = 1, math.floor(tf / frame) do
  437.                 script.Heartbeat:Fire()
  438.             end
  439.             lastframe = tick()
  440.         end
  441.         if tossremainder then
  442.             tf = 0
  443.         else
  444.             tf = tf - frame * math.floor(tf / frame)
  445.         end
  446.     end
  447. end)
  448. -------------------------------------------------------
  449. --End HeartBeat--
  450. -------------------------------------------------------
  451.  
  452.  
  453. function CameraEnshaking(Length, Intensity) --Took Straight from StarGlitcher!
  454.     coroutine.resume(coroutine.create(function()
  455.         local intensity = 1 * Intensity
  456.         local rotM = 0.01 * Intensity
  457.         for i = 0, Length, 0.1 do
  458.             swait()
  459.             intensity = intensity - 0.05 * Intensity / Length
  460.             rotM = rotM - 5.0E-4 * Intensity / Length
  461.             hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  462.             cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
  463.         end
  464.         Humanoid.CameraOffset = Vec3(0, 0, 0)
  465.     end))
  466. end
  467.  
  468.         local joyemoji = Instance.new('ParticleEmitter', tors)
  469.         joyemoji.VelocitySpread = 2000
  470.         joyemoji.Lifetime = NumberRange.new(1)
  471.         joyemoji.Speed = NumberRange.new(40)
  472. joy= {}
  473. for i=0, 19 do
  474.   joy[#joy+ 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  475. end
  476. joyemoji.Size = NumberSequence.new(joy)
  477.         joyemoji.Rate = 0
  478.         joyemoji.LockedToPart = false
  479.         joyemoji.LightEmission = 0
  480.         joyemoji.Texture = "rbxassetid://1176402123"
  481.         joyemoji.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  482.  
  483.  
  484.         local LIT = Instance.new('ParticleEmitter', tors)
  485.         LIT.VelocitySpread = 2000
  486.         LIT.Lifetime = NumberRange.new(1)
  487.         LIT.Speed = NumberRange.new(45)
  488. nani= {}
  489. for i=0, 19 do
  490.   nani[#nani+ 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  491. end
  492. LIT.Size = NumberSequence.new(nani)
  493.         LIT.Rate = 0
  494.         LIT.LockedToPart = false
  495.         LIT.LightEmission = 0
  496.         LIT.Texture = "rbxassetid://1492670151"
  497.         LIT.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  498.  
  499.         local toast = Instance.new('ParticleEmitter', tors)
  500.         toast.VelocitySpread = 2000
  501.         toast.Lifetime = NumberRange.new(1)
  502.         toast.Speed = NumberRange.new(60)
  503. toasterstoasttoast= {}
  504. for i=0, 19 do
  505.   toasterstoasttoast[#toasterstoasttoast+ 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  506. end
  507. toast.Size = NumberSequence.new(toasterstoasttoast)
  508.         toast.Rate = 0
  509.         toast.LockedToPart = false
  510.         toast.LightEmission = 0
  511.         toast.Texture = "rbxassetid://436096230"
  512.         toast.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  513.  
  514.         local ok = Instance.new('ParticleEmitter', tors)
  515.         ok.VelocitySpread = 2000
  516.         ok.Lifetime = NumberRange.new(1)
  517.         ok.Speed = NumberRange.new(50)
  518. cool= {}
  519. for i=0, 19 do
  520.   cool[#cool+ 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  521. end
  522. ok.Size = NumberSequence.new(cool)
  523.         ok.Rate = 0
  524.         ok.LockedToPart = false
  525.         ok.LightEmission = 0
  526.         ok.Texture = "rbxassetid://636768448"
  527.         ok.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  528.  
  529. maincolor = BrickC("Really red")
  530.  
  531. function FindNearestHead(Position, Distance, SinglePlayer)
  532.     if SinglePlayer then
  533.         return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  534.     end
  535.     local List = {}
  536.     for i, v in pairs(workspace:GetChildren()) do
  537.         if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  538.             table.insert(List, v)
  539.         end
  540.     end
  541.     return List
  542. end
  543.  
  544. function SoulSteal(dude)
  545. if dude.Name ~= char then
  546. local bgf = IT("BodyGyro", dude.Head)
  547. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  548. local val = IT("BoolValue", dude)
  549. val.Name = "IsHit"
  550. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  551. local soulst = coroutine.wrap(function()
  552. local soul = Instance.new("Part",dude)
  553. soul.Size = Vector3.new(1,1,1)
  554. soul.CanCollide = false
  555. soul.Anchored = false
  556. soul.Position = torso.Position
  557. soul.Transparency = 1
  558. local PartEmmit1 = IT("ParticleEmitter", soul)
  559. PartEmmit1.LightEmission = 1
  560. PartEmmit1.Texture = "rbxassetid://569507414"
  561. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  562. PartEmmit1.Rate = 250
  563. PartEmmit1.Lifetime = NumberRange.new(1.6)
  564. PartEmmit1.Size = NumberSequence.new({
  565.     NumberSequenceKeypoint.new(0, 1, 0),
  566.     NumberSequenceKeypoint.new(1, 0, 0)
  567. })
  568. PartEmmit1.Transparency = NumberSequence.new({
  569.     NumberSequenceKeypoint.new(0, 0, 0),
  570.     NumberSequenceKeypoint.new(1, 1, 0)
  571. })
  572. PartEmmit1.Speed = NumberRange.new(0, 0)
  573. PartEmmit1.VelocitySpread = 30000
  574. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  575. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  576. local BodPoss = IT("BodyPosition", soul)
  577. BodPoss.P = 3000
  578. BodPoss.D = 1000
  579. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  580. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  581. wait(1.6)
  582. soul.Touched:connect(function(hit)
  583.     if hit.Parent == char then
  584.     soul:Destroy()
  585.     end
  586. end)
  587. wait(1.2)
  588. while soul do
  589.     swait()
  590.     PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  591.     BodPoss.Position = tors.Position
  592. end
  593. end)
  594.     soulst()
  595.     end
  596. end
  597. function FaceMouse()
  598. local   Cam = workspace.CurrentCamera
  599.     return {
  600.         CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  601.         Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  602.     }
  603. end
  604.  
  605. function Eviscerate(dude)
  606.     if dude.Name ~= char then
  607.         local bgf = IT("BodyGyro", dude.Head)
  608.         bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  609.         local val = IT("BoolValue", dude)
  610.         val.Name = "IsHit"
  611.         local ds = coroutine.wrap(function()
  612.             dude:WaitForChild("Head"):BreakJoints()
  613.             wait(0.5)
  614.             target = nil
  615.             coroutine.resume(coroutine.create(function()
  616.                 for i, v in pairs(dude:GetChildren()) do
  617.                     if v:IsA("Accessory") then
  618.                         v:Destroy()
  619.                     end
  620.                     if v:IsA("Humanoid") then
  621.                         v:Destroy()
  622.                     end
  623.                     if v:IsA("CharacterMesh") then
  624.                         v:Destroy()
  625.                     end
  626.                     if v:IsA("Model") then
  627.                         v:Destroy()
  628.                     end
  629.                     if v:IsA("Part") or v:IsA("MeshPart") then
  630.                         for x, o in pairs(v:GetChildren()) do
  631.                             if o:IsA("Decal") then
  632.                                 o:Destroy()
  633.                             end
  634.                         end
  635.                         coroutine.resume(coroutine.create(function()
  636.                             v.Material = "Neon"
  637.                             v.CanCollide = false
  638.                             local PartEmmit1 = IT("ParticleEmitter", v)
  639.                             PartEmmit1.LightEmission = 1
  640.                             PartEmmit1.Texture = "rbxassetid://284205403"
  641.                             PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  642.                             PartEmmit1.Rate = 150
  643.                             PartEmmit1.Lifetime = NumberRange.new(1)
  644.                             PartEmmit1.Size = NumberSequence.new({
  645.                                 NumberSequenceKeypoint.new(0, 0.75, 0),
  646.                                 NumberSequenceKeypoint.new(1, 0, 0)
  647.                             })
  648.                             PartEmmit1.Transparency = NumberSequence.new({
  649.                                 NumberSequenceKeypoint.new(0, 0, 0),
  650.                                 NumberSequenceKeypoint.new(1, 1, 0)
  651.                             })
  652.                             PartEmmit1.Speed = NumberRange.new(0, 0)
  653.                             PartEmmit1.VelocitySpread = 30000
  654.                             PartEmmit1.Rotation = NumberRange.new(-500, 500)
  655.                             PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  656.                             local BodPoss = IT("BodyPosition", v)
  657.                             BodPoss.P = 3000
  658.                             BodPoss.D = 1000
  659.                             BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  660.                             BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  661.                             v.Color = maincolor.Color
  662.                             coroutine.resume(coroutine.create(function()
  663.                                 for i = 0, 49 do
  664.                                     swait(1)
  665.                                     v.Transparency = v.Transparency + 0.08
  666.                                 end
  667.                                 wait(0.5)
  668.                                 PartEmmit1.Enabled = false
  669.                                 wait(3)
  670.                                 v:Destroy()
  671.                                 dude:Destroy()
  672.                             end))
  673.                         end))
  674.                     end
  675.                 end
  676.             end))
  677.         end)
  678.         ds()
  679.     end
  680. end
  681. -------------------------------------------------------
  682. --Start Important Functions--
  683. -------------------------------------------------------
  684. function swait(num)
  685.     if num == 0 or num == nil then
  686.         game:service("RunService").Stepped:wait(0)
  687.     else
  688.         for i = 0, num do
  689.             game:service("RunService").Stepped:wait(0)
  690.         end
  691.     end
  692. end
  693. function thread(f)
  694.     coroutine.resume(coroutine.create(f))
  695. end
  696. function clerp(a, b, t)
  697.     local qa = {
  698.         QuaternionFromCFrame(a)
  699.     }
  700.     local qb = {
  701.         QuaternionFromCFrame(b)
  702.     }
  703.     local ax, ay, az = a.x, a.y, a.z
  704.     local bx, by, bz = b.x, b.y, b.z
  705.     local _t = 1 - t
  706.     return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  707. end
  708. function QuaternionFromCFrame(cf)
  709.     local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  710.     local trace = m00 + m11 + m22
  711.     if trace > 0 then
  712.         local s = math.sqrt(1 + trace)
  713.         local recip = 0.5 / s
  714.         return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  715.     else
  716.         local i = 0
  717.         if m00 < m11 then
  718.             i = 1
  719.         end
  720.         if m22 > (i == 0 and m00 or m11) then
  721.             i = 2
  722.         end
  723.         if i == 0 then
  724.             local s = math.sqrt(m00 - m11 - m22 + 1)
  725.             local recip = 0.5 / s
  726.             return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  727.         elseif i == 1 then
  728.             local s = math.sqrt(m11 - m22 - m00 + 1)
  729.             local recip = 0.5 / s
  730.             return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  731.         elseif i == 2 then
  732.             local s = math.sqrt(m22 - m00 - m11 + 1)
  733.             local recip = 0.5 / s
  734.             return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  735.         end
  736.     end
  737. end
  738. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  739.     local xs, ys, zs = x + x, y + y, z + z
  740.     local wx, wy, wz = w * xs, w * ys, w * zs
  741.     local xx = x * xs
  742.     local xy = x * ys
  743.     local xz = x * zs
  744.     local yy = y * ys
  745.     local yz = y * zs
  746.     local zz = z * zs
  747.     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))
  748. end
  749. function QuaternionSlerp(a, b, t)
  750.     local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  751.     local startInterp, finishInterp
  752.     if cosTheta >= 1.0E-4 then
  753.         if 1 - cosTheta > 1.0E-4 then
  754.             local theta = math.acos(cosTheta)
  755.             local invSinTheta = 1 / Sin(theta)
  756.             startInterp = Sin((1 - t) * theta) * invSinTheta
  757.             finishInterp = Sin(t * theta) * invSinTheta
  758.         else
  759.             startInterp = 1 - t
  760.             finishInterp = t
  761.         end
  762.     elseif 1 + cosTheta > 1.0E-4 then
  763.         local theta = math.acos(-cosTheta)
  764.         local invSinTheta = 1 / Sin(theta)
  765.         startInterp = Sin((t - 1) * theta) * invSinTheta
  766.         finishInterp = Sin(t * theta) * invSinTheta
  767.     else
  768.         startInterp = t - 1
  769.         finishInterp = t
  770.     end
  771.     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
  772. end
  773. function rayCast(Position, Direction, Range, Ignore)
  774.     return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  775. end
  776. local RbxUtility = LoadLibrary("RbxUtility")
  777. local Create = RbxUtility.Create
  778. local insta = true
  779.  
  780. -------------------------------------------------------
  781. --Start Damage Function--
  782. -------------------------------------------------------
  783. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  784.     if hit.Parent == nil then
  785.         return
  786.     end
  787.     local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  788.     for _, v in pairs(hit.Parent:children()) do
  789.         if v:IsA("Humanoid") then
  790.             h = v
  791.         end
  792.     end
  793.          if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  794.          hit.Parent:FindFirstChild("Head"):BreakJoints()
  795.          end
  796.  
  797.     if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  798.         if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  799.             if hit.Parent.DebounceHit.Value == true then
  800.                 return
  801.             end
  802.         end
  803.          if insta == true then
  804.          hit.Parent:FindFirstChild("Head"):BreakJoints()
  805.          end
  806.         local c = Create("ObjectValue"){
  807.             Name = "creator",
  808.             Value = game:service("Players").LocalPlayer,
  809.             Parent = h,
  810.         }
  811.         game:GetService("Debris"):AddItem(c, .5)
  812.         CreateSound("958257111", hit, 10, 1)
  813.         local Damage = math.random(minim, maxim)
  814.         hit.Parent:FindFirstChild("Head"):BreakJoints()
  815.         local blocked = false
  816.         local block = hit.Parent:findFirstChild("Block")
  817.         if block ~= nil then
  818.             if block.className == "IntValue" then
  819.                 if block.Value > 0 then
  820.                     blocked = true
  821.                     block.Value = block.Value - 1
  822.                 end
  823.             end
  824.         end
  825.         if blocked == false then
  826.             h.Health = h.Health - Damage
  827.             ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "rekt", 1.5, tors.BrickColor.Color)
  828.         else
  829.             h.Health = h.Health - (Damage / 2)
  830.             ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "ez kill", 1.5, tors.BrickColor.Color)
  831.         end
  832.         if Type == "Knockdown" then
  833.             local hum = hit.Parent.Humanoid
  834.             hum.PlatformStand = true
  835.             coroutine.resume(coroutine.create(function(HHumanoid)
  836.                 swait(1)
  837.                 HHumanoid.PlatformStand = false
  838.             end), hum)
  839.             local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  840.             local bodvol = Create("BodyVelocity"){
  841.                 velocity = angle * knockback,
  842.                 P = 5000,
  843.                 maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  844.                 Parent = hit,
  845.             }
  846.             local rl = Create("BodyAngularVelocity"){
  847.                 P = 3000,
  848.                 maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  849.                 angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  850.                 Parent = hit,
  851.             }
  852.             game:GetService("Debris"):AddItem(bodvol, .5)
  853.             game:GetService("Debris"):AddItem(rl, .5)
  854.         elseif Type == "Normal" then
  855.             local vp = Create("BodyVelocity"){
  856.                 P = 500,
  857.                 maxForce = Vector3.new(math.huge, 0, math.huge),
  858.                 velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  859.             }
  860.             if knockback > 0 then
  861.                 vp.Parent = hit.Parent.Torso
  862.             end
  863.             game:GetService("Debris"):AddItem(vp, .5)
  864.         elseif Type == "Up" then
  865.             local bodyVelocity = Create("BodyVelocity"){
  866.                 velocity = Vector3.new(0, 20, 0),
  867.                 P = 5000,
  868.                 maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  869.                 Parent = hit,
  870.             }
  871.             game:GetService("Debris"):AddItem(bodyVelocity, .5)
  872.         elseif Type == "DarkUp" then
  873.             coroutine.resume(coroutine.create(function()
  874.                 for i = 0, 1, 0.1 do
  875.                     swait()
  876.                     Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  877.                 end
  878.             end))
  879.             local bodyVelocity = Create("BodyVelocity"){
  880.                 velocity = Vector3.new(0, 20, 0),
  881.                 P = 5000,
  882.                 maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  883.                 Parent = hit,
  884.             }
  885.             game:GetService("Debris"):AddItem(bodyVelocity, 1)
  886.         elseif Type == "Snare" then
  887.             local bp = Create("BodyPosition"){
  888.                 P = 2000,
  889.                 D = 100,
  890.                 maxForce = Vector3.new(math.huge, math.huge, math.huge),
  891.                 position = hit.Parent.Torso.Position,
  892.                 Parent = hit.Parent.Torso,
  893.             }
  894.             game:GetService("Debris"):AddItem(bp, 1)
  895.         elseif Type == "Freeze" then
  896.             local BodPos = Create("BodyPosition"){
  897.                 P = 50000,
  898.                 D = 1000,
  899.                 maxForce = Vector3.new(math.huge, math.huge, math.huge),
  900.                 position = hit.Parent.Torso.Position,
  901.                 Parent = hit.Parent.Torso,
  902.             }
  903.             local BodGy = Create("BodyGyro") {
  904.                 maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  905.                 P = 20e+003,
  906.                 Parent = hit.Parent.Torso,
  907.                 cframe = hit.Parent.Torso.CFrame,
  908.             }
  909.             hit.Parent.Torso.Anchored = true
  910.             coroutine.resume(coroutine.create(function(Part)
  911.                 swait(1.5)
  912.                 Part.Anchored = false
  913.             end), hit.Parent.Torso)
  914.             game:GetService("Debris"):AddItem(BodPos, 3)
  915.             game:GetService("Debris"):AddItem(BodGy, 3)
  916.         end
  917.         local debounce = Create("BoolValue"){
  918.             Name = "DebounceHit",
  919.             Parent = hit.Parent,
  920.             Value = true,
  921.         }
  922.         game:GetService("Debris"):AddItem(debounce, Delay)
  923.         c = Create("ObjectValue"){
  924.             Name = "creator",
  925.             Value = Player,
  926.             Parent = h,
  927.         }
  928.         game:GetService("Debris"):AddItem(c, .5)
  929.     end
  930. end
  931. -------------------------------------------------------
  932. --End Damage Function--
  933. -------------------------------------------------------
  934.  
  935. -------------------------------------------------------
  936. --Start Damage Function Customization--
  937. -------------------------------------------------------
  938. function ShowDamage(Pos, Text, Time, Color)
  939.     local Rate = (1 / 30)
  940.     local Pos = (Pos or Vector3.new(0, 0, 0))
  941.     local Text = (Text or "")
  942.     local Time = (Time or 2)
  943.     local Color = (Color or Color3.new(1, 0, 1))
  944.     local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  945.     EffectPart.Anchored = true
  946.     local BillboardGui = Create("BillboardGui"){
  947.         Size = UDim2.new(3, 0, 3, 0),
  948.         Adornee = EffectPart,
  949.         Parent = EffectPart,
  950.     }
  951.     local TextLabel = Create("TextLabel"){
  952.         BackgroundTransparency = 1,
  953.         Size = UDim2.new(1, 0, 1, 0),
  954.         Text = Text,
  955.         Font = "Bodoni",
  956.         TextColor3 = Color,
  957.         TextScaled = true,
  958.         TextStrokeColor3 = Color3.fromRGB(0,0,0),
  959.         Parent = BillboardGui,
  960.     }
  961.     game.Debris:AddItem(EffectPart, (Time))
  962.     EffectPart.Parent = game:GetService("Workspace")
  963.     delay(0, function()
  964.         local Frames = (Time / Rate)
  965.         for Frame = 1, Frames do
  966.             wait(Rate)
  967.             local Percent = (Frame / Frames)
  968.             EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  969.             TextLabel.TextTransparency = Percent
  970.         end
  971.         if EffectPart and EffectPart.Parent then
  972.             EffectPart:Destroy()
  973.         end
  974.     end)
  975. end
  976. -------------------------------------------------------
  977. --End Damage Function Customization--
  978. -------------------------------------------------------
  979.  
  980. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  981.   for _, c in pairs(workspace:children()) do
  982.     local hum = c:findFirstChild("Humanoid")
  983.     if hum ~= nil then
  984.       local head = c:findFirstChild("Head")
  985.       if head ~= nil then
  986.         local targ = head.Position - Part.Position
  987.         local mag = targ.magnitude
  988.         if magni >= mag and c.Name ~= plr.Name then
  989.            
  990.           Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  991.         end
  992.       end
  993.     end
  994.   end
  995. end
  996.  
  997.  
  998. CFuncs = {
  999.     Part = {
  1000.         Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1001.             local Part = Create("Part")({
  1002.                 Parent = Parent,
  1003.                 Reflectance = Reflectance,
  1004.                 Transparency = Transparency,
  1005.                 CanCollide = false,
  1006.                 Locked = true,
  1007.                 BrickColor = BrickColor.new(tostring(BColor)),
  1008.                 Name = Name,
  1009.                 Size = Size,
  1010.                 Material = Material
  1011.             })
  1012.             RemoveOutlines(Part)
  1013.             return Part
  1014.         end
  1015.     },
  1016.     Mesh = {
  1017.         Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1018.             local Msh = Create(Mesh)({
  1019.                 Parent = Part,
  1020.                 Offset = OffSet,
  1021.                 Scale = Scale
  1022.             })
  1023.             if Mesh == "SpecialMesh" then
  1024.                 Msh.MeshType = MeshType
  1025.                 Msh.MeshId = MeshId
  1026.             end
  1027.             return Msh
  1028.         end
  1029.     },
  1030.     Mesh = {
  1031.         Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1032.             local Msh = Create(Mesh)({
  1033.                 Parent = Part,
  1034.                 Offset = OffSet,
  1035.                 Scale = Scale
  1036.             })
  1037.             if Mesh == "SpecialMesh" then
  1038.                 Msh.MeshType = MeshType
  1039.                 Msh.MeshId = MeshId
  1040.             end
  1041.             return Msh
  1042.         end
  1043.     },
  1044.     Weld = {
  1045.         Create = function(Parent, Part0, Part1, C0, C1)
  1046.             local Weld = Create("Weld")({
  1047.                 Parent = Parent,
  1048.                 Part0 = Part0,
  1049.                 Part1 = Part1,
  1050.                 C0 = C0,
  1051.                 C1 = C1
  1052.             })
  1053.             return Weld
  1054.         end
  1055.     },
  1056.     Sound = {
  1057.         Create = function(id, par, vol, pit)
  1058.             coroutine.resume(coroutine.create(function()
  1059.                 local S = Create("Sound")({
  1060.                     Volume = vol,
  1061.                     Pitch = pit or 1,
  1062.                     SoundId = id,
  1063.                     Parent = par or workspace
  1064.                 })
  1065.                 wait()
  1066.                 S:play()
  1067.                 game:GetService("Debris"):AddItem(S, 6)
  1068.             end))
  1069.         end
  1070.     },
  1071.     ParticleEmitter = {
  1072.         Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  1073.             local fp = Create("ParticleEmitter")({
  1074.                 Parent = Parent,
  1075.                 Color = ColorSequence.new(Color1, Color2),
  1076.                 LightEmission = LightEmission,
  1077.                 Size = Size,
  1078.                 Texture = Texture,
  1079.                 Transparency = Transparency,
  1080.                 ZOffset = ZOffset,
  1081.                 Acceleration = Accel,
  1082.                 Drag = Drag,
  1083.                 LockedToPart = LockedToPart,
  1084.                 VelocityInheritance = VelocityInheritance,
  1085.                 EmissionDirection = EmissionDirection,
  1086.                 Enabled = Enabled,
  1087.                 Lifetime = LifeTime,
  1088.                 Rate = Rate,
  1089.                 Rotation = Rotation,
  1090.                 RotSpeed = RotSpeed,
  1091.                 Speed = Speed,
  1092.                 VelocitySpread = VelocitySpread
  1093.             })
  1094.             return fp
  1095.         end
  1096.     }
  1097. }
  1098. function RemoveOutlines(part)
  1099.     part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1100. end
  1101. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1102.     local Part = Create("Part")({
  1103.         formFactor = FormFactor,
  1104.         Parent = Parent,
  1105.         Reflectance = Reflectance,
  1106.         Transparency = Transparency,
  1107.         CanCollide = false,
  1108.         Locked = true,
  1109.         BrickColor = BrickColor.new(tostring(BColor)),
  1110.         Name = Name,
  1111.         Size = Size,
  1112.         Material = Material
  1113.     })
  1114.     RemoveOutlines(Part)
  1115.     return Part
  1116. end
  1117. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1118.     local Msh = Create(Mesh)({
  1119.         Parent = Part,
  1120.         Offset = OffSet,
  1121.         Scale = Scale
  1122.     })
  1123.     if Mesh == "SpecialMesh" then
  1124.         Msh.MeshType = MeshType
  1125.         Msh.MeshId = MeshId
  1126.     end
  1127.     return Msh
  1128. end
  1129. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1130.     local Weld = Create("Weld")({
  1131.         Parent = Parent,
  1132.         Part0 = Part0,
  1133.         Part1 = Part1,
  1134.         C0 = C0,
  1135.         C1 = C1
  1136.     })
  1137.     return Weld
  1138. end
  1139.  
  1140. -------------------------------------------------------
  1141. --Start Effect Function--
  1142. -------------------------------------------------------
  1143. EffectModel = Instance.new("Model", char)
  1144. Effects = {
  1145.   Block = {
  1146.     Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1147.       local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1148.       prt.Anchored = true
  1149.       prt.CFrame = cframe
  1150.       local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1151.       game:GetService("Debris"):AddItem(prt, 10)
  1152.       if Type == 1 or Type == nil then
  1153.         table.insert(Effects, {
  1154.           prt,
  1155.           "Block1",
  1156.           delay,
  1157.           x3,
  1158.           y3,
  1159.           z3,
  1160.           msh
  1161.         })
  1162.       elseif Type == 2 then
  1163.         table.insert(Effects, {
  1164.           prt,
  1165.           "Block2",
  1166.           delay,
  1167.           x3,
  1168.           y3,
  1169.           z3,
  1170.           msh
  1171.         })
  1172.       else
  1173.         table.insert(Effects, {
  1174.           prt,
  1175.           "Block3",
  1176.           delay,
  1177.           x3,
  1178.           y3,
  1179.           z3,
  1180.           msh
  1181.         })
  1182.       end
  1183.     end
  1184.   },
  1185.   Sphere = {
  1186.     Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1187.       local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1188.       prt.Anchored = true
  1189.       prt.CFrame = cframe
  1190.       local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0,0,0), Vector3.new(x1, y1, z1))
  1191.       game:GetService("Debris"):AddItem(prt, 10)
  1192.       table.insert(Effects, {
  1193.         prt,
  1194.         "Cylinder",
  1195.         delay,
  1196.         x3,
  1197.         y3,
  1198.         z3,
  1199.         msh
  1200.       })
  1201.     end
  1202.   },
  1203.   Cylinder = {
  1204.     Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1205.       local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1206.       prt.Anchored = true
  1207.       prt.CFrame = cframe
  1208.       local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1209.       game:GetService("Debris"):AddItem(prt, 10)
  1210.       table.insert(Effects, {
  1211.         prt,
  1212.         "Cylinder",
  1213.         delay,
  1214.         x3,
  1215.         y3,
  1216.         z3,
  1217.         msh
  1218.       })
  1219.     end
  1220.   },
  1221.   Wave = {
  1222.     Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1223.       local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1224.       prt.Anchored = true
  1225.       prt.CFrame = cframe
  1226.       local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  1227.       game:GetService("Debris"):AddItem(prt, 10)
  1228.       table.insert(Effects, {
  1229.         prt,
  1230.         "Cylinder",
  1231.         delay,
  1232.         x3 / 60,
  1233.         y3 / 60,
  1234.         z3 / 60,
  1235.         msh
  1236.       })
  1237.     end
  1238.   },
  1239.   Ring = {
  1240.     Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1241.       local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1242.       prt.Anchored = true
  1243.       prt.CFrame = cframe
  1244.       local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1245.       game:GetService("Debris"):AddItem(prt, 10)
  1246.       table.insert(Effects, {
  1247.         prt,
  1248.         "Cylinder",
  1249.         delay,
  1250.         x3,
  1251.         y3,
  1252.         z3,
  1253.         msh
  1254.       })
  1255.     end
  1256.   },
  1257.   Break = {
  1258.     Create = function(brickcolor, cframe, x1, y1, z1)
  1259.       local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1260.       prt.Anchored = true
  1261.       prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1262.       local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1263.       local num = math.random(10, 50) / 1000
  1264.       game:GetService("Debris"):AddItem(prt, 10)
  1265.       table.insert(Effects, {
  1266.         prt,
  1267.         "Shatter",
  1268.         num,
  1269.         prt.CFrame,
  1270.         math.random() - math.random(),
  1271.         0,
  1272.         math.random(50, 100) / 100
  1273.       })
  1274.     end
  1275.   },
  1276. Spiral = {
  1277.     Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1278.       local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1279.       prt.Anchored = true
  1280.       prt.CFrame = cframe
  1281.       local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1282.       game:GetService("Debris"):AddItem(prt, 10)
  1283.       table.insert(Effects, {
  1284.         prt,
  1285.         "Cylinder",
  1286.         delay,
  1287.         x3,
  1288.         y3,
  1289.         z3,
  1290.         msh
  1291.       })
  1292.     end
  1293.   },
  1294. Push = {
  1295.     Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1296.       local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1297.       prt.Anchored = true
  1298.       prt.CFrame = cframe
  1299.       local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1300.       game:GetService("Debris"):AddItem(prt, 10)
  1301.       table.insert(Effects, {
  1302.         prt,
  1303.         "Cylinder",
  1304.         delay,
  1305.         x3,
  1306.         y3,
  1307.         z3,
  1308.         msh
  1309.       })
  1310.     end
  1311.   }
  1312. }
  1313. -------------------------------------------------------
  1314. --End Effect Function--
  1315. -------------------------------------------------------
  1316.  
  1317. function CreateSound(ID, PARENT, VOLUME, PITCH) --Very important.
  1318.     local NSound = nil
  1319.     coroutine.resume(coroutine.create(function()
  1320.         NSound = Instance.new("Sound", PARENT)
  1321.         NSound.Volume = VOLUME
  1322.         NSound.Pitch = PITCH
  1323.         NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1324.         swait()
  1325.         NSound:play()
  1326.         game:GetService("Debris"):AddItem(NSound, 10)
  1327.     end))
  1328.     return NSound
  1329. end
  1330.  
  1331.  
  1332.  
  1333. angery = false
  1334.  
  1335.  
  1336. -------------------------------------------------------
  1337. --End Important Functions--
  1338. -------------------------------------------------------
  1339. maincolor = BrickC("Really red")
  1340. local IN = Instance.new
  1341. function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
  1342.     local Sound = IN("Sound")
  1343.     Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  1344.     Sound.Pitch = pitch or 1
  1345.     Sound.Volume = volume or 1
  1346.     Sound.Looped = looped or false
  1347.     if(autoPlay)then
  1348.         coroutine.wrap(function()
  1349.             repeat wait() until Sound.IsLoaded
  1350.             Sound.Playing = autoPlay or false
  1351.         end)()
  1352.     end
  1353.     if(not looped and effect)then
  1354.         Sound.Stopped:connect(function()
  1355.             Sound.Volume = 0
  1356.             Sound:destroy()
  1357.         end)
  1358.     elseif(effect)then
  1359.         warn("Sound can't be looped and a sound effect!")
  1360.     end
  1361.     Sound.Parent =parent or Torso
  1362.     return Sound
  1363. end
  1364. local MusicID = 151808631
  1365. local Music = Sound(char,MusicID,0.9,10,true,false,true)
  1366. Music.Name = 'Music'
  1367. while true do
  1368. wait()
  1369.     Effects.Ring.Create(BrickColor.new(maincolor.Color), root.CFrame * CF(0, -2.7, 0) * angles(Rad(90),Rad(0),Rad(0)), 2, 2, 2, 3.6, 3.6, 3.6, 0.03)
  1370.     Effects.Ring.Create(BrickColor.new(maincolor.Color), root.CFrame * CF(0, -2.3, 0) * angles(Rad(90),Rad(0),Rad(0)), 2, 2, 2, 5.6, 5.6, 5.6, 0.03)
  1371.     Effects.Ring.Create(BrickColor.new(maincolor.Color), root.CFrame * CF(0, -1.7, 0) * angles(Rad(90),Rad(0),Rad(0)), 2, 2, 2, 8.6, 8.6, 8.6, 0.03)
  1372. Humanoid.DisplayDistanceType = 'None'
  1373.     if(not Music or not Music.Parent)then
  1374.         local tPos = 0
  1375.         pcall(function()tPos = Music.TimePosition; Music:destroy() end)
  1376.         Music = Sound(char,MusicID,0.9,10,true,false,true)
  1377.         Music.Name = 'Music'
  1378.         Music.TimePosition = tPos
  1379.     end
  1380. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement