#help with welding
11 messages · Page 1 of 1 (latest)
** You are now Level 4! **
ther is many errors in your script
because i cant get the ball to be welded correctly to the right arm when i interact with the proximity prompt
so i thought it would be a better approach
This is not the full script.
is this all of lines ?
no
i can send it all
my bad i couldnt fit more characters
local Players = game:GetService("Players")
local tweenservice = game:GetService("TweenService")
local UIS game:GetService("UserInputService")
local WS = game:GetService("Workspace")
local RS = game:GetService("ReplicatedStorage")
local proxprom = game.Workspace.Proxpart.Pickup
local ball = RS.ball
local BallRefrancePart = nil
local Hasball = false
local Pickupanim = Instance.new("Animation")
Pickupanim.AnimationId = "rbxassetid://80858959033028"
Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
local RefrancePart = Instance.new("Part")
RefrancePart.Parent = char
local char = plr.Character
local rightarm = char:WaitForChild("Right Arm")
local weld = Instance.new("Weld")
weld.Parent = char
local offset = Vector3.new(0,-3.5,0)
RefrancePart.Transparency = 0
RefrancePart.Anchored = false
RefrancePart.CanCollide = false
RefrancePart.Position = rightarm.Position + offset
weld.Part0 = RefrancePart
weld.Part1 = rightarm
BallRefrancePart = RefrancePart
print(RefrancePart.Parent)
end)
end)