|
| 03 Feb 2016 07:00 PM |
Why won't this work? There is multiple octopus, by the way.
local octopus = game.StarterGui.SurfaceGui.Frame.ImageButton
octopus.MouseButton1Click:connect(function() octopus:Destroy() end |
|
|
| Report Abuse |
|
|
|
| 03 Feb 2016 07:01 PM |
there is a parenthesis after the end the script looks like this
local octopus = game.StarterGui.SurfaceGui.Frame.ImageButton
octopus.MouseButton1Click:connect(function() octopus:Destroy() end) |
|
|
| Report Abuse |
|
|
|
| 03 Feb 2016 07:13 PM |
local button for _, v in pairs(game.Players.LocalPlayer.PlayerGui.SurfaceGui.Frame:GetChildren()) do if v.Name == "Octopus" then button = v end end
button.MouseButton1Click:connect(function() button:Destroy() end) |
|
|
| Report Abuse |
|
|
| |
|
|
| 03 Feb 2016 07:31 PM |
script.Parent:remove() or script.Parent:Destroy()
??? |
|
|
| Report Abuse |
|
|