Anorack
|
  |
| Joined: 13 Apr 2011 |
| Total Posts: 1751 |
|
|
| 20 May 2016 09:33 PM |
repeat wait() until game.Players local p = game.Players.LocalPlayer c = p.Character h = c:WaitForChild'Humanoid' hp = h.Health blur = game.Lighting.Blur
h.Changed:connect(function() if hp <=100 and hp >= 80 then blur.Size = 0 elseif hp <=79 and hp >= 60 then spawn(function() blur.Size = 1 wait(1.5) blur.Size = 3 wait(1.5) blur.Size = 5 wait(1.5) blur.Size = 3 end) elseif hp <=59 and hp >= 30 then spawn(function() blur.Size = 3 wait(1.5) blur.Size = 6 wait(1.5) blur.Size = 5 wait(1.5) blur.Size = 9 end) elseif hp <=29 and hp >= 1 then spawn(function() blur.Size = 10 wait(1.5) blur.Size = 8 wait(1.5) blur.Size = 13 wait(1.5) blur.Size = 8 end) elseif hp <= 0 and hp >= 0 then blur.Size = 25 end end) |
|
|
| Report Abuse |
|
|
Anorack
|
  |
| Joined: 13 Apr 2011 |
| Total Posts: 1751 |
|
| |
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 20 May 2016 09:59 PM |
Is FilteringEnabled on? also is your Intensity high enough?
|
|
|
| Report Abuse |
|
|
Anorack
|
  |
| Joined: 13 Apr 2011 |
| Total Posts: 1751 |
|
| |
|
Isosta
|
  |
| Joined: 10 May 2015 |
| Total Posts: 14729 |
|
|
| 20 May 2016 10:13 PM |
| bruh what even is this script... |
|
|
| Report Abuse |
|
|
Anorack
|
  |
| Joined: 13 Apr 2011 |
| Total Posts: 1751 |
|
|
| 20 May 2016 10:14 PM |
a script that makes your screen blur after death or at a certain health point
can you read |
|
|
| Report Abuse |
|
|
Anorack
|
  |
| Joined: 13 Apr 2011 |
| Total Posts: 1751 |
|
| |
|
Ik_e
|
  |
| Joined: 27 Oct 2006 |
| Total Posts: 2840 |
|
|
| 20 May 2016 10:36 PM |
| Is blur even in game.lighting |
|
|
| Report Abuse |
|
|
DogeKip
|
  |
| Joined: 06 Mar 2011 |
| Total Posts: 6860 |
|
|
| 20 May 2016 10:54 PM |
I'd suggest you strategically add print statements to determine what is running, i.e. put them where it adds the blur and when an event is called, etc. and then work from there
[Redacted] |
|
|
| Report Abuse |
|
|
|
| 20 May 2016 10:57 PM |
YOU HAVE TO PUT BLUREFFECTS INSIDE THE CURRENTCAMERA IN ORDER TO MAKE THEM LOCAL.
AHHH!
|
|
|
| Report Abuse |
|
|
Anorack
|
  |
| Joined: 13 Apr 2011 |
| Total Posts: 1751 |
|
| |
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
| |
|
Anorack
|
  |
| Joined: 13 Apr 2011 |
| Total Posts: 1751 |
|
|
| 20 May 2016 11:52 PM |
http://wiki.roblox.com/index.php?title=API:Class/Workspace/CurrentCamera
i dont understand what it means tho |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 20 May 2016 11:52 PM |
cam = workspace.CurrentCamera
|
|
|
| Report Abuse |
|
|
Anorack
|
  |
| Joined: 13 Apr 2011 |
| Total Posts: 1751 |
|
|
| 20 May 2016 11:55 PM |
im really tired and confused
where do i put this in the script? |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 20 May 2016 11:58 PM |
cam = Workspace.CurrentCamera blur = Instance.new("Blur",cam) blur.Name = "blur"
|
|
|
| Report Abuse |
|
|
Anorack
|
  |
| Joined: 13 Apr 2011 |
| Total Posts: 1751 |
|
|
| 20 May 2016 11:59 PM |
should i plug it into the top of the script like this?
cam = game.Workspace.CurrentCamera blur = Instance.new("Blur",cam) blur.Name = "blur"
repeat wait() until game.Players local p = game.Players.LocalPlayer c = p.Character h = c:WaitForChild'Humanoid' hp = h.Health blur = game.Lighting.Blur
|
|
|
| Report Abuse |
|
|
Anorack
|
  |
| Joined: 13 Apr 2011 |
| Total Posts: 1751 |
|
| |
|
|
| 21 May 2016 12:18 AM |
You've set hp to humanoid.Health
So hp won't actually change, since it's a variable for an integer (not for the health property) You'll need to manually check hp.Health every time humanoid changes |
|
|
| Report Abuse |
|
|
Anorack
|
  |
| Joined: 13 Apr 2011 |
| Total Posts: 1751 |
|
| |
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 21 May 2016 12:43 AM |
local player = game.Players.LocalPlayer local char = player.Character or player.CharacterAdded:wait() local human = char.Humanoid local blur = game.Lighting.Blur
human.HealthChanged.Changed:connect(function() if human.Health <=100 and human.Health >= 80 then blur.Size = 0 elseif human.Health <=79 and human.Health >= 60 then spawn(function() blur.Size = 1 wait(1.5) blur.Size = 3 wait(1.5) blur.Size = 5 wait(1.5) blur.Size = 3 end) elseif human.Health <=59 and human.Health >= 30 then spawn(function() blur.Size = 3 wait(1.5) blur.Size = 6 wait(1.5) blur.Size = 5 wait(1.5) blur.Size = 9 end) elseif human.Health <=29 and human.Health >= 1 then spawn(function() blur.Size = 10 wait(1.5) blur.Size = 8 wait(1.5) blur.Size = 13 wait(1.5) blur.Size = 8 end) elseif human.Health <= 0 and human.Health >= 0 then blur.Size = 25 end end)
|
|
|
| Report Abuse |
|
|
Anorack
|
  |
| Joined: 13 Apr 2011 |
| Total Posts: 1751 |
|
|
| 21 May 2016 01:03 AM |
where do i place this script?
in a local script or just script? and also where?
just workspace? |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
| |
|
Anorack
|
  |
| Joined: 13 Apr 2011 |
| Total Posts: 1751 |
|
| |
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 21 May 2016 01:16 AM |
well debug your script them
|
|
|
| Report Abuse |
|
|