Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Im Trying to add a cool blur when a player enters a portal but my script wont work?

I know i could use tweening but im not good at using tweening

local newqui = plr.PlayerGui.Gui

game.Players.PlayerAdded:Connect(function(plr)
	script.Parent.Touched:connect(function(hit)
		 if hit.Parent:FindFirstChild("Humanoid") then
					    newqui.Frame.BackgroundTranseparency = 0.09
                        wait(1.01)
			            newqui.Frame.BackgroundTranseparency =  0.8
                        wait(1.01)
			            newqui.Frame.BackgroundTransparency =  0.7
                        wait(1.01)
			            newqui.Frame.BackgroundTransparency =  0.6
			            wait(1.01)
			            newqui.Frame.BackgroundTransparency =  0.5
			            wait(1.01)
			            newqui.Frame.BackgroundTransparency =  0.4
			            wait(1.01)
			            newqui.Frame.BackgroundTransparency =  0.3
			            wait(1.01)
			            newqui.Frame.BackgroundTransparency =  0.2
			            wait(1.01)
			            newqui.Frame.BackgroundTransparency =  0.1
			            wait(1.01)
			            newqui.Frame.BackgroundTransparency =  0
			            wait(3)
			            newqui.Frame.BackgroundTransparency =  1
			            wait(1.01)
			            newqui.Frame.BackgroundTransparency =  0.1
			            wait(1.01)
			            newqui.Frame.BackgroundTransparency =  0.2
			            wait(1.01)
			            newqui.Frame.BackgroundTransparency =  0.3
			            wait(1.01)
			            newqui.Frame.BackgroundTransparency =  0.4
			            wait(1.01)
			            newqui.Frame.BackgroundTransparency =  0.5
			            wait(1.01)
			            newqui.Frame.BackgroundTransparency =  0.6
			            wait(1.01)
			            newqui.Frame.BackgroundTransparency =  0.7
			            wait(1.01)
			            newqui.Frame.BackgroundTransparency =  0.8
			            wait(1.01)
			            newqui.Frame.BackgroundTransparency =  0.9
			            wait(1.01)
                        newqui.Frame.BackgroundTransparency =  1

 end
end)
end)

4 comments

0

i just use the code i learned

0

im new to lua

0

please please please please please learn tweenservice

0

dude, just please leran tweenservice, it really isnt that hard

2 answers

✓ Accepted answer

Just fire a Remote Event to a local script and in the local script create a Blur Effect in Lighting.

4 comments

0

And you could use a for loop to increase/decrease the intensity.

0

I also suggest learn to script before you start making stuff. Watch some tutorials. I suggest AlvinBlox for beginners.

0

Thanks

0

ill try to find him on yt

local newqui = plr.PlayerGui.Gui

game.Players.PlayerAdded:Connect(function(plr) script.Parent.Touched:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then for x = 1,100,1 do newqui.Frame.BackgroundTranseparency = x /100 wait(1.01)

end for x = 100,1,-1 do newqui.Frame.BackgroundTranseparency = x /100 wait(1.01)

end end) end)

2 comments

0

Thanks for answering

0

Thanks

This discussion is preserved as it was. New answers, comments, and votes are closed.