Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Place this script in StarterCharacterScripts or StarterPlayerScripts
- local Players = game:GetService("Players")
- local player = Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- -- Set the player's health to 99999
- humanoid.MaxHealth = 99999
- humanoid.Health = 99999
- -- Billboard GUI setup
- local billboardGui = Instance.new("BillboardGui")
- billboardGui.Name = "G0DGui"
- billboardGui.Adornee = character:WaitForChild("Head")
- billboardGui.Size = UDim2.new(4, 0, 1, 0)
- billboardGui.StudsOffset = Vector3.new(-2, 1.5, 0) -- Adjusted to position it 2 studs to the left and 1.5 studs above the head
- billboardGui.AlwaysOnTop = true
- local textLabel = Instance.new("TextLabel")
- textLabel.Size = UDim2.new(1, 0, 1, 0)
- textLabel.BackgroundTransparency = 1
- textLabel.Text = "G0D"
- textLabel.Font = Enum.Font.SourceSans -- Temporary font, will set to Michroma later
- textLabel.TextScaled = true
- textLabel.TextStrokeTransparency = 0.5
- textLabel.TextColor3 = Color3.fromRGB(255, 0, 0) -- Initial color
- billboardGui.Parent = character:WaitForChild("Head")
- textLabel.Parent = billboardGui
- -- Function to cycle through colors to create a rainbow effect
- local colors = {
- Color3.fromRGB(255, 0, 0), -- Red
- Color3.fromRGB(255, 127, 0), -- Orange
- Color3.fromRGB(255, 255, 0), -- Yellow
- Color3.fromRGB(0, 255, 0), -- Green
- Color3.fromRGB(0, 0, 255), -- Blue
- Color3.fromRGB(75, 0, 130), -- Indigo
- Color3.fromRGB(148, 0, 211) -- Violet
- }
- local currentIndex = 1
- local function updateTextColor()
- textLabel.TextColor3 = colors[currentIndex]
- end
- local function updateBodyColor()
- for _, part in ipairs(character:GetChildren()) do
- if part:IsA("BasePart") then
- part.Color = colors[currentIndex]
- end
- end
- end
- -- Function to make the TextLabel shake
- local function shakeTextLabel()
- local offset = math.random(-5, 5) -- Change the range for more or less shake
- textLabel.Position = UDim2.new(0.5, offset, 0.5, offset)
- end
- -- Change color and shake every 0.1 seconds
- while true do
- updateTextColor()
- updateBodyColor()
- shakeTextLabel()
- currentIndex = (currentIndex % #colors) + 1
- wait(0.1)
- end
- -- Function to set the Michroma font
- local function setMichromaFont()
- -- This will only work if Michroma font is available and correctly named
- textLabel.Font = Enum.Font.SourceSans
- end
- setMichromaFont()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement