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

Mirroring an object/player over a brick?

Asked by
NotSoNorm 777 Moderation Voter
8 years ago

Ok so what I'm trying to do is take the player, then put the player on the other side of the wall. See: http://prntscr.com/8jes0o

Now this works all fine and dandy I'm just having problems on the math side of it:

repeat wait() until game.Players.LocalPlayer.Character.Humanoid

local localplayer = game.Players.LocalPlayer
local character = localplayer.Character
local walls = game.Workspace.JumpWalls:GetChildren()

local jumpdeb = false
character.Humanoid.Jumping:connect(function()
    if jumpdeb == false then
        jumpdeb = true
        print('lol u tryin')
        for i,v in pairs (walls) do
            if (v.Position - character.Torso.Position).magnitude <= 10 then
                local torso = character.Torso
                -- how 2 get
            end
        end 
        wait(.5)
        jumpdeb = false
    end
end)
0
Hm. I remember someone on SH actually performed this, too bad I can't remember their name. You can try constantly updating the fake character to be the real character's position, but flipped. Possibly negative, but I'm not sure how to plan that out. Sorry Shawnyg 4330 — 8y

Answer this question