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

When i activate the function, why is part1's orientation different to the one i set it as?

script.Parent.RemoteEvent.OnServerEvent:Connect(function(player)
local hold = player.Character.Humanoid:LoadAnimation(script.Animation)
hold:Play()
local ball = game.ServerStorage.Part:Clone()
ball.Parent = workspace
ball.CanCollide = false
ball.Size = Vector3.new(.5, .5, .5)
local weld = Instance.new("Weld")
ball.CFrame = player.Character:FindFirstChild("Right Arm").CFrame * CFrame.new(0, 5, 0)
weld.Parent = ball
weld.Part0 = player.Character:FindFirstChild("Right Arm")
weld.Part1 = ball
weld.C1 = CFrame.new(0, 1, 0)
wait(1)
local part1 = game.ServerStorage.Part1:Clone()
part1.Parent = workspace
part1.CFrame = ball.CFrame
part1.Anchored = true
part1.CanCollide = false
part1.Size = Vector3.new(4, 4, 4)

end)

1 comment

0

aaaaaa i dont get it i need more information to understand sry dude but is this wat u mean? https://gyazo.com/83fdd19a2d6b88c333aafc9878d73296

1 answer

You are not setting the orientation anywhere in your script, if you mean the one that you set in the properties tab, then the reason for that is because you're using CFrame.

1 comment

0

Even when I set the orientation in script, it still doesn’t work.

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