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: Try your luck?

Previous Thread :: Next Thread 
TheNewChicken is not online. TheNewChicken
Joined: 18 Mar 2015
Total Posts: 1997
17 Apr 2015 03:14 PM
local bin = script.Parent
local NameOfBlock = script.Parent.CurrentBlock.Value
local model1 = script.Parent.BuildingBlocks,(NameOfBlock)
local timeBetween = 0.45
function onButton1Down(mouse)
local model = model1:Clone()
model.Parent = game.Workspace
model:MakeJoints()
model:MoveTo(mouse.Hit.p)
wait(timeBetween)
end
function onSelected(mouse)
mouse.Button1Down:connect(function()onButton1Down(mouse)end)
mouse.Icon = 'rbxasset://textures\\GunCursor.png'
script.Parent.BlockGui:Clone().Parent = script.Parent.Parent.Parent.PlayerGui
end
function onDeSelected()
script.Parent.Parent.Parent.PlayerGui.BlockGui:Destroy()
end
bin.Selected:connect(onSelected)
bin.Deselected:connect(onDeSelected)
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
17 Apr 2015 03:15 PM
I don't get the point of this.
Report Abuse
TheNewChicken is not online. TheNewChicken
Joined: 18 Mar 2015
Total Posts: 1997
17 Apr 2015 03:16 PM
Im making custom btools, please help?

local NameOfBlock = script.Parent.CurrentBlock.Value
local model1 = script.Parent.BuildingBlocks,(NameOfBlock)


Ive detrmined thats broke
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
17 Apr 2015 03:17 PM
local NameOfBlock = script.Parent.CurrentBlock
local model1 = script.Parent.BuildingBlocks

Then to get the current model, you have to go model1[NameOfBlock.Value]
Report Abuse
TheNewChicken is not online. TheNewChicken
Joined: 18 Mar 2015
Total Posts: 1997
17 Apr 2015 03:35 PM
thx lemme try
Report Abuse
TheNewChicken is not online. TheNewChicken
Joined: 18 Mar 2015
Total Posts: 1997
17 Apr 2015 03:37 PM
local b = script.Parent.Parent.Parent.Parent.Parent.Backpack.BlockPlacer.CurrentBlock
function White()
b.Value = 'White'
end
function Blue()
b.Value = 'Blue'
end
function Black()
b.Value = 'Black'
end
function Yellow()
b.Value = 'Yellow'
end
function Red()
b.Value = 'Red'
end
function Green()
b.Value = 'Green'
end
function Pink()
b.Value = 'Pink'
end
script.Parent.White.MouseButton1Down:connect(White)
script.Parent.Blue.MouseButton1Down:connect(Blue)
script.Parent.Black.MouseButton1Down:connect(Black)
script.Parent.Yellow.MouseButton1Down:connect(Yellow)
script.Parent.Red.MouseButton1Down:connect(Red)
script.Parent.Green.MouseButton1Down:connect(Green)
script.Parent.Pink.MouseButton1Down:connect(Pink)



Ok but this wont work. thx.
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