Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to make a tool when you equip it it changes the camera view?

I've been working on a game show and there is going to be a team helping with the electronics and stuff playing sounds , opening curtains, and a camera tool so they can watch. If you see anything wrong with my scripting please tell me. I am pretty new.

local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Camera = game.Workspace.CurrentCamera
local StageView = game.StarterPack["Stage View"]


StageView.Activated:Connect(function()
     Camera.CameraType = Enum.CameraType.Scriptable
     Camera.CFrame = workspace.FocusHere.Position
end)

7 comments

0

Sorry roblox136393 but that doesn't work either

0

oof, it could be the way you (or even I) have been using the Equipped event. So it could be the Event or camera just not working.

0

what script should i put in the event or what should i put in the script for the event, cause i dont have an event

0

What I ment Event is that "StageView.Activated <-- This is an event just like Equipped.

0

Equipped, Activated, Unequipped, PlayerAdded, Changed, MouseButton1Click are all events and there are many more.

0

I have fixed it! for the tool variable it did not accept the game. input so i had to do the script.parent input with fixed the problem

0

oh yey

1 answer

✓ Accepted answer

In my opinion, nothing is wrong here. But the Activated part means when someone clicks while holding the Tool then the function will take effect. IF you want to make it happen as soon the player equips the tool, then I would recommend Equipped.

1 comment

0

It no work

This discussion is preserved as it was. New answers, comments, and votes are closed.