You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
part follows player -
What is the issue? Include screenshots / videos if possible!
Its taking a full second to get to destination -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
A lot for a full month
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
-- local pet = script.Parent
local rE = game.ReplicatedStorage.RemoteEvents
local folder = game.ReplicatedStorage.HRPpos
local Throw = false
local H = false
local C = false
local G = false
a = true
function givepet(player)
if player then
local character = player.character
if character then
local humanrootpart = character.HumanoidRootPart
local bodyVel = pet.BodyVelocity
local breaks = false
while breaks == false and game:GetService("RunService").Heartbeat:Wait() do
if script.Parent.Action.Value == false then
print("a")
pet.CFrame = character.HumanoidRootPart.CFrame * CFrame.new(2,3,3)
end
if H then
pet.CFrame = character:WaitForChild("Right Arm").RightGripAttachment.WorldCFrame
end
if G then
print("G")
pet.CFrame = pet.CFrame * CFrame.Angles(-1,0,0)
end
if character:WaitForChild("Humanoid").Health == 0 then
wait(7)
givepet(player)
pet:Destroy()
breaks = true
end
end
end
end
end
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
local hum = char:WaitForChild("Humanoid")
givepet(player)
end)
end)
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.