Link 2
local RunService = game:GetService(“RunService”)
RunService.RenderStepped:Connect(function(time, dt)
– time = time elapsed since device started,
– dt = time elapsed since previous event fired
print("Framerate = "…tostring(math.floor(1/dt + 0.5)))
end)
Link 3
local RunService = game:GetService(“RunService”)
RunService.Heartbeat:Connect(function(time, dt)
– time = time elapsed since device started,
– dt = time elapsed since previous event fired
print("Framerate = "…tostring(math.floor(1/dt + 0.5)))
end)
Link 4
–Source:
–https://devforum.roblox.com/t/motor6d-transform-server-sided/289914
–Locals
local RunService = game:GetService(“RunService”)
local Players = game:GetService(“Players”)
local LocalPlayer = Players.LocalPlayer
local Mouse = LocalPlayer:GetMouse()
local Motor6D = Instance.new(“Motor6D”)
local Arm = Instance.new(“Part”)
Arm.Parent = LocalPlayer.Character
Arm.Name = “Arm”
Arm.Size = Vector3.new(0.2,2,0.2)
Arm.Anchored = true
Arm.CanCollide = false
Arm.CFrame = CFrame.new(3,3.5,3)
Arm.BrickColor = BrickColor.new(“Bright blue”)
local Grab = Instance.new(“Part”)
Grab.Parent = Arm
Grab.Name = “Grab”
Grab.Size = Vector3.new(0.5,0.5,0.5)
Grab.CFrame = CFrame.new(0,0,0)
Grab.Anchored = true
Grab.CanCollide = false
Grab.BrickColor = BrickColor.new(“Bright blue”)
–Motor6D
Motor6D.Parent = Arm
Motor6D.Part0 = Arm
Motor6D.Part1 = Grab
Motor6D.C0 = CFrame.new(0,0.5,0)
Motor6D.C1 = CFrame.new(0,0,0)
–Functions
function GetMousePos(mouse)
onnect(function()
Frame = CFrame.Angles(0, angle, 0) * CFrame.new(distance, 3.5, 0) * CFrame.Angles(0, math.rad(-90), 0)