Snippets Collections
local block = script.Parent

local function Health(player)
    local Humanoid = player.Character:FindFirstChild("Humanoid")
    if Humanoid then
        wait(0.5)
        local expl = Instance.new('Explosion')
        expl.Position = block.Position
        expl.BlastPressure = 20
        expl.Parent = game.Workspace
        Humanoid.Health = 0
    end
end

script.Parent.ClickDetector.MouseClick:Connect(Health)
local clickDetector = script.Parent.ClickDetector

function onMouseClick(Player)
    local humanoid = Player.Character:findFirstChild("Humanoid")
    if humanoid then
        -- włączanie super skoku
        humanoid.UseJumpPower = true
        -- ustawienie siły skoku
        humanoid.JumpPower = 140
        humanoid.WalkSpeed = 70
        -- wyłączanie super skoku
        wait(30)
        humanoid.UseJumpPower = false
        humanoid.WalkSpeed = 16
    end
end

clickDetector.MouseClick:connect(onMouseClick)
local light = game:GetService('Lighting')

while true do
  light.ClockTime += 0.01
  wait(0.01)
end
if id == 1429 then
    local i = 0   
        for line in text:gmatch("[^\n]+") do
            i = i + 1
            if line:find('Открыть') then
            sampSendDialogResponse(id, 1, i-1, '')               
            return false
            end
        end
end
local clickPart = script.Parent
-- Create a ClickDetector and set its parent
local clickDetector = Instance.new("ClickDetector")
clickDetector.Parent = clickPart
 
local function onPartClick(player)
	-- Output a message and randomly color the clicked part
	print(player.Name .. " clicked me!")
	clickPart.BrickColor = BrickColor.random()
end
 
clickDetector.MouseClick:Connect(onPartClick)
local function fireLaser()
	-- Set an origin and directional vector
	local rayOrigin = caster.Position
	local rayDirection = Vector3.new(0, -100, 0)
 
	-- Build a "RaycastParams" object and cast the ray
	local raycastParams = RaycastParams.new()
	raycastParams.FilterDescendantsInstances = {caster.Parent}
	raycastParams.FilterType = Enum.RaycastFilterType.Blacklist
	local raycastResult = workspace:Raycast(rayOrigin, rayDirection, raycastParams)
 
	if raycastResult then
		local hitPart = raycastResult.Instance
		-- Check if the part resides in a folder, that it's fully visible, and not locked
		if hitPart.Parent == workspace.Tiles and hitPart.Transparency == 0 and not hitPart.Locked then
local testArray = {"A string", 3.14159, workspace.Part}
 
testArray[2] = 12345
testArray[4] = "New string"
 
print(testArray[2])
print(testArray[4])
star

Sun Jan 19 2025 13:24:13 GMT+0000 (Coordinated Universal Time) https://tinyurl.com/2d6ol37z

#lua #roblox
star

Sun Jan 19 2025 13:11:15 GMT+0000 (Coordinated Universal Time) https://tinyurl.com/2cg5x69c

#lua #roblox
star

Sun Jan 19 2025 12:23:53 GMT+0000 (Coordinated Universal Time) https://tinyurl.com/24g3tgl3

#lua #roblox
star

Thu May 12 2022 07:49:50 GMT+0000 (Coordinated Universal Time) https://www.blast.hk/threads/132406/

#lua
star

Tue Nov 09 2021 10:19:03 GMT+0000 (Coordinated Universal Time) https://developer.roblox.com/en-us/articles/introduction-to-input

#lua
star

Fri Jan 08 2021 19:39:02 GMT+0000 (Coordinated Universal Time) https://developer.roblox.com/en-us/articles/Raycasting

#lua
star

Fri Jan 08 2021 19:28:53 GMT+0000 (Coordinated Universal Time) https://developer.roblox.com/en-us/articles/Table

#lua

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension