|
| 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 |
|
|
|
| 20 Dec 2016 07:32 PM |
| no errors? are you sure that it's Deity.LeftLeg and not Deity["Left Leg"]? |
|
|
| Report Abuse |
|
|
|
| 20 Dec 2016 07:35 PM |
Changing it to Deity.LeftLeg doesn't change anything.
27,564 |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|
|
| 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 |
|
|
| |
|
|
| 20 Dec 2016 07:44 PM |
well I've done what I can do gonna study for this dumb exam now |
|
|
| Report Abuse |
|
|
| |
|
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 |
|
|
|
| 20 Dec 2016 08:22 PM |
It worked, TimeTicks. Thanks.
27,564 |
|
|
| Report Abuse |
|
|