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
 

Scripted Welds/CTF Game [Help/Ideas]

Previous Thread :: Next Thread 
devTools is not online. devTools
Joined: 06 Sep 2014
Total Posts: 7950
23 Jun 2015 07:26 PM
How exactly would I make a weld, like for instance welding a flag onto someone's back for a capture the flag game?

OR

What are some other, more unique ideas for a capture the flag game? A GUI above someone's head? A light? What else possibly?

Thanks for the ideas guys!


|devTools|
Report Abuse
devTools is not online. devTools
Joined: 06 Sep 2014
Total Posts: 7950
23 Jun 2015 07:37 PM
B
Report Abuse
devTools is not online. devTools
Joined: 06 Sep 2014
Total Posts: 7950
23 Jun 2015 07:49 PM
U
Report Abuse
CharacterEvan is not online. CharacterEvan
Joined: 15 Oct 2010
Total Posts: 154
23 Jun 2015 07:53 PM
i'll give you some instructions on how to do what you want

i guess ill explain some stuff on how to do what u wanted

so for a flag to go on the back, you can first create a "main" part

p = Instance.new("Part")
p.Name = "Main"
p.CanCollide = false
p.Transparency = 1
p.Anchored = false
p:remove()


now we want to weld that "main" part to the torso

weldyweld = Instance.new("Weld")
weldyweld.Parent = Character.Torso -- whoever touched it's torso, or whatever limb u want it to weld to
weldyweld.Part0 = weldyweld.Parent -- Part0 should be the weld's parent
weldyweld.Part1 = p -- attach it

then you can weld all the parts in the flag to it
but first you need to clone the thing and parent it to the player

newFlag = whatevertheflagmodelis:Clone() -- the flag thing lol
newFlag.Parent = Character

now, weld all the parts in the flag to the main part

for _,Part in pairs(newFlag:GetChildren()) do -- iterate through the cloned flag
W = Instance.new("Weld")
W.Parent = p -- the main part from earlier
W.Part0 = p -- the Part0 should be its parent
W.Part1 = Part -- we attach the part to the main part
end

and boom, that should be pretty much it
i hope you have some scripting knowledge to understand this and write the script fully.
Report Abuse
devTools is not online. devTools
Joined: 06 Sep 2014
Total Posts: 7950
23 Jun 2015 08:46 PM
Okay thanks, i'll tinker with this tonight. I have some basic scripting knowledge, so I think I can do it probably.


|devTools|
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