generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: script not working ---- no errors shown

Previous Thread :: Next Thread 
Anorack is online. 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 is online. Anorack
Joined: 13 Apr 2011
Total Posts: 1751
20 May 2016 09:45 PM
HALP ME
Report Abuse
Soybeen is not online. 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 is online. Anorack
Joined: 13 Apr 2011
Total Posts: 1751
20 May 2016 10:11 PM
everything is on
Report Abuse
Isosta is not online. Isosta
Joined: 10 May 2015
Total Posts: 14729
20 May 2016 10:13 PM
bruh what even is this script...
Report Abuse
Anorack is online. 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 is online. Anorack
Joined: 13 Apr 2011
Total Posts: 1751
20 May 2016 10:27 PM
help me
Report Abuse
Ik_e is not online. Ik_e
Joined: 27 Oct 2006
Total Posts: 2840
20 May 2016 10:36 PM
Is blur even in game.lighting
Report Abuse
DogeKip is not online. 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
exoSentinel is not online. exoSentinel
Joined: 18 Mar 2012
Total Posts: 2795
20 May 2016 10:57 PM
YOU HAVE TO PUT BLUREFFECTS INSIDE THE CURRENTCAMERA IN ORDER TO MAKE THEM LOCAL.

AHHH!


Report Abuse
Anorack is online. Anorack
Joined: 13 Apr 2011
Total Posts: 1751
20 May 2016 11:24 PM
where is currentcamera
Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
20 May 2016 11:24 PM
research on the wiki


Report Abuse
Anorack is online. 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 is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
20 May 2016 11:52 PM
cam = workspace.CurrentCamera


Report Abuse
Anorack is online. 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 is not online. 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 is online. 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 is online. Anorack
Joined: 13 Apr 2011
Total Posts: 1751
21 May 2016 12:06 AM
halp
Report Abuse
0supadude0 is not online. 0supadude0
Joined: 11 Aug 2010
Total Posts: 649
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 is online. Anorack
Joined: 13 Apr 2011
Total Posts: 1751
21 May 2016 12:20 AM
how do i do that
Report Abuse
TimeTicks is not online. 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 is online. 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 is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
21 May 2016 01:04 AM
local script in playergui


Report Abuse
Anorack is online. Anorack
Joined: 13 Apr 2011
Total Posts: 1751
21 May 2016 01:11 AM
it's not working
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
21 May 2016 01:16 AM
well debug your script them


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image