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
 

The PrimaryPart isn't rotating, and the model isn't rotating

Previous Thread :: Next Thread 
SpeakerColonia is not online. SpeakerColonia
Joined: 11 Jul 2012
Total Posts: 10238
20 Dec 2016 07:31 PM
The part, Prime, is the primaryPart. I tried replacing it with PrimaryPart but that didn't work.

script.Parent.Touched:connect(function(hit)
deity = game.Workspace.Deity:FindFirstChild("LeftLeg")
print(deity)
if hit.Parent.Humanoid then
deity:SetPrimaryPartCFrame(CFrame.new(deity.Prime.Position) * CFrame.Angles(math.rad(180), math.rad(180), math.rad(0)))
end
end)

Nothing happens when you touch the part. The model is not anchored.


27,564
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
20 Dec 2016 07:32 PM
no errors? are you sure that it's Deity.LeftLeg and not Deity["Left Leg"]?
Report Abuse
SpeakerColonia is not online. SpeakerColonia
Joined: 11 Jul 2012
Total Posts: 10238
20 Dec 2016 07:35 PM
Changing it to Deity.LeftLeg doesn't change anything.


27,564
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
20 Dec 2016 07:37 PM
that wasn't my question
but since you're calling SetPrimaryPartCFrame() on it I'm pretty sure it's not a Part

again I ask, no errors?
Report Abuse
SpeakerColonia is not online. SpeakerColonia
Joined: 11 Jul 2012
Total Posts: 10238
20 Dec 2016 07:39 PM
No errors.


27,564
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
20 Dec 2016 07:40 PM
...alright, here's some obvious questions

1) what's the ClassName of LeftLeg?
2) is the script enabled?
Report Abuse
SpeakerColonia is not online. SpeakerColonia
Joined: 11 Jul 2012
Total Posts: 10238
20 Dec 2016 07:43 PM
1. Model 2. Yes ####
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
20 Dec 2016 07:44 PM
well I've done what I can do
gonna study for this dumb exam now
Report Abuse
SpeakerColonia is not online. SpeakerColonia
Joined: 11 Jul 2012
Total Posts: 10238
20 Dec 2016 08:02 PM
g1


27,564
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
20 Dec 2016 08:14 PM
print(workspace.Deity.PrimaryPart)

local deity = workspace.Deity:FindFirstChild('LeftLeg')

if diety then
--code


Report Abuse
SpeakerColonia is not online. SpeakerColonia
Joined: 11 Jul 2012
Total Posts: 10238
20 Dec 2016 08:22 PM
It worked, TimeTicks. Thanks.


27,564
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