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: tool problem

Previous Thread :: Next Thread 
vastqud is not online. vastqud
Joined: 10 Sep 2011
Total Posts: 2464
19 Sep 2015 11:08 AM
alright so I had my brother make me a flare gun, and I scripted the flare gun

the actual flare shooting part of it works perfectly, but not the welding

here is the weld script:

tool = script.Parent
while not tool:FindFirstChild("WeldProfile") do wait() end
Parts = script.Parent:GetChildren()
function reweld()
for i = 1,#Parts do
local b = Parts.Value
local w = Instance.new("Weld")
w.Part0 = script.Parent.Handle
w.Part1 = script.Parent.Part
w.C0 = script.Parent.Handle.CFrame:inverse()
w.C1 = script.Parent.Part.CFrame:inverse()
Parts.Anchored = false
end
end
tool.Equipped:connect(reweld)
reweld()




when I take out the tool, I am only holding one block and some of the tool gets put into workspace somewhere else, and the other parts of it are just gone

help?
Report Abuse
morashsPeasant is not online. morashsPeasant
Joined: 06 Jan 2011
Total Posts: 4944
19 Sep 2015 11:12 AM
weld.C0 = script.Parent.Handle.CFrame:inverse * script.Parent.Parent.CFrame
according to the wiki

while true do the do
Report Abuse
morashsPeasant is not online. morashsPeasant
Joined: 06 Jan 2011
Total Posts: 4944
19 Sep 2015 11:12 AM
inverse()*

while true do the do
Report Abuse
vastqud is not online. vastqud
Joined: 10 Sep 2011
Total Posts: 2464
19 Sep 2015 11:22 AM
you have the best siggy ever made
Report Abuse
vastqud is not online. vastqud
Joined: 10 Sep 2011
Total Posts: 2464
19 Sep 2015 11:27 AM
it still does the same thing :/
Report Abuse
vastqud is not online. vastqud
Joined: 10 Sep 2011
Total Posts: 2464
19 Sep 2015 11:30 AM
anyone help?

please??
Report Abuse
Vescule is not online. Vescule
Joined: 23 Jan 2014
Total Posts: 72
19 Sep 2015 11:32 AM
What I usually do is I get the weld script then I put a weld in each part. Did you do that?



=== VESCULE | SCRIPTER ===
Report Abuse
vastqud is not online. vastqud
Joined: 10 Sep 2011
Total Posts: 2464
19 Sep 2015 11:45 AM
no..

I used this exact script for a flashlight tool and it worked fine, I don't know why it isn't working now
Report Abuse
Vescule is not online. Vescule
Joined: 23 Jan 2014
Total Posts: 72
19 Sep 2015 11:59 AM
Try that


=== VESCULE | SCRIPTER ===
Report Abuse
vastqud is not online. vastqud
Joined: 10 Sep 2011
Total Posts: 2464
19 Sep 2015 12:11 PM
yeah I put a weld into every part and it still didn't work
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