Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can i make the character go through objects?

Asked by
Echtic 128
5 years ago

I have tried setting the CanCollide property of every single part of the r15 character to false, but the UpperTorso and LowerTorso's CanCollide properties keep getting reverted to true like they are locked, is there a way to unlock them or perhaps if there isn't is there another way to turn all of the character collisions off?

1 answer

Log in to vote
0
Answered by 5 years ago

hope this helps, make it a GUI if you want,

something like,

script.parent.MouseButton1Down:ConnectFunction()

noclip = false
game:GetService('RunService').Stepped:connect(function()
if noclip then
game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
end
end)
plr = game.Players.LocalPlayer
mouse = plr:GetMouse()
mouse.KeyDown:connect(function(key)

if key == "e" then
noclip = not noclip
game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
end
end)
print('Loaded')
print('Press "E" to noclip')

end)

Ad

Answer this question