Why do I get this error?
this is the codeim using to detect when a block calledblock1 its the otherblock:
2 | if hit and hit.Name = = "Block1" then |
3 | local assetId = 304840138 |
4 | game:GetService( "InsertService" ):LoadAsset(assetId).Parent = game.Workspace |
9 | script.Parent.Touched:connect(detect) |
But when i run it and the block touches the other blocki get this output:
02 | 11 : 49 : 43.970 - Plugin_ 142619509.1. put in worksoace: 9 : attempt to index local 'sl' (a nil value) |
03 | 11 : 49 : 43.973 - Stack Begin |
04 | 11 : 49 : 43.975 - Script 'Plugin_142619509.1.put in worksoace' , Line 9 |
05 | 11 : 49 : 43.975 - Stack End |
06 | 11 : 49 : 44.797 - httpGet http://assetgame.roblox.com/Asset/?id = 304840138 &serverplaceid = 0 &clientinsert = 0 failed. Trying again. Error: HTTP 403 (HTTP/ 1.1 403 Forbidden). Elapsed time: 0.869079 |
08 | 11 : 49 : 45.627 - Content failed because HTTP 403 (HTTP/ 1.1 403 Forbidden) |
09 | 11 : 49 : 45.640 - HTTP 403 (HTTP/ 1.1 403 Forbidden) |
10 | 11 : 49 : 45.642 - Script 'Workspace.Part.Script' , Line 4 |
11 | 11 : 49 : 45.644 - Stack End |
12 | 11 : 49 : 45.665 - HTTP 403 (HTTP/ 1.1 403 Forbidden) |
13 | 11 : 49 : 45.669 - Script 'Workspace.Part.Script' , Line 4 |
14 | 11 : 49 : 45.673 - Stack End |
15 | 11 : 49 : 45.675 - HTTP 403 (HTTP/ 1.1 403 Forbidden) |
16 | 11 : 49 : 45.676 - Script 'Workspace.Part.Script' , Line 4 |
17 | 11 : 49 : 45.678 - Stack End |
I havent got any plugins activated and Ihavent got anywhere called worksoace.
I have got a block called Block1 in my workspace.
Any helpplease.
Thanks