|
| 13 Oct 2014 02:23 PM |
| how do I write a line that connects function melee() when the v key is pressed? how would I keep it from repeating the function when v key is held? please help |
|
|
| Report Abuse |
|
|
|
| 13 Oct 2014 02:49 PM |
local Player = game.Players.LocalPlayer local Mouse = Player:GetMouse()
Mouse.KeyDown:connect(function(key) if (key == 'v') then melee() end end) |
|
|
| Report Abuse |
|
|
|
| 13 Oct 2014 03:04 PM |
v = true while v == true do end |
|
|
| Report Abuse |
|
|
|
| 13 Oct 2014 03:07 PM |
^
Events are handy instead of this.
-Vanilla |
|
|
| Report Abuse |
|
|
|
| 13 Oct 2014 03:09 PM |
| i figured it out by looking at previous on keydown functions in the script thanks though |
|
|
| Report Abuse |
|
|
|
| 13 Oct 2014 06:41 PM |
lol
|Muffins are good, and genetically processed foods make your stomach extend for some reason| |
|
|
| Report Abuse |
|
|
| |
|
|
| 13 Oct 2014 11:05 PM |
how do u add admin into your game????
|
|
|
| Report Abuse |
|
|
|
| 14 Oct 2014 08:12 AM |
^ ya srsly how do u do?!?1//!?1//1 |
|
|
| Report Abuse |
|
|
anaIyze
|
  |
| Joined: 29 May 2014 |
| Total Posts: 2048 |
|
|
| 14 Oct 2014 12:00 PM |
| Oh no . . . , Don't give them the kohl DLL, please; They will abuse it. |
|
|
| Report Abuse |
|
|
|
| 14 Oct 2014 12:11 PM |
this is a simple output script inside value KV value TN is under the same parent as KV but TN's value doesnt change regardless of what tv ='s. If I manually change TN and KV the Values in server.GameInfo do not change at all. Someone tell me where i went wrong.
local server = game.Workspace.Server local player = script.Parent.Parent.Parent.Parent local tv = player.Info.Team.Value local kv = script.Parent.Value local tn = script.Parent.Parent.TN.Value
if tv == 1 then tn = "Team1Score" end
if tv == 2 then tn = "Team2Score" end
function update_output(property) print("The OutputText has changed value.") server.GameInfo.tn.Value = server.GameInfo.tn.Value + 1 end
kv.Changed:connect(update_output) |
|
|
| Report Abuse |
|
|