

Also, make sure the sticky grenade remains unanchored when you are attaching it to the wall.īut how do we get the position of the collision? That’s a bit tougher, and studio doesn’t exactly have a built in function for it either. Simply put, you have to place an attachment inside of the sticky grenade and then place an attachment at the position of collision.Īnd then set the att0 and att1 of the RigidConstraint to those attachments. Roblox released a new constraint recently, the RigidConstraint If hit.Parent:FindFirstChild("Humanoid") or hit.Transparency > 0 or = "Tool" or = "Accessory" then return end

Mesh.VertexColor = mesh.VertexColor / 1.5 Mesh.VertexColor = mesh.VertexColor * 1.5 Local spawnPos = īomb.CustomPhysicalProperties = PhysicalProperties.new(100,0,0,0,100)

Local player = players:GetPlayerFromCharacter(char) Here is pretty much the whole code for firing the bomb if it helps! It’s very possible that two things I did don’t go together well and is messing something up.
