Advertisement
tomonaoboys

I want to make something real effect

Dec 18th, 2017
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.24 KB | None | 0 0
  1. local P=game:GetService("Players").LocalPlayer script.Parent=P:FindFirstChildOfClass("PlayerScripts")local PL=P
  2. local C=workspace.CurrentCamera local debri=function(Item,Ltime)game:GetService("Debris"):AddItem(Item,Ltime)end
  3. 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
  4. local Bloom=Instance.new("BloomEffect",C)Bloom.Size=56 Bloom.Intensity=.55 Bloom.Threshold=.9
  5. local Blur=Instance.new("BlurEffect",C)Blur.Size=4
  6. --local ClrC=Instance.new("ColorCorrectionEffect",C)ClrC.TintColor=Color3.fromRGB(255,245,235)ClrC.Brightness=.05 ClrC.Contrast=.07 --ClrC.Saturation=.1
  7. local SunRay=Instance.new("SunRaysEffect",C)
  8. local OldP=C.CoordinateFrame BlE=0 local Walk=false local OldF=C.Focus local Jump=0
  9. local EffectBlock=Instance.new("Part",C)EffectBlock.Anchored=true EffectBlock.Size=Vector3.new()EffectBlock.Transparency=1
  10. local Position=Instance.new("Attachment",EffectBlock)Position.Position=Vector3.new(0,-10000,0)
  11. local GrassEFC=Instance.new("ParticleEmitter",Position)GrassEFC.Transparency=NumberSequence.new(0,1)GrassEFC.LightEmission=.5 GrassEFC.Texture="rbxassetid://179577916"
  12. 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)
  13. game:GetService("RunService").RenderStepped:connect(function()
  14.     if C:FindFirstChildOfClass("BloomEffect")==nil then local Bloom=Instance.new("BloomEffect",C)Bloom.Size=56 Bloom.Intensity=.55 Bloom.Threshold=.9 end
  15.     if C:FindFirstChildOfClass("BlurEffect")==nil then Blur=Instance.new("BlurEffect",C)Blur.Size=4 end
  16.     --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
  17.     if C:FindFirstChildOfClass("SunRaysEffect")==nil then Instance.new("SunRaysEffect",C)end
  18.     local BlE=BlE +(C.CoordinateFrame.p-OldP.p).magnitude*1.5
  19.     if BlE>0 then BlE=BlE-.01 else BlE=0 end
  20.     Blur.Size=4+BlE
  21.     if(OldF.p-C.Focus.p).magnitude>.02 then Walk=true else Walk=false end
  22.     OldF=C.Focus
  23.     OldP=C.CoordinateFrame
  24.     if P.Character then
  25.         if P.Character:FindFirstChild("HumanoidRootPart")then
  26.             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)
  27.             if tar~=nil then
  28.                 if Jump>60 then so("rbxassetid://220025741",1,C,2) end
  29.                 Jump=0
  30.                 EffectBlock.CFrame=CFrame.new(pos)+Vector3.new(0,10000,0)
  31.                 if Walk and tar.Material==Enum.Material.Grass then
  32.                     GrassEFC.Enabled=true
  33.                 else
  34.                     GrassEFC.Enabled=false
  35.                 end
  36.             else
  37.                 GrassEFC.Enabled=false
  38.                 Jump=Jump+1
  39.             end
  40.         end
  41.     end
  42. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement