Advertisement
signvelvety_pastebin

Spinning Doggo

Nov 2nd, 2021
1,105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.06 KB | None | 0 0
  1. -- This took me about 30 minutes of my life to make
  2. -- I hope you enjoy it XD
  3. writefile("dog.png", game:HttpGet("https://i.imgur.com/aVEAmYC.png"))
  4. doggy = getcustomasset("dog.png")
  5. local DogHouse = Instance.new("ScreenGui")
  6. local DoggoGui = Instance.new("ImageLabel")
  7. DogHouse.Name = "DogHouse"
  8. DogHouse.Parent = game.CoreGui
  9. DogHouse.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  10. DoggoGui.Name = "DoggoGui"
  11. DoggoGui.Parent = DogHouse
  12. DoggoGui.AnchorPoint = Vector2.new(0.5, 0.5)
  13. DoggoGui.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  14. DoggoGui.ClipsDescendants = true
  15. DoggoGui.Position = UDim2.new(0.5, 0, 0.5, 0)
  16. DoggoGui.Size = UDim2.new(0.176200211, 0, 0.364693433, 0)
  17. DoggoGui.Image = doggy
  18. spawn(function()
  19.     local RunService = game:GetService("RunService")
  20.     local degreesPerSecond = 180
  21.     local function onRenderStep(deltaTime)
  22.         local deltaRotation = deltaTime * degreesPerSecond
  23.         DoggoGui.Rotation = DoggoGui.Rotation + deltaRotation
  24.     end
  25.     RunService.RenderStepped:Connect(onRenderStep)
  26. end)
  27. wait(10)
  28. DoggoGui:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement