K7Q
|
  |
| Joined: 23 Mar 2013 |
| Total Posts: 5546 |
|
|
| 14 Nov 2017 11:12 AM |
mouse.KeyDown:connect(function (key) local key = string.lower(key) if string.byte(key) == 48 then local keyConnection = mouse.KeyUp:connect(function (key) if string.byte(key) == 48 then if used == false then used = true -- Run function Remote.RemoteEvent:FireServer() used = true for i = 1,5 do game.Workspace.CurrentCamera.FieldOfView = (70+(i*2)) wait() end script.Parent.Boost.Whole.Fill:TweenSize(UDim2.new(0, 0,1, 0),"Out","Quad",5) script.Parent.Boost.Whole.Fill.Text = " " wait(5) for i = 1,5 do game.Workspace.CurrentCamera.FieldOfView = (80-(i*2)) wait() end wait(3) script.Parent.Boost.Whole:TweenPosition(UDim2.new(.25,0,3,0),"Out","Quad",3.5) wait(3) script:Destroy() end end end) end end)
|
|
|
| Report Abuse |
|
|
|
| 14 Nov 2017 11:15 AM |
Is this in a LocalScript? Where is the script located?
|
|
|
| Report Abuse |
|
|
K7Q
|
  |
| Joined: 23 Mar 2013 |
| Total Posts: 5546 |
|
|
| 14 Nov 2017 11:17 AM |
| this is a localscript under players character |
|
|
| Report Abuse |
|
|
PossibIy
|
  |
| Joined: 27 Mar 2014 |
| Total Posts: 214 |
|
|
| 14 Nov 2017 11:18 AM |
Is this a filtering enabled place?
#code print('Success') |
|
|
| Report Abuse |
|
|
K7Q
|
  |
| Joined: 23 Mar 2013 |
| Total Posts: 5546 |
|
|
| 14 Nov 2017 11:21 AM |
| yes, the game is filtering enabled, and i need it to be that way |
|
|
| Report Abuse |
|
|
PossibIy
|
  |
| Joined: 27 Mar 2014 |
| Total Posts: 214 |
|
|
| 14 Nov 2017 11:22 AM |
With filtering enabled you cannot access the workspace within a player, so you need to use events.
#code print('Success') |
|
|
| Report Abuse |
|
|
RobuxLife
|
  |
| Joined: 19 Sep 2012 |
| Total Posts: 13336 |
|
|
| 14 Nov 2017 11:23 AM |
I don't get why people use KeyDown.
|
|
|
| Report Abuse |
|
|
|
| 14 Nov 2017 11:24 AM |
"With filtering enabled you cannot access the workspace within a player, so you need to use events."
this guy doesn't know anything about FE. ignore him
|
|
|
| Report Abuse |
|
|
PossibIy
|
  |
| Joined: 27 Mar 2014 |
| Total Posts: 214 |
|
|
| 14 Nov 2017 11:26 AM |
Yes I do, k thx.
#code print('Success') |
|
|
| Report Abuse |
|
|
PossibIy
|
  |
| Joined: 27 Mar 2014 |
| Total Posts: 214 |
|
|
| 14 Nov 2017 11:28 AM |
I see that you are using events (Didn't look at much of the code, my bad)
#code print('Success') |
|
|
| Report Abuse |
|
|
K7Q
|
  |
| Joined: 23 Mar 2013 |
| Total Posts: 5546 |
|
|
| 14 Nov 2017 11:38 AM |
| so... any help? output doesnt say anything |
|
|
| Report Abuse |
|
|
K7Q
|
  |
| Joined: 23 Mar 2013 |
| Total Posts: 5546 |
|
| |
|
K7Q
|
  |
| Joined: 23 Mar 2013 |
| Total Posts: 5546 |
|
| |
|
K7Q
|
  |
| Joined: 23 Mar 2013 |
| Total Posts: 5546 |
|
|
| 14 Nov 2017 12:51 PM |
bump! please guys I need this fixed ive worked pretty hard and I cant finish the game with this broken script in the way
|
|
|
| Report Abuse |
|
|
K7Q
|
  |
| Joined: 23 Mar 2013 |
| Total Posts: 5546 |
|
| |
|
K7Q
|
  |
| Joined: 23 Mar 2013 |
| Total Posts: 5546 |
|
|
| 14 Nov 2017 01:24 PM |
bump!
it only works in studio :( |
|
|
| Report Abuse |
|
|
K7Q
|
  |
| Joined: 23 Mar 2013 |
| Total Posts: 5546 |
|
| |
|