ADVERTISEMENTREMOVE ADS
Game icon

dandy’s

Script preview thumbnail
Script Preview

Description

it can make u fly and have speed etc

ADVERTISEMENTREMOVE ADS
90 Lines • 2.76 KiB
Raw
-- LocalScript (place in StarterPlayerScripts)
-- SETTINGS
local flySpeed = 100
local jumpPower = 200
local walkSpeed = 100
-- Morph settings (basic customization)
local morph = {
ShirtTemplate = "rbxassetid://INSERT_SHIRT_ID",
PantsTemplate = "rbxassetid://INSERT_PANTS_ID",
FaceId = "rbxassetid://INSERT_FACE_ID",
HatId = "rbxassetid://INSERT_HAT_ID"
}
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
-- Set movement abilities
humanoid.WalkSpeed = walkSpeed
humanoid.JumpPower = jumpPower
-- Simple fly system
local flying = false
local bodyGyro, bodyVelocity
function fly()
flying = true
bodyGyro = Instance.new("BodyGyro", character.PrimaryPart)
bodyGyro.P = 9e4
bodyGyro.MaxTorque = Vector3.new(9e9, 9e9, 9e9)
bodyGyro.CFrame = character.PrimaryPart.CFrame
bodyVelocity = Instance.new("BodyVelocity", character.PrimaryPart)
bodyVelocity.Velocity = Vector3.new(0, 0, 0)
bodyVelocity.MaxForce = Vector3.new(9e9, 9e9, 9e9)
local userInput = game:GetService("UserInputService")
userInput.InputBegan:Connect(function(input)
if flying then
if input.KeyCode == Enum.KeyCode.W then
bodyVelocity.Velocity = character.PrimaryPart.CFrame.LookVector * flySpeed
end
end
end)
end
-- Morph into Dandy
function morphIntoDandy()
if character:FindFirstChild("Shirt") then
character.Shirt.ShirtTemplate = morph.ShirtTemplate
else
local shirt = Instance.new("Shirt", character)
shirt.ShirtTemplate = morph.ShirtTemplate
end
if character:FindFirstChild("Pants") then
character.Pants.PantsTemplate = morph.PantsTemplate
else
local pants = Instance.new("Pants", character)
pants.PantsTemplate = morph.PantsTemplate
end
local head = character:FindFirstChild("Head")
if head and head:FindFirstChild("face") then
head.face.Texture = morph.FaceId
end
local hat = game:GetService("InsertService"):LoadAsset(morph.HatId)
hat:WaitForChildOfClass("Accessory").Parent = character
end
-- Hotkey to fly: Press F
game:GetService("UserInputService").InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.F then
if not flying then
fly()
else
flying = false
if bodyGyro then bodyGyro:Destroy() end
if bodyVelocity then bodyVelocity:Destroy() end
end
elseif input.KeyCode == Enum.KeyCode.M then
morphIntoDandy()
end
end)
print("🔥 Script Loaded: Press [F] to Fly, [M] to Morph into Dandy")
ADVERTISEMENTREMOVE ADS

Comments

1 comment
to add a comment
be

Its not chatgpt trust me guys

0
0
ADVERTISEMENTREMOVE ADS