Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть Day 6 scripting your roblox ideas into roblox studio (Sorry for not posting for a while)

  • DogeDaScripter
  • 2025-12-10
  • 1406
Day 6 scripting your roblox ideas into roblox studio (Sorry for not posting for a while)
  • ok logo

Скачать Day 6 scripting your roblox ideas into roblox studio (Sorry for not posting for a while) бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно Day 6 scripting your roblox ideas into roblox studio (Sorry for not posting for a while) или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку Day 6 scripting your roblox ideas into roblox studio (Sorry for not posting for a while) бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео Day 6 scripting your roblox ideas into roblox studio (Sorry for not posting for a while)

SlideGUIHandler:
-- Local Script inside SlideGUIFrame


-- LocalScript (inside the Slider GUI)

local RS = game:GetService("ReplicatedStorage")
local remote = RS:WaitForChild("UpdateSize")

local slider = script.Parent
local bar = slider:WaitForChild("SliderBar")
local handle = slider:WaitForChild("SliderHandle")

local UIS = game:GetService("UserInputService")

local dragging = false
local minValue = 1
local maxValue = 20

local function updateHandle(inputX)
local barAbsPos = bar.AbsolutePosition.X
local barAbsSize = bar.AbsoluteSize.X

local position = math.clamp(inputX - barAbsPos, 0, barAbsSize)
handle.Position = UDim2.new(0, position, handle.Position.Y.Scale, handle.Position.Y.Offset)

local alpha = position / barAbsSize
local sizeValue = minValue + (maxValue - minValue) * alpha

remote:FireServer(sizeValue)
end

handle.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
dragging = true
end
end)

handle.InputEnded:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
dragging = false
end
end)

UIS.InputChanged:Connect(function(input)
if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
updateHandle(input.Position.X)
end
end)



SlideSizeUpdateHandler:

-- Normal Script inside ServerScriptService (also create a remote event called "UpdateSize" inside ReplicatedStorage)


-- ServerScriptService

local RS = game:GetService("ReplicatedStorage")
local remote = RS:WaitForChild("UpdateSize")

remote.OnServerEvent:Connect(function(player, scaleValue)
local char = player.Character or player.CharacterAdded:Wait()
if not char then return end

local humanoid = char:FindFirstChildOfClass("Humanoid")
if not humanoid then return end

-- R15 scaling
if humanoid:FindFirstChild("BodyDepthScale") then
humanoid.BodyDepthScale.Value = scaleValue
end

if humanoid:FindFirstChild("BodyHeightScale") then
humanoid.BodyHeightScale.Value = scaleValue
end

if humanoid:FindFirstChild("BodyWidthScale") then
humanoid.BodyWidthScale.Value = scaleValue
end

if humanoid:FindFirstChild("HeadScale") then
humanoid.HeadScale.Value = scaleValue
end
end)



PetSpawner:
-- Normal Script inside ServerScriptService (I tried doing everything in the script that's why it might look bad)

local Players = game:GetService("Players")
local RS = game:GetService("ReplicatedStorage")

local PetsFolder = RS:WaitForChild("Pets")

local FOLLOW_DISTANCE = 6
local HEIGHT_OFFSET = 2
local PET_SPACING = 4

local function createPetFollower(pet, targetChar, index)
local root = targetChar:WaitForChild("HumanoidRootPart")

-- Attachments
local petAttachment = Instance.new("Attachment")
petAttachment.Name = "PetAttachment"
petAttachment.Parent = pet.PrimaryPart

local alignPos = Instance.new("AlignPosition")
alignPos.ApplyAtCenterOfMass = true
alignPos.MaxForce = 999999
alignPos.MaxVelocity = 100
alignPos.Responsiveness = 15
alignPos.Attachment0 = petAttachment
alignPos.RigidityEnabled = false
alignPos.Parent = pet.PrimaryPart

local alignOri = Instance.new("AlignOrientation")
alignOri.MaxTorque = 999999
alignOri.Responsiveness = 20
alignOri.Attachment0 = petAttachment
alignOri.RigidityEnabled = false
alignOri.Parent = pet.PrimaryPart

-- Fixed target attachment on player
local targetAttachment = root:FindFirstChild("PetFollowAttachment")
if not targetAttachment then
targetAttachment = Instance.new("Attachment")
targetAttachment.Name = "PetFollowAttachment"
targetAttachment.Parent = root
end

alignPos.Attachment1 = targetAttachment
alignOri.Attachment1 = targetAttachment

-- Set offset once based on index
local angle = (index - 1) * (math.pi/6) - math.pi/6 -- spacing pets
alignPos.Position = -root.CFrame.LookVector * FOLLOW_DISTANCE +
Vector3.new(math.sin(angle) * PET_SPACING, HEIGHT_OFFSET, math.cos(angle) * PET_SPACING)
end

Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
local humanoid = char:WaitForChild("Humanoid")
local pets = {}

humanoid.Jumping:Connect(function()
local pick = PetsFolder:GetChildren()[math.random(1, #PetsFolder:GetChildren())]
local pet = pick:Clone()
pet.Parent = workspace
pet.PrimaryPart = pet:WaitForChild("PrimaryPart")

table.insert(pets, pet)
createPetFollower(pet, char, #pets)
end)
end)
end)











#roblox #robloxstudio #robloxscript #robloxscripting #lua

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]