Parallaxox

Change Time After Every Step

Dec 10th, 2021 (edited)
385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. --https://youtu.be/6-xund_f5Fo
  2. local RunService = game:GetService("RunService")
  3. local playerModel = script.Parent
  4. local humanoid = playerModel:WaitForChild("Humanoid")
  5. local function timeStep()
  6.     if humanoid.MoveDirection.Magnitude > 0 then
  7.         game.Lighting.ClockTime = game.Lighting.ClockTime + 0.01
  8.     end
  9. end
  10. RunService.RenderStepped:Connect(timeStep)
Add Comment
Please, Sign In to add comment