|
| 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
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 17 Apr 2015 03:15 PM |
| I don't get the point of this. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
| |
|
|
| 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 |
|
|