Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- ________ ___ ___ ________
- -- |\ ____\|\ \ / /|\_____ \
- -- \ \ \___|\ \ \ / / /\|___/ /|
- -- \ \ \ \ \ \/ / / / / /
- -- \ \ \____\ \ / / / / /
- -- \ \_______\ \__/ / /__/ /
- -- \|_______|\|__|/ |__|/
- --
- --
- --
- -- ________ _________ ___ ___ ________ ___ ________ ________
- -- |\ ____\|\___ ___\\ \|\ \|\ ___ \|\ \|\ __ \|\ ____\
- -- \ \ \___|\|___ \ \_\ \ \\\ \ \ \_|\ \ \ \ \ \|\ \ \ \___|_
- -- \ \_____ \ \ \ \ \ \ \\\ \ \ \ \\ \ \ \ \ \\\ \ \_____ \
- -- \|____|\ \ \ \ \ \ \ \\\ \ \ \_\\ \ \ \ \ \\\ \|____|\ \
- -- ____\_\ \ \ \__\ \ \_______\ \_______\ \__\ \_______\____\_\ \
- -- |\_________\ \|__| \|_______|\|_______|\|__|\|_______|\_________\
- -- \|_________| \|_________|
- -- Made by CV7 Studios, a.k.a @CobraCXC. https://www.youtube.com/@TeamCV7
- -- Put this code inside a LocalScript of the Play button
- local playButton = script.Parent
- local frame = playButton.Parent
- playButton.MouseButton1Click:Connect(function()
- local startPosition = frame.Position
- local endPosition = UDim2.new(-1, 0, startPosition.Y.Scale, startPosition.Y.Offset) -- Moves all the way out left
- -- Disable player movement while in menu
- game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
- -- Move out animation before destroying
- local moveInfo = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false)
- local moveTween = game:GetService("TweenService"):Create(frame, moveInfo, {Position = endPosition})
- moveTween:Play()
- -- Fade out and disappear animation
- wait(1) -- Wait for 1 second (same duration as the move animation)
- frame:Destroy() -- This will fade out and then disappear as it's being destroyed
- -- Remove blur effect after frame is destroyed
- wait(0.5) -- Wait for 1 second ahead
- -- Access the BlurEffect in Lighting and disable it
- game:GetService("Lighting").Blur.Enabled = false
- -- Enable player movement and camera control after script is finished
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16 -- Reset jump power to default
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16 -- Reset walk speed to default
- end)
- -- Play button script for GUIs.
- -- Put this as a child to the selected Play Button.
- -- Also put a BlurEffect in lightning.
- -- Note: Please do not rip this off and claim it as your own.
- -- Thank You for using our Script!
Advertisement
Comments
-
Comment was deleted
-
- it wont let me walk after pressing the button
-
- I'm very late but u can just change the script then you should be able to walk
Add Comment
Please, Sign In to add comment
Advertisement