|
| 07 Nov 2016 12:01 PM |
How would i do a local blur effect for my intro?
-- IBlue xx |
|
|
| Report Abuse |
|
|
|
| 07 Nov 2016 12:02 PM |
Put a BluffEffect Instance into the players CurrentCamera
|
|
|
| Report Abuse |
|
|
|
| 07 Nov 2016 12:04 PM |
How would i do this on enter? Im not the best at finding people in the workspace.
-- IBlue xx |
|
|
| Report Abuse |
|
|
|
| 07 Nov 2016 12:07 PM |
Im trying to figure it out now.
http://wiki.roblox.com/index.php?title=API:Class/Workspace/CurrentCamera
http://wiki.roblox.com/index.php?title=API:Class/BlurEffect
-- IBlue xx |
|
|
| Report Abuse |
|
|
SkyIess
|
  |
| Joined: 22 Mar 2014 |
| Total Posts: 124 |
|
|
| 07 Nov 2016 12:09 PM |
Put this in a local script in startergui or a place that local scripts like. ;)
game.Players.PlayerAdded:connect(function(player) -- This makes it if they join player.CharacterAdded:connect(function(character) -- This makes it when they are respawned/killed (you can remove this) local Blur = Instance.new("BlurEffect", game.Workspace.CurrentCamera) --Adds the blur Blur.Size = 5 --Size of blur Blur.Name = "Blurry" -- Name of blur end) end)
|
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 07 Nov 2016 12:09 PM |
player = game.Players.LocalPlayer blur = Instance.new("BlurEffect",workspace.CurrentCamera) blur.Size = 10 -- or something
|
|
|
| Report Abuse |
|
|
|
| 07 Nov 2016 12:14 PM |
game.Players.PlayerAdded:connect(function(player) local Blur = Instance.new("BlurEffect", game.Workspace.CurrentCamera) Blur.Size = 100 Blur.Name = "Blurry" end)
This isn't working.
-- IBlue xx |
|
|
| Report Abuse |
|
|
|
| 07 Nov 2016 12:15 PM |
Oh it worked now?... idk why it didnt before. Thankyou!
-- IBlue xx |
|
|
| Report Abuse |
|
|
|
| 07 Nov 2016 12:23 PM |
This only works in studio, and only if it is in a script in workspace.
game.Players.PlayerAdded:connect(function(player) local Blur = Instance.new("BlurEffect", game.Workspace.CurrentCamera) Blur.Size = 24 Blur.Name = "Blurry" wait(6) while true do wait() Blur.Size = Blur.Size -1 end end)
-- IBlue xx |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 07 Nov 2016 12:26 PM |
Make sure you're waiting until the camera exists
|
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 07 Nov 2016 12:28 PM |
Oh, no, you can't use a server script. You have to use a local script to get the camera.
|
|
|
| Report Abuse |
|
|
|
| 07 Nov 2016 12:29 PM |
A local script in starter gui didnt work.
-- IBlue xx |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 07 Nov 2016 12:34 PM |
If FilteringEnabled is on, I'd bet you could put these effects in the lighting per-player. Tell me if this works as a server script in the StarterGui
game.Players.PlayerAdded:connect(function(player) local blur = Instance.new("BlurEffect",game.Lighting) blur.Size = 24 wait(6) for i = 1,blur.Size do blur.Size = blur.Size-1 wait() end end)
|
|
|
| Report Abuse |
|
|
|
| 07 Nov 2016 12:38 PM |
It did not work with the script in starter gui but it did with it in workspace and also worked online whether it shows it to all is unknown.
-- IBlue xx |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 07 Nov 2016 12:38 PM |
FE and store the effect in lighting.
|
|
|
| Report Abuse |
|
|
|
| 07 Nov 2016 12:39 PM |
That's what we done. Thanks all for the help!
-- IBlue xx |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 07 Nov 2016 12:40 PM |
@Blue that's dangerous because every time a player joins it will put a new blur effect in the lighting to be seen by everyone. This did not work in the StarterGui? I find that fascinating.
|
|
|
| Report Abuse |
|
|
|
| 07 Nov 2016 12:42 PM |
No it didnt work in workspace :/.
-- IBlue xx |
|
|
| Report Abuse |
|
|
| |
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 07 Nov 2016 12:44 PM |
Maybe in ReplicatedFirst just put a local script that clones the BlurEffect to the player's currentcamera
|
|
|
| Report Abuse |
|
|
|
| 07 Nov 2016 12:49 PM |
This isn't working.
game.Players.PlayerAdded:connect(function(player) local blur = game.ServerStorage.Blur:Clone() blur.Parent = game.Workspace.CurrentCamera wait(6) for i = 1,blur.Size do blur.Size = blur.Size-1 wait() end end)
-- IBlue xx |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 07 Nov 2016 12:49 PM |
@Soybeen. You shouldn't be storing anything in currentcamera at all.
@OP Like I said, use FE. store the effect in lighting beforehand, then use a local script to change the effect. This local script will be in replicatedfirst
|
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 07 Nov 2016 12:50 PM |
I have a local script in ReplicatedFirst that makes the intro for this game: https://www.roblox.com/games/176782686/DUSK-Survival-SEE-DESCRIPTION
The blur code is in here somewhere, just search around for it. I would for you, but, it might be cool for you to dig.
game.ReplicatedFirst:RemoveDefaultLoadingScreen() local player = game:GetService("Players").LocalPlayer local character = player.Character or player.CharacterAdded:wait() LoadingGUI = script.Parent.LoadingGUI LoadingGUI.Parent = game.Players.LocalPlayer:WaitForChild'PlayerGui' game:GetService('StarterGui'):SetCoreGuiEnabled(Enum.CoreGuiType.All, false) local ContentProvider = game:GetService("ContentProvider")
pcall(function() local starterGui = game:GetService('StarterGui') starterGui:SetCore("TopbarEnabled", false) end)
local function LoadAssets(AssetList)
for _, AssetId in pairs(AssetList) do ContentProvider:Preload("http://www.roblox.com/asset/?id=" .. AssetId) wait() end end LoadAssets({ 430102025, -- Training Text 430100476, -- Sky Text 430087793, -- Autumn Islands 430073058, -- DuskLogo1 })
function SetupCamera() cam = game.Workspace.CurrentCamera cam.CameraType = "Scriptable" cam.Co############### CFrame.new(127.974091, 22###########6.4650726, 0.0558638796, -0#############.979048848, -0, 0.980580151, 0.############0.998438418, -0.0109559763, 0.054779008) blur = Instance.new("BlurEffect",cam) blur.Size = 24 wait() LoadingGUI.IntroMusic:Play() LoadingGUI.Nature:Play() for i = 1,100 do wait(.01) LoadingGUI.Background.LogoText.ImageTransparency = LoadingGUI.Background.LogoText.ImageTransparency - .01
end wait(1) for i = 1,24 do
LoadingGUI.Background.LogoText.ImageTransparency = LoadingGUI.Background.LogoText.ImageTransparency + .0417 wait(.0417) end for i = 1,24 do blur.Size = blur.Size - 1 wait(.05) end local step = 1 player.PlayerGui.Friends.ScrollingFrame:TweenPosition(UDim2.new(0,0,0,50),'Out','Sine',1.5,true) player.PlayerGui.Friends.GetFriends.Disabled = false for i,v in pairs(player.PlayerGui.Teleport.Frame:GetChildren()) do v:TweenPosition(v.Position+UDim2.new(-1, 0, 0, 0), 'Out', 'Back', 1.5, true) player.PlayerGui.Teleport.Click.Hover:Play() wait(.3) end --game.Players.LocalPlayer.CameraMode = "LockFirstPerson" --[[mouse = game.Players.LocalPlayer:GetMouse() game:GetService("UserInputService").MouseIconEnabled = false ]]--
end player.CharacterAdded:connect(function(character) character:WaitForChild("Humanoid") wait() end) SetupCamera()
|
|
|
| Report Abuse |
|
|
|
| 07 Nov 2016 12:53 PM |
blur = Instance.new("BlurEffect",cam) blur.Size = 24 wait()
-- IBlue xx |
|
|
| Report Abuse |
|
|
|
| 07 Nov 2016 01:17 PM |
I've given up with the blur.
-- IBlue xx |
|
|
| Report Abuse |
|
|