Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Finding decal image and uploading to something by a script?

Asked by 8 years ago

Hello everyone! If you ever played Auto Duels you'll recognize the feature of uploading your decal to your sword. It is pretty simple to do it in game, but for the scripter, anything but. Ok, so first this is my only knowledge of what I think is happening. There is a textbox, and you have to enter a URL of the decal image. Then, after you hit save, the decal image will form around your sword. I'm trying to have the same idea, except I want the player to pick his/her own decal image and instead of a sword, I want the decal image to be the Icon of the mouse. Though, some images are too big, so I would also like for the size to be no more than 50x50 pixels(hoping there's a way to make a big picture into a smaller one through scripts). This is my ONLY knowledge of what I think is happening. -Textbox finding URL of decal -To get the mouse it is mouse=player:GetMouse() mouse.Icon = "rbxassetid://12117740"--for example So, I want some a scripter with some knowledge of this to help me please. And, thank you!

1 answer

Log in to vote
0
Answered by 8 years ago

You kinda passed the limits of what ROBLOX can do. You cannot see the size of the icon, and change the size, but what I think your trying to do is to prevent your mouse hitbox by being over 50x50. No matter how big your icon size is, the hitbox is the same. Also, your changing the icon wrong. It should be like this in a local scipt.

game.Players.LocalPlayer:GetMouse().Icon = "rbxassetid://123455" --Also, make a script witch subtracts 1 from the decal ID and replace 123455 with that.

So why do we have to subtract 1 from the number the user entered? Well, it turns out ROBLOX is complicated. So when you use a decal, subtract 1 for it to work. Also, hopfully the person who entered is not a developer and knows this stuff.

Ad

Answer this question