generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: morph script

Previous Thread :: Next Thread 
Thel_Vadam is not online. Thel_Vadam
Joined: 23 Dec 2014
Total Posts: 2649
15 Jul 2016 04:48 PM
in-game log says that "hair" isn't a member of the script but the script works in studio

plr = game.Players.LocalPlayer.Character
g = script.hair:clone()
g.Parent = plr
Y = Instance.new("Weld")
Y.Part0 = plr.Head
Y.Part1 = g
Y.C0 = CFrame.new(0, .5, 0)
Y.Parent = Y.Part0
g.Anchored = false
g.CanCollide = false
s = script.Shirt:clone()
p = script.Pants:clone()
s.Parent = plr
p.Parent = plr








Tartarus, the Prophets have betrayed us.
Report Abuse
RowanMcJak1 is not online. RowanMcJak1
Joined: 23 Jun 2010
Total Posts: 8487
15 Jul 2016 04:51 PM
I think 'hair' would be case-sensitive-- is the part named "Hair" or "hair"?
Report Abuse
Thel_Vadam is not online. Thel_Vadam
Joined: 23 Dec 2014
Total Posts: 2649
15 Jul 2016 04:51 PM
named "hair", no caps


Tartarus, the Prophets have betrayed us.
Report Abuse
Thel_Vadam is not online. Thel_Vadam
Joined: 23 Dec 2014
Total Posts: 2649
15 Jul 2016 05:00 PM
bump


Tartarus, the Prophets have betrayed us.
Report Abuse
RowanMcJak1 is not online. RowanMcJak1
Joined: 23 Jun 2010
Total Posts: 8487
15 Jul 2016 05:14 PM
Do you have FilteringEnabled active?
Report Abuse
Thel_Vadam is not online. Thel_Vadam
Joined: 23 Dec 2014
Total Posts: 2649
15 Jul 2016 07:09 PM
no, but when i turned it on and tried it, it still didn't work


Tartarus, the Prophets have betrayed us.
Report Abuse
Thel_Vadam is not online. Thel_Vadam
Joined: 23 Dec 2014
Total Posts: 2649
15 Jul 2016 07:12 PM
i did a little editing to it and now im getting a different error saying how line 7 is attempting to index global 'plr' (a nil value)

plr = game.Players.LocalPlayer.Character
li = script.Parent.morph
wait(1)
g = li.hair:clone()
g.Parent = plr
Y = Instance.new("Weld")
Y.Part0 = plr.Head --line 7
Y.Part1 = g
Y.C0 = CFrame.new(0, .5, 0)
Y.Parent = Y.Part0
g.Anchored = false
g.CanCollide = false
s = li.Shirt:clone()
p = li.Pants:clone()
s.Parent = plr
p.Parent = plr


Tartarus, the Prophets have betrayed us.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image