Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local FramesPerSecond,EventName = 60 , "Executioner_evt"
- local fwait,Player
- local Players,Keys = game:GetService"Players",{}
- local LocalEvent
- if owner then
- Player = owner
- else -- (I'm not going to do strict search today)
- --while (not owner and script:GetAttribute"User"==nil) and wait(.1)do end
- while script:GetAttribute"User"==nil and wait(.1)do end
- Player = Players:WaitForChild(script:GetAttribute"User")
- end
- script.Parent = Player
- if NLS then
- NLS([[
- local EventName = "Executioner_evt"
- local Player = game:GetService("Players").LocalPlayer
- local Mouse = Player:GetMouse()local RunService = game:GetService("RunService")
- local Event = Player:WaitForChild(EventName)Event:FireServer({Name="Ready"})
- Mouse.KeyDown:Connect(function(k)Event:FireServer({Name="Mouse_KeyDown",Key=k})end)
- Mouse.KeyUp:Connect(function(k)Event:FireServer({Name="Mouse_KeyUp",Key=k})end)
- Event.OnClientEvent:Connect(function(value)
- --write event things here
- end)
- print("Local Ready")
- while RunService.Heartbeat:Wait()and Event.Parent==Player do
- end
- ]],Player:FindFirstChildOfClass("PlayerGui"))
- end
- do
- local FPS , Loss = 1 / FramesPerSecond , false
- local ArtificialHeartBeat = Instance.new("BindableEvent")
- ArtificialHeartBeat.Name="ArtificialHeartBeat"ArtificialHeartBeat:Fire()
- local LF = tick()local tf,f=0,0
- game:service("RunService").Heartbeat:Connect(function(a,b)tf = tf+a
- if tf>=FPS then if Loss then ArtificialHeartBeat:Fire()else
- for i=1,math.floor(tf/FPS)do ArtificialHeartBeat:Fire()end end
- LF ,tf= tick(),0 end end)fwait = function(num:number)if num then
- for i=1,num do ArtificialHeartBeat.Event:Wait()end else ArtificialHeartBeat.Event:Wait()end return true
- end
- end
- LocalEvent = Instance.new("RemoteEvent",Player) LocalEvent.Name = EventName
- LocalEvent.OnServerEvent:Connect(function(P,Elements)
- if P == Player and Elements and Elements.Name then
- if Elements.Name=="Ready" then print("Connection Ready")
- elseif Elements.Name=="Mouse_KeyDown" then Keys[Elements.Key] = 0
- elseif Elements.Name=="Mouse_KeyUp" then Keys[Elements.Key] = nil
- end
- end
- end)
- LocalEvent.OnServerEvent:Wait()
- local Assets = {
- Particle = "rbxassetid://5076152048"
- }
- local Character = Player.Character
- local Root = Character.HumanoidRootPart
- 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
- local TweenService = game:service'TweenService'
- local function CreateTween(Part,Time,T1,T2,Ease,lFunc,Dir)
- local Tween = 0
- if T2 then
- for i,p in pairs(T1)do
- Part[i]=p
- end
- T1 = T2
- end
- local Created = TweenService:Create(Part,TweenInfo.new(Time,Ease or 0,Dir or 0),T1)
- if lFunc then
- Created.Completed:Connect(lFunc)
- end
- return Created
- end
- local function Meshlize(p)p.CastShadow=false
- local mesh=Instance.new("SpecialMesh",p)mesh.Scale = p.Size*1000
- mesh.MeshType="Brick"
- p.Size = Vector3.new()return mesh,p
- end
- local GlobalPart
- local GlobalPartFunc = {
- RenewGlobalPart = function()
- GlobalPart = Instance.new("Part",Character)GlobalPart.Anchored=true GlobalPart.Size=Vector3.new()GlobalPart.Name="Effects"
- GlobalPart.CFrame=CFrame.new(12000,34000,56000)GlobalPart.CanCollide=false GlobalPart.Transparency=1
- end,
- GetRelative = function()
- return -GlobalPart.CFrame.p
- end,
- }
- GlobalPartFunc.RenewGlobalPart()
- spawn(function()
- local FEffect = Instance.new("Part",Character)
- local ParticleAttach
- local function animateparticles(dosomething:bool)
- for i,p in pairs(ParticleAttach)do
- if p.Parent then
- if dosomething then
- p.WorldCFrame = CFrame.Angles(0,math.rad(i/(#ParticleAttach)*360+tick()*90),0)
- *CFrame.new(1.8,0,1.8)+(Root.CFrame.p)
- else
- CreateTween(p,.2,{WorldCFrame = -- math.rad((i/#ParticleAttach)*360+tick()*10)
- CFrame.fromOrientation(0,(tick())%(math.pi*2)+i/#ParticleAttach*math.pi*2,0)
- *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()
- end
- end
- end
- end
- local function putparticles()
- ParticleAttach = {}
- for i=1,4 do
- table.insert(ParticleAttach,Create("Attachment",GlobalPart,{}))
- end
- animateparticles(true)
- for i,p in pairs(ParticleAttach)do
- local C = Color3.new(i%2,i%2,i%2)
- local Particle = Create("ParticleEmitter",p,{LightInfluence=0,LightEmission=(i%2)*8,Texture=Assets.Particle,
- Size=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)}),
- Speed=NumberRange.new(8),Rate=150,Lifetime=NumberRange.new(.8),
- Color=ColorSequence.new({ColorSequenceKeypoint.new(0,C),ColorSequenceKeypoint.new(1,C)})
- ,Squash=NumberSequence.new({NumberSequenceKeypoint.new(0,-1),NumberSequenceKeypoint.new(1,0)})
- })
- end
- end
- putparticles()
- while fwait()do
- if GlobalPart.Parent ~= Character then GlobalPartFunc.RenewGlobalPart()end
- GlobalPart.CFrame=CFrame.new(12000,34000,56000)
- animateparticles(false)
- end
- end)
- print("Server Ready")
Add Comment
Please, Sign In to add comment