Tux Physics Tails (Version 2.1) — by @R3dTuxedo

Tux Physics Tailsby @R3dTuxedo

Bring your Roblox avatars to life with dynamic physics for tail accessories!

demo-gif


Download the TuxPhysicsTails Loader

Get started by downloading the loader script:
TuxPhysicsTailsLoader (Version 2.1) — @R3dTuxedo.rbxm (2.8 KB)

Recommended Placement:
Place the script in ServerScriptService for better organization.

image

How It Works

  • Automatic Updates:
    The script ensures the latest version is loaded when the server starts.

  • Custom Tail Accessories:
    Developers can add unrecognized tail accessories manually.
    Don’t forget to inform me so I can update it for others too!

  • Custom Behavior Properties:
    A configuration table is provided in the loader script.

Preview

	-- Some accessories have unusual names and are not recognised as tails.
	-- These may include items like "White Kemono Dragon Tail" that are valid tail accessories but load in as "cube.012accessory".
	-- Add these accessory names (loaded in name) to the table below to ensure they are properly recognized as tails.
	-- If you discover new tail accessories with unusual names, please inform the author (@R3dTuxedo) so they can be included in future updates.
	includedAccessories = {
		-- Add accessory names as strings here, for example:
		-- "cube.012accessory",
	},
	
	-- Character models (must contain a humanoid) that are a descendant of these instances will have tail physics.
	-- This is used for non player characters.
	-- Overlapping descendants (or duplicate references) is not a problem. It will not calculate the tail physics more than expected.
	-- Avoid using instances that arn't always replicated to the client.
	includedDescendantCharacters = {
		-- Add instances here where you will find descendant characters, for example:
		-- workspace.Characters,
	},

	-- Different elasticity calculators work with different stiffness, damping, linearAmplitude and angularAmplitude.
	--[Recommended Configuration]
	----------------------------------------------------------------------------------------------
	--|	  Method		stiffness	damping		linearAmplitude				angularAmplitude   |--
	--|-------------------------------------------------------------------------------------------
	--|   Default		140			320			Vector3.new(3, 1.5, 3)		0.16
	--|   RungeKutta	180			3			Vector3.new(3, 1.5, 3)		0.16
	--|
	method = "Default", -- "Default", "RungeKutta"

	-- More stiffness is less flexible.
	stiffness = 140, -- Vector3 or number

	-- Resistance due to drag (slow down).
	damping = 320, -- Vector3 or number

	-- Forces influence on tail from linear movement (walking around).
	linearAmplitude = Vector3.new(3, 1.5, 3), -- Vector3 or number

	-- Forces influence on tail from angular movement (turning around).
	angularAmplitude = 0.16, -- Vector3 or number
	
	-- When the tail has no forces acting upon it, it will sway to create a "wag" effect.
	-- This is how much the tail will wag.
	tailWagAmplitude = 1, -- Normal wag amplitude is 1

	-- This is how fast the tail will wag.
	tailWagSpeed = 1, -- Normal wag speed is 1

	-- All avatar forces are applied at normal time so changing this can have unusual effects.
	timeScale = 1 -- Normal time is 1


Acknowledgment

If you use this script, please credit @R3dTuxedo prominently in one of the following ways:

  • Include a mention in your game description, or
  • Add credits clearly within your game (e.g., a UI element or sign at spawn).

I’d love to see your creations! Let me know if your game uses Tux Physics Tails, and I’ll check it out!

45 Likes

?
You can see here I put 100 characters in and it works fine. It’s not going to cost much because it’s not a lot of expensive math eg. collisions.

23 Likes

I mean, its cool, I guess?

Notices

  • [ HELP :smiley: ] : Requiring asset can sometimes unfortunately fail as it better to just make your Asset a Package and turn on Automatic Updates in the Package Link Instance.
  • The specific use of the module is kind of obsolete (No Offense!) the fact that it only simulates tails is quite limited maybe its your wording, e.g. “It can also be used to do …”?
16 Likes

Good to know, Though is there a way we could set up our own tail accessories to support this?

13 Likes

That is a great idea and I will look into that.

The point of it is to simulate physics for tail accessories as described in the title and explanation. What exactly did you mean?

14 Likes

Yes.

You can add tail accessories to the loader.

13 Likes

Will you be implementing a way to turn down the springyness of the tail movement?

11 Likes

Yes, I can do that. I’ll add more configurations soon.

10 Likes

It looks cool, but it is an unnecessary use of server resources. You could at least do it on the client side, as it serves only a visual aesthetic purpose.

10 Likes

It is done on the client. The loader is a server script so it can load the latest version of the client script.

13 Likes

Alright! My bad then. I thought it was done on the server.

10 Likes

very awesome! how long did this take to code?

11 Likes

If I remember correctly it was a couple days. Originally it was a little extra feature in a game I made but a friend asked if they could use it too so I made it public!

13 Likes

is there anything else this can be used for?

because i dont really see too much of an implementation other than games with a predominant community that would use this

11 Likes

Not really, this only effects people with tails. It is fun for those people. You could however tamper with the code to work with other parts on a custom character.

12 Likes

Packages are not yet available for public distribution. I am not sure why you suggested this.

3 Likes

Hmm, Strange? I frequently use the Top-bar Module and it wasn’t published by Roblox but it had a package link.

Are you sure? and have you read Roblox’s Documentation?, It seems you didn’t click any of the links I’ve provided. The process is quite hefty but worth it in the end.

2 Likes

Creating a package is not hard. Either the package you’re using is by a user verified to make public packages, or you’ve joined a group.

Here you can see I am not able to publicly distribute packages:

4 Likes

thank you for this resource, I can make demi humans now for my game

2 Likes

i saw this when it first released but my account couldnt reply on devforum yet so i wanted to say that your resource is pretty cool and i use it in my game simplecombat - Roblox

1 Like