Below is a script I use for my gun game. It works perfectly but, this texture (http://www.roblox.com/asset/?id=1370558016) as shown here and in the script is way too big covering a large amount of the screen. This is intended to be a crosshair. Any idea how to make that texture smaller?
PS: The script turns the player's mouse icon into whatever the texture ID is.
bin = script.Parent
normel = "http://www.roblox.com/asset/?id=1370558016"
friendly = "http://www.roblox.com/asset/?id=7419364"
enemy = "http://www.roblox.com/asset/?id=7419379"
function Run(mouse)
mouse.Icon = normel
local hit = mouse.Target
if (hit == nil) then return end
h = hit.Parent:FindFirstChild("Humanoid")
if h ~= nil then
torso = hit.Parent.Torso
if torso ~= nil then
if h.Health > 0 then
if (torso.BrickColor == bin.Parent.Torso.BrickColor) then
mouse.Icon = friendly
elseif torso.BrickColor ~= bin.Parent.Torso.BrickColor then
mouse.Icon = enemy
end
end
end
end
end

2 comments
Edit the image and resize it i would set the 100px80p should make it icon size
ok