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: How can i make functions run faster?

Previous Thread :: Next Thread 
Lupongaku is not online. Lupongaku
Joined: 06 Sep 2016
Total Posts: 6
19 Sep 2016 10:08 AM
When i make a function, there's a little but noticeable delay between firing the function and the function responce.

So, how can i make the function runs instantly?
Maybe by connecting the function that i'm making with the RenderStepped function?

I hope you guys can answer me.

Thank you.
Report Abuse
nicemike40 is not online. nicemike40
Joined: 19 Dec 2008
Total Posts: 1814
19 Sep 2016 10:11 AM
The delay is almost certainly not between calling the function and the function running, as this is basically instantaneous. There MAY be some delay between some action (like touching a brick) occurring and an EVENT firing, but I'm not sure without more information.


Report Abuse
Wunder_Wulfe is not online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
19 Sep 2016 10:12 AM
connecting is always a lot faster than waiting for the event to fire

also

function test()
return "go"
end

local timeWasted = tick()
test()
print(tick()-timeWasted .. " second delay")

and you cant make them run instantly
nothing in this world can do anything instantly

and no you cannot magically boost the power of lua or C unless you edit the setup
Report Abuse
nicemike40 is not online. nicemike40
Joined: 19 Dec 2008
Total Posts: 1814
19 Sep 2016 10:16 AM
I'm still convinced the problem is not what OP thinks it is


Report Abuse
Lupongaku is not online. Lupongaku
Joined: 06 Sep 2016
Total Posts: 6
19 Sep 2016 10:29 AM
If i wanna destroy a brick when it is touched, there's a delay between i touch the part and the part being destroyed.

script.Parent.Touched:connect(function(hit)
if hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") then
script.Parent:Destroy()
end
end)

is there way to fix this?
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
19 Sep 2016 10:30 AM
The delay is like

0.00033 seconds. Relax.

Unless your computer is garbage then i digress


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