|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 19 Sep 2016 10:16 AM |
I'm still convinced the problem is not what OP thinks it is
|
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|