Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

R-15 Problems with changing the mesh?

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()

    script.Parent.Parent:Destroy()

--Character Meshes
LeftFoot = victim.LeftFoot
LeftFoot.MeshID = ("http://www.roblox.com/asset/?id=542649994")

LeftHand = victim.LeftHand
LeftHand.MeshID = ("http://www.roblox.com/asset/?id=542649942")

LeftLowerArm = victim.LeftLowerArm
LeftLowerArm.MeshID = ("http://www.roblox.com/asset/?id=542649944")

LeftLowerLeg = victim.LeftLowerLeg
LeftLowerLeg.MeshID = ("http://www.roblox.com/asset/?id=542650004")

LeftUpperArm = victim.LeftUpperArm
LeftUpperArm.MeshID = ("http://www.roblox.com/asset/?id=542649949")

LeftUpperLeg = victim.LeftUpperLeg
LeftUpperLeg.MeshID = ("http://www.roblox.com/asset/?id=542650009")

LowerTorso = victim.LowerTorso
LowerTorso.MeshID = ("http://www.roblox.com/asset/?id=542650030")

RightFoot = victim.RightFoot
RightFoot.MeshID = ("http://www.roblox.com/asset/?id=542650013")

RightHand = victim.RightHand
RightHand.MeshID = ("http://www.roblox.com/asset/?id=549545789")

RightLowerArm = victim.RightLowerArm
RightLowerArm.MeshID = ("http://www.roblox.com/asset/?id=549545792")

RightLowerLeg = victim.LeftLowerLeg
RightLowerLeg.MeshID = ("http://www.roblox.com/asset/?id=542650017")

RightUpperArm = victim.RightUpperArm
RightUpperArm.MeshID = ("http://www.roblox.com/asset/?id=549545795")

RightUpperLeg = victim.RightUpperLeg
RightUpperLeg.MeshID = ("http://www.roblox.com/asset/?id=542650023")

UpperTorso = victim.UpperTorso
UpperTorso.MeshID = ("http://www.roblox.com/asset/?id=542649972")

end

script.Parent.MouseButton1Down:connect(kill)

thank you ~Fin

2 comments

0

Who gave this an upvote XD

0

Me and 2 others it looks like.

1 answer

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

(Line 5)

4 comments

0

it is destroying the gui it is in ... and when you click it it should change your package ... but it doesn't

0

Its destroying the parent of the script.. "script.Parent.Parent:Destroy()" will remove the GUI and EVERYTHING INSIDE OF IT. Thus also the script!

0

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

0

You'll have to remove the destroy though, else the script wont run anything. Suggest just putting in the ID as followed. "rbxassetid://000000000".

This discussion is preserved as it was. New answers, comments, and votes are closed.