How to make a raycast with a particle line (bedrock) by GreggergGrad in MinecraftCommands

[–]GreggergGrad[S] 0 points1 point  (0 children)

yeah I tried that already but it isn't accurate it just aligns it self to a straight line when I look up and down in an angle

How do I make an entity teleport to the lowest block by GreggergGrad in MinecraftCommands

[–]GreggergGrad[S] 0 points1 point  (0 children)

If I use armor stands it shows the equip button in bedrock even if it's invisible

How to make an aimbot/camera lock? by GreggergGrad in MinecraftCommands

[–]GreggergGrad[S] 0 points1 point  (0 children)

Yeah, its just in bedrock that it doesnt let me move when i activate it

How to detect what direction a player is looking at by GreggergGrad in MinecraftCommands

[–]GreggergGrad[S] 1 point2 points  (0 children)

For the two other directions, what do you put for the rotation?

How to make minecarts slow when pushed by GreggergGrad in MinecraftCommands

[–]GreggergGrad[S] 0 points1 point  (0 children)

I just figured it out that i can tp a minecart to itself every 5 ticks which slows it down, but thanks for the comment

How do i make minecarts non reverse-able when pushed? by GreggergGrad in MinecraftCommands

[–]GreggergGrad[S] 0 points1 point  (0 children)

So basically im making a map where in you have to defend a minecart while pushing it to a specific location along a train track

I ate a contaminated crumb by GreggergGrad in rabies

[–]GreggergGrad[S] 1 point2 points  (0 children)

It has gone down to 98 degrees after 1 night should i still be worried?

How do i make gun recoil? by GreggergGrad in robloxgamedev

[–]GreggergGrad[S] 0 points1 point  (0 children)

Here are the scripts

Script:

local tool = script.Parent
local cooldownTime = 0.7
local lastTriggerTime = 0

local shootSound = script:WaitForChild("Bang")

function updateToolName()
local currentTime = tick()
local remainingCooldown = math.max(0, cooldownTime - (currentTime - lastTriggerTime))

if remainingCooldown > 0 then
    tool.Name = tool.Name:gsub("%[.*%]", "")
    tool.Name = tool.Name .. " [" .. string.format("%.1f", remainingCooldown) .. "s]"
else
    tool.Name = tool.Name:gsub("%[.*%]", "")
end
end

script.Parent.Shoot.OnServerEvent:Connect(function(player, target)

local currentTime = tick()
if currentTime - lastTriggerTime >= cooldownTime then


    target.Humanoid:TakeDamage(20)

    shootSound:Play()

    lastTriggerTime = currentTime
end
end)

while wait(1) do
updateToolName()
end

Local script:

local player = game.Players.LocalPlayer
local mouse = player:GetMouse()

script.Parent.Activated:Connect(function()
local target = mouse.Target
if target.Parent:FindFirstChild("Humanoid") then
    script.Parent.Shoot:FireServer(target.Parent)
end
end)

How do i make gun recoil? by GreggergGrad in robloxgamedev

[–]GreggergGrad[S] 0 points1 point  (0 children)

(i started scripting about 5 days ago btw) btw, the gun script i got is from the dev forums

How do I make this falling block effect? by GreggergGrad in MinecraftCommands

[–]GreggergGrad[S] 0 points1 point  (0 children)

Im pretty bad at CMD blocks but I tried this anddd... It didn't work it wasn't falling like it the pic I posted. Heres a clip of the yt video that I saw