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

Mouse Cursor isn't loading?

Asked by 6 years ago
Edited 6 years ago

I made a script to my game, and its supose to make a gun, but it is not working. I started getting this error: 18:28:05.943 - Image "https://assetgame.roblox.com/asset/?id=358948941" failed to load in "Mouse Cursor": Request failed

Here's my script:

01-- Algumas variaveis --
02local pistola = script.Parent
03local hole = pistola:WaitForChild("Hole")
04local mouse = game.Players.LocalPlayer:GetMouse()
05 
06-- Lista de Valores --
07local ammo = 12
08local maxAmmo = 64
09local damage = 20
10local headshotDamage = 50
11local range = 100
12local coolDown = 0.5
13 
14-- impedir spamming --
15local spam = false
View all 46 lines...

Also pistola = gun. XD

Here's a video of what my gun is doing : http://gyazo.com/1cf05bb4a57ad9a37866f40546380fd7

Could you help me fixing this? (also send a answer, not a comment :/ i think i shouldn't have to say this but ppl always send comment insteed of answers :/)

2 answers

Log in to vote
0
Answered by 6 years ago

Assets can sometimes be buggy

Try subtracting the id by -1

0
thank you! mewant_taco 17 — 6y
Ad
Log in to vote
1
Answered by
xPolarium 1388 Moderation Voter
6 years ago
Edited 6 years ago

This is because you're using the wrong AssetID for line 19.

I checked on the main site and I'm sure this id is the correct one:

The one you had was an ID to the Decal. You want to use the Image Id which you get by subtracting the ID by 1. Recently, as asset creation has sped up due to more players uploading on Roblox, you might need to subtract the id even more.

Answer this question