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: Expert Help Needed | About Ro Soccer

Previous Thread :: Next Thread 
Zevios is not online. Zevios
Joined: 14 Sep 2013
Total Posts: 504
15 Nov 2016 02:37 PM
If you have heard of the term "plag" or "player lag", is there ANY possible way to remove this?
Report Abuse
Stiiky is not online. Stiiky
Joined: 15 Jan 2010
Total Posts: 451
15 Nov 2016 02:38 PM
make script more efficent


Report Abuse
Zevios is not online. Zevios
Joined: 14 Sep 2013
Total Posts: 504
15 Nov 2016 02:42 PM
In fact, this INCREASES player lag.

I made the whole place more efficient by removing parts and it just so happens that plag is QUICKER
Report Abuse
Stiiky is not online. Stiiky
Joined: 15 Jan 2010
Total Posts: 451
15 Nov 2016 02:50 PM
The script... not the place.. THE SCRIPTS


Report Abuse
Zevios is not online. Zevios
Joined: 14 Sep 2013
Total Posts: 504
16 Nov 2016 09:10 AM
Bump
Report Abuse
RubyEpicDragon is not online. RubyEpicDragon
Joined: 02 May 2015
Total Posts: 1211
16 Nov 2016 09:19 AM
remove player lag?
use more local scripts instead of server side scripts.
also, use remote events, if that doesn't work then try disabling FE.
Report Abuse
Zevios is not online. Zevios
Joined: 14 Sep 2013
Total Posts: 504
21 Nov 2016 06:42 AM
Bump
Report Abuse
HlCOM is not online. HlCOM
Joined: 29 Mar 2009
Total Posts: 3332
21 Nov 2016 07:11 AM
we need to know what specifically is lagging as well as the script
Report Abuse
Zevios is not online. Zevios
Joined: 14 Sep 2013
Total Posts: 504
21 Nov 2016 07:17 AM
RL.Touched:connect(function(hit) if Kick == false then return end if hit.Locked == true or ############ ## true then return end Kick = false end) Basically, hit = a ball. The function is triggered when you click. The problem is that you can ##### ### #### with your right leg, move away from the ball, click and the ball STILL moves. Quite complicated, but i hope someone can ### ##### #### around it
Report Abuse
Zevios is not online. Zevios
Joined: 14 Sep 2013
Total Posts: 504
21 Nov 2016 07:18 AM
RL.Touched:connect(function(hit)
if Kick == false then return end
if hit.Locked == true then return end
Kick = false
end)

Basically, hit = a ball.

The function is triggered when you click.

The problem is that you can tap with your right leg, move away from the ball, click and the ball STILL moves. Quite complicated, but i hope someone can understand it
Report Abuse
Zevios is not online. Zevios
Joined: 14 Sep 2013
Total Posts: 504
21 Nov 2016 07:22 AM
I only want the function to trigger IF the right leg is STILL connected to the ball
Report Abuse
HlCOM is not online. HlCOM
Joined: 29 Mar 2009
Total Posts: 3332
21 Nov 2016 07:25 AM
uh are you using bodymovers to move the ball

also that snippet of code tells me nothing all it does it set kick to false

need more code
Report Abuse
Zevios is not online. Zevios
Joined: 14 Sep 2013
Total Posts: 504
21 Nov 2016 07:26 AM
It's 46 lines but here you go


local debris = game:service("Debris")
Go = script.Parent.Parent.Kick
Go1 = script.Parent.Parent.BKick
Go.Value = 0
Go1.Value = 0
Kick = false
script.Parent.Selected:connect(function(m)
m.Button1Down:connect(function()
if Go.Value == 1 then return end
Go.Value = 1
if script.Parent.Parent.Parent.Character == nil then return end
if script.Parent.Parent.Parent.Character:findFirstChild("Torso") == nil then return end
if script.Parent.Parent.Parent.Character:findFirstChild("Right Leg") == nil then return end
Torso = script.Parent.Parent.Parent.Character.Torso
RL = script.Parent.Parent.Parent.Character["Right Leg"]
Hip = Torso["Right Hip"]
Hip.Part1 = nil
W = Instance.new("Weld")
W.Parent = RL
W.Part0 = Torso
W.Part1 = RL
Kick = true
script.Parent.Parent.Parent.Character.Humanoid.WalkSpeed = 20
LH = script.Parent.Parent.Parent.Character.Torso["Left Hip"]
RH = script.Parent.Parent.Parent.Character.Torso["Right Hip"]
LH.MaxVelocity = "0.2"
RH.MaxVelocity = "0.2"
W.C0 = CFrame.new(0.5,-1.8,-0.5) * CFrame.fromEulerAnglesXYZ(math.pi/8,0,0)
RL.Touched:connect(function(hit)
if Kick == false then return end
if hit.Locked == true or hi############=##rue then return end
if not RL then return end
Kick = false
F = Instance.new("BodyVelocity")
F.Parent = hit
F.velocity = RL.CFrame.lookVector * 25
F.maxForce = Vector3.new(9e+010,1e+005,9e+010)
debris:AddItem(F,0.3)
end)
wait(0.7)
Kick = false
W:Remove()
Hip.Part1 = RL
Go.Value = 0
Go1.Value = 0
end)
end)
Report Abuse
Zevios is not online. Zevios
Joined: 14 Sep 2013
Total Posts: 504
21 Nov 2016 07:26 AM
###########################################
Report Abuse
HlCOM is not online. HlCOM
Joined: 29 Mar 2009
Total Posts: 3332
21 Nov 2016 07:27 AM
"debris:AddItem(F,0.3)"

that's keeping the force on there for 0.3 seconds
Report Abuse
Zevios is not online. Zevios
Joined: 14 Sep 2013
Total Posts: 504
21 Nov 2016 07:29 AM
Oh, thanks, Ill remove this number and test if it works. Glad you could help i thought no one was gonna come up with an answer.
Report Abuse
HlCOM is not online. HlCOM
Joined: 29 Mar 2009
Total Posts: 3332
21 Nov 2016 07:30 AM
no don't remove the number or else it will keep the force on there for 10 seconds

just do like 0.03 instead of 0.3
Report Abuse
Zevios is not online. Zevios
Joined: 14 Sep 2013
Total Posts: 504
21 Nov 2016 07:33 AM
Ok
Report Abuse
HlCOM is not online. HlCOM
Joined: 29 Mar 2009
Total Posts: 3332
21 Nov 2016 07:34 AM
not sure if that is gonna fix it but yeah try it
Report Abuse
Zevios is not online. Zevios
Joined: 14 Sep 2013
Total Posts: 504
21 Nov 2016 07:43 AM
Unfortunately, it only ended the force on the ball quicker.

But Im beginning to think that there must be a property or something to do with physics to remove plag.
Report Abuse
HlCOM is not online. HlCOM
Joined: 29 Mar 2009
Total Posts: 3332
21 Nov 2016 07:53 AM
idk maybe the problem's right there and i'm not seeing it, pretty tired atm.
wanna add me to teamcreate?

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