Sign in to continue
or
By using Video Candy, you agree to our Terms of Use and Privacy Policy.
Forgot password?
Please enter your email to reset your password. You will receive letter with the password reset link.
Roblox Tongue Battles Script
Please check your email, thank you.
Letter with the password reset link was successfully sent to
Video editorMerge videosCompress videoTrim video

Roblox Tongue Battles - Script

-- Tongue settings local tonguePart = script.Parent local tongueGrowthSpeed = 0.1 local tongueRetractSpeed = 0.1 local maxTongueLength = 10

local function growTongue() if gameEnabled then tonguePart.Size = Vector3.new(tonguePart.Size.X, tonguePart.Size.Y, tonguePart.Size.Z + tongueGrowthSpeed) local tongueLength = tonguePart.Size.Z if tongueLength > maxTongueLength then tonguePart.Size = Vector3.new(tonguePart.Size.X, tonguePart.Size.Y, maxTongueLength) end updateLeaderboard() end end

local function retractTongue() if gameEnabled then tonguePart.Size = Vector3.new(tonguePart.Size.X, tonguePart.Size.Y, tonguePart.Size.Z - tongueRetractSpeed) if tonguePart.Size.Z < 0 then tonguePart.Size = Vector3.new(tonguePart.Size.X, tonguePart.Size.Y, 0) end updateLeaderboard() end end

In Roblox Studio, create a new LocalScript or Script (depending on your preference) and name it TongueBattlesScript . You can attach this script to a Part or Model in your game. Roblox Tongue Battles Script

local function printLeaderboard() for i, playerData in pairs(leaderboard) do local player = game.Players:GetPlayerByUserId(playerData[1]) print(player.Name .. ": " .. tostring(playerData[2])) end end

local function updateLeaderboard() local player = game.Players.LocalPlayer local tongueLength = tonguePart.Size.Z leaderboard[player.UserId] = tongueLength table.sort(leaderboard, function(a, b) return a[2] > b[2] end) end

Create a function to update the leaderboard: -- Tongue settings local tonguePart = script

Create two functions to grow and retract the tongue:

UserInputService.InputBegan:Connect(function(input) if input.KeyCode == Enum.KeyCode.E then -- Grow the tongue when the 'E' key is pressed growTongue() elseif input.KeyCode == Enum.KeyCode.R then -- Retract the tongue when the 'R' key is pressed retractTongue() end end)

local UserInputService = game:GetService("UserInputService") b) return a[2] &gt

We'll use the UserInputService to detect player input. Add the following code:

UserInputService.InputBegan:Connect(function(input) if input.KeyCode == Enum.KeyCode.E then growTongue() elseif input.KeyCode == Enum.KeyCode.R then retractTongue() end end)

-- Game settings local gameEnabled = true local leaderboard = {}

Select a Plan
Yearly
$3/month
$12/month
75%
OFF
What is included?
  • No watermark applied
  • Video editor + 70 tools
  • Unlimited downloads
  • Upload files up to 8 GB
  • High priority processing
  • 20 min processing time limit
Select
Monthly
$8/month
$12/month
What is included?
  • No watermark applied
  • Video editor + 70 tools
  • Unlimited downloads
  • Upload files up to 8 GB
  • High priority processing
  • 20 min processing time limit
Select
Lifetime
$79
pay once
What is included?
  • No watermark applied
  • Video editor + 70 tools
  • Unlimited downloads
  • Upload files up to 8 GB
  • High priority processing
  • 20 min processing time limit
Select