of     1   

logarhythm
#159634606Tuesday, April 07, 2015 9:08 PM GMT

Hi, I'm trying to make a system to reset the flags on my CTF map after a certain period of time. Currently, when the flag enters the workspace (as opposed to a player model or the FlagSet), a timer is started. When it reaches 0, I just :Destroy() the flag. When the bottom surface of the flag corresponds to the top surface of the flag stand (e.g. studs and inlets), this works perfectly. However, the flags now have a tendency to stick to the stand. When I make one of the surfaces smooth, the flag does not reappear after being destroyed. What's the best method to fix this? How do you reset the flag/send it back to the stand?
logarhythm
#159634741Tuesday, April 07, 2015 9:09 PM GMT

I would prefer to continue using the :Destroy() method, as it also works as a failsafe in the event that the flag is destroyed by a player.
Hibobb
#159634987Tuesday, April 07, 2015 9:12 PM GMT

What currently happens when a player touches the flag? Is a weld created between their torso and the flag? And how is the flag connected to the flag stand? Alpha release of my game. Send me any bugs you find with the gun. http://www.roblox.com/games/200667607/Sniper-Stuff-ALPHA
logarhythm
#159635281Tuesday, April 07, 2015 9:15 PM GMT

The player picks up the flag as they normally would. However, as it is "stuck" to the flag stand, they are turned sideways and have to re-select the flag to continue moving.
logarhythm
#159638412Tuesday, April 07, 2015 9:47 PM GMT

my current solution. it's pretty ugly, but it works for now: script.Parent.ChildAdded:connect(function(instance) if instance:findFirstChild("Handle") then wait() instance.Handle.BottomSurface = "Smooth" instance.Handle.Position = Vector3.new(instance.Handle.Position.x, instance.Handle.Position.y + 0.2, instance.Handle.Position.z) instance.Handle.BottomSurface = "Inlet" end end) wait() for i, child in ipairs(script.Parent:GetChildren()) do if child:IsA("Flag") then child.Parent = workspace child:Destroy() end end
TimeTicks
#159638776Tuesday, April 07, 2015 9:51 PM GMT

I just made the system like 3 days ago. It's extreemly useful for people with CTF systems. http://www.roblox.com/TimeTicks-Custom-CTF-Set-item?id=233984676
logarhythm
#159641446Tuesday, April 07, 2015 10:19 PM GMT

I'm remaking miked's paintball to learn Lua, so I'm trying to do it all by myself! Thanks, though! Here's a poor-quality before-and-after video (wasn't willing to wait for it to upload, so I compressed it and removed the audio): https://www.youtube.com/watch?v=MjgjUIgoxFY

    of     1