показал как делать каст цену

13 подписчиков

12+
12+

1 просмотр

13 дней назад

ПожаловатьсяНарушение авторских прав

13 подписчиков

12+
12+

1 просмотр

13 дней назад

ПожаловатьсяНарушение авторских прав
12+
12+

1 просмотр

13 дней назад

local player = game.Players.LocalPlayer local camera = workspace.CurrentCamera local playerModule = require(player:WaitForChild("PlayerScripts"):WaitForChild("PlayerModule")) local controls = playerModule:GetControls() controls:Disable() local points = { workspace:WaitForChild("Cam1"), workspace:WaitForChild("Cam2"), workspace:WaitForChild("Cam3") } camera.CameraType = Enum.CameraType.Scriptable camera.CFrame = points[1].CFrame local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui")) gui.ResetOnSpawn = false local fade = Instance.new("Frame", gui) fade.Size = UDim2.new(1, 0, 1, 0) fade.BackgroundColor3 = Color3.fromRGB(0, 0, 0) fade.BackgroundTransparency = 1 local text = Instance.new("TextLabel", gui) text.Size = UDim2.new(1, 0, 0.3, 0) text.Position = UDim2.new(0, 0, 0.7, 0) text.BackgroundTransparency = 1 text.TextColor3 = Color3.fromRGB(255, 255, 255) text.TextStrokeTransparency = 0.3 text.Font = Enum.Font.GothamBold text.TextScaled = true text.Text = "" local function fadeText(msg) text.Text = msg for i = 1, 0, -0.05 do text.TextTransparency = i task.wait(0.03) end task.wait(2) for i = 0, 1, 0.05 do text.TextTransparency = i task.wait(0.03) end end local function fadeScreen(from, to, speed) for i = from, to, (to - from) / math.abs(to - from) * 0.05 do fade.BackgroundTransparency = i task.wait(speed) end end local sound = Instance.new("Sound", workspace) sound.SoundId = "rbxassetid://32323232323" sound.Volume = 1.3 sound:Play() for i = 1, #points - 1 do local startCFrame = points[i].CFrame local endCFrame = points[i + 1].CFrame for t = 0, 1, 0.01 do camera.CFrame = startCFrame:Lerp(endCFrame, t) task.wait(0.03) end end fadeScreen(1, 0.4, 0.05) fadeText("какой то текст") fadeText("какой-то текст") fadeText("какой то текст") fadeScreen(0.4, 1, 0.05) sound:Stop() camera.CameraType = Enum.CameraType.Custom controls:Enable() gui:Destroy()

Название:

показал как делать каст цену

Категория:

Разное