So the first thing im gonna say is, I just thinked you have 3D view at first but it’s 2.5D so it will be easy as getting square root of 256 (idk why I said that) first thing you might wanna do is define the mouse, as you defined the mouse, you are willing to get mouse’s X and Z and as you do it you have to rotate the Hammer for mouse’s X and Z (get Y as 0)
I looked at another post about this and the guy said that Motor6d’s didn’t work. It’s obvious that I have to set it using CFrame. But I can’t seem to figure it out.
Don’t ask for entire scripts. This is a topic for #collaboration:recruitment and you should hire someone to do this. Asking for entire scripts is called spoon feeding and is against the rules.
Isn’t there another game like getting over it already in roblox? (Bloxing Over It) You could figure out whoever made that and ask for their help… Otherwise I don’t know enough scripting to help you with this, and you have not shown what you have scripted already so people can see your code and know what you are missing. Show some code, maybe someone might be able to help you more. Good luck!
I’m not asking for an entire script, I’m just asking if anyone knows how I could script this. Like, if anyone knows what CFrame properties I should use, or what CFrame formulas.
I’ll try to ask the developer of that game, maybe he’ll respond, but for now, this is my code:
(not the best but it kind of works)
local WALK_SPEED = 0
local JUMP_POWER = 0
local AUTO_ROTATE = false
local CUSTOM_CHARACTER = true
local CUSTOM_CAMERA = false
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local humanoid = char:FindFirstChild("Humanoid")
local mouse = player:GetMouse()
humanoid.WalkSpeed = WALK_SPEED
humanoid.JumpPower = JUMP_POWER
humanoid.AutoRotate = AUTO_ROTATE
local newPlr = workspace.Player
if CUSTOM_CHARACTER == true then
local leftArm = char:FindFirstChild("Left Arm")
local rightArm = char:FindFirstChild("Right Arm")
local leftLeg = char:FindFirstChild("Left Leg")
local rightLeg = char:FindFirstChild("Right Leg")
local Torso = char:FindFirstChild("Torso")
local Head = char:FindFirstChild("Head")
leftArm.Transparency = 1
rightArm.Transparency = 1
leftLeg.Transparency = 1
rightLeg.Transparency = 1
Torso.Transparency = 1
Head.Transparency = 1
local newPlrClone = newPlr:Clone()
newPlrClone.Parent = char
local newPart = Instance.new("Part", char)
newPart.Size = Vector3.new(1,1,1)
newPart.Anchored = true
newPart.CanCollide = true
newPart.BrickColor = BrickColor.new("Really red")
newPart.Transparency = 0.8
game:GetService("RunService").RenderStepped:Connect(function()
newPlrClone.Cube.CFrame = char:FindFirstChild("HumanoidRootPart").CFrame
newPart.CFrame = mouse.Hit
end)
--this is supposed to be the hammer physics code, i havent scripted anything here yet:
game:GetService("RunService").Stepped:Connect(function()
local mouseX = mouse.X
end)
end
if CUSTOM_CAMERA == true then
local newCam = workspace:FindFirstChild("CameraPart")
game:GetService("RunService").RenderStepped:Connect(function()
newCam.CFrame = CFrame.new(char:FindFirstChild("HumanoidRootPart").Position) *
CFrame.new(0,7,-30)
newCam.Orientation = Vector3.new(-15,180,0)
end)
end
2.5D refers to having a 3D view and camera but movement on only two axes (usually and in this case the X and Y axes) games like Smash and Mortal Kombat are called 2.5D games
14 days isn’t that old my guy I just answered your question that was left unanswered, and
furthermore looking at the code OP posted he did not solve his problem