Felmyst
|
  |
| Joined: 24 Feb 2010 |
| Total Posts: 18033 |
|
|
| 17 May 2016 04:17 PM |
so im trying to make dyamic lighting on the character (which is already made) but i want a button on your keyboard to make it activate.
how would you make it so that it will work?
|
|
|
| Report Abuse |
|
|
Felmyst
|
  |
| Joined: 24 Feb 2010 |
| Total Posts: 18033 |
|
|
| 17 May 2016 04:18 PM |
this is the script btw
function onPlayerEntered(newPlayer) repeat wait() until newPlayer.Character local l = Instance.new("PointLight", newPlayer.Character:WaitForChild("Torso")) l.Brightness = 100 l.Range = 4 while true do wait(1) l.Color = Color3.new(245,245,245) end end
for _,pl in pairs(game.Players:GetPlayers()) do onPlayerEntered(pl) end
game.Players.ChildAdded:connect(onPlayerEntered)
|
|
|
| Report Abuse |
|
|
Felmyst
|
  |
| Joined: 24 Feb 2010 |
| Total Posts: 18033 |
|
| |
|
Felmyst
|
  |
| Joined: 24 Feb 2010 |
| Total Posts: 18033 |
|
| |
|
Felmyst
|
  |
| Joined: 24 Feb 2010 |
| Total Posts: 18033 |
|
|
| 17 May 2016 04:22 PM |
lol i misspelled dynamic
my bad
|
|
|
| Report Abuse |
|
|
|
| 17 May 2016 04:25 PM |
lol, if your trying to make a light in a character's torso you don't need to be so complicated.
#code game.Workspace.YourMom.LastNight = true |
|
|
| Report Abuse |
|
|
Felmyst
|
  |
| Joined: 24 Feb 2010 |
| Total Posts: 18033 |
|
|
| 17 May 2016 04:27 PM |
thats not what im trying to do
say if i pressed the letter F, the dynamic lighting will turn on the character. but if i were to press F again, it would turn off
|
|
|
| Report Abuse |
|
|
|
| 17 May 2016 04:27 PM |
mmm ok
#code game.Workspace.YourMom.LastNight = true |
|
|
| Report Abuse |
|
|
Felmyst
|
  |
| Joined: 24 Feb 2010 |
| Total Posts: 18033 |
|
| |
|