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 » Scripting Helpers
Home Search
 

Re: Problem with tool falling off

Previous Thread :: Next Thread 
Raidorz is not online. Raidorz
Joined: 28 Apr 2011
Total Posts: 5221
07 Nov 2014 11:32 AM
The script
x = script.Parent.Handle
F = Instance.new("Fire")

function onActivated()
x.Shape = "Ball"
x.BrickColor = BrickColor.new("Medium blue")
x.Transparency = 0.5

for fist = 1,20 do
x.Mesh.Scale = x.Mesh.Scale +Vector3.new(0.05,0.05,0.05)
wait()
end

wait(3)

for fist = 1,20 do
x.Mesh.Scale = x.Mesh.Scale -Vector3.new(0.05,0.05,0.05)

wait()

end

wait()
x.Size = Vector3.new(5,5,1)


if x:FindFirstChild("Fire") == nil then
F.Parent = x
end
end
script.Parent.Activated:connect(onActivated)

This is a tool, when I click, it grows and then after 3 seconds it shrinks again but then it falls of my hand, help please.
No error message.
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
07 Nov 2014 11:38 AM
Changing the size of the handle breaks the weld that keep it in your hands.
Report Abuse
Raidorz is not online. Raidorz
Joined: 28 Apr 2011
Total Posts: 5221
07 Nov 2014 11:40 AM
It doesn't break the weld when it stays 3 seconds so why would it break if it shrinks??
Report Abuse
Raidorz is not online. Raidorz
Joined: 28 Apr 2011
Total Posts: 5221
07 Nov 2014 03:13 PM
Bump
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
07 Nov 2014 03:16 PM
It breaks the weld.
Report Abuse
Raidorz is not online. Raidorz
Joined: 28 Apr 2011
Total Posts: 5221
07 Nov 2014 03:40 PM
Is there a way to work around it, a lot of games use it? Or do they just remove it after it grows?
Report Abuse
Raidorz is not online. Raidorz
Joined: 28 Apr 2011
Total Posts: 5221
07 Nov 2014 04:26 PM
No, really? No working around?

So I am only able to make it bigger and then remove it after the 3 seconds passed, I'm fine with that.
Too bad, I still think there is a way to work around it tho..
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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