Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local P=game:GetService("Players").LocalPlayer script.Parent=P:FindFirstChildOfClass("PlayerScripts")local PL=P
- local C=workspace.CurrentCamera local debri=function(Item,Ltime)game:GetService("Debris"):AddItem(Item,Ltime)end
- local function so(Id,Volume,Parent,spd)if PL:FindFirstChild("Sound")then if PL.Sound:FindFirstChildOfClass("Sound")==nil then Instance.new("Sound",PL.Sound)end local smo=PL.Sound:Clone()local e=smo:FindFirstChildOfClass("Sound")e.SoundId=Id e.Volume=Volume if spd~=nil then e.PlaybackSpeed=spd e:Play()e.Parent=Parent debri(smo,7)end else local m=Instance.new("Model",PL)m.Name="Sound"Instance.new("Sound",m)local smo=m:Clone()local e=smo:FindFirstChildOfClass("Sound")e.SoundId=Id e.Volume=Volume e.Parent=Parent if spd~=nil then e.PlaybackSpeed=spd debri(smo,7)end end end
- local Bloom=Instance.new("BloomEffect",C)Bloom.Size=56 Bloom.Intensity=.55 Bloom.Threshold=.9
- local Blur=Instance.new("BlurEffect",C)Blur.Size=4
- --local ClrC=Instance.new("ColorCorrectionEffect",C)ClrC.TintColor=Color3.fromRGB(255,245,235)ClrC.Brightness=.05 ClrC.Contrast=.07 --ClrC.Saturation=.1
- local SunRay=Instance.new("SunRaysEffect",C)
- local OldP=C.CoordinateFrame BlE=0 local Walk=false local OldF=C.Focus local Jump=0
- local EffectBlock=Instance.new("Part",C)EffectBlock.Anchored=true EffectBlock.Size=Vector3.new()EffectBlock.Transparency=1
- local Position=Instance.new("Attachment",EffectBlock)Position.Position=Vector3.new(0,-10000,0)
- local GrassEFC=Instance.new("ParticleEmitter",Position)GrassEFC.Transparency=NumberSequence.new(0,1)GrassEFC.LightEmission=.5 GrassEFC.Texture="rbxassetid://179577916"
- GrassEFC.Rate=1000 GrassEFC.Lifetime=NumberRange.new(.5,1)GrassEFC.Rotation=NumberRange.new(0,360)GrassEFC.RotSpeed=NumberRange.new(-180,180)GrassEFC.Speed=NumberRange.new(0,5)GrassEFC.SpreadAngle=Vector2.new(360,360)
- game:GetService("RunService").RenderStepped:connect(function()
- if C:FindFirstChildOfClass("BloomEffect")==nil then local Bloom=Instance.new("BloomEffect",C)Bloom.Size=56 Bloom.Intensity=.55 Bloom.Threshold=.9 end
- if C:FindFirstChildOfClass("BlurEffect")==nil then Blur=Instance.new("BlurEffect",C)Blur.Size=4 end
- --if C:FindFirstChildOfClass("ColorCorrectionEffect")==nil then local --ClrC=Instance.new("ColorCorrectionEffect",C)ClrC.TintColor=Color3.fromRGB(255,245,235)ClrC.Brightness=.05 ClrC.Contrast=.07 --ClrC.Saturation=.1 end
- if C:FindFirstChildOfClass("SunRaysEffect")==nil then Instance.new("SunRaysEffect",C)end
- local BlE=BlE +(C.CoordinateFrame.p-OldP.p).magnitude*1.5
- if BlE>0 then BlE=BlE-.01 else BlE=0 end
- Blur.Size=4+BlE
- if(OldF.p-C.Focus.p).magnitude>.02 then Walk=true else Walk=false end
- OldF=C.Focus
- OldP=C.CoordinateFrame
- if P.Character then
- if P.Character:FindFirstChild("HumanoidRootPart")then
- local tar,pos =workspace:FindPartOnRay(Ray.new(P.Character.HumanoidRootPart.Position,(Vector3.new(0,0,0)-Vector3.new(0,1,0)).unit*4 ),P.Character,false,false)
- if tar~=nil then
- if Jump>60 then so("rbxassetid://220025741",1,C,2) end
- Jump=0
- EffectBlock.CFrame=CFrame.new(pos)+Vector3.new(0,10000,0)
- if Walk and tar.Material==Enum.Material.Grass then
- GrassEFC.Enabled=true
- else
- GrassEFC.Enabled=false
- end
- else
- GrassEFC.Enabled=false
- Jump=Jump+1
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement