Guest User

Local Script for Color Transitioning

a guest
May 6th, 2017
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.65 KB | None | 0 0
  1. local UIS = game:GetService("UserInputService")
  2. local player = game.Players.LocalPlayer
  3. local char = player.Character
  4.  
  5. function clicked_button(obj, gp)
  6.     if obj.KeyCode == Enum.KeyCode.Q and not gp then
  7.         local part = workspace:WaitForChild("Baseplate")
  8.         local color_mod = require(workspace:WaitForChild("Colors"))
  9.         local transition_mod = require(workspace:WaitForChild("Transition_Color"))
  10.         local color1 = color_mod.return_color3("Really red")
  11.         local color2 = color_mod.return_color3("Really blue")
  12.         print(color1.Color.r)
  13.         print(color2.Color.r)
  14.         transition_mod.transition(part, color1, color2)
  15.     end
  16. end
  17.  
  18. UIS.InputBegan:connect(clicked_button)
Advertisement
Add Comment
Please, Sign In to add comment