Skip to content

Instantly share code, notes, and snippets.

View solar420-spec's full-sized avatar

solar420-spec

View GitHub Profile
local UserInputService = game:GetService("UserInputService")
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
-- Variables to store the animation tracks for F and G
local fAnimationTracks, gAnimationTracks = {}, {}
local isEnabled = true -- Flag to enable or disable the script
local toggleKey = Enum.KeyCode.Four -- Keybind set to the number 4 (not the numpad 4)
-- Function to stop animations
@solar420-spec
solar420-spec / Path Script
Created October 22, 2024 16:30
Create a path anytime LocalPlayer clicks Mouse1 button
local userInputService = game:GetService("UserInputService")
local toolExists = false
local function createTool()
if not toolExists then
local tool = Instance.new("Tool")
tool.Name = "Black Path"
tool.RequiresHandle = false
tool.Parent = game.Players.LocalPlayer.Backpack