0% found this document useful (0 votes)
1K views8 pages

Script Studio Lite

The document contains multiple scripts for a Roblox game, including a shiftlock feature, leaderboard setup, owner tagging, admin functionalities, badge awarding, and character customization. Each script is designed to enhance gameplay by providing various functionalities such as player interaction, visual elements, and game mechanics. Additionally, there are scripts for rotating parts and creating water effects in the game environment.

Uploaded by

tokopesawat5
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views8 pages

Script Studio Lite

The document contains multiple scripts for a Roblox game, including a shiftlock feature, leaderboard setup, owner tagging, admin functionalities, badge awarding, and character customization. Each script is designed to enhance gameplay by providing various functionalities such as player interaction, visual elements, and game mechanics. Additionally, there are scripts for rotating parts and creating water effects in the game environment.

Uploaded by

tokopesawat5
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

SCRIPT SHIFTLOCK:

-- Instances:

local ShiftlockStarterGui = Instance.new("ScreenGui")


local ImageButton = Instance.new("ImageButton")

--Properties:

ShiftlockStarterGui.Name = "Shiftlock (StarterGui)"


ShiftlockStarterGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
ShiftlockStarterGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling

ImageButton.Parent = ShiftlockStarterGui
ImageButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
ImageButton.BackgroundTransparency = 1.000
ImageButton.Position = UDim2.new(0.921914339, 0, 0.552375436, 0)
ImageButton.Size = UDim2.new(0.0636147112, 0, 0.0661305636, 0)
ImageButton.SizeConstraint = Enum.SizeConstraint.RelativeXX
ImageButton.Image = "http://www.roblox.com/asset/?id=182223762"

-- Scripts:

local function TLQOYN_fake_script() -- ImageButton.ShiftGUI


local script = Instance.new('LocalScript', ImageButton)

local MobileCameraFramework = {}
local players = game:GetService("Players")
local runservice = game:GetService("RunService")
local CAS = game:GetService("ContextActionService")
local player = players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local root = character:WaitForChild("HumanoidRootPart")
local humanoid = character.Humanoid
local camera = workspace.CurrentCamera
local button = script.Parent

--Visiblity
uis = game:GetService("UserInputService")
ismobile = uis.TouchEnabled
button.Visible = ismobile

local states = {
OFF = "rbxasset://textures/ui/[email protected]",
ON = "rbxasset://textures/ui/[email protected]"
}
local MAX_LENGTH = 900000
local active = false
local ENABLED_OFFSET = CFrame.new(1.7, 0, 0)
local DISABLED_OFFSET = CFrame.new(-1.7, 0, 0)
local function UpdateImage(STATE)
button.Image = states[STATE]
end
local function UpdateAutoRotate(BOOL)
humanoid.AutoRotate = BOOL
end
local function GetUpdatedCameraCFrame(ROOT, CAMERA)
return CFrame.new(root.Position, Vector3.new(CAMERA.CFrame.LookVector.X
* MAX_LENGTH, root.Position.Y, CAMERA.CFrame.LookVector.Z * MAX_LENGTH))
end
local function EnableShiftlock()
UpdateAutoRotate(false)
UpdateImage("ON")
root.CFrame = GetUpdatedCameraCFrame(root, camera)
camera.CFrame = camera.CFrame * ENABLED_OFFSET
end
local function DisableShiftlock()
UpdateAutoRotate(true)
UpdateImage("OFF")
camera.CFrame = camera.CFrame * DISABLED_OFFSET
pcall(function()
active:Disconnect()
active = nil
end)
end
UpdateImage("OFF")
active = false
function ShiftLock()
if not active then
active = runservice.RenderStepped:Connect(function()
EnableShiftlock()
end)
else
DisableShiftlock()
end
end
local ShiftLockButton = CAS:BindAction("ShiftLOCK", ShiftLock, false, "On")
CAS:SetPosition("ShiftLOCK", UDim2.new(0.8, 0, 0.8, 0))
button.MouseButton1Click:Connect(function()
if not active then
active = runservice.RenderStepped:Connect(function()
EnableShiftlock()
end)
else
DisableShiftlock()
end
end)
return MobileCameraFramework

end
coroutine.wrap(TLQOYN_fake_script)()
local function OMQRQRC_fake_script() -- ShiftlockStarterGui.LocalScript
local script = Instance.new('LocalScript', ShiftlockStarterGui)

local Players = game:GetService("Players")


