Alternitve to FloorWires? (How to replicate their behaviour)

Hello,

I’ve always liked FloorWires but unfortunately it is deprecated, it does still work but I don’t want to use deprecated objects in any games, but it’s functionality and behavior is something I’m having difficulty replicating, it would be cool if anybody could explain or help script such thing.

Here is a video demonstrating FloorWire’s behavior: https://www.youtube.com/watch?v=kiHvV82nX3U

Thank you :happy3:

2 Likes

Do you need the cookie telekinesis because if not heres my version I just whipped up:

wires.rbxl (55.4 KB)

2 Likes

Oh wow, this is awesome thank you!

The only issues are that it refuses to wrap around corners and also it seems like it doesn’t clear values from memory:


^ Fixed this by clearing out all of the values inside of wires:

local function DrawWires(currentPos : Vector3, targetPos : Vector3)
	for _, part in wires do
		part:Destroy()
	end
	wires = {}
	
	local count = 0
	...

I’m going to see if I can tinker around with what you’ve given me though, thank you

2 Likes

I had this problem and have fixed it:

wires.rbxl (55.4 KB)

3 Likes

yeah thats basically the exact change I made also.

1 Like

This is really cool @azqjanna! I love it! The only thing I want to know is how can I make it go around corners well. Like for example if I wanted to go around a part and the wire just starts wrapping around it. How would I do this?

1 Like

Its not easy to make it do that since its not a true pathfinding algorithm, but if you know there are no obstacles directly above the source and player, you can just go up to the height thats free of obstacles first and it should always make it.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.