bloob827Join Date: 2010-08-01 Post Count: 6867 |
bin = script.Parent
Debounce = false
function onButton1Down(mouse)
script.Parent.mouse.Icon = "http://www.roblox.com/asset/?id=36152562"
local player = game.Players.LocalPlayer
if player == nil then return end
if (Debounce == false) then
Debounce = true
local h = player.Character:findFirstChild("Humanoid")
mouse.Icon = "rbxasset://textures\\ArrowCursor.png"
h.Health = h.Health + 100
end
bin:Remove()
end
function onSelected(mouse)
mouse.Icon = "rbxasset://textures\\ArrowCursor.png"
mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end
bin.Selected:connect(onSelected) |
|
bloob827Join Date: 2010-08-01 Post Count: 6867 |
I think it has to do with the mouse icon. |
|
bloob827Join Date: 2010-08-01 Post Count: 6867 |
bump |
|
CrniOraoJoin Date: 2008-10-12 Post Count: 2274 |
It would work as i can see, only im not sure about that mouse icon, it may need to be in "Local Script" :/ not sure. |
|
bloob827Join Date: 2010-08-01 Post Count: 6867 |
:/ It worked fine before I put in the
script.Parent.mouse.Icon = too lazy to copy and paste it =p |
|
CrniOraoJoin Date: 2008-10-12 Post Count: 2274 |
I don't know much about that, i always use "Swords" local script and change the mouse.Icon ID to whatever i want. |
|
bloob827Join Date: 2010-08-01 Post Count: 6867 |
So you mean I should cut the local script in the sword, and then put MY script in it? |
|
CrniOraoJoin Date: 2008-10-12 Post Count: 2274 |
If it is Hopperbin, just get your script in Local Script, if it is Tool, then you will need to mix it all around that i don't know how :P |
|
bloob827Join Date: 2010-08-01 Post Count: 6867 |
Testing. |
|
bloob827Join Date: 2010-08-01 Post Count: 6867 |
Nope. :/ The icon didn't change. But the script worked. |
|
CrniOraoJoin Date: 2008-10-12 Post Count: 2274 |
Not pretty sure they will work, but...
1.st one below
bin = script.Parent
Debounce = false
function onButton1Down(mouse)
script.Parent.mouseIcon = "http://www.roblox.com/asset/?id=36152562"
local player = game.Players.LocalPlayer
if player == nil then return end
if (Debounce == false) then
Debounce = true
local h = player.Character:findFirstChild("Humanoid")
mouse.Icon = "rbxasset://textures\\ArrowCursor.png"
h.Health = h.Health + 100
end
bin:Remove()
end
function onSelected(mouse)
mouse.Icon = "rbxasset://textures\\ArrowCursor.png"
mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end
bin.Selected:connect(onSelected)
----------------------------------------------------------------------------------
2.nd one below
bin = script.Parent
Debounce = false
function onButton1Down(mouse)
script.Parent.mouseIcon ~= "http://www.roblox.com/asset/?id=36152562"
local player = game.Players.LocalPlayer
if player == nil then return end
if (Debounce == false) then
Debounce = true
local h = player.Character:findFirstChild("Humanoid")
mouse.Icon = "rbxasset://textures\\ArrowCursor.png"
h.Health = h.Health + 100
end
bin:Remove()
end
function onSelected(mouse)
mouse.Icon = "rbxasset://textures\\ArrowCursor.png"
mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end
bin.Selected:connect(onSelected) |
|
bloob827Join Date: 2010-08-01 Post Count: 6867 |
2)
~= ?
:/ |
|
CrniOraoJoin Date: 2008-10-12 Post Count: 2274 |
I looked at xLEGOx 's system, how he made it :3 and it was ~=
Lolz, you can take a look also at that >_>
People > xLEGOx > 2nd Page Of Places > The RPG Thingy > Edit / Play Solo
Look into his plenty scripts and try to find the Icon part D: |
|
bloob827Join Date: 2010-08-01 Post Count: 6867 |
:O!
btw first 1 doesn't work D: |
|
bloob827Join Date: 2010-08-01 Post Count: 6867 |
>>> Both of them failed. |
|
bloob827Join Date: 2010-08-01 Post Count: 6867 |
bump. |
|
CrniOraoJoin Date: 2008-10-12 Post Count: 2274 |
Then i have NO IDEA, wait for someone whit skills about this xP |
|
bloob827Join Date: 2010-08-01 Post Count: 6867 |
I know it has to do with the icon..
right nao im testing something..
i'm going to other peoples games and seeing if there "tools" have a different mouse icon.
It says
rbxasset://
or something like that :/ |
|
bloob827Join Date: 2010-08-01 Post Count: 6867 |
NVM I FIXED IT. |
|