tomonaoboys

incomplete

Nov 19th, 2021 (edited)
614
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.91 KB | None | 0 0
  1. local FramesPerSecond,EventName = 60 , "Executioner_evt"
  2.  
  3. local fwait,Player
  4. local Players,Keys = game:GetService"Players",{}
  5. local LocalEvent
  6.  
  7. if owner then
  8.     Player = owner
  9. else -- (I'm not going to do strict search today)
  10.     --while (not owner and script:GetAttribute"User"==nil) and wait(.1)do end
  11.     while script:GetAttribute"User"==nil and wait(.1)do end
  12.     Player = Players:WaitForChild(script:GetAttribute"User")
  13. end
  14.  
  15. script.Parent = Player
  16.  
  17. if NLS then
  18.     NLS([[
  19. local EventName = "Executioner_evt"
  20. local Player = game:GetService("Players").LocalPlayer
  21. local Mouse = Player:GetMouse()local RunService = game:GetService("RunService")
  22. local Event = Player:WaitForChild(EventName)Event:FireServer({Name="Ready"})
  23. Mouse.KeyDown:Connect(function(k)Event:FireServer({Name="Mouse_KeyDown",Key=k})end)
  24. Mouse.KeyUp:Connect(function(k)Event:FireServer({Name="Mouse_KeyUp",Key=k})end)
  25. Event.OnClientEvent:Connect(function(value)
  26.     --write event things here
  27. end)
  28. print("Local Ready")
  29. while RunService.Heartbeat:Wait()and Event.Parent==Player do
  30.  
  31. end
  32.     ]],Player:FindFirstChildOfClass("PlayerGui"))
  33. end
  34. do
  35.     local FPS , Loss = 1 / FramesPerSecond , false
  36.     local ArtificialHeartBeat = Instance.new("BindableEvent")
  37.     ArtificialHeartBeat.Name="ArtificialHeartBeat"ArtificialHeartBeat:Fire()
  38.     local LF = tick()local tf,f=0,0
  39.     game:service("RunService").Heartbeat:Connect(function(a,b)tf = tf+a
  40.     if tf>=FPS then if Loss then ArtificialHeartBeat:Fire()else
  41.     for i=1,math.floor(tf/FPS)do ArtificialHeartBeat:Fire()end end
  42.     LF ,tf= tick(),0 end end)fwait = function(num:number)if num then
  43.         for i=1,num do ArtificialHeartBeat.Event:Wait()end else ArtificialHeartBeat.Event:Wait()end return true
  44.     end
  45. end
  46. LocalEvent = Instance.new("RemoteEvent",Player) LocalEvent.Name = EventName
  47. LocalEvent.OnServerEvent:Connect(function(P,Elements)
  48.     if P == Player and Elements and Elements.Name then
  49.         if Elements.Name=="Ready" then print("Connection Ready")
  50.         elseif Elements.Name=="Mouse_KeyDown" then Keys[Elements.Key] = 0
  51.         elseif Elements.Name=="Mouse_KeyUp" then Keys[Elements.Key] = nil
  52.         end
  53.     end
  54. end)
  55. LocalEvent.OnServerEvent:Wait()
  56.  
  57. local Assets = {
  58.     Particle = "rbxassetid://5076152048"
  59. }
  60. local Character = Player.Character
  61. local Root = Character.HumanoidRootPart
  62.  
  63. local function Create(c,p,s)local obj=Instance.new(c,p)for i,p in pairs(s)do obj[i] = p end;return obj;end
  64. local TweenService = game:service'TweenService'
  65. local function CreateTween(Part,Time,T1,T2,Ease,lFunc,Dir)
  66.     local Tween = 0
  67.     if T2 then
  68.         for i,p in pairs(T1)do
  69.             Part[i]=p
  70.         end
  71.         T1 = T2
  72.     end
  73.     local Created = TweenService:Create(Part,TweenInfo.new(Time,Ease or 0,Dir or 0),T1)
  74.     if lFunc then
  75.         Created.Completed:Connect(lFunc)
  76.     end
  77.     return Created
  78. end
  79. local function Meshlize(p)p.CastShadow=false
  80.     local mesh=Instance.new("SpecialMesh",p)mesh.Scale = p.Size*1000
  81.     mesh.MeshType="Brick"
  82.     p.Size = Vector3.new()return mesh,p
  83. end
  84. local GlobalPart
  85. local GlobalPartFunc = {
  86.     RenewGlobalPart = function()
  87.         GlobalPart = Instance.new("Part",Character)GlobalPart.Anchored=true GlobalPart.Size=Vector3.new()GlobalPart.Name="Effects"
  88.         GlobalPart.CFrame=CFrame.new(12000,34000,56000)GlobalPart.CanCollide=false GlobalPart.Transparency=1
  89.     end,
  90.     GetRelative = function()
  91.         return -GlobalPart.CFrame.p
  92.     end,
  93. }
  94. GlobalPartFunc.RenewGlobalPart()
  95.  
  96.  
  97. spawn(function()
  98.     local FEffect = Instance.new("Part",Character)
  99.     local ParticleAttach
  100.     local function animateparticles(dosomething:bool)
  101.         for i,p in pairs(ParticleAttach)do
  102.             if p.Parent then
  103.                 if dosomething then
  104.                     p.WorldCFrame = CFrame.Angles(0,math.rad(i/(#ParticleAttach)*360+tick()*90),0)
  105.                         *CFrame.new(1.8,0,1.8)+(Root.CFrame.p)
  106.                 else
  107.                     CreateTween(p,.2,{WorldCFrame = -- math.rad((i/#ParticleAttach)*360+tick()*10)
  108.                         CFrame.fromOrientation(0,(tick())%(math.pi*2)+i/#ParticleAttach*math.pi*2,0)
  109.                         *CFrame.new(1.8,0,1.8)*CFrame.Angles(.46,.25,0)+(Root.CFrame.p-Vector3.new(0,3,0))},nil,4,nil,1):Play()
  110.                 end
  111.             end
  112.         end
  113.     end
  114.     local function putparticles()
  115.         ParticleAttach = {}
  116.         for i=1,4 do
  117.             table.insert(ParticleAttach,Create("Attachment",GlobalPart,{}))
  118.         end
  119.         animateparticles(true)
  120.        
  121.         for i,p in pairs(ParticleAttach)do
  122.             local C = Color3.new(i%2,i%2,i%2)
  123.             local Particle = Create("ParticleEmitter",p,{LightInfluence=0,LightEmission=(i%2)*8,Texture=Assets.Particle,
  124.                 Size=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)}),
  125.                 Speed=NumberRange.new(8),Rate=150,Lifetime=NumberRange.new(.8),
  126.                 Color=ColorSequence.new({ColorSequenceKeypoint.new(0,C),ColorSequenceKeypoint.new(1,C)})
  127.                 ,Squash=NumberSequence.new({NumberSequenceKeypoint.new(0,-1),NumberSequenceKeypoint.new(1,0)})
  128.             })
  129.         end
  130.     end
  131.    
  132.     putparticles()
  133.     while fwait()do
  134.         if GlobalPart.Parent ~= Character then GlobalPartFunc.RenewGlobalPart()end
  135.         GlobalPart.CFrame=CFrame.new(12000,34000,56000)
  136.         animateparticles(false)
  137.     end
  138. end)
  139.  
  140. print("Server Ready")
  141.  
Add Comment
Please, Sign In to add comment