of     1   

NeoEclipse
#139180037Friday, July 04, 2014 4:00 AM GMT

How do terminals figure out if a player is near it. And how does the script determine that the person has continuously been near the terminal for x seconds to capture it. yar!!! scurvy land lubbers!
ReveredEngineer
#139180724Friday, July 04, 2014 4:09 AM GMT

Well I'm no terminal maker but here is how I'd do it: Put a BoolValue in the Terminal, use Magnitude to determine if the player is close to it. Use: While plr.Magnitude == YourDistance then BoolValue.Value = true while BoolValue.Value == true do [[ Your fancy timer countdown script]] elseif plr.Magnitude ~= YourDistance then BoolValue.Value = false end I'm no expert in magnitude, you might want to wiki that.
AnonyAnonymous
#139181003Friday, July 04, 2014 4:13 AM GMT

You were on the correct track however, some of it was mixed up, seizurzxzz, You would have to use something like while wait() do for _,Player in pairs(game.Players:GetChildren()) do Part = game.Workspace.Part if (Part.Position.Magnitude - Player.Character.Torso.Position.Magnitude) <= 10 then --Code Here end end end
Brick_man
#139181336Friday, July 04, 2014 4:18 AM GMT

Wouldn't you just put if (Part.Position-Player.Character.Torso.Position).magnitude <= 10 then ? That may also work, but this is what I do.
NeoEclipse
#139181681Friday, July 04, 2014 4:22 AM GMT

Okay, well how would this work if 1, 2, maybe even 3 people are huddled at the terminal? Lets say 2 people are there, but one person has initiated the code. If that person dies, and the terminal is almost captured, the script would end and the other person would sit there unable to pick up where person 1 left off? Heres what I Imagine: One point, King of the Hill. When touched, or at least within a certain distance from the point, the capture point will start counting up in percentages to 100% by a wait() interval. When 100% is reached, the terminal captured status would change to that team. I'm trying to incorporate the factors of 10 people killing eachother around a terminal here. How can the script manage it all? yar!!! scurvy land lubbers!
AnonyAnonymous
#139182255Friday, July 04, 2014 4:29 AM GMT

Yes,Brickman2012, that would work also.
AnonyAnonymous
#139182313Friday, July 04, 2014 4:30 AM GMT

My apologies, pressed the wrong keys *2010

    of     1