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
 

Converting a hopperbin to a tool

Previous Thread :: Next Thread 
xlaser23 is not online. xlaser23
Joined: 10 Dec 2011
Total Posts: 20341
14 Jun 2015 02:11 PM
bin = script.Parent
player = bin.Parent.Parent

function onButton1Down(mouse)
if game.Workspace:findFirstChild("Karts") then
player.Roullete.Value = false
print("Placing Banana")
peel = Instance.new("Part", game.Workspace)
peel.Name = "Banana"
peel.Size = Vector3.new(1, 2.4, 1)
peel.Anchored = true
peel.CanCollide = false
peel.CFrame = game.Workspace.Karts[player.Name].EnginePart.CFrame + Vector3.new(0, -0.3, 0)
shape = Instance.new("SpecialMesh", peel)
shape.MeshId = "http://www.roblox.com/asset/?id=28937301"
shape.TextureId = "http://www.roblox.com/asset/?id=28937670"
shape.Scale = Vector3.new(1.5, 2, 1.5)
whoops = bin.Slip:Clone()
whoops.Parent = peel
whoops.Disabled = false
bin:Remove()
end
end

function onSelected(mouse)
mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end

bin.Selected:connect(onSelected)


welp, Im trying to convert

I need additional help plox
Report Abuse
xlaser23 is not online. xlaser23
Joined: 10 Dec 2011
Total Posts: 20341
14 Jun 2015 02:39 PM
Help me PLox
Report Abuse
Egzekiel is not online. Egzekiel
Joined: 10 Jan 2011
Total Posts: 1079
14 Jun 2015 02:49 PM
HopperBin -> Tool
.Selected -> .Equipped
.MouseButton1Down -> .Activated
.MouseButton1Up -> .Deactivated
.Deselected -> .Unequipped
Report Abuse
xlaser23 is not online. xlaser23
Joined: 10 Dec 2011
Total Posts: 20341
14 Jun 2015 02:50 PM
thank u .3.
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