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 » Scripting Helpers
Home Search
 

Re: Simple script not working?

Previous Thread :: Next Thread 
domogomo is not online. domogomo
Joined: 03 Jun 2012
Total Posts: 335
02 Aug 2014 12:36 AM
1 wait(4)
2 for i, player in pairs (Game.Players:GetChildren()) do
3 local block = Instance.new("Part", workspace)
4 block.CFrame = player.Character.Head.CFrame
5 local weld = Instance.new("Weld", block)
6 weld.Part0 = block
7 weld.Part1 = player.Character.CFrame
8 end



In the output it says : CFrame is not a valid member of Model
Its A problem near line 7 im guessing
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
02 Aug 2014 12:44 AM
Part1 is supposed to be a part, not a CFrame, and you are setting it to a CFrame value

A CFrame value of a model, models don't have CFrame
Report Abuse
zorgan9220 is not online. zorgan9220
Joined: 25 Sep 2011
Total Posts: 2115
02 Aug 2014 12:47 AM
Line 7 should be:

weld.Part1.Rotation = player.Character.Rotation

-Someone, please, tell me if there is such thing as an encrypted siggy.
Report Abuse
domogomo is not online. domogomo
Joined: 03 Jun 2012
Total Posts: 335
02 Aug 2014 12:48 AM
Hmn... Then what can I set it to?
Report Abuse
domogomo is not online. domogomo
Joined: 03 Jun 2012
Total Posts: 335
02 Aug 2014 12:50 AM
Thanks but sometimes is slips off..... Not sure if this is supposed to happen....
Report Abuse
domogomo is not online. domogomo
Joined: 03 Jun 2012
Total Posts: 335
02 Aug 2014 12:51 AM
It says

Rotation is not a valid member of Model
Report Abuse
domogomo is not online. domogomo
Joined: 03 Jun 2012
Total Posts: 335
02 Aug 2014 12:55 AM
Bump
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
02 Aug 2014 01:00 AM
Part1 is supposed to be a part

not a model
not a cframe
not a rotation
a part
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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