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

How can I make a Wall Walking for my game?

Asked by 8 years ago

I'm making a game, and I wanted to know what you want I can make a Wall Walking case is possible.

Not demand scripts, I want an explanation of how it works.

0
what do you mean wall walking User#10445 15 — 8y
0
The player can walk on the wall :\ (Obvious) Rodrigo2003 76 — 8y
0
Well this isn't a request forum User#10445 15 — 8y
0
Please remember this isn't a request site. Without some sort of effort, people are highly unlikely to help you. TheHospitalDev 1134 — 8y
View all comments (2 more)
0
I'm not asking for a script, I just want help with a script Rodrigo2003 76 — 8y
0
if you do not want to help, you need not give deslike and talk about What you think, just go to another asks from already that you will not answer this. Rodrigo2003 76 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

Correct me if I'm wrong, but I think that you mean that you want to make the player control a part (move it and jump using WASD and spacebar). I experimented with this a while back, and kind of succeeded, but only in Studio. It works flawlessly in Studio, but lags out crazily on Roblox Player (when you open it as a place from the website). So, first I put a LocalScript in Backpack (or StarterGui) that creates a new part with the name of the player with some minor details (changing material, color, etc.).

local part = Instance.new("Part")
part.Parent = game.Workspace
part.Name = game.Players.LocalPlayer.Name

Then, you just use the RenderStepped function to set the CameraSubject to be the part:

local cam = game.Workspace.CurrentCamera
local player = game.Workspace:FindFirstChild(game.Players.LocalPlayer.Name)

game:GetService("RunService").RenderStepped:connect(function()
    cam.CameraSubject = player
end)

Then using UserInputService (more info on that here: http://wiki.roblox.com/index.php?title=Keyboard_input), changed the positions (by adding or subtracting Vector3) based on what key the player presses. I'll let you figure this one out. Don't worry, it's not that hard. I don't want to make things too easy for you now. ;) Good luck. :D

0
Thanks for helping me, different from other ignorant and stupid people, this will be of great help and now I can learn something new too C: Rodrigo2003 76 — 8y
0
and it certainly was not what I wanted but you gave me a great idea Rodrigo2003 76 — 8y
0
Heh. Well, I'm glad it gave you an idea. Good luck on whatever you wanted to do. ;) IronSpider671 50 — 8y
Ad

Answer this question