I wan’t to make a custom version of slap battles, one based on suggested gloves on slap battles, however how would I do a game like that, for example how would I fling someone forwards and upwards from the character that’s using it’s humanoidrootpart, I got this so far:
local function flingPlayer(humanoidRootPart,VectorForce,timeForceActive)
if humanoidRootPart:FindFirstChild("VectorForce") then
humanoidRootPart:FindFirstChild("VectorForce"):Destroy()
end
local attachment = humanoidRootPart:FindFirstChildWhichIsA("Attachment")
if not attachment then
attachment = Instance.new('Attachment')
attachment.Parent = humanoidRootPart
attachment.WorldPosition = humanoidRootPart.Position
attachment.WorldOrientation = humanoidRootPart.Orientation
end
local vectorForce = Instance.new('VectorForce')
vectorForce.Force = VectorForce
vectorForce.ApplyAtCenterOfMass = true
vectorForce.RelativeTo = Enum.ActuatorRelativeTo.Attachment0
vectorForce.Attachment0 = attachment
game:GetService('Debris'):AddItem(vectorForce,timeForceActive)
end
doesn’t work btw ^
btw slap battles is credited and I used no gamepasses/dev products to profit off the most