Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My Input script is not really doing it's job and I can't find the problem?

Asked by 4 years ago

Oddly enough, for some apparent reason when I try pressing E nothing much happens. And if this helps when I type in UIS.InputBegan and add the : there is no auto complete coming up. Strange...

UIS = game:GetService("UserInputService")

UIS.InputBegan:Connect(function(input)
    local Pressed = input.KeyCode
    if Pressed == Enum.KeyCode.E then
        script.Parent.Title.Orientation = Vector3.new(script.Parent.Fliped.Orientation.X,script.Parent.Fliped.Orientation.Y,script.Parent.Fliped.Orientation.Z)
        script.Parent.Title.Position = Vector3.new(script.Parent.Fliped.Position.X,script.Parent.Fliped.Position.Y,script.Parent.Fliped.Position.Z)
        script.Disabled = true
        script.Parent.FlipBookScript2.Disabled = false
    end
end)

This could be an easy fix and Im just being a dunce, but can someone help me out?

(P.S. Im making an actual book that you can read on roblox because why not? So that's why you'd see the "Title" and "Fliped" Names.)

Answer this question