Here's my code.
-- Variables player = game.Players.LocalPlayer a = game.ReplicatedStorage.AeikeTitan:Clone() b = game.ReplicatedStorage.Lightning:Clone() c = game.ReplicatedStorage.Steam:Clone() rep = game.ReplicatedStorage -- Functions function onKeyPress(inputObject, gameProcessedEvent) if inputObject.KeyCode == Enum.KeyCode.J and script.isTitan.Value == false then -- gets the key and isTitan value print("Titan Shift in action") -- for debugging b.Parent = game.Workspace b:SetPrimaryPartCFrame(player.Character.Torso.CFrame) script.Bolt:Play() wait(1) b:Destroy() a.Parent = game.Workspace a:SetPrimaryPartCFrame(player.Character.Torso.CFrame) player.Character.Humanoid.WalkSpeed = 0 script.TitanRoar:Play() wait(0.1) script.isTitan.Value = true wait(30) a:Destroy() script.isTitan.Value = false player.Character.Humanoid.WalkSpeed = 16 end end game:GetService("UserInputService").InputBegan:connect(onKeyPress) -- TITAN TELEPORTATION if isTitan == true then player.Character.Torso.CFrame.new(a.Nape.CFrame) end
I gotta go to bed. Anything I did wrong? It seems as if "Titan Teleportation" isnt working.
It looks like you made a syntax error:
in:
player.Character.Torso.CFrame.new(a.Nape.CFrame)
you aren't setting the CFrame of the object. Rather, you are just making a new CFrame. In order to change the CFrame, you should try:
player.Character.Torso.CFrame = a.Nape.CFrame
This sets the Torso's CFrame equal to where you want the Torso to be.