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

Rotating part weld scripts for R6 and R15?

Asked by 6 years ago

I'm in the process of building a map for The CrusheR, a game which uses R6 and R15. I inserted a script into a part to make it rotate horizontally, but whenever a person doesn't move while the platform is rotating, they fall off.

I know it has something to do with welding scripts, I just don't know how to make it compatible with both R6 and R15.

0
your concept is completely wrong. falling off while standing on a spinning platform is a normal thing, even irl, it's just physics LeadRDRK 437 — 6y
0
i edited the other script and it should work in game now DeceptiveCaster 3761 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago
for _,p in pairs(game.Players:GetPlayers()) do
    if p.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then
        -- Welding Script I
    end
    if p.Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
        -- Welding Script II
    end
end

This detects if the Humanoid is using either R6 or R15. It is NOT possible for a Humanoid to be using both R6 and R15.

0
Hey, MC. I'm kinda getting a bug in your top bar script. It works fine while I test the game in studio, but in the actual game the bar doesn't become transparent. HimoutoUmaruDomaChan 20 — 6y
0
Also I'm confused with this script too, it puts an error at the first = sign in the script. I inserted it into a part, did I do something wrong when I put it in the part? HimoutoUmaruDomaChan 20 — 6y
0
oops hold on DeceptiveCaster 3761 — 6y
0
oh, in that topbar script, run a for loop DeceptiveCaster 3761 — 6y
Ad

Answer this question