แจกสคริป Dandy world 🌍🌍
local ScreenGui = Instance.new("ScreenGui")
local Frame = Instance.new("Frame")
local TextBox = Instance.new("TextBox")
local ApplyButton = Instance.new("TextButton")
local UIGradient = Instance.new("UIGradient")
local InfoLabel = Instance.new("TextLabel")
local TextGradient = Instance.new("UIGradient")
local ButtonGradient = Instance.new("UIGradient") -- Gradient for button
-- GUI properties
ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
Frame.Parent = ScreenGui
Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Frame.Size = UDim2.new(0, 200, 0, 120)
Frame.Position = UDim2.new(0.5, -100, 0.5, -50)
Frame.Active = true
Frame.Draggable = true
-- Rainbow gradient for Frame
UIGradient.Parent = Frame
UIGradient.Rotation = 90
UIGradient.Color = ColorSequence.new{
ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 50, 50)),
ColorSequenceKeypoint.new(0.2, Color3.fromRGB(255, 200, 50)),
ColorSequenceKeypoint.new(0.4, Color3.fromRGB(255, 255, 50)),
ColorSequenceKeypoint.new(0.6, Color3.fromRGB(50, 255, 50)),
ColorSequenceKeypoint.new(0.8, Color3.fromRGB(50, 150, 255)),
ColorSequenceKeypoint.new(1, Color3.fromRGB(200, 50, 255))
}
-- Info label
InfoLabel.Parent = Frame
InfoLabel.Size = UDim2.new(0, 180, 0, 20)
InfoLabel.Position = UDim2.new(0.5, -90, 0.05, 0)
InfoLabel.Text = "ใส่ได้แค่เลข 5 เท่านั้น!"
InfoLabel.BackgroundTransparency = 1
InfoLabel.TextScaled = true
-- Rainbow gradient for text
TextGradient.Parent = InfoLabel
TextGradient.Rotation = 90
TextGradient.Color = UIGradient.Color
TextBox.Parent = Frame
TextBox.Size = UDim2.new(0, 180, 0, 30)
TextBox.Position = UDim2.new(0.5, -90, 0.25, 0)
TextBox.PlaceholderText = "Enter HipHeight"
TextBox.Text = ""
TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextBox.TextColor3 = Color3.fromRGB(0, 0, 0)
ApplyButton.Parent = Frame
ApplyButton.Size = UDim2.new(0, 180, 0, 30)
ApplyButton.Position = UDim2.new(0.5, -90, 0.65, 0)
ApplyButton.Text = "กดปุ่ม"
ApplyButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
ApplyButton.TextColor3 = Color3.fromRGB(0, 0, 0)
-- Rainbow gradient for button
ButtonGradient.Parent = ApplyButton
ButtonGradient.Rotation = 90
ButtonGradient.Color = UIGradient.Color
-- Function to change HipHeight
ApplyButton.MouseButton1Click:Connect(function()
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:FindFirstChildOfClass("Humanoid")
if humanoid then
local newHeight = tonumber(TextBox.Text)
if newHeight == 5 then
humanoid.HipHeight = newHeight
ApplyButton.Text = "✓ เปลี่ยนแล้ว!"
else
warn("ต้องใส่แค่เลข 5 เท่านั้น!")
end
end
end)