local part = script.Parent
while true do
for i = 0, 1, 0.01 do
part.Color = Color3.fromHSV(i, 1, 1)
wait(0.05)
end
endlocal part = script.Parent
local startPos = part.Position
local endPos = part.Position + Vector3.new(0, 0, 10)
while true do
for i = 0, 1, 0.02 do
part.Position = startPos:Lerp(endPos, i)
wait(0.02)
end
wait(1)
endlocal part = script.Parent
while true do
part.Transparency = 1
wait(1)
part.Transparency = 0
wait(1)
endlocal light = script.Parent:FindFirstChild("PointLight")
script.Parent.Touched:Connect(function()
light.Enabled = not light.Enabled
end)local part = script.Parent
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
local humanoidRoot = char:WaitForChild("HumanoidRootPart")
while true do
local distance = (part.Position - humanoidRoot.Position).Magnitude
if distance < 10 then
part.Transparency = 0.7
part.CanCollide = false
else
part.Transparency = 0
part.CanCollide = true
end
wait(0.2)
end
end)
end)local button = script.Parent
button.MouseButton1Click:Connect(function()
button.Text = "Нажато!"
button.BackgroundColor3 = Color3.fromRGB(100, 255, 100)
wait(1)
button.Text = "Нажми меня"
button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
end)local label = script.Parent
for i = 10, 0, -1 do
label.Text = "Осталось: " .. i
wait(1)
end
label.Text = "Время вышло!"local part = script.Parent
part.Touched:Connect(function(hit)
local bodyVelocity = Instance.new("BodyVelocity")
bodyVelocity.Velocity = Vector3.new(0, 50, 0)
bodyVelocity.MaxForce = Vector3.new(4000, 4000, 4000)
bodyVelocity.Parent = hit
wait(0.3)
bodyVelocity:Destroy()
end)game.Players.PlayerAdded:Connect(function(player)
player:WaitForChild("PlayerGui")
local message = Instance.new("Message")
message.Text = "Добро пожаловать, " .. player.Name .. "!"
message.Parent = workspace
wait(3)
message:Destroy()
end)local template = workspace.ItemTemplate
while true do
local clone = template:Clone()
clone.Parent = workspace
clone.Position = Vector3.new(math.random(-10,10), 5, math.random(-10,10))
wait(5)
end