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 » Game Design
Home Search
 

Re: Script Help Please

Previous Thread :: Next Thread 
rennec is not online. rennec
Joined: 02 Jul 2014
Total Posts: 28
11 Jan 2015 12:42 PM
local player = script.Parent.Parent.Parent.Parent.Parent

function onClick(mouse)
while true do
w1 = Instance.new("Weld")
w1.Parent = player.Character.Chest.anim
w1.Part0 = w1.Parent
w1.Part1 = player.Character.Torso
w1.C0.CFrame = w1.C0.Cframe * CFrame.fromEulerAnglesXYZ(0,1,0)
wait()
end
end

script.Parent.MouseButton1Down:connect(onClick)

..So I wrote this script for a morph I'm making. I'm trying to make the aura, which is called "anim" in the morph rotate. I put while true do in and used welds to rotate the part so only the part rotates, not the torso along with it because it's attached to the torso, but it doesn't repeatably rotate, it only rotates a tiny bit and never does it again. Any clue why? thanks.
Report Abuse
Robuxionous is not online. Robuxionous
Joined: 07 Oct 2014
Total Posts: 417
11 Jan 2015 12:45 PM
idk sorry
Report Abuse
gavnnater45 is not online. gavnnater45
Joined: 20 Mar 2011
Total Posts: 5
11 Jan 2015 12:47 PM
try putting in 0.1 in the wait() like this wait(0.1)
Report Abuse
MrNoobe123 is not online. MrNoobe123
Joined: 14 Nov 2014
Total Posts: 153
11 Jan 2015 02:15 PM
local player = script.Parent.Parent.Parent.Parent.Parent

function onClick(mouse)
while true do
w1 = Instance.new("Weld")
w1.Parent = player.Character.Chest.anim
w1.Part0 = w1.Parent
w1.Part1 = player.Character.Torso
while wait() do
w1.C0.CFrame = w1.C0.Cframe * CFrame.fromEulerAnglesXYZ(0,1,0)
end
end
end

script.Parent.MouseButton1Down:connect(onClick)
Report Abuse
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
11 Jan 2015 02:19 PM
Your script would continually add welds to the anim part. You most likely want only one. The other welds interfere with each other and thats why it stops. I would do(make sure anim is anchored):

script.Parent.MouseButton1Down:connect(function()
while wait() do
player.Character.Chest.anim.CFrame = player.Character.Chest.anim.CFrame * CFrame.Angles(0,math.rad(1),0)
end
end)

Hey, check this place out! http://www.roblox.com/Maze-Escape-Deep-Alpha-place?id=194858740
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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