Plugin_142619509.1.put in worksoace:9: attempt to index local 'sl' (a nil value)
I havent got anything called 'Worksoace' so i don't knowwhat it is. Anyone ever experienced this?
This is my code for detecting when a block is hit by another block by the name of Block1:
> function detect(hit) -- Beginning a function
> if hit and hit.Name == "Block1" then -- If statement to check for the name and if the object exists.
> local assetId = 79634030
> game:GetService("InsertService"):LoadAsset(assetId).Parent = game.Workspace
> end -- end for if statement
> end -- end for function.
>
>
> script.Parent.Touched:connect(detect) -- Connects function to event.
thanks.

1 comment
This has something to do with a plugin you're using. However, without context there's no way we can understand your problem and therefore can't help you.