generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: works in test mode but not when i play the game

Previous Thread :: Next Thread 
K7Q is not online. 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
Lightning_Dev is not online. Lightning_Dev
Joined: 24 Feb 2016
Total Posts: 380
14 Nov 2017 11:15 AM
Is this in a LocalScript? Where is the script located?
Report Abuse
K7Q is not online. K7Q
Joined: 23 Mar 2013
Total Posts: 5546
14 Nov 2017 11:17 AM
this is a localscript under players character
Report Abuse
PossibIy is online. 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 is not online. 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 is online. 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 is not online. RobuxLife
Joined: 19 Sep 2012
Total Posts: 13336
14 Nov 2017 11:23 AM
I don't get why people use KeyDown.


Report Abuse
Lightning_Dev is not online. Lightning_Dev
Joined: 24 Feb 2016
Total Posts: 380
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 is online. 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 is online. 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 is not online. K7Q
Joined: 23 Mar 2013
Total Posts: 5546
14 Nov 2017 11:38 AM
so... any help? output doesnt say anything
Report Abuse
K7Q is not online. K7Q
Joined: 23 Mar 2013
Total Posts: 5546
14 Nov 2017 12:04 PM
bump
Report Abuse
K7Q is not online. K7Q
Joined: 23 Mar 2013
Total Posts: 5546
14 Nov 2017 12:37 PM
bump


Report Abuse
K7Q is not online. 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 is not online. K7Q
Joined: 23 Mar 2013
Total Posts: 5546
14 Nov 2017 01:13 PM
bump
Report Abuse
K7Q is not online. K7Q
Joined: 23 Mar 2013
Total Posts: 5546
14 Nov 2017 01:24 PM
bump!


it only works in studio :(
Report Abuse
K7Q is not online. K7Q
Joined: 23 Mar 2013
Total Posts: 5546
14 Nov 2017 04:59 PM
bump
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image