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: Anchored Help

Previous Thread :: Next Thread 
TheMadGamer321 is not online. TheMadGamer321
Joined: 13 Jul 2015
Total Posts: 211
18 Jan 2017 06:34 AM
Okey i really need help to Anchored the knife so when the player is moving then the knife will not move, i have tryed:

knife.Anchored = true

i have weld the knife to right leg but if i try knife.Anchored = true then the right leg is also anchoring, plz anyone help me!
Report Abuse
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
18 Jan 2017 06:39 AM
I'm not quite sure what you're asking. Welding works exactly how it sounds. When you weld one part to another, it, in a sense, glues the two parts together.


~MightyDantheman~
Report Abuse
TheMadGamer321 is not online. TheMadGamer321
Joined: 13 Jul 2015
Total Posts: 211
18 Jan 2017 06:47 AM
I send you Friendrequest accept it so i can try to give you more details
Report Abuse
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
18 Jan 2017 06:48 AM
Can you just put them here?


~MightyDantheman~
Report Abuse
TheMadGamer321 is not online. TheMadGamer321
Joined: 13 Jul 2015
Total Posts: 211
18 Jan 2017 06:53 AM
Yes, okey if you have Played Assassin 1! before, or MM2 = Murder Mystery 2 then you know what am i talking about. I need help with when a player join they have there Basic knife on there Right Leg, but i don't need so when the player walk then the knife like move with the leg, no i wan't it Anchored so it's dosen't move. You can try play Assassin 1! here if you haven't play it jet:

https://www.roblox.com/games/379614936/Assassin
Report Abuse
g00bas is not online. g00bas
Joined: 04 Dec 2010
Total Posts: 24544
18 Jan 2017 06:53 AM
can you provide a screenshot/gif?


Report Abuse
TheMadGamer321 is not online. TheMadGamer321
Joined: 13 Jul 2015
Total Posts: 211
18 Jan 2017 06:55 AM
Yes, 2 sec
Report Abuse
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
18 Jan 2017 06:56 AM
Do you mean while the player is holding the knife?


~MightyDantheman~
Report Abuse
TheMadGamer321 is not online. TheMadGamer321
Joined: 13 Jul 2015
Total Posts: 211
18 Jan 2017 06:56 AM
no, try play the game
Report Abuse
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
18 Jan 2017 06:56 AM
Oh, I see. Weld the knife to the player's Torso or HumanoidRootPart then.


~MightyDantheman~
Report Abuse
TheMadGamer321 is not online. TheMadGamer321
Joined: 13 Jul 2015
Total Posts: 211
18 Jan 2017 06:58 AM
Um Here is my script, but how can i weld it to HumanoidRoot thing:


local function weldBetween(a, b)
local weld = Instance.new("Weld")
weld. Part 0 = a
weld. Part 1 = b
weld. C0 = a.CFrame:inverse() * b.CFrame
weld. Parent = a
end

game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
local knife = game.Workspace.BasicKnife.Handle:Clone()
knife.CFrame = character:WaitForChild("Right Leg").CFrame*CFrame.new(Vector3.new(0.26,0.55,0))*CFrame.Angles(-45,math.rad(-180),math.rad(180))
knife.Parent = character
weldBetween(character:WaitForChild("Right Leg"), knife)
end)
end)
Report Abuse
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
18 Jan 2017 07:03 AM
The HumanoidRootPart is in the same place as all the other parts are.

Character.HumanoidRootPart


~MightyDantheman~
Report Abuse
TheMadGamer321 is not online. TheMadGamer321
Joined: 13 Jul 2015
Total Posts: 211
18 Jan 2017 07:07 AM
Thx get it working, but i need help with if a player equip another knife, how will the knife change
Report Abuse
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
18 Jan 2017 07:09 AM
If you want to make it easy, just make the welded knife invisible while the player has another knife equipped. I'm not entirely sure how to do the whole arm position welding thing. I've never tried to make my own non-tool custom weapons before. :P

If you do want to use a tool, though, it'll make things quite a bit easier.


~MightyDantheman~
Report Abuse
TheMadGamer321 is not online. TheMadGamer321
Joined: 13 Jul 2015
Total Posts: 211
18 Jan 2017 07:13 AM
okey so how i can do it?
Report Abuse
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
18 Jan 2017 07:19 AM
With a tool or custom weapon?


~MightyDantheman~
Report Abuse
TheMadGamer321 is not online. TheMadGamer321
Joined: 13 Jul 2015
Total Posts: 211
18 Jan 2017 07:19 AM
Bump1, what will the script be for it then?
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