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

How do i put a humanoid in a player? [closed]

Asked by 9 years ago

i want to ajust the jump hight but i can only do that to a humanoid right?

0
why is the question bad? USArmyRanger2003 0 — 9y
0
You should be a lot more specific about your question, with a decent amount of prior research and/or attempt. ScriptGuider 5640 — 9y
0
Please stop spamming. If you have an honest question about scripting, write it here, but don't ask us broad questions which you could easily find by scanning the wiki. darkelementallord 686 — 9y
0
sry didnt mean to thot you guys wuld help USArmyRanger2003 0 — 9y
View all comments (9 more)
0
tense USArmyRanger2003 0 — 9y
0
You must help yourself before others can help you. ScriptGuider 5640 — 9y
0
...you mean you shudnt be here? what do you mean. USArmyRanger2003 0 — 9y
0
Guys, cut him some slack, he's obviously a new scripter and if he doesn't know how do something give him some assistance instead of accusing him or spamming. General_Scripter 425 — 9y
0
yea i "trying" to teach myself, its rly hard. it worked thx undeniable USArmyRanger2003 0 — 9y
0
He sent 4 posts in the last 10 minutes. And this one started out being 4 words... Two of his previous posts were identical. I understand that he is a new scripter, but we are here to help (hence the name) not teach all there is to know about scripting... darkelementallord 686 — 9y
0
actuely 4 in the last 30 minutes USArmyRanger2003 0 — 9y
0
When this was first posted, it was 10 minutes. Now lets stop this argument. darkelementallord 686 — 9y
0
deal. USArmyRanger2003 0 — 9y

Closed as Too Broad by ScriptGuider, User#6546, and General_Scripter

This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.

Why was this question closed?

1 answer

Log in to vote
2
Answered by 9 years ago

Humanoids are put in players' characters when the players' character is made. You don't need to do that unless of course you're creating an NPC in which case you need to create a new Humanoid instance using:

Instance.new("Humanoid",game.Workspace.NPC)

If you want to adjust the jump power of all players the easiest way to do this is using a Server Script you will need to functions one to run when a player is added and another for when the players' character is added. Here's the script:

game.Players.PlayerAdded:connect(function(plr) -- When a new player joins
    plr.CharacterAdded:connect(function(char) -- When the players character is created (on death and on join)
        local hum = char:WaitForChild("Humanoid") -- Find the humanoid
        hum.JumpPower = 150 -- Change the Jump Power
    end) -- End the character added function
end) -- End the player joined function

Hope this helps, if this works for you please vote up and accept as answer. If this doesn't work or isn't what you expected, please comment and I will edit this answer.

1
Well done, but you shouldn't have done it. It's not our job to teach him everything there is to know about scripting, we are here to help. He should have been able to find that out on his own. darkelementallord 686 — 9y
0
Well, I like helping people who are new to scripting, yes he should've checked first but he's obviously got no idea about the wiki or any other helpful sources so came here for some help, which in the end is what he got. General_Scripter 425 — 9y
0
ive been trying to learn dude, yes i know about wiki but i thot this wuld be better. wiki is actuelly not updated that often USArmyRanger2003 0 — 9y
0
No it's not updated that often, glad I could help and it works. Next time though give it a go, and post your errors so we can tell you where you went wrong instead of just asking for the script. General_Scripter 425 — 9y
0
i thot it was like a setting or a button i didnt know about. USArmyRanger2003 0 — 9y
Ad