workspace:FindPartsInRegion3()
(24th August 2024) - Spatial Queryspawn()
,delay()
andwait()
(2nd August 2021) -task.wait()
Humanoid:LoadAnimation()
(6th November 2020) -Animator:LoadAnimation()
with tutorialworkspace:FindPartOnRay()
(26th June 2020) -WorldRoot:Raycast()
with [tutorial](
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Parts = {BasePart} | |
local function findTopmostModelAncestor(instance: Instance): Instance? | |
local modelAncestorFound = instance:FindFirstAncestorOfClass("Model") | |
while modelAncestorFound do | |
local newModelAncestorFound = instance:FindFirstAncestorOfClass("Model") | |
if modelAncestorFound and newModelAncestorFound == nil then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local Players = game:GetService("Players") | |
local characterAddedConnections: { [Player]: RBXScriptConnection } = {} | |
local function onPlayerAdded(player: Player) | |
characterAddedConnections[player] = player.CharacterAdded:Connect(function(playerChar) | |
local Humanoid = playerChar:WaitForChild("Humanoid") | |
print(playerChar.Parent, Humanoid.Parent.Parent) | |
Humanoid.WalkSpeed = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# src/utils.py | |
from __future__ import annotations | |
from collections import namedtuple | |
import discord | |
Author = namedtuple("Author", ["name", "url", "icon_url"]) | |
Footer = namedtuple("Footer", ["text", "icon_url"]) | |
Field = namedtuple( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useEffect, useState } from "react"; | |
const MOBILE_WIDTH = 1024; | |
export const isDesktop = (limit = MOBILE_WIDTH) => window.innerWidth > limit; | |
export const isMobile = (limit = MOBILE_WIDTH) => window.innerWidth <= limit;2 | |
const useResolutionChecker = ({ desktop, mobile }) => { | |
const [inMobileResolution, setInMobileResolution] = useState(isMobile()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--default-emoji-size: 1.375rem; | |
--default-emoji-jumboable-size: 3rem; | |
--emoji-size: calc(var(--default-emoji-size) * 2); | |
--emoji-jumboable-size: calc(var(--default-emoji-jumboable-size) * 2); | |
} | |
/* Change emoji size */ | |
[class*="messageContent"]:not([class*="repliedTextContent"]) .emoji { | |
height: var(--emoji-size) !important; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
"useStore Hook": { | |
"scope": "javascript,typescript,javascriptreact", | |
"prefix": ["use", "usestore"], | |
"body": [ | |
"let ${0:slice} = useStore(state => state.${0:slice});" | |
] | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type QueueKey = { | |
RBXScriptSignal, | |
(...) | |
} | |
local arguments = { [QueueKey]: {any}? } | |
local connections: { [QueueKey]: RBXScriptConnection } = {} | |
local queues: { [QueueKey]: number } = {} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import discord | |
def get_emoji_format(name: str): | |
guild_obj: discord.Guild = None | |
if os.environ.get("JISHAKU_NO_UNDERSCORE", False): | |
guild_obj = guild |
NewerOlder