of     1   

coelho714
#778331Thursday, April 17, 2008 7:21 PM GMT

Lemme explain: I've made a place brick button, but when I go on Solo, it works. If I go to Online, it works, but then stops working. Any idea? function place(pos) local p = Instance.new("Part") p.Parent = workspace p.Position = pos p.Name = "Brick"..math.random(1, 90000) local i = Instance.new("StringValue") i.Parent = p i.Name = "NameCheck" i.Value = script.Parent.Parent.Parent.Name end enabled = true function onButton1Down(mouse) if not enabled then return end enabled = false place(mouse.Hit.p) mouse.Icon = "rbxasset://textures\\GunWaitCursor.png" wait(0.1) mouse.Icon = "rbxasset://textures\\GunCursor.png" enabled = true end function onSelected(mouse) mouse.Icon = "rbxasset://textures\\GunCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end script.Parent.Selected:connect(onSelected) That's the script. Someone mind try to fix it?
XlegoX
#778342Thursday, April 17, 2008 7:23 PM GMT

p.Parent = workspace p.Parent = game.Workspace ;)
coelho714
#778346Thursday, April 17, 2008 7:24 PM GMT

Actually, both work. :P
jeffcena
#778354Thursday, April 17, 2008 7:27 PM GMT

What does OutPut say?
XlegoX
#778357Thursday, April 17, 2008 7:27 PM GMT

not in on-line ;)
XlegoX
#778361Thursday, April 17, 2008 7:27 PM GMT

jeff, the problem is in on-line, you can't see any output ;) (since it's a localscript)
jeffcena
#778365Thursday, April 17, 2008 7:28 PM GMT

function place(pos) local p = Instance.new("Part") p.Parent = game.Workspace p.Position = pos p.Name = "Brick"..math.random(1, 90000) local i = Instance.new("StringValue") i.Parent = p i.Name = "NameCheck" i.Value = script.Parent.Parent.Parent.Name end enabled = true function onButton1Down(mouse) if not enabled then return end enabled = false place(mouse.Hit.p) mouse.Icon = "rbxasset://textures\\GunWaitCursor.png" wait(0.1) mouse.Icon = "rbxasset://textures\\GunCursor.png" enabled = true end function onSelected(mouse) mouse.Icon = "rbxasset://textures\\GunCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end script.Parent.Selected:connect(onSelected)
coelho714
#778373Thursday, April 17, 2008 7:29 PM GMT

By the way, it's not only stop working, but when I use it, it is like doing like mouse.Target, instead of mouse.Hit.p.
jeffcena
#778380Thursday, April 17, 2008 7:30 PM GMT

function place(pos) local p = Instance.new("Part") p.Parent = game.Workspace p.Position = pos p.Name = "Brick"..math.random(1, 90000) local i = Instance.new("StringValue") i.Parent = p i.Name = "NameCheck" i.Value = script.Parent.Parent.Parent.Name end enabled = true function onButton1Down(mouse) if not enabled then return end enabled = false place(mouse.Target) mouse.Icon = "rbxasset://textures\\GunWaitCursor.png" wait(0.1) mouse.Icon = "rbxasset://textures\\GunCursor.png" enabled = true end function onSelected(mouse) mouse.Icon = "rbxasset://textures\\GunCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end script.Parent.Selected:connect(onSelected)
coelho714
#778418Thursday, April 17, 2008 7:35 PM GMT

D: Go in my default place and you'll see the problem. And it's not changing to mouse.Target. It is ACTING like mouse.Target.
jeffcena
#778435Thursday, April 17, 2008 7:38 PM GMT

It's ment to go in the position you wont...

    of     1