Advertisement
squidingtin

FTF Feature script

Mar 23rd, 2019
660
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local RBX = "rbxassetid://"
  2. local Player = game.Players.LocalPlayer
  3.     local character = Player.Character
  4.         local GUI = Player.PlayerGui.MenusScreenGui.MainMenuWindow.Body.InfoFrame.MuteBGMusicButton
  5.         local backgroundMusicSound = character:WaitForChild("BackgroundMusicLocalScript"):WaitForChild("Sound")
  6.     local Module = Player.TempPlayerStatsModule
  7.         local Crawl = Module.DisableCrawl
  8.         local Beast = Module.IsBeast
  9.         local BeastActive = false
  10.         local Speed = Module.NormalWalkSpeed
  11.     local PlayerNames = Player.PlayerGui.ScreenGui.PlayerNamesFrame
  12.         function onKeyPress(inputObject, gameProcessedEvent)
  13.             if inputObject.KeyCode == Enum.KeyCode.LeftShift then
  14.                 if Beast.Value == true then
  15.                     Crawl.Value = false
  16.                     Speed.Value = 16
  17.                 else
  18.                     local Beast = Module.IsBeast
  19.                 end
  20.             elseif inputObject.KeyCode == Enum.KeyCode.Tab then
  21.                 if PlayerNames.Visible == false then
  22.                     PlayerNames.Visible = true
  23.                 else
  24.                     PlayerNames.Visible = false
  25.                 end
  26.             elseif inputObject.KeyCode == Enum.KeyCode.LeftControl then
  27.                 if backgroundMusicSound then
  28.                     wait(.1)
  29.                     if backgroundMusicSound.IsPlaying then
  30.                         backgroundMusicSound:Pause()
  31.                         GUI.Image = RBX.."2973636435"
  32.                     else
  33.                         backgroundMusicSound:Resume()
  34.                         GUI.Image = RBX.."2973636234"
  35.                     end
  36.                 end
  37.             end
  38.         end
  39. printoutput("This script was made by Squid#6245")
  40. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement