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: Hat levatitation script not working, output not useful

Previous Thread :: Next Thread 
flyingleech is not online. flyingleech
Joined: 09 Oct 2008
Total Posts: 306
13 Nov 2010 09:13 PM
--the output is "Workspace.QuickScript:72 Bad arguement to 'Value'
--Vector3 expected, got string" There are only 44 lines, so it doesn't help
player=game.Workspace.flyingleech.Head
for i,v in pairs (game.Workspace.flyingleech:GetChildren()) do
if v.className=="Hat" then
while true do
v.Handle.CFrame=player.CFrame+CFrame.new("0, 1, 0")
wait(.1)
v.Handle.CFrame=player.CFrame+CFrame.new("0, 1.1, 0")
wait(.1)
v.Handle.CFrame=player.CFrame+CFrame.new("0, 1.2, 0")
wait(.1)
v.Handle.CFrame=player.CFrame+CFrame.new("0, 1.3, 0")
wait(.1)
v.Handle.CFrame=player.CFrame+CFrame.new("0, 1.4, 0")
wait(.1)
v.Handle.CFrame=player.CFrame+CFrame.new("0, 1.5, 0")
wait(.1)
v.Handle.CFrame=player.CFrame+CFrame.new("0, 1.6, 0")
wait(.1)
v.Handle.CFrame=player.CFrame+CFrame.new("0, 1.7, 0")
wait(.1)
v.Handle.CFrame=player.CFrame+CFrame.new("0, 1.8, 0")
wait(.1)
v.Handle.CFrame=player.CFrame+CFrame.new("0, 1.9, 0")
wait(.1)
v.Handle.CFrame=player.CFrame+CFrame.new("0, 2, 0")
wait(.1)
v.Handle.CFrame=player.CFrame+CFrame.new("0, 1.9, 0")
wait(.1)
v.Handle.CFrame=player.CFrame+CFrame.new("0, 1.8, 0")
wait(.1)
v.Handle.CFrame=player.CFrame+CFrame.new("0, 1.7, 0")
wait(.1)
v.Handle.CFrame=player.CFrame+CFrame.new("0, 1.6, 0")
wait(.1)
v.Handle.CFrame=player.CFrame+CFrame.new("0, 1.5, 0")
wait(.1)
v.Handle.CFrame=player.CFrame+CFrame.new("0, 1.4, 0")
wait(.1)
v.Handle.CFrame=player.CFrame+CFrame.new("0, 1.3, 0")
wait(.1)
v.Handle.CFrame=player.CFrame+CFrame.new("0, 1.2, 0")
wait(.1)
v.Handle.CFrame=player.CFrame+CFrame.new("0, 1.1, 0")
end end end
Report Abuse
SilverRaptor is not online. SilverRaptor
Joined: 16 Nov 2008
Total Posts: 2300
13 Nov 2010 09:17 PM
Remove the quotes at the CFrame.new().
Report Abuse
flyingleech is not online. flyingleech
Joined: 09 Oct 2008
Total Posts: 306
13 Nov 2010 09:19 PM
It gave me a similar error message before I put them in, and then after I put them in the error message changed to this one, but I'll try
Report Abuse
flyingleech is not online. flyingleech
Joined: 09 Oct 2008
Total Posts: 306
13 Nov 2010 09:21 PM
Expected Vector3, got userdata
Report Abuse
SilverRaptor is not online. SilverRaptor
Joined: 16 Nov 2008
Total Posts: 2300
13 Nov 2010 09:22 PM
Actually, I see the problem.

Change CFrame.new() to Vector3.new()
Report Abuse
crazypotato4 is not online. crazypotato4
Joined: 22 Feb 2010
Total Posts: 20000
13 Nov 2010 09:25 PM
No, you can't set a CFrame to a Vector3 value. Change it to

WHATEVER.CFrame = CFrame.new(Vector3.new(number, number, number))
Report Abuse
crazypotato4 is not online. crazypotato4
Joined: 22 Feb 2010
Total Posts: 20000
13 Nov 2010 09:26 PM
Wait, was reading it wrong. Do what the other people said D:

I should go to bed now D:

But I won't :P
Report Abuse
SilverRaptor is not online. SilverRaptor
Joined: 16 Nov 2008
Total Posts: 2300
13 Nov 2010 09:27 PM
"other people"
There was only one "other people".
;D
Report Abuse
crazypotato4 is not online. crazypotato4
Joined: 22 Feb 2010
Total Posts: 20000
13 Nov 2010 09:29 PM
post.Parent.SilverRaptor:clone().Parent = post.Parent

Now there's two other people >:D
Report Abuse
SilverRaptor is not online. SilverRaptor
Joined: 16 Nov 2008
Total Posts: 2300
13 Nov 2010 09:30 PM
But since SilverRaptor = SilverRaptor
Divide both by SilverRaptor
1 = 1
Which is true, so...wait...uh...
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