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)