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: Weld

Previous Thread :: Next Thread 
DeathsLASTwords is not online. DeathsLASTwords
Joined: 28 Jan 2012
Total Posts: 2701
16 Sep 2015 06:31 PM
I cant seem to figure out whats wrong with this. No errors, it never even makes the left_arm

#code game.Players.PlayerAdded:connect(function(player)
left_arm = Instance.new("Part",game.Workspace)
left_arm.Name = "left_arm"
left_arm.BrickColor = BrickColor.new("Pastel yellow")
left_arm.Size = Vector3.new(1,2,1)
--left_arm.Surface = Enum.SurfaceType.Smooth
wait(3)
WeldPart = player.Character["Left Arm"]
left_arm.CFrame = WeldPart.CFrame * CFrame.new(0,0,0)
weld = Instance.new("Weld")
weld.Part0 = WeldPart
weld.C0 = WeldPart.CFrame:inverse()
weld.Part1 = left_arm
weld.C1 = left_arm.CFrame:inverse()
weld.Parent = left_arm

left_arm.Anchored = false
end)



(This is my signature): Im extremely sarcastic, but most of the time I will provide useful info for you! :)
Report Abuse
Scripth is not online. Scripth
Joined: 23 Jun 2013
Total Posts: 1724
16 Sep 2015 06:31 PM
make it wait for the character?
Report Abuse
Scripth is not online. Scripth
Joined: 23 Jun 2013
Total Posts: 1724
16 Sep 2015 06:32 PM
What are you trying to achieve thru this?
Report Abuse
DeathsLASTwords is not online. DeathsLASTwords
Joined: 28 Jan 2012
Total Posts: 2701
16 Sep 2015 06:34 PM

game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
left_arm = Instance.new("Part",game.Workspace)
left_arm.Name = "left_arm"
left_arm.BrickColor = BrickColor.new("Pastel yellow")
left_arm.Size = Vector3.new(1,2,1)
--left_arm.Surface = Enum.SurfaceType.Smooth
wait(1)
WeldPart = player.Character["Left Arm"]
left_arm.CFrame = WeldPart.CFrame * CFrame.new(0,0,0)
weld = Instance.new("Weld")
weld.Part0 = WeldPart
weld.C0 = WeldPart.CFrame:inverse()
weld.Part1 = left_arm
weld.C1 = left_arm.CFrame:inverse()
weld.Parent = left_arm
left_arm.CanCollide = false
left_arm.Anchored = false
end)
end)





I did that, but now im stuck in the air... and i cant move


(This is my signature): Im extremely sarcastic, but most of the time I will provide useful info for you! :)
Report Abuse
DeathsLASTwords is not online. DeathsLASTwords
Joined: 28 Jan 2012
Total Posts: 2701
16 Sep 2015 06:35 PM
Even if im on the ground, the brick still acts as if it were "anchored" i suppose? I cant move


(This is my signature): Im extremely sarcastic, but most of the time I will provide useful info for you! :)
Report Abuse
DeathsLASTwords is not online. DeathsLASTwords
Joined: 28 Jan 2012
Total Posts: 2701
16 Sep 2015 06:36 PM
Im trying to create a "fake arm" but right now im kinda trying to get the fake arms to weld to the real ones.


(This is my signature): Im extremely sarcastic, but most of the time I will provide useful info for you! :)
Report Abuse
Scripth is not online. Scripth
Joined: 23 Jun 2013
Total Posts: 1724
16 Sep 2015 06:36 PM
That's a bug with welds, what are you currently trying to achieve thru doing this? Making it so you can have attachments to your left arm?
Report Abuse
DeathsLASTwords is not online. DeathsLASTwords
Joined: 28 Jan 2012
Total Posts: 2701
16 Sep 2015 06:37 PM
Im going to make a Gun, and in first person it will show the arms with fake welds as arms. Ive seen it done before, but is there any way to fix the weld acting as "anchored"?


