Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

I'm having trouble with Line 69, and I've tried many ways to fix it. Help please?

Asked by 9 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

The 1st one I tried was: CFrame.new(Vector3.new(glitched.Position)) but it just teleport me underground

Heres the script:

button = script.Parent player = game.Players.LocalPlayer glitches = game.Workspace.GlitchPlates particles = Instance.new("ParticleEmitter") function onClick() --[[ local torso = player.Character.Torso local rightArm = player.Character.RightArm local leftArm = player.Character.LeftArm local leftLeg = player.Character.LeftLeg local rightLeg = player.Character.RighLeg local head = player.Character.Head -]] local character = player.Character local shirt = character:findFirstChild("Shirt") local pants = character:findFirstChild("Pants") local bodyColors = character:findFirstChild("Body Colors") if shirt then shirt:clone() local shirtClone = shirt:clone() shirtClone.Parent = game.ServerStorage shirt:Destroy() end if pants then pants:clone() local pantsClone = pants:clone() pantsClone.Parent = game.ServerStorage pants:Destroy() end if bodyColors then bodyColors:clone() local colorsClone = bodyColors:clone() colorsClone.Parent = game.ServerStorage bodyColors:Destroy() end local leftLeg = character:findFirstChild("Left Leg") if leftLeg then leftLeg.Transparency = 0.5 leftLeg.BrickColor = BrickColor.Blue() end local rightLeg = character:findFirstChild("Right Leg") if rightLeg then rightLeg.Transparency = 0.5 rightLeg.BrickColor = BrickColor.Blue() end local leftArm = character:findFirstChild("Left Arm") if leftArm then leftArm.Transparency = 0.5 leftArm.BrickColor = BrickColor.Blue() end local rightArm = character:findFirstChild("Right Arm") if rightArm then rightArm.Transparency = 0.5 rightArm.BrickColor = BrickColor.Blue() end local head = character:findFirstChild("Head") if head then head.Transparency = 0.5 head.BrickColor = BrickColor.Blue() end local torso = character:findFirstChild("Torso") if torso then torso.Transparency = 0.5 torso.BrickColor = BrickColor.Blue() end local glitching = glitches:GetChildren() if glitching then local glitched = glitching[math.random(1, #glitching)] if glitched then HELP HERE >>>>> character.Torso.CFrame = character.Torso:MoveTo(glitched.Position) --character:MoveTo(glitched.Position) --glitched.Position --CFrame.new(Vector3.new(glitched.Position)) <<<< ENDS HERE. THE THINGS WITH 2 LINES ARE SUGGESTIONS OF WHAT I SHOULD PUT THERE. EDIT IF NEEDED pls end --change body back to normal once they have finished glitching end end

button.MouseButton1Down:connect(onClick)

btw i am still working on the glitch effects im making this for my brother but i got interested in it too and also how do you make ur question look like a real script

1
Use the code blocks and copy and paste KennySfromTitan 106 — 9y
0
K EvIlBrainBug 0 — 9y

Answer this question