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

[SOLVED] How do I weld with this local script?

Asked by 6 years ago
Edited 6 years ago

This LOCAL script turns ur foot on fire.

I have made a local script but I don't know how to weld this object to my foot (R15 RIG) because everytime I use this script the object falls off. this object is in the replicatedstorage where it is activated and put on my foot.

local UserInputService = game:GetService("UserInputService")
Player = game.Players.LocalPlayer
mouse = Player:GetMouse()

repeat wait() until Player.Character

local char = Player.Character
local torso = char:findFirstChild("UpperTorso")
local StaminaVal = Player:WaitForChild('StaminaVal')

local Used = false

enabled = true

InputBegan = true

local function onInputBegan(input,gameProcessed)
    if input.KeyCode == Enum.KeyCode.P and not Used then
        torso.Anchored = true
        local keyPressed = input.KeyCode
        local hum = game.Players.LocalPlayer.Character.Humanoid
        local anim_feet = hum:LoadAnimation(script.Parent.SpinAnimation)
        local current = anim_feet
        current:Play()
        wait(.2)

        local x = game.ReplicatedStorage.FireLeg:Clone()
        x.Parent = workspace
        x.CFrame = Player.Character.LeftFoot.CFrame*CFrame.new(0, 0, 0)
        game.Debris:AddItem(x, 100)
        torso.Anchored = false
        Used = true
        StaminaVal.Value =  StaminaVal.Value + 2

        end 
        end


        wait(1)
        Used = false






UserInputService.InputBegan:connect(onInputBegan)

0
Is there no weld made? or is that part in another script altogether? Trewier 146 — 6y
0
There is not another script for welding but I don't know if the thing I did was welding or not because I don't know how to weld Amputea 2 — 6y

Answer this question