#Why does that?

1 messages · Page 1 of 1 (latest)

sharp turret
#

So basically i was trying an intermission phase and roundstarting and when u are on roundstarting u came on firstperson and then when u came back on intermission phase u are on freecam basiccaly or maybe classic, btw here is a video where explain all. My problem is the thing after orund starting my character get stucked on 1 direction. Can somene solve that? btw here is the script local on starterchar
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local RunService = game:GetService("RunService")

local head = char:WaitForChild("Head")

char.Humanoid.CameraOffset = Vector3.new(0, 0, -1)

for i, v in pairs(char:GetChildren()) do
if v:IsA("BasePart") and v.Name ~= "Head" then

    v:GetPropertyChangedSignal("LocalTransparencyModifier"):Connect(function()
        v.LocalTransparencyModifier = v.Transparency
    end)

    v.LocalTransparencyModifier = v.Transparency

end

end

RunService.RenderStepped:Connect(function(step)
local ray = Ray.new(head.Position, ((head.CFrame + head.CFrame.LookVector * 2) - head.Position).Position.Unit)
local ignoreList = char:GetChildren()

local hit, pos = game.Workspace:FindPartOnRayWithIgnoreList(ray, ignoreList)

if hit then
    char.Humanoid.CameraOffset = Vector3.new(0, 0, -(head.Position - pos).magnitude)
else
    char.Humanoid.CameraOffset = Vector3.new(0, 0, -1)
end

end)
and basically the server script just call the event every 5 secs

#

@here