local UserInputService = game:GetService("UserInputService")
local Settings = UserSettings()
local GameSettings = Settings.GameSettings
local ShiftLockController = {}
while not Players.LocalPlayer do
wait()
end
local LocalPlayer = Players.LocalPlayer
local Mouse = LocalPlayer:GetMouse()
local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")
local ScreenGui, ShiftLockIcon, InputCn
local IsShiftLockMode = true
local IsShiftLocked = true
local IsActionBound = false
local IsInFirstPerson = false
ShiftLockController.OnShiftLockToggled = Instance.new("BindableEvent")
local function isShiftLockMode()
return LocalPlayer.DevEnableMouseLock and GameSettings.ControlMode ==
Enum.ControlMode.MouseLockSwitch and LocalPlayer.DevComputerMovementMode ~=
Enum.DevComputerMovementMode.ClickToMove and GameSettings.ComputerMovementMode ~=
Enum.ComputerMovementMode.ClickToMove and LocalPlayer.DevComputerMovementMode ~=
Enum.DevComputerMovementMode.Scriptable
end
if not UserInputService.TouchEnabled then
IsShiftLockMode = isShiftLockMode()
end
local function onShiftLockToggled()
IsShiftLocked = not IsShiftLocked
ShiftLockController.OnShiftLockToggled:Fire()
end
local initialize = function()
print("enabled")
end
function ShiftLockController:IsShiftLocked()
return IsShiftLockMode and IsShiftLocked
end
function ShiftLockController:SetIsInFirstPerson(isInFirstPerson)
IsInFirstPerson = isInFirstPerson
end
local function mouseLockSwitchFunc(actionName, inputState, inputObject)
if IsShiftLockMode then
onShiftLockToggled()
end
end
local function disableShiftLock()
if ScreenGui then
ScreenGui.Parent = nil
end
IsShiftLockMode = false
Mouse.Icon = ""
if InputCn then
InputCn:disconnect()
InputCn = nil
end
IsActionBound = false
ShiftLockController.OnShiftLockToggled:Fire()
end
local onShiftInputBegan = function(inputObject, isProcessed)
if isProcessed then
return
end
if inputObject.UserInputType ~= Enum.UserInputType.Keyboard or
inputObject.KeyCode == Enum.KeyCode.LeftShift or inputObject.KeyCode ==
Enum.KeyCode.RightShift then
end
end
local function enableShiftLock()
IsShiftLockMode = isShiftLockMode()
if IsShiftLockMode then
if ScreenGui then
ScreenGui.Parent = PlayerGui
end
if IsShiftLocked then
ShiftLockController.OnShiftLockToggled:Fire()
end
if not IsActionBound then
InputCn =
UserInputService.InputBegan:connect(onShiftInputBegan)
IsActionBound = true
end
end
end
GameSettings.Changed:connect(function(property)
if property == "ControlMode" then
if GameSettings.ControlMode == Enum.ControlMode.MouseLockSwitch
then
enableShiftLock()
else
disableShiftLock()
end
elseif property == "ComputerMovementMode" then
if GameSettings.ComputerMovementMode ==
Enum.ComputerMovementMode.ClickToMove then
disableShiftLock()
else
enableShiftLock()
end
end
end)
LocalPlayer.Changed:connect(function(property)
if property == "DevEnableMouseLock" then
if LocalPlayer.DevEnableMouseLock then
enableShiftLock()
else
disableShiftLock()
end
elseif property == "DevComputerMovementMode" then
if LocalPlayer.DevComputerMovementMode ==
Enum.DevComputerMovementMode.ClickToMove or LocalPlayer.DevComputerMovementMode ==
Enum.DevComputerMovementMode.Scriptable then
disableShiftLock()
else
enableShiftLock()
end
end
end)
LocalPlayer.CharacterAdded:connect(function(character)
if not UserInputService.TouchEnabled then
initialize()
end
end)
if not UserInputService.TouchEnabled then
initialize()
if isShiftLockMode() then
InputCn = UserInputService.InputBegan:connect(onShiftInputBegan)
IsActionBound = true
end
end
enableShiftLock()
return ShiftLockController

end
coroutine.wrap(OMQRQRC_fake_script)()

____________________________________________
SCRIPT LEADERBOARD:

local assetId = 137198544387400 -- Your model's asset ID


local model = game:GetService("InsertService"):LoadAsset(assetId)
local leaderboardPart = workspace:FindFirstChild("LeaderboardPart")

if leaderboardPart then
model.Parent = workspace
model:PivotTo(leaderboardPart.CFrame)
else
warn("LeaderboardPart not found in the workspace")
end

____________________________________________
SCRIPT TAG OWNER:

-----------------------------------------------------------------------------------
-----
--PlayerCharAddedScript - This script runs when a player joins or character
spawns. --
-- --
-----------------------------------------------------------------------------------
-----

--This example shows a billboard when the creator's character joins the game.
local bb = Instance.new("BillboardGui")
bb.StudsOffset = Vector3.new(0,5,0) --Place the Gui a little above the
character's head.
bb.Size = UDim2.new(0,100,0,30)
local textLabel = Instance.new("TextLabel")
textLabel.Size = UDim2.new(1,0,1,0) --same size as it's parent bb.
textLabel.TextScaled = true
textLabel.Text = "Owner👑"
textLabel.Parent = bb

game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
if player.Name == "YourRbxUsername" then --You will want to change this
to your Roblox user name.
wait(1) --give a little time in case it's a respawn.
local bbCopy = bb:Clone()
bbCopy.Parent = char:WaitForChild("Head")
end
end)
end)
____________________________________________
SCRIPT HD ADMIN:

game.InsertService:LoadAsset(857927023).Parent = workspace

____________________________________________
SCRIPT KOMEN CHAR:

local Admins = { "tulis usn kalian di sini ", "OtherAdminUsername" } -- Add your
Roblox usernames here

local Players = game:GetService("Players")

-- Function to check if a player is an admin


local function IsAdmin(player)
for _, adminName in ipairs(Admins) do
if player.Name == adminName then
return true
end
end
return false
end

-- Function to change character


local function ChangeCharacter(player, username)
local success, userId = pcall(function()
return Players:GetUserIdFromNameAsync(username)
end)

if success and userId then


local newAppearance = Players:GetHumanoidDescriptionFromUserId(userId)
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:FindFirstChildOfClass("Humanoid")

if humanoid then
humanoid:ApplyDescription(newAppearance)
end
else
player:SendNotification("Error", "Username not found or invalid!", 5) --
Optional for UI feedback
end
end

-- Listen for player chat commands


game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(msg)
if IsAdmin(player) and string.sub(msg, 1, 5) == "/char" then
local username = string.sub(msg, 7)
if username and username ~= "" then
ChangeCharacter(player, username)
else
player:SendNotification("Error", "You must provide a username.", 5)
-- Optional
end
elseif string.sub(msg, 1, 5) == "/char" then
player:SendNotification("Error", "You are not an admin.", 5) --
Optional
end
end)
end)

____________________________________________
SCRIPT BADGE WELCOME:

local PlayedBadge = -- Ganti dengan BadgeID Anda


local BadgeService = game:GetService("BadgeService")

game.Players.PlayerAdded:Connect(function(player)
if not BadgeService:UserHasBadgeAsync(player.UserId,PlayedBadge) then
BadgeService:AwardBadge(player.UserId,PlayedBadge)
end
end)

____________________________________________
SCRIPT KORBLOX:

-- korblox
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
player.Chatted:Connect(function(msg)
local loweredv = string.lower(msg)
if loweredv == "/korblox" then
local Humanoid = char:WaitForChild("Humanoid",1)
local descriptionClone = Humanoid:GetAppliedDescription()
descriptionClone.RightLeg = 139607718
Humanoid:ApplyDescription(descriptionClone)
end
end)
end)
end)
-- headless
local function onPlayerChatted(player, message)
if message == '/headless' and player.Character and
player.Character:FindFirstChild("Head") then
player.Character.Head.Transparency = 1
player.Character.Head.face.Transparency = 1
end
end
local function onPlayerAdded(player)
player.Chatted:Connect(function (message) onPlayerChatted(player, message) end)
end
game.Players.PlayerAdded:Connect(onPlayerAdded)

____________________________________________
SCRIPT FINISH BADGE:
local BadgeService = game:GetService("BadgeService")
local BadgeID = -- Ganti dengan FinishBadge ID

script.Parent.Touched:Connect(function(part)
if part.Parent:FindFirstChild("Humanoid") then
local player = game.Players:GetPlayerFromCharacter(part.Parent)
if not BadgeService:UserHasBadgeAsync(player.UserId, BadgeID) then
BadgeService:AwardBadge(player.UserId, BadgeID)
end
end
end)

____________________________________________
SCRIPT BLOCK MUTAR:

local part = script.Parent -- Ambil objek yang akan diputar


local rotationSpeed = 2 -- Kecepatan rotasi, ubah angkanya sesuai kecepatan yang lo
mau
while true do
part.CFrame = part.CFrame * CFrame.Angles(0, math.rad(rotationSpeed), 0)
wait(0.03) -- Delay rotasi
end

____________________________________________
SCRIPT AIR:

game.Workspace.Terrain:FillBlock(script.Parent.CFrame, script.Parent.Size,
Enum.Material.Water)
wait(0.5)
script.Parent:remove()

____________________________________________

You might also like