Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --|] [|--
- --|] Created By ByJugator340 [|--
- --|] [|--
- -----------------------------------------------------------
- ------------------Start FE Compatibility-------------------
- -----------------------------------------------------------
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,mouse,UserInputService,ContextActionService = owner
- local Mouse = owner:GetMouse()
- do script.Parent=Player.Character;local a=Instance.new("RemoteEvent")a.Name="UserInput_Event"local function b()local c={_fakeEvent=true,Connect=function(self,d)self.Function=d end}c.connect=c.Connect;return c end;local e={Target=nil,Hit=CFrame.new(),KeyUp=b(),KeyDown=b(),Button1Up=b(),Button1Down=b()}local f={InputBegan=b(),InputEnded=b()}local CAS={Actions={},BindAction=function(self,g,h,i,...)CAS.Actions[g]=h and{Name=g,Function=h,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function j(self,k,...)local c=e[k]if c and c._fakeEvent and c.Function then c.Function(...)end end;e.TrigEvent=j;f.TrigEvent=j;a.OnServerEvent:Connect(function(l,m)if l~=Player then return end;if m.isMouse then e.Target=m.Target;e.Hit=m.Hit else local n=m.UserInputState==Enum.UserInputState.Begin;if m.UserInputType==Enum.UserInputType.MouseButton1 then return e:TrigEvent(n and"Button1Down"or"Button1Up")end;for o,c in pairs(CAS.Actions)do for o,p in pairs(c.Keys)do if p==m.KeyCode then c.Function(c.Name,m.UserInputState,m)end end end;e:TrigEvent(n and"KeyDown"or"KeyUp",m.KeyCode.Name:lower())f:TrigEvent(n and"InputBegan"or"InputEnded",m,false)end end)a.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;b:FireServer({KeyCode=e.KeyCode,UserInputType=e.UserInputType,UserInputState=e.UserInputState})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g=a:GetMouse()local h,i;while wait(1/30)do if h~=g.Hit or i~=g.Target then h,i=g.Hit,g.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)Mouse,mouse,UserInputService,ContextActionService=e,e,f,CAS end-- [[[
- wait(0.2)
- -----------------------------------------------------------
- --------------------End FE Compatibility-------------------
- -----------------------------------------------------------
- -----------------------------------------------------------
- --------------------Start Variables------------------------
- -----------------------------------------------------------
- local plr = owner
- local ch = plr.Character
- local root = ch.HumanoidRootPart
- local ra = ch["Right Arm"]
- local tor = ch.Torso
- local hed = ch.Head
- local la = ch["Left Arm"]
- local rl = ch["Right Leg"]
- local ll = ch["Left Leg"]
- local necc = tor.Neck
- local RS = tor["Right Shoulder"]
- local LS = tor["Left Shoulder"]
- local RH = tor["Right Hip"]
- local LH = tor["Left Hip"]
- local hum = ch:FindFirstChildOfClass("Humanoid")
- local cf = {
- n = CFrame.new,
- a = CFrame.Angles,
- euler = CFrame.fromEulerAnglesXYZ,
- matrix = CFrame.fromMatrix,
- axis = CFrame.fromAxisAngle,
- }
- -----------------------------------------------------------
- --------------------Warn Notifications---------------------
- -----------------------------------------------------------
- warn("Created by ByJugator340")
- -----------------------------------------------------------
- --------------------End Variables--------------------------
- -----------------------------------------------------------
- ------------------------------------------------------------
- -----------------Start important values---------------------
- ------------------------------------------------------------
- local speed = 3
- local currentanimation = "Idle"
- local attacking = false
- local sine = 0
- local chan = 2 / speed
- local rootc0 = CFrame.new(0,0,0) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(180))
- local neccc0 = CFrame.new(0,1,0) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(180))
- local rshoulderc0 = CFrame.new(-0.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
- local lshoulderc0 = CFrame.new(0.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0))
- local kholdin = false
- local holdin = false
- local eff = Instance.new("Folder",ch)
- eff.Name = "Epic effects"
- local souls = 0
- local transformed = false
- ------------------------------------------------------------
- -----------------End important values-----------------------
- ------------------------------------------------------------
- ------------------------------------------------------------
- -----------------Start wait func----------------------------
- ------------------------------------------------------------
- local rs = game:GetService("RunService")
- function hwait(num)
- if num == 0 or num == nil then
- rs.Heartbeat:Wait()
- elseif num ~= 0 or num ~= nil then
- rs.Heartbeat:Wait(num)
- end
- end
- ------------------------------------------------------------
- ------------------End wait func----------------------------
- ------------------------------------------------------------
- ------------------------------------------------------------
- ------------------Start Functions :yeetbilly:---------------
- ------------------------------------------------------------
- function part(parent,color,size,cancollide,anchored,name)
- local newpart = Instance.new("Part",parent)
- newpart.Color = color
- newpart.Size = size
- newpart.CanCollide = cancollide
- newpart.Anchored = anchored
- newpart.Name = name
- return newpart
- end
- function decal(parent,face,texture)
- local newdecal = Instance.new("Decal",parent)
- newdecal.Face = face
- newdecal.Texture = texture
- return newdecal
- end
- function motor6d(parent,p0,p1,c0)
- local newmotor6 = Instance.new("Motor6D",parent)
- newmotor6.Part0 = p0
- newmotor6.Part1 = p1
- newmotor6.C0 = c0
- return newmotor6
- end
- function weld(parent,p0,p1,c0)
- local newweld = Instance.new("Weld",parent)
- newweld.Part0 = p0
- newweld.Part1 = p1
- newweld.C0 = c0
- return newweld
- end
- function newsound(id,parent,looped,pitch,volume)
- local sound = Instance.new("Sound",parent)
- sound.SoundId = "rbxassetid://"..id
- sound.Pitch = pitch
- sound.Volume = volume
- sound.Looped = looped
- return sound
- end
- function tween(thing,property,easingstyle,easingdirection,animtime)
- local MoveStyle = Enum.EasingStyle[easingstyle]
- local outorin = Enum.EasingDirection[easingdirection]
- local speed = 1
- if attacking == true then
- speed = 5
- end
- local tweeningInformation = TweenInfo.new(
- animtime/speed,
- MoveStyle,
- outorin,
- 0,
- false,
- 0
- )
- local MoveCF = property
- local tweenanim = game:GetService("TweenService"):Create(thing,tweeningInformation,MoveCF)
- tweenanim:Play()
- end
- function mesh(parent,meshtype,meshid,textureid,scale,offset)
- local m = Instance.new("SpecialMesh",parent)
- m.MeshType = Enum.MeshType[meshtype]
- m.MeshId = "rbxassetid://"..meshid
- m.TextureId = "rbxassetid://"..textureid
- m.Scale = scale
- m.Offset = offset
- return m
- end
- function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
- return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
- end
- function CastProperRay(StartPos, EndPos, Distance, Ignore)
- local DIRECTION = cf.n(StartPos,EndPos).lookVector
- return Raycast(StartPos, DIRECTION, Distance, Ignore)
- end
- New = function(Object, Parent, Name, Data)
- local Object = Instance.new(Object)
- for Index, Value in pairs(Data or {}) do
- Object[Index] = Value
- end
- Object.Parent = Parent
- Object.Name = Name
- return Object
- end
- -------------------------------------------------------------------------
- ----------------------End Functions-------------------------------------
- -------------------------------------------------------------------------
- local sizes = {NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)}
- local trans = { NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)}
- ------------------------------------------------------------
- -----------------Start Weapon Creation----------------------
- ------------------------------------------------------------
- local theme = newsound("690840388",root,true,1,2)
- local skull = Instance.new("Part",ch)
- skull.Anchored = true
- skull.CanCollide = false
- skull.Size = Vector3.new(2.154, 3.227, 3.308)
- local fireparticle = Instance.new("ParticleEmitter",skull)
- fireparticle.LightEmission = 8
- if souls == 0 or souls <10 then
- fireparticle.Color = ColorSequence.new(BrickColor.new("Crimson").Color,BrickColor.new("Really red").Color)
- elseif souls >10 or souls == 10 then
- fireparticle.Color = ColorSequence(BrickColor.new("Gold").Color)
- end
- fireparticle.Texture="http://www.roblox.com/asset/?id=1460745664"
- fireparticle.Lifetime=NumberRange.new(souls,souls)
- fireparticle.Rotation=NumberRange.new(0,360)
- fireparticle.Rate=100
- fireparticle.VelocitySpread = 10000
- fireparticle.Acceleration = Vector3.new(0,85,0)
- fireparticle.Drag = 5
- fireparticle.Speed = NumberRange.new(0.1,5)
- fireparticle.Size=NumberSequence.new(sizes)
- fireparticle.Transparency=NumberSequence.new(trans)
- local mesh = Instance.new("SpecialMesh",skull)
- mesh.MeshId = "rbxassetid://693287745"
- mesh.TextureId = "rbxassetid://693287874"
- coroutine.resume(coroutine.create(function()
- while true do
- hwait()
- sine = sine + chan
- tween(skull,{CFrame = root.CFrame * cf.n(math.random(-4,10),2.5 * math.sin(sine/24),4)},"Quad","Out",speed/3)
- end
- end))
- ------------------------------------------------------------
- -----------------End Weapon Creation------------------------
- ------------------------------------------------------------
- ------------------------------------------------------------
- -----------------Start Damage func--------------------------
- ------------------------------------------------------------
- function collect(plr)
- if plr then
- coroutine.resume(coroutine.create(function()
- for i,v in pairs(plr:GetDescendants()) do
- if v:IsA("BasePart") then
- for i = 1,75 do
- hwait()
- tween(v,{Transparency = 1},"Linear","In",speed/3)
- end
- local soulpart = part(eff,BrickColor.new("Navy blue").Color,Vector3.new(0.5,0.5,0.5),false,true,plr.Name.."'s ".."Soul")
- local att1 = Instance.new("Attachment",soulpart)
- att1.Position = Vector3.new(0, 0.14, -0.18)
- local att2 = Instance.new("Attachment",soulpart)
- att2.Position = Vector3.new(-0.01, -0.14, -0.19)
- local trail = Instance.new("Trail",soulpart)
- trail.Attachment0 = att1
- trail.Attachment1 = att2
- soulpart.Transparency = 1
- trail.Color = ColorSequence.new(BrickColor.new("Dark indigo").Color,BrickColor.new("Navy blue").Color)
- soulpart.CFrame = plr.Parent:FindFirstChild("HumanoidRootPart").CFrame
- for i = 1,75 do
- hwait()
- tween(soulpart,{CFrame = root.CFrame},"Linear","Out",speed/3)
- end
- plr:BreakJoints()
- newsound("1546451566",tor,false,1,3)
- end
- end
- souls = souls + 1
- end))
- end
- end
- ------------------------------------------------------------
- -----------------End Damage func--------------------------
- ------------------------------------------------------------
- ------------------------------------------------------------
- -----------------Start attack functions---------------------
- ------------------------------------------------------------
- function test()
- local tar = Mouse.Target
- if tar ~= nil then
- collect(tar)
- print(tar)
- end
- end
- ------------------------------------------------------------
- -----------------End attack functions---------------------
- ------------------------------------------------------------
- Mouse.KeyDown:Connect(function(k)
- if k == "z" and attacking == false then
- test()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement