Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game:GetService("Players").LocalPlayer
- local plrgui = plr:WaitForChild("PlayerGui")
- -- destroy old icon if exists
- if plrgui:FindFirstChild("Icon") then
- plrgui:FindFirstChild("Icon"):Destroy()
- end
- local rotation_speed = 0 -- 0 is the fastest, higher = slower
- local icon_image = "142123722" -- ur image id here (as default its a epic face)
- -- the rotating icon
- local Icon = Instance.new("ScreenGui")
- local IMAGE = Instance.new("ImageLabel")
- Icon.Name = "Icon"
- Icon.Parent = plrgui
- Icon.ZIndexBehavior = Enum.ZIndexBehavior.Global
- Icon.Enabled = true
- Icon.IgnoreGuiInset = true
- Icon.DisplayOrder = 999999
- IMAGE.Name = "IMAGE"
- IMAGE.Parent = Icon
- IMAGE.BackgroundColor3 = Color3.new(1, 1, 1)
- IMAGE.BackgroundTransparency = 1
- IMAGE.BorderColor3 = Color3.new(0, 0, 0)
- IMAGE.BorderSizePixel = 0
- IMAGE.Position = UDim2.new(0.876447856, 0, 0.809069216, 0)
- IMAGE.Size = UDim2.new(0, 130, 0, 130)
- IMAGE.Image = "rbxassetid://" .. icon_image
- IMAGE.Visible = true
- IMAGE.ZIndex = 999999
- IMAGE.ImageColor3 = Color3.new(1, 1, 1)
- IMAGE.ImageTransparency = 0
- -- rotate it
- while true do
- IMAGE.Rotation = IMAGE.Rotation + 1
- if rotation_speed == 0 then
- task.wait()
- else
- task.wait(rotation_speed)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment