Quick actions

cmd+k|ctrl+k

Navigation

Languages

chen chasing her hat gif tools

Snippet info

Language

Lua

Visibility

public

Author

legacy-v1-15894

Created

2024-04-10T00:06:12.575765Z

Updated

2024-04-10T00:08:32.464223Z

-- ceat_ceat
-- this is old lol
-- original: https://pastebin.com/nw0TQnJR

if game:GetService("RunService"):IsClient() then
	warn("bro use h/ instead of hl/")
	return
end

local plr = owner

function create(class, properties)
	local inst = Instance.new(class)
	for prop, value in pairs(properties) do
		inst[prop] = value
	end
	return inst
end

local tool = create("Tool", {
	Parent = plr:FindFirstChildWhichIsA("Backpack"),
	Name = "da chen"
})

local handle = create("Part", {
	Parent = tool,
	Name = "Handle",
	Size = Vector3.new(3, 3, 0.5),
	TopSurface = Enum.SurfaceType.Smooth,
	BottomSurface = Enum.SurfaceType.Smooth,
	CanCollide = false,
	Massless = true
})

local texture = create("Texture", {
	Parent = handle,
	Texture = "rbxassetid://6432575630",
	StudsPerTileU = 54,
	StudsPerTileV = 3,
})

create("TextLabel", {
	Parent = create("BillboardGui", {
		Parent = handle,
		LightInfluence = 0,
		Size = UDim2.new(5, 0,1, 0),
		StudsOffsetWorldSpace = Vector3.new(0, 4, 0)
	}),
	BackgroundTransparency = 1,
	Size = UDim2.new(1, 0,1, 0),
	Font = Enum.Font.Cartoon,
	Text = "chen on spinne da record",
	TextColor3 = Color3.new(1,1,1),
	TextScaled = true,
	TextStrokeTransparency = 0
})

local speed = {
	[false] = 3,
	[true] = -3
}

local direction = false
local isactive = true

local activated
local tooldestroying
local texdestroying

activated = tool.Activated:Connect(function()
	direction = not direction
end)

tooldestroying = tool.Destroying:Connect(function()
	tooldestroying:Disconnect()
	texdestroying:Disconnect()
	isactive = true
end)

texdestroying = texture.Destroying:Connect(function()
	tooldestroying:Disconnect()
	texdestroying:Disconnect()
	isactive = true
end)

while isactive  do
	wait(1/18)
	texture.OffsetStudsU = texture.OffsetStudsU + speed[direction]
end
INFO