How to script the slope part in leaning tower obbies

  1. What do you want to achieve? I want to know how to script the commonly seen big wedge part that slides the players down and disable their jump in tower obbies

  2. What is the issue? The wedge part looks something like this

  3. What solutions have you tried so far? From the looks of it I thought that it happens by making the character’s leg not collide with the slope and giving the slope assembly linear velocity but it’s not it and I just sort of bounce off the slope and I really cannot find anything like it in toolbox or Youtube and I haven’t a clue

--change collision group
local Players = game:GetService("Players")
local PhysicsService = game:GetService("PhysicsService")
local Player = Players.LocalPlayer

Player.CharacterAdded:Connect(function(Character)
	task.wait(.1)
	
	local function ChangeGroup(Part)
		if Part:IsA("BasePart") then
			if Part.Name == "LowerTorso" or Part.Name == "LeftUpperLeg" or Part.Name == "RightUpperLeg" or Part.Name == "RightLowerLeg" or Part.Name == "LeftLowerLeg"then
				Part.CollisionGroup = "Upper"
			end
		end
	end

	Character.ChildAdded:Connect(ChangeGroup)
	for i, Parts in ipairs(Character:GetDescendants()) do
		ChangeGroup(Parts)
	end
	
end)

there’s actually been parts made as far back as 2007 that do this exact thing but with no scripts, something about anchored parts with velocity set or something. but I cant be too sure.

3 Likes
1 Like

Yep I tried things out some more and it’s simply just an anchored part with assembly linear velocity that’s not only away but also downwards lol

1 Like

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