00M

BloxScripts.funYou can use Rainbow carpet and fly
-- [[ BloxScripts Risk Notice ]]
-- This script has not been verified by BloxScripts.fun. Deal with caution.
--
-- Stay safe:
-- • Never log in on unofficial Roblox sites or lookalike domains.
-- • Real Roblox links use roblox.com (check the .com ending).
-- • Treat fake Roblox login / "claim reward" pages as phishing.
-- [[ End BloxScripts Risk Notice ]]
-- Rainbow Flying Carpet
-- Als LocalScript in ein Tool namens "RainbowCarpet" legen.
-- Das Tool braucht einen Part namens "Handle".
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local player = Players.LocalPlayer
local tool = script.Parent
local flying = false
local speed = 70
local root
local humanoid
local velocity
local gyro
local flightConnection
local colorConnection
local function setupCharacter()
local character = player.Character or player.CharacterAdded:Wait()
root = character:WaitForChild("HumanoidRootPart")
humanoid = character:WaitForChild("Humanoid")
return character
end
local function startFlight()
if flying then
return
end
setupCharacter()
flying = true
-- Normales Laufen während des Fliegens deaktivieren
humanoid.AutoRotate = false
velocity = Instance.new("BodyVelocity")
velocity.Name = "CarpetVelocity"
velocity.MaxForce = Vector3.new(
math.huge,
math.huge,
math.huge
)
velocity.Velocity = Vector3.zero
velocity.Parent = root
gyro = Instance.new("BodyGyro")
gyro.Name = "CarpetGyro"
gyro.MaxTorque = Vector3.new(
math.huge,
math.huge,
math.huge
)
gyro.P = 10000
gyro.D = 500
gyro.Parent = root
flightConnection = RunService.RenderStepped:Connect(function()
if not flying or not root or not root.Parent then
return
end
local camera = workspace.CurrentCamera
local moveDirection = Vector3.zero
-- Vorwärts / rückwärts
if UserInputService:IsKeyDown(Enum.KeyCode.W) then
moveDirection += camera.CFrame.LookVector
end
if UserInputService:IsKeyDown(Enum.KeyCode.S) then
moveDirection -= camera.CFrame.LookVector
end
-- Links / rechts
if UserInputService:IsKeyDown(Enum.KeyCode.A) then
moveDirection -= camera.CFrame.RightVector
end
if UserInputService:IsKeyDown(Enum.KeyCode.D) then
moveDirection += camera.CFrame.RightVector
end
-- Hoch / runter
if UserInputService:IsKeyDown(Enum.KeyCode.Space) then
moveDirection += Vector3.new(0, 1, 0)
end
if UserInputService:IsKeyDown(Enum.KeyCode.LeftControl) then
moveDirection -= Vector3.new(0, 1, 0)
end
if moveDirection.Magnitude > 0 then
moveDirection = moveDirection.Unit * speed
end
velocity.Velocity = moveDirection
-- Charakter schaut in Richtung der Kamera
gyro.CFrame = camera.CFrame
end)
end
local function stopFlight()
if not flying then
return
end
flying = false
if flightConnection then
flightConnection:Disconnect()
flightConnection = nil
end
if velocity then
velocity:Destroy()
velocity = nil
end
if gyro then
gyro:Destroy()
gyro = nil
end
if humanoid then
humanoid.AutoRotate = true
end
end
-- Anklicken: Fliegen an/aus
tool.Activated:Connect(function()
if flying then
stopFlight()
else
startFlight()
end
end)
-- Beim Ablegen automatisch aufhören
tool.Unequipped:Connect(function()
stopFlight()
end)
-- Rainbow-Effekt auf dem Handle
local handle = tool:WaitForChild("Handle")
local hue = 0
colorConnection = RunService.RenderStepped:Connect(function(deltaTime)
hue = (hue + deltaTime * 0.3) % 1
if handle and handle.Parent then
handle.Color = Color3.fromHSV(hue, 1, 1)
end
end)
-- Beim Zerstören sauber aufräumen
tool.Destroying:Connect(function()
stopFlight()
if colorConnection then
colorConnection:Disconnect()
colorConnection = nil
end
end)Review the source before using it. Executions count successful copies, capped at 10 per user and network per script in 24 hours.
00
00
00
00