Advertisement
coughdrops

Object physics

Mar 31st, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. local a = 0
  2. coroutine.resume(coroutine.create(function()
  3. while true do
  4. game:GetService("RunService").Stepped:Wait()
  5. a = a + 0.02
  6. if a == 1 or a > 1 then
  7. a = 0
  8. end
  9. end
  10. end))
  11. while true do
  12. game:GetService("RunService").Stepped:Wait()
  13. for _,v in pairs(owner.Character:GetDescendants()) do
  14. if v:IsA("Part") then
  15. v.CanCollide = false
  16. v.Material = Enum.Material.ForceField
  17. v.Color = Color3.fromHSV(255,a,1)
  18. end
  19. end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement