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
|
  |
| Joined: 06 Sep 2014 |
| Total Posts: 7950 |
|
| |
|
devTools
|
  |
| Joined: 06 Sep 2014 |
| Total Posts: 7950 |
|
| |
|
|
| 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
|
  |
| 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 |
|
|