-
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
-
What is the issue? The wedge part looks something like this
-
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)