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

My ManualWeld Does not Appear to be Working for any Reason At all??

Asked by 6 years ago
Edited 6 years ago

local inputservice = game:GetService("UserInputService")

local tweenservice = game:GetService("TweenService")

inputservice.InputBegan:Connect(function(input,controller)

if controller then return end

if input.KeyCode == Enum.KeyCode.P then

print"P has been pressed."

-- the part is cylinder and the CFrame don't work because it does not face the way I look!!!

local energywave = game.ReplicatedStorage.Part:Clone()

energywave.CFrame = script.Parent.LeftLowerArm.CFrame

energywave.Parent = game.Workspace

-- welding here

local weld = energywave.Weld

weld.Part0 = energywave

weld.Part1 = script.Parent.LeftLowerArm

-- tweening

local goal = {}

goal.Size = Vector3.new(100,3,3)

local tweeninfo = TweenInfo.new(2)

local tween = tweenservice:Create(energywave,tweeninfo,goal)

tween:Play()

end

end)

0
I press P and first off the Part which is a cylinder, does not face the right way neither. I want the cylinder to look the way I am facing! dareveloper 9 — 6y
0
Absolute no errors, outrageous! Please help me... dareveloper 9 — 6y

1 answer

Log in to vote
0
Answered by
hellmatic 1523 Moderation Voter
6 years ago

Ignore this, just placing your script in a code block

local inputservice = game:GetService("UserInputService")

local tweenservice = game:GetService("TweenService")

inputservice.InputBegan:Connect(function(input,controller)

if controller then return end

if input.KeyCode == Enum.KeyCode.P then

print"P has been pressed."

-- the part is cylinder and the CFrame don't work because it does not face the way I look!!!

local energywave = game.ReplicatedStorage.Part:Clone()

energywave.CFrame = script.Parent.LeftLowerArm.CFrame

energywave.Parent = game.Workspace

-- welding here

local weld = energywave.Weld

weld.Part0 = energywave

weld.Part1 = script.Parent.LeftLowerArm

-- tweening

local goal = {}

goal.Size = Vector3.new(100,3,3)

local tweeninfo = TweenInfo.new(2)

local tween = tweenservice:Create(energywave,tweeninfo,goal)

tween:Play()

end

end)

0
thanks dareveloper 9 — 6y
0
can u help me pls sir dareveloper 9 — 6y
Ad

Answer this question