LOBOT44
|
  |
| Joined: 03 Feb 2010 |
| Total Posts: 23539 |
|
|
| 16 Jul 2012 05:25 PM |
rying to make it so that if the players mouse goes over something it spawns a brick to the mouse's position.
local player = script.Parent.Parent.Parent.Backpack local NewPart = Instance.new("Part")
function MouseHover(workspace) if player.Backpack.3 TntBricks.Equipped = true then NewPart.Parent = game.Workspace NewPart.Size = (4, 3.2, 4_ NewPart.Position = MouseHover.Position if player.Backpack.3 Tntbricks.Notequipped = false then NewPart:remove() end end end
|
|
|
| Report Abuse |
|
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
|
| 16 Jul 2012 05:30 PM |
1, Title makes no sense..... 2, (4, 3,2, 4)* 3, you need a connection line 4, spaces in names make errors. 5, so right when it's equipped, if it's not equipped in that same second it removes the NewPart? 6, use :Destroy() 7, 'Notequipped'????? 8, use '==' instead of '=' when comparing values.
|
|
|
| Report Abuse |
|
|
|
| 16 Jul 2012 05:56 PM |
| Idk how to help and good luck with that BUT i have some ADVISE try using the clone function it COULD help idk really though :P |
|
|
| Report Abuse |
|
|
1pie23
|
  |
| Joined: 11 Jul 2010 |
| Total Posts: 1865 |
|
| |
|
| |
|