|
| 24 Dec 2015 09:46 AM |
I want to make a script where it clones a hat from lighting and correctly fits it on to the player's head, but i don't know where to start or how do it
please help here's the hat if you want more info http://www.roblox.com/Secret-item?id=332599402
I kinda made a script out of confusion and
local Hair5 = game.lighting.SSJ1:Clone() Hair5.Parent = jun.Character Hair5.Locked = true Hair5.CFrame = jun.Character.Torso.CFrame Hair5.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) Hair5.C1 = script.Parent.Parent.CFrame:inverse() local Weld = Instance.new("Weld") Weld.Parent = jun.Character.Head Weld.Part0 = jun.Character.Head Weld.Part1 = Hair5 Weld.C0 = CFrame.new(0, .8, 0.11)
Please what dop i do nobody else helped me please help me |
|
|
| Report Abuse |
|
|
chimmmihc
|
  |
| Joined: 24 Jul 2014 |
| Total Posts: 2420 |
|
|
| 24 Dec 2015 09:47 AM |
| That title is insanely misleading |
|
|
| Report Abuse |
|
|
|
| 24 Dec 2015 09:47 AM |
It works so well in studio(due to it somehow fixing the script) but idk what it fixes so please help me I've been asking everyone for days and nobody helps me |
|
|
| Report Abuse |
|
|
|
| 24 Dec 2015 09:48 AM |
| where is the Defined properties Such as jun is jun the player? |
|
|
| Report Abuse |
|
|
|
| 24 Dec 2015 09:50 AM |
It may be easy for you but i'm having such a hard time doing this. This is the amount of crap i get in the forums everyday with people saying its easy and then just leaving me in the ditch confused about it
|
|
|
| Report Abuse |
|
|
OzzyFin
|
  |
| Joined: 07 Jun 2011 |
| Total Posts: 3600 |
|
|
| 24 Dec 2015 09:50 AM |
| no jun is the power master superior fireball god which will give all the cool anime people all the sensei jun powers which you can take control of the senseijummaster anime cartoon sensei jun fireball world |
|
|
| Report Abuse |
|
|
Malenz
|
  |
| Joined: 10 Oct 2015 |
| Total Posts: 151 |
|
|
| 24 Dec 2015 09:51 AM |
Oh, I thought the thread was something different, judging by the title.
Just puttin' it out there! |
|
|
| Report Abuse |
|
|
|
| 24 Dec 2015 09:51 AM |
yea jun is the player it's actually a super saiyan script and for some reason it just won't work added a weld script to the ssj hair to weld to the handle and made it non collideable but it just won't work... |
|
|
| Report Abuse |
|
|
|
| 24 Dec 2015 09:53 AM |
| Please how do i do this? i've showed you the script and i can give you the hair to check if there is anything wrong with it or add something to it |
|
|
| Report Abuse |
|
|
Graidlyz
|
  |
| Joined: 25 Dec 2011 |
| Total Posts: 13357 |
|
|
| 24 Dec 2015 09:58 AM |
| Why weld the hat to the head instead of using Hat Instance? |
|
|
| Report Abuse |
|
|
|
| 24 Dec 2015 10:00 AM |
^ don't understand you Please help though ;-; |
|
|
| Report Abuse |
|
|
|
| 24 Dec 2015 10:03 AM |
bump if no one understands then I just want to clone the hat but it won't work ;-; |
|
|
| Report Abuse |
|
|
Malenz
|
  |
| Joined: 10 Oct 2015 |
| Total Posts: 151 |
|
|
| 24 Dec 2015 10:04 AM |
^
He said, instead of cloning a hat from workspace, why don't you create a new hat instance, and parent it to the player? |
|
|
| Report Abuse |
|
|
Malenz
|
  |
| Joined: 10 Oct 2015 |
| Total Posts: 151 |
|
|
| 24 Dec 2015 10:05 AM |
| shoot, i mean Lighting, not workspace. |
|
|
| Report Abuse |
|
|
|
| 24 Dec 2015 10:10 AM |
wait so
hat = Instance.new("Hat") hat.Name = SSJ1 game.lighting.SSJ1:Getchildren clone the children and put it into the new hat hat in the player i do not know the rest ;-;
PLEASE HELP |
|
|
| Report Abuse |
|
|
|
| 24 Dec 2015 10:19 AM |
| help me anyone PLEASE help me |
|
|
| Report Abuse |
|
|
| |
|
|
| 24 Dec 2015 10:30 AM |
Really simple: if you can find the actual Hat in the Catalog you can just import it directly and parent it to the Player to make them put it on. I can explain how to do this if you can find the hat, but read up on it yourself if you want. It's one line:
http://wiki.roblox.com/index.php?title=API:Class/InsertService
If it's a custom hat you need to get the stuff yourself. I think CloneTrooper has a plugin to do it but I haven't used it yet, I'll go play around with it. |
|
|
| Report Abuse |
|
|
|
| 24 Dec 2015 10:35 AM |
I'm trying to clone my CUSTOM Hat - http://www.roblox.com/Secret-item?id=332599402
onto MY PLAYER'S HEAD WHENEVER HE TRANSFORMS i've already made the .chatted function and everything# Plesse help me i beg you |
|
|
| Report Abuse |
|
|
| |
|
|
| 24 Dec 2015 10:40 AM |
You name that part "Handle" and put it inside of a Hat object. Then just parent the hat to the player's Character and they'll automatically wear it. To get the correct position, use this plugin:
http://www.roblox.com/Hat-Grip-Editor-item?id=188852270
This will set the Hat instance to have the four matrix vectors you need. Write them down on paper or in Notepad or something, then copy it to your script.
The one problem with this is that the player can take it off with +/=. If you want to stop that then I suggest using this method and then spot-welding it to the Player's head. I'll go get some code for this. |
|
|
| Report Abuse |
|
|
| |
|
| |
|