Skip to content

Instantly share code, notes, and snippets.

View guiderealmvids's full-sized avatar

guiderealmvids

  • Joined Apr 9, 2026
View GitHub Profile
local RunService = game:GetService("RunService")
local Lighting = game:GetService("Lighting")
local function updateTime()
local currentTime = Lighting.ClockTime
local timeInterval = 0.001
local newTime = currentTime + timeInterval
Lighting.ClockTime = newTime
end
-- Define the specific username
local specificUsername = "YourUserName" -- Replace with the desired username
-- Get ReplicatedStorage service
local ReplicatedStorage = game:GetService("ReplicatedStorage")
-- Get the "Ownertag" BillboardGui from ReplicatedStorage
local ownerTagTemplate = ReplicatedStorage:WaitForChild("Ownertag")
-- Function to add the OwnerTag to the player's character
local player = game:GetService("Players").LocalPlayer
local userinputservice = game:GetService("UserInputService")
local Keycode = Enum.KeyCode.LeftShift
local sprintdiff = 16
userinputservice.InputBegan:Connect(function(input, gameProcessed)
if not gameProcessed and player.Character:FindFirstChild("Humanoid") then
local textButton = script.Parent
local part1 = game.Workspace:WaitForChild("Part1")
textButton.MouseButton1Click:Connect(function()
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
-- Calculate the new position 3 studs above part1
local newPosition = part1.Position + Vector3.new(0, 3, 0)