Log in to vote

R-15 Problems with changing the mesh?

Asked by 9 months ago

I asked this question before, but no one replied to it so I'm asking it again! Why does this not work with changing the R-15 body meshes? and what do I need to change to make it work?

victim = script.Parent.Parent.Parent.Parent.Parent.Character

function kill()


--Character Meshes
LeftFoot = victim.LeftFoot
LeftFoot.MeshID = ("")

LeftHand = victim.LeftHand
LeftHand.MeshID = ("")

LeftLowerArm = victim.LeftLowerArm
LeftLowerArm.MeshID = ("")

LeftLowerLeg = victim.LeftLowerLeg
LeftLowerLeg.MeshID = ("")

LeftUpperArm = victim.LeftUpperArm
LeftUpperArm.MeshID = ("")

LeftUpperLeg = victim.LeftUpperLeg
LeftUpperLeg.MeshID = ("")

LowerTorso = victim.LowerTorso
LowerTorso.MeshID = ("")

RightFoot = victim.RightFoot
RightFoot.MeshID = ("")

RightHand = victim.RightHand
RightHand.MeshID = ("")

RightLowerArm = victim.RightLowerArm
RightLowerArm.MeshID = ("")

RightLowerLeg = victim.LeftLowerLeg
RightLowerLeg.MeshID = ("")

RightUpperArm = victim.RightUpperArm
RightUpperArm.MeshID = ("")

RightUpperLeg = victim.RightUpperLeg
RightUpperLeg.MeshID = ("")

UpperTorso = victim.UpperTorso
UpperTorso.MeshID = ("")



thank you ~Fin

Who gave this an upvote XD RubenKan 2552 — 9mo
Me and 2 others it looks like. FiredDusk 1426 — 9mo


Looks like you're using an ad blocker.

That's fine...

No, it really is.

Just, I mean, we put a lot of work into this site, you know?

It would be really really appreciated if you would turn off your ad blocker for our website...

We tried really hard to make our ads as unobtrusive as possible.

If you really hate ads, would you consider a $2 donation via Patreon?

Here's the link.

We love you. We hope you love us too.




Now back to your regularly scheduled Scripting Helpers....




1 answer

Log in to vote
Answered by
RubenKan 2552 Administrator
9 months ago
Edited 9 months ago

What do you expect to happen when you destroy the script's Parent before all the code can execute, dingus.

(Line 5)

it is destroying the gui it is in ... and when you click it it should change your package ... but it doesn't FinickOdre123 8 — 9mo
Its destroying the parent of the script.. "script.Parent.Parent:Destroy()" will remove the GUI and EVERYTHING INSIDE OF IT. Thus also the script! RubenKan 2552 — 9mo
that's not my problem, cause I tried it without destroying the gui ... and it still didn't work >_> T_T and having the 2.0 figure on the R-15 is really important in my game! and it won't allow it FinickOdre123 8 — 9mo
You'll have to remove the destroy though, else the script wont run anything. Suggest just putting in the ID as followed. "rbxassetid://000000000". RubenKan 2552 — 9mo

Answer this question