(This is my signature): Im extremely sarcastic, but most of the time I will provide useful info for you! :)
Report Abuse
Scripth is not online. Scripth
Joined: 23 Jun 2013
Total Posts: 1724
16 Sep 2015 06:38 PM
game.Players.PlayerAdded:connect(function(player)
repeat wait() until player.Character
WeldPart=player.Character['Left Arm']
left_arm = Instance.new("Part",game.Workspace)
left_arm.Name = "left_arm"
left_arm.Anchored=true
left_arm.BrickColor = BrickColor.new("Pastel yellow")
left_arm.Size = Vector3.new(1,2,1)
--left_arm.Surface = Enum.SurfaceType.Smooth
wait(3)
weld=Instance.new('Weld',WeldPart)
weld.Part0=WeldPart
weld.Part1=left_arm
left_arm.Anchored = false
end)
Report Abuse
DeathsLASTwords is not online. DeathsLASTwords
Joined: 28 Jan 2012
Total Posts: 2701
16 Sep 2015 06:39 PM
Same exact thing happened.. :(


(This is my signature): Im extremely sarcastic, but most of the time I will provide useful info for you! :)
Report Abuse
Scripth is not online. Scripth
Joined: 23 Jun 2013
Total Posts: 1724
16 Sep 2015 06:41 PM
game.Players.PlayerAdded:connect(function(player)
repeat wait() until player.Character
WeldPart=player.Character['Left Arm']
left_arm = WeldPart:Clone()
left_arm.Parent=WeldPart
weld=Instance.new('Weld',WeldPart)
weld.Part0=WeldPart
weld.Part1=left_arm
weld.C0=CFrame.new()
end)
maybe idk
Report Abuse
DeathsLASTwords is not online. DeathsLASTwords
Joined: 28 Jan 2012
Total Posts: 2701
16 Sep 2015 06:43 PM
Erm....that works
why didnt mine work? :(

(This is my signature): Im extremely sarcastic, but most of the time I will provide useful info for you! :)
Report Abuse
Scripth is not online. Scripth
Joined: 23 Jun 2013
Total Posts: 1724
16 Sep 2015 06:43 PM
because roblox has secular autism
Report Abuse
Scripth is not online. Scripth
Joined: 23 Jun 2013
Total Posts: 1724
16 Sep 2015 06:44 PM
It was also probably because the part was in the workspace instead of your character model, may have done some issues but TBH I have no clue
Report Abuse
DeathsLASTwords is not online. DeathsLASTwords
Joined: 28 Jan 2012
Total Posts: 2701
16 Sep 2015 06:44 PM
So apparently if you put it in the left arm it doesnt "anchor" however you dont see it in firstperson, which is what im aiming for.


(This is my signature): Im extremely sarcastic, but most of the time I will provide useful info for you! :)
Report Abuse
Scripth is not online. Scripth
Joined: 23 Jun 2013
Total Posts: 1724
16 Sep 2015 06:45 PM
if it's a localscript put it in the camera
Report Abuse
DeathsLASTwords is not online. DeathsLASTwords
Joined: 28 Jan 2012
Total Posts: 2701
16 Sep 2015 06:47 PM
erm... i guess ill try that


(This is my signature): Im extremely sarcastic, but most of the time I will provide useful info for you! :)
Report Abuse
DeathsLASTwords is not online. DeathsLASTwords
Joined: 28 Jan 2012
Total Posts: 2701
16 Sep 2015 06:51 PM
works... i can just make it a local script and put it with the equipped event on my gun, now all i need to do is figure out how to make your arms "bob" when you move instead of just staying still.



(This is my signature): Im extremely sarcastic, but most of the time I will provide useful info for you! :)
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
16 Sep 2015 06:54 PM
u should be like axis angle and apply physics everywhere
Report Abuse
DeathsLASTwords is not online. DeathsLASTwords
Joined: 28 Jan 2012
Total Posts: 2701
16 Sep 2015 06:55 PM
Erm.. care to explain a bit?


(This is my signature): Im extremely sarcastic, but most of the time I will provide useful info for you! :)
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
16 Sep 2015 06:57 PM
http://www.roblox.com/games/86802260/Phantom-Forces-Demo
Report Abuse
DeathsLASTwords is not online. DeathsLASTwords
Joined: 28 Jan 2012
Total Posts: 2701
16 Sep 2015 06:58 PM
LOCALSCRIPT, same error, still has the weld as "anchored"


local player = game.Players.LocalPlayer
repeat wait() until player.Character
local character = game.Players.LocalPlayer.Character
print("----- PERFORMING WELD -----")
left_arm = Instance.new("Part",game.Workspace.CurrentCamera)
left_arm.Name = "left_arm"
left_arm.BrickColor = character["Left Arm"].BrickColor
left_arm.Size = Vector3.new(1,2,1)
left_arm.Anchored = false
--left_arm.Surface = Enum.SurfaceType.Smooth
wait()
WeldPart = player.Character["Left Arm"]
left_arm.CFrame = WeldPart.CFrame * CFrame.new(0,0,0)
weld = Instance.new("Weld")
weld.Part0 = WeldPart
weld.C0 = WeldPart.CFrame:inverse()
weld.Part1 = left_arm
weld.C1 = left_arm.CFrame:inverse()
weld.Parent = left_arm
left_arm.Anchored = false



(This is my signature): Im extremely sarcastic, but most of the time I will provide useful info for you! :)
Report Abuse
DeathsLASTwords is not online. DeathsLASTwords
Joined: 28 Jan 2012
Total Posts: 2701
16 Sep 2015 06:59 PM
As in the part acts as if it were anchored


(This is my signature): Im extremely sarcastic, but most of the time I will provide useful info for you! :)
Report Abuse
DeathsLASTwords is not online. DeathsLASTwords
Joined: 28 Jan 2012
Total Posts: 2701
16 Sep 2015 07:05 PM
Bump??


(This is my signature): Im extremely sarcastic, but most of the time I will provide useful info for you! :)
Report Abuse
DeathsLASTwords is not online. DeathsLASTwords
Joined: 28 Jan 2012
Total Posts: 2701
16 Sep 2015 07:14 PM
Bump..


(This is my signature): Im extremely sarcastic, but most of the time I will provide useful info for you! :)
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