how would I go about making when i shoot my paintball my splash part orientates exactly like in the video
local SplatsModule = {
Images = {
Splat1 = "http://www.roblox.com/asset/?id=18876066213",
Splat2 = "http://www.roblox.com/asset/?id=18876056029",
Splat3 = "http://www.roblox.com/asset/?id=18876063958",
Splat4 = "http://www.roblox.com/asset/?id=18876060351",
}
}
function SplatsModule.FireSplat(plr, pos, part, color)
local keys = {}
for key in pairs(SplatsModule.Images) do
table.insert(keys, key)
end
local randomKey = keys[math.random(1, #keys)]
local randomImage = SplatsModule.Images[randomKey]
local splat = script.Splat:Clone()
splat.Parent = workspace.DebrisCache
splat.Size = Vector3.new(math.random() * 2 + 3, math.random() * 2 + 3, 0)
splat.WeldConstraint.Part1 = part
local debugPart = Instance.new("Part", workspace)
debugPart.Position = pos
debugPart.Name = tostring(time())
debugPart.Size = Vector3.new(1, 1, 1)
debugPart.Color = Color3.fromRGB(85, 255, 0)
debugPart.Material = Enum.Material.Neon
debugPart.Anchored = true
debugPart.CanCollide = false
splat.Decal.Color3 = color
end
return SplatsModule