Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How to make a jumpscare with some other effects and death screen?

Asked by 7 years ago
Edited 7 years ago

I'm trying to make an SCP game, so when the "SCP" catches you, he will jumpscare and kill you aswell, then, a death screen appears.

I want to make the death screen image slide from up to down and fade in the same time. Now for the jumpscare.

It will be a "custom animation" I think? It grabs you and crushes you.

The "effects": - When he's close, your screen becomes more and more blurry; - You can see some shadows coming out of his body.

Thanks for answering! :D

0
Np! DaCrazyDev 444 — 7y

1 answer

Log in to vote
1
Answered by 7 years ago
Edited 7 years ago

You want it to slide from the bottom of the screen where it isn't visible, up to the center? Easy enough! We use something called Tween to do this. I had no idea what it is, when I was at your level too! But it's very easy and good.

IMPORTANT!

Make the original frame or imageframe position {0,0,-1,0} or this will not work.

Here's how to tween, this seems more of a request than a question, but I like to help, because then you learn for next time.

Let's start with tweening

--LocalScript!

local player = game.Players.LocalPlayer

function Tween()
    local YourGui = player.PlayerGui.GUINAMEHERE! -- change GUINAMEHERE! to what your GUI is         called.
    local YourFrame = YourGui.YOURFRAMENAMEHERE -- [[change YOURFRAMENAMEHERE to the name    of your frame in your GUI--]]

    YourFrame:TweenPosition(UDim2.new(0,    0,  0,  0))
end

Now, we must link the function to make it play, so let's do that when the player dies.


player.CharacterAdded:connect(function(char) char.Humanoid.Died:connect(function() Tween() end) end)

Hope I helped, good day!

0
It would be nice if you could make a button where it says respawn and you respawn TheCoolRobloxian4 20 — 7y
1
But it works right? Please accept my answer! =D DaCrazyDev 444 — 7y
1
And ask that next if you want, I can do that EASILY man, already answered 3 questions for you even though you're requesting and that's not allowed, =p DaCrazyDev 444 — 7y
0
When I die, it won't load up, or maybe I did something rlly wrong xD TheCoolRobloxian4 20 — 7y
Ad

Answer